/**
 * BEEP! Merchant Website Components
 * 
 * Reusable UI components aligned with CI and design system
 */

/* ===================================================================
   BUTTONS
   =================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-height);
    padding: 0 var(--spacing-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
}

.button-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.button-primary:active {
    transform: translateY(0);
}

.button-secondary {
    background-color: var(--glass-thin-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-thin-border);
    backdrop-filter: blur(var(--blur-thin));
}

.button-secondary:hover {
    background-color: var(--glass-regular-surface);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.button-tertiary {
    background-color: transparent;
    color: var(--color-text-primary);
    padding: 0 var(--spacing-md);
}

.button-tertiary:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.button-large {
    min-height: var(--button-height-large);
    padding: 0 var(--spacing-xl);
    font-size: var(--font-size-body);
}

.button-small {
    min-height: var(--button-height-small);
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-body-medium);
}

.button:disabled {
    background-color: var(--color-disabled);
    color: var(--color-disabled-text);
    cursor: not-allowed;
    transform: none;
}

/* Focus states for accessibility (WCAG 2.1) */
.button:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.button:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* ===================================================================
   CARDS
   =================================================================== */

.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-card);
    padding: var(--spacing-card-padding);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.card-glass {
    background-color: var(--glass-regular-surface);
    border: 1px solid var(--glass-regular-border);
    backdrop-filter: blur(var(--blur-regular));
}

.card-elevated {
    box-shadow: 0 4px 16px var(--shadow);
}

/* Package Cards */
.package-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 2px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    transition: all 0.3s ease;
    min-width: 0;
}

.package-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.package-card-featured {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.package-card-label {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.package-card-price {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: var(--spacing-sm) 0;
    white-space: nowrap;
}

.package-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.package-card-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-body-medium);
    line-height: var(--line-height-body-medium);
    min-width: 0;
}

.package-card-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* Package Card Description - Fixed Height for Alignment */
.package-card>p {
    min-height: 72px;
}

/* Package features wrapper - grows to fill available space */
.package-features-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===================================================================
   AI DROPDOWN
   =================================================================== */

.ai-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ai-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--glass-thin-surface);
    border: 1px solid var(--glass-thin-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-trigger:hover {
    background-color: var(--glass-regular-surface);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.ai-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.ai-trigger-icon {
    display: inline-flex;
    align-items: center;
}

.ai-menu {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    right: 0;
    min-width: 240px;
    padding: var(--spacing-sm);
    background-color: var(--glass-regular-surface);
    border: 1px solid var(--glass-regular-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px var(--shadow-medium);
    backdrop-filter: blur(60px) saturate(1.8);
    -webkit-backdrop-filter: blur(60px) saturate(1.8);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 1080;
}

.ai-dropdown.is-open .ai-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ai-menu-title {
    font-size: var(--font-size-overline);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-sm);
}

.ai-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ai-menu-item:hover {
    background-color: var(--color-hover);
}

.ai-menu-icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
}

/* Mobile AI dropdown – sits next to hamburger in header bar */
.ai-dropdown-mobile {
    display: none;
}

@media (max-width: 767px) {
    .ai-dropdown-mobile {
        display: inline-flex;
        position: relative;
    }

    .ai-dropdown-mobile .ai-trigger {
        padding: 6px 10px;
        font-size: 13px;
        gap: 4px;
    }

    .ai-dropdown-mobile .ai-trigger-label {
        display: inline;
    }

    .ai-dropdown-mobile .ai-menu {
        position: fixed;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-6px);
        min-width: 260px;
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 10002;
    }

    .ai-dropdown-mobile.is-open .ai-menu {
        transform: translateX(-50%) translateY(0);
    }
}

.ai-model-picker {
    border-top: 1px solid var(--glass-thin-border);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
}

.ai-model-picker-title {
    font-size: var(--font-size-overline);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-sm);
}

.ai-model-back {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-body-small);
    margin-top: var(--spacing-xs);
}

.ai-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--color-primary, #000);
    color: var(--color-text-on-primary, #fff);
    padding: 12px 24px;
    border-radius: var(--radius-sm, 8px);
    font-size: var(--font-size-body-small, 14px);
    font-weight: var(--font-weight-medium, 500);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
}

.ai-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Package includes strip - cumulative packages */
.package-card-includes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: auto;
    padding-top: 2px;
}

.pkg-includes-label {
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-right: 2px;
    white-space: nowrap;
}

.pkg-pill {
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.pkg-pill+.pkg-pill::before {
    content: '·';
    margin-right: 3px;
    opacity: 0.5;
}

/* Package Cards – Mobile Responsive */
@media (max-width: 479px) {
    .package-card {
        padding: var(--spacing-lg);
    }

    .package-card>p {
        min-height: 0;
    }
}

@media (min-width: 480px) and (max-width: 1279px) {
    .package-card {
        padding: var(--spacing-lg);
    }

    .package-card-label {
        white-space: normal;
    }

    .package-card-price {
        font-size: 18px;
        white-space: normal;
    }
}

/* Prime card sticker */
.package-prime-card {
    position: relative;
    overflow: visible;
}

.package-prime-sticker {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #EC4899 0%, #2563EB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(12deg);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45);
    z-index: 2;
    pointer-events: none;
}

.package-prime-sticker::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
}

.package-prime-sticker span {
    font-family: var(--font-family);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}


/* Outcome Cards */
.outcome-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
}

.outcome-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--color-surface-variant);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.outcome-card-title {
    font-size: var(--font-size-heading-4);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.outcome-card-description {
    font-size: var(--font-size-body-medium);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body-medium);
}

/* Feature Cards */
.feature-card {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Liquid Glass effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.03) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Premium Hover State with Lift Effect */
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(0, 0, 0, 0.05) inset;
    background-color: var(--color-surface-elevated);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Icon Animation on Hover */
.feature-card:hover .feature-card-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* CTA Highlight on Card Hover */
.feature-card:hover .button {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}


.feature-card-title {
    font-size: var(--font-size-heading-5);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

.feature-card-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feature-card-list li {
    font-size: var(--font-size-body-medium);
    color: var(--color-text-secondary);
    padding-left: var(--spacing-md);
    position: relative;
}

.feature-card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ===================================================================
   FORMS
   =================================================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-label-required::after {
    content: '*';
    color: var(--color-error);
    margin-left: var(--spacing-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--color-focus);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    display: block;
    font-size: var(--font-size-body-small);
    color: var(--color-error);
    margin-top: var(--spacing-xs);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--color-error);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

/* Glass Form Inputs */
.form-input-glass {
    background-color: var(--glass-thin-surface);
    border: 1px solid var(--glass-thin-border);
    backdrop-filter: blur(var(--blur-thin));
}

/* ===================================================================
   TRUST SIGNALS
   =================================================================== */

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-md) 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-body-medium);
    color: var(--color-text-secondary);
}

.trust-item::before {
    content: '✓';
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-body);
}

/* Payment Logos */
.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.payment-logo {
    height: 32px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.payment-logo:hover {
    opacity: 1;
}

/* ===================================================================
   BADGES
   =================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-success {
    background-color: var(--color-success-light);
    color: var(--color-success-dark);
}

.badge-info {
    background-color: var(--color-info-light);
    color: var(--color-info-dark);
}

.badge-warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning-dark);
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background-color: var(--color-surface-variant);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer-content {
    font-size: var(--font-size-body-medium);
    line-height: var(--line-height-body-medium);
    color: var(--color-text-secondary);
}

/* ===================================================================
   STEP INDICATORS
   =================================================================== */

.steps {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    background-color: var(--color-surface-variant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-heading-5);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.step-title {
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.step-description {
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
}

/* Mobile: Stack steps vertically */
@media (max-width: 767px) {
    .steps {
        flex-direction: column;
    }

    .step {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        text-align: left;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* ===================================================================
   FEATURE COMPARISON TABLE
   =================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-lg) 0;
    background: transparent;
}

.comparison-table tbody tr {
    background: transparent;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

/* Section background gives contrast for the frosted glass header */
.section-comparison {
    background-color: #F2F3F5;
}

.comparison-table th {
    position: sticky;
    top: 69px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    /* force GPU compositing so backdrop-filter works on sticky th */
    transform: translateZ(0);
    will-change: backdrop-filter;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    color: var(--color-text-secondary) !important;
    border-bottom: none !important;
    box-shadow: none;
}

.comparison-table thead th:first-child {
    border-radius: 14px 0 0 14px;
}

.comparison-table thead th:last-child {
    border-radius: 0 14px 14px 0;
}



/* Package name columns: full dark, centered */
.comparison-table thead th:nth-child(n+2) {
    color: var(--color-text-primary) !important;
    text-align: center;
}

.comparison-table td {
    font-size: var(--font-size-body-medium);
}

.comparison-table .check {
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    text-align: center;
}

.comparison-table .cross {
    color: var(--color-text-muted);
    text-align: center;
}

/* Mobile: Hide table, show accordion instead */
@media (max-width: 767px) {
    .comparison-table {
        display: none;
    }
}

/* ===================================================================
   QUICK PATH BUTTONS
   =================================================================== */

.quick-path-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

@media (max-width: 767px) {
    .quick-path-buttons {
        flex-direction: column;
    }
}

.quick-path-button {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.quick-path-button:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface-elevated);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.quick-path-button strong {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* Arrow hint showing cards are clickable */
.quick-path-button::after {
    content: '→';
    font-size: 18px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: var(--spacing-xs);
}

.quick-path-button:hover::after {
    transform: translateX(4px);
    color: var(--color-primary);
}

/* ===================================================================
   ICONS
   =================================================================== */

/* 
 * Main icon styles are defined in design-system.css
 * This section contains component-specific icon integration
 */

/* Feature Card Icon Container */
.feature-card-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-variant) 100%);
    border: 2px solid var(--color-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 40px;
    /* For emoji fallback */
    transition: all 0.3s ease;
}

.feature-card-icon .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.5px;
}

/* Outcome Card Icon */
.outcome-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--color-surface-variant);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    /* For emoji fallback */
}

.outcome-card-icon .icon {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

/* Timeline Icon Styling */
.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-variant) 100%);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    /* For emoji fallback */
    position: relative;
    z-index: 2;
}

.timeline-icon .icon {
    width: 36px;
    height: 36px;
    stroke-width: 2px;
}

/* Sub-Navigation Icons */
.sub-nav-link .icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Trust Item Icons */
.trust-item .icon {
    width: 18px;
    height: 18px;
    margin-right: var(--spacing-xs);
}

/* Quick Path Button Icons */
.quick-path-button .icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--spacing-xs);
}

/* ===================================================================
   TAB COMPONENTS
   =================================================================== */

.tab-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-semibold);
    background-color: var(--glass-thin-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-button);
    backdrop-filter: blur(var(--blur-thin));
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background-color: var(--glass-regular-surface);
    border-color: var(--color-border-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.tab-button.active {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.tab-button.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
   HORIZONTAL TIMELINE
   =================================================================== */

.timeline-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-variant) 100%);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.timeline-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-bold);
    border: 3px solid var(--color-surface);
}

.timeline-step-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-step-description {
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body-small);
}

/* Flow Arrows between steps */
.timeline-arrow {
    position: absolute;
    top: 40px;
    left: calc(50% + 60px);
    width: calc(100% - 120px);
    height: 2px;
    background: linear-gradient(to right, var(--color-border) 0%, var(--color-border-dark) 50%, var(--color-border) 100%);
    z-index: 1;
}

/* Flow line between steps - removed arrow for cleaner design */
.timeline-arrow::after {
    display: none;
}


.timeline-step:last-child .timeline-arrow {
    display: none;
}

/* Mobile: Vertical Timeline */
@media (max-width: 767px) {
    .tab-buttons {
        gap: var(--spacing-xs);
    }

    .tab-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-body-small);
    }

    .timeline-horizontal {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .timeline-step {
        width: 100%;
    }

    .timeline-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .timeline-number {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-body-small);
    }

    .timeline-arrow {
        display: none;
    }

    /* Vertical connector instead */
    .timeline-step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        color: var(--color-text-secondary);
    }
}

/* ===================================================================
   BENEFIT BADGES & CONVERSION ELEMENTS
   =================================================================== */

.benefit-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-medium);
    background-color: var(--glass-thin-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(var(--blur-thin));
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.timeline-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}


/* Smooth headline transition */
#dynamic-headline {
    transition: opacity 0.3s ease;
}

#dynamic-headline.updating {
    opacity: 0.5;
}

/* ===================================================================
   PREMIUM FEATURE CARDS & TWO MODULES SECTION
   =================================================================== */

/* Benefit-focused list (with checkmarks) */
.feature-card-list-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.feature-card-list-benefits li {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-body-medium);
    line-height: var(--line-height-body);
    color: var(--color-text-secondary);
}

/* Premium Highlight Container - Conversion Optimized */
.premium-highlight {
    width: 100%;
    margin-top: 0;
    /* Tight spacing creates visual hierarchy guiding to premium */
}

/* Premium Feature Card (Prime Kombi) */
.feature-card-premium {
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            rgb(20, 20, 20) 100%);
    color: var(--color-text-on-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(var(--blur-regular));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

/* Liquid Glass effect for Premium card */
.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%);
    pointer-events: none;
}

/* Premium Badge - Compact & Elegant */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #FFFFFF;
    color: #000;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

/* Premium card text colors */
.feature-card-premium .feature-card-title {
    color: var(--color-text-on-primary);
}

.feature-card-premium .feature-card-list-benefits li {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .feature-card-icon {
        font-size: 36px;
        margin-bottom: var(--spacing-sm);
    }

    .feature-card-premium {
        padding: var(--spacing-lg);
    }

    .premium-highlight .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   APP DOWNLOAD COMPONENTS - LIQUID GLASS DESIGN
   =================================================================== */

/* App Store Badges Container */
.app-test-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Individual App Badge (Liquid Glass Style) */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--glass-regular-surface);
    border: 1px solid var(--glass-regular-border);
    border-radius: var(--radius-button);
    backdrop-filter: blur(var(--blur-regular));
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Liquid Glass hover effect */
.app-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--glass-thick-surface);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.app-badge:hover::before {
    opacity: 1;
}

.app-badge:active {
    transform: translateY(-2px) scale(1.01);
}

/* App Badge Icon */
.app-badge-icon {
    height: 24px;
    width: auto;
    line-height: 1;
    transition: transform 0.3s ease;
}

.app-badge:hover .app-badge-icon {
    transform: scale(1.1);
}

/* App Badge Text */
.app-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.app-badge-label {
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-badge-store {
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* App Test Section - Premium Card */
.app-test-section {
    background: var(--glass-ultra-thin-surface);
    border: 1px solid var(--glass-ultra-thin-border);
    border-radius: var(--radius-glass-surface);
    backdrop-filter: blur(var(--blur-ultra-thin));
    padding: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.app-test-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right,
            rgba(0, 0, 0, 0.02) 0%,
            transparent 50%);
    pointer-events: none;
}

.app-test-section-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.app-test-section-title {
    font-size: var(--font-size-heading-3);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.app-test-section-subtitle {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
    margin-bottom: var(--spacing-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* App Features Grid */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--glass-thin-surface);
    border: 1px solid var(--glass-thin-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(var(--blur-thin));
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.app-feature-item:hover {
    background: var(--glass-regular-surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-feature-item::before {
    content: '✓';
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-success);
    flex-shrink: 0;
}

/* Pulse Animation for App Badges */
@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12),
            0 0 0 2px rgba(0, 0, 0, 0.04);
    }
}

.app-badge-pulse {
    animation: gentlePulse 3s ease-in-out infinite;
}

/* QR Code Container (for desktop users) */
.app-qr-container {
    display: none;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--glass-thin-surface);
    border: 1px solid var(--glass-thin-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(var(--blur-thin));
}

@media (min-width: 768px) {
    .app-qr-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
    }
}

.app-qr-code {
    width: 120px;
    height: 120px;
    background: white;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.app-qr-text {
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .app-test-badges {
        flex-direction: column;
        width: 100%;
    }

    .app-badge {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .app-test-section {
        padding: var(--spacing-lg);
    }

    .app-features {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   CALENDLY BADGE - HIDE ON MOBILE
   =================================================================== */

/* Hide Calendly floating badge on mobile to prevent overlap with sticky CTA bar */
@media (max-width: 767px) {
    .calendly-badge-widget {
        display: none !important;
    }
}

/* ===================================================================
   COOKIE CONSENT BANNER
   =================================================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-index-cookie);
    /* Always on top of everything */
    background: #FFFFFF;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-lg);
    /* Delayed appearance for conversion optimization */
    opacity: 0;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.cookie-consent-title {
    font-size: var(--font-size-heading-5);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.cookie-consent-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.cookie-consent-close:hover {
    background-color: var(--color-surface-variant);
    color: var(--color-text-primary);
}

.cookie-consent-text {
    font-size: var(--font-size-body-medium);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body-medium);
    margin-bottom: var(--spacing-md);
}

.cookie-consent-details {
    background-color: var(--color-surface-variant);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cookie-category {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-body-medium);
}

.cookie-category-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.cookie-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-category-label strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.cookie-category-desc {
    display: block;
    font-size: var(--font-size-body-small);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body-small);
}

.cookie-consent-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: var(--spacing-sm);
}

.cookie-consent-footer {
    font-size: var(--font-size-body-small);
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}

.cookie-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--color-primary-light);
}

/* Mobile Optimizations - Conversion Psychology */
@media (max-width: 767px) {
    .cookie-consent-banner {
        padding: var(--spacing-sm) var(--spacing-md);
        /* Reduced vertical padding */
    }

    .cookie-consent-header {
        margin-bottom: var(--spacing-sm);
        /* Tighter spacing */
    }

    .cookie-consent-title {
        font-size: 14px;
        /* Smaller, less intrusive */
        line-height: 1.3;
    }

    .cookie-consent-text {
        font-size: 12px;
        /* Compact text */
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }

    .cookie-consent-actions {
        flex-direction: row;
        /* Horizontal on mobile saves space */
        gap: 6px;
        /* Minimal gap */
        margin-bottom: var(--spacing-xs);
    }

    .cookie-consent-actions .button {
        flex: 1;
        /* Equal width buttons */
        font-size: 11px;
        /* Smaller button text */
        padding: 8px 12px;
        /* Reduced padding */
        min-height: 36px;
        /* Smaller height */
    }

    .cookie-consent-footer {
        font-size: 10px;
        /* Very small footer */
        line-height: 1.3;
    }

    /* Hide "Einstellungen" button on mobile to reduce friction */
    .cookie-consent-actions .button-outline {
        display: none;
    }
}

/* Button Outline Variant (for cookie banner) */
.button-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-dark);
}

.button-outline:hover {
    background-color: var(--color-surface-variant);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* ===================================================================
   CHAT FEATURE COMPONENTS
   =================================================================== */

/* --- Feature List (loesung.html chat section) --- */
.chat-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.chat-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.chat-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.chat-feature-item:hover .chat-feature-icon {
    background: rgba(255, 255, 255, 0.17);
}

/* Package context note inside chat section */
.chat-package-note {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

/* Ensure badge+text rows wrap on narrow screens */
.chat-package-note>div>div {
    flex-wrap: wrap;
    row-gap: 4px;
}

.chat-package-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- CSS Phone Mockup --- */
.chat-phone-frame {
    width: 260px;
    background: #181818;
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.chat-phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 8px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.chat-phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.chat-store-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-store-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.chat-store-status {
    font-size: 10px;
    color: #4ade80;
}

.chat-messages-container {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.chat-msg {
    max-width: 82%;
    padding: 8px 11px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.45;
    font-family: var(--font-family);
    opacity: 0;
    margin-bottom: 8px;
}

.chat-msg-customer {
    background: #fff;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg-store {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-typing-wrapper {
    align-self: flex-start;
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    margin-bottom: 0;
}

.chat-typing {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.chat-dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: chatDotBounce 1s ease-in-out infinite;
    animation-play-state: paused;
}

.chat-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-dot:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes chatDotBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.30);
    font-family: var(--font-family);
}

.chat-send-btn {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Chat Animations (triggered by Intersection Observer via .animated class) --- */
@keyframes chatMsgAppear {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatTypingIn {
    from {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 50px;
        margin-bottom: 8px;
    }
}

@keyframes chatTypingOut {
    from {
        opacity: 1;
        max-height: 50px;
        margin-bottom: 8px;
    }

    to {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
}

/* Trigger when the phone wrapper (.chat-phone-wrapper) scroll-animates in */
.chat-phone-wrapper.animated .chat-dot {
    animation-play-state: running;
}

.chat-phone-wrapper.animated .chat-msg-1 {
    animation: chatMsgAppear 0.35s ease 0.5s both;
}

.chat-phone-wrapper.animated .chat-typing-1 {
    animation: chatTypingIn 0.2s ease 1.2s both, chatTypingOut 0.2s ease 2.3s both;
}

.chat-phone-wrapper.animated .chat-msg-2 {
    animation: chatMsgAppear 0.35s ease 2.5s both;
}

.chat-phone-wrapper.animated .chat-msg-3 {
    animation: chatMsgAppear 0.35s ease 3.8s both;
}

.chat-phone-wrapper.animated .chat-msg-4 {
    animation: chatMsgAppear 0.35s ease 5.0s both;
}

/* --- Index Banner Mini Chat (triggered like above) --- */
.chat-banner-strip {
    background: #000;
}

.chat-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.chat-banner-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 240px;
}

.chat-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-banner-texts h3 {
    color: #fff;
    margin: 0 0 3px;
}

.chat-banner-texts p {
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.chat-free-badge {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: var(--spacing-sm);
    vertical-align: middle;
}

.chat-mini-bubbles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.chat-mini-msg {
    font-size: 12px;
    line-height: 1.4;
    font-family: var(--font-family);
    padding: 7px 12px;
    border-radius: 12px;
    opacity: 0;
    max-width: 200px;
}

.chat-mini-customer {
    background: #fff;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-mini-store {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

/* Banner chat animation */
.chat-banner-strip.animated .chat-mini-msg-1 {
    animation: chatMsgAppear 0.35s ease 0.6s both;
}

.chat-banner-strip.animated .chat-mini-msg-2 {
    animation: chatMsgAppear 0.35s ease 1.8s both;
}

/* Mobile */
@media (max-width: 767px) {
    .chat-phone-frame {
        width: 230px;
    }

    .chat-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .chat-mini-bubbles {
        display: none;
    }
}

@media (max-width: 1023px) {
    .chat-section-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .chat-phone-wrapper {
        display: flex;
        justify-content: center;
        order: -1;
    }
}

/* ------ Multi-scene chat demo (loesung.html) ------ */
.chat-scene {
    display: none;
    flex-direction: column;
}

.chat-scene--active {
    display: flex;
    animation: chatSceneFadeIn 0.45s ease both;
}

@keyframes chatSceneFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Elements inside scenes start hidden; animated when .chat-scene--playing is added */
.chat-scene--active .chat-msg,
.chat-scene--active .chat-typing-wrapper,
.chat-scene--active .chat-offer-banner {
    opacity: 0;
}

.chat-scene--playing .chat-scene-msg-1 {
    animation: chatMsgAppear 0.35s ease 0.4s both;
}

.chat-scene--playing .chat-scene-msg-2 {
    animation: chatMsgAppear 0.35s ease 1.0s both;
}

.chat-scene--playing .chat-scene-typing-1 {
    animation: chatTypingIn 0.2s ease 1.6s both, chatTypingOut 0.2s ease 2.7s both;
}

.chat-scene--playing .chat-scene-msg-3 {
    animation: chatMsgAppear 0.35s ease 2.9s both;
}

.chat-scene--playing .chat-scene-msg-4 {
    animation: chatMsgAppear 0.35s ease 4.1s both;
}

.chat-scene--playing .chat-dot {
    animation-play-state: running;
}

/* Offer context banner inside the phone mockup */
.chat-offer-banner {
    margin: 0 0 8px;
    padding: 7px 10px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Scene indicator dots */
.chat-scene-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.chat-demo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.chat-demo-dot--active {
    background: #fff;
    transform: scale(1.25);
}

.chat-scene-label {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 6px;
    font-family: var(--font-family);
    min-height: 16px;
}