/* ═══════════════════════════════════════════════════════════════════════════════
   KEYFLO LANDING PAGE - CLEAN REBUILD
   Organized by section, no duplicates
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS & CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
    /* Primary Colors */
    --charcoal: #2C3E50;
    --sage: #7FB069;
    --sage-dark: #669654;
    --sage-light: #F1F8EE;
    --sage-mesh: rgba(127, 176, 105, 0.08);
    --gold: #D4A574;
    --cream: #FBF7F4;
    --white: #FFFFFF;

    /* Utility Colors */
    --border-light: #E8E8E8;
    --text-muted: #7f8c8d;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 0.75rem;
    /* 12px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */
    --space-5xl: 8rem;
    /* 128px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 30px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--cream);
    overflow-x: clip;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-sage {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

.btn-sage:hover {
    background: var(--sage-dark);
    border-color: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 176, 105, 0.3);
}

.btn-gold {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.btn-gold:hover {
    background: #c4955f;
    border-color: #c4955f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.btn-charcoal {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

.btn-charcoal:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════════ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: var(--space-md);
    background: var(--sage);
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */
.main-header {
    position: sticky;
    top: 0;
    /* Transparent - body gradient shows through */
    background: transparent;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: -80px;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Turn white on scroll or hover */
.main-header.scrolled,
.main-header:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-light);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.logo img {
    height: 40px;
}

.nav-desktop {
    display: none;
    gap: var(--space-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, opacity 0.2s ease, filter 0.2s ease;
}

.nav-link:hover {
    border-bottom-color: var(--sage);
}

/* Blur other nav links when one is hovered */
.nav-desktop:hover .nav-link {
    opacity: 0.5;
    filter: blur(1px);
}

.nav-desktop:hover .nav-link:hover {
    opacity: 1;
    filter: blur(0);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-cta-desktop {
    display: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Mobile Toggle Button */
.nav-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    padding: 10px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--charcoal);
    position: relative;
}

.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--charcoal);
    left: 0;
}

.nav-mobile-toggle span::before {
    top: -8px;
}

.nav-mobile-toggle span::after {
    top: 8px;
}

/* Mobile Menu */
.nav-mobile {
    position: fixed;
    top: 70px;
    right: var(--space-md);
    width: auto;
    min-width: 220px;
    max-width: 280px;
    background: var(--white);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

body.menu-open .nav-mobile {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-menu-content .nav-link {
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.mobile-menu-content .nav-link:hover {
    background: var(--sage-light);
}

.mobile-menu-content .btn {
    margin-top: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

body.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
}

/* Desktop Breakpoint */
@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
    }

    .nav-mobile-toggle {
        display: none;
    }

    .header-cta-desktop {
        display: inline-flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. VALUE BAR
   Fixed to bottom, appears after scrolling past hero
   ═══════════════════════════════════════════════════════════════════════════════ */
.value-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #F5E6D3;
    border-top: 1px solid var(--border-light);
    padding: var(--space-sm) 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    visibility: visible;
}

.value-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.value-bar.at-top {
    bottom: auto;
    top: 80px;
    border-top: none;
    border-bottom: 1px solid rgba(127, 176, 105, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #EAF2E6 0%, #DDE9D6 100%);
}

.value-bar .container {
    position: relative;
}

.value-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Desktop version visible by default, mobile hidden */
.value-bar-desktop {
    display: flex;
}

.value-bar-mobile {
    display: none;
}

.value-bar-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
}

.value-bar-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sage-dark);
    background: rgba(127, 176, 105, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.value-bar:hover .value-bar-cta {
    background: rgba(127, 176, 105, 0.25);
}

.value-bar-close {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--charcoal);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.value-bar-close:hover {
    opacity: 1;
}

/* Value Bar - Mobile */
@media (max-width: 768px) {
    .value-bar {
        padding: var(--space-md) 0;
        background: #F5E6D3;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .value-bar-content {
        gap: var(--space-sm);
        padding-right: 40px;
    }

    /* Swap desktop/mobile visibility */
    .value-bar-desktop {
        display: none;
    }

    .value-bar-mobile {
        display: flex;
    }

    .value-bar-text {
        font-size: 0.85rem;
    }

    .value-bar-cta {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. SECTIONS - GENERIC
   ═══════════════════════════════════════════════════════════════════════════════ */
section {
    padding: var(--space-2xl) 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. HERO SECTION
   Full-height intro with centered content
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0 var(--space-xl);
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
    }
}

/* Clean flowing gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        rgba(127, 176, 105, 0.12) 0%,
        rgba(127, 176, 105, 0.06) 30%,
        var(--cream) 100%
    );
}

/* Subtle animated gradient overlay for movement */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(127, 176, 105, 0.04) 50%,
        transparent 100%
    );
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(3%);
    }
}

/* Override generic section padding for hero */
section.hero {
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-3xl);
}

/* Center the main hero content vertically */
.hero > .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-md);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: var(--space-2xl);
    color: var(--charcoal);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-content h1 .nowrap {
    white-space: nowrap;
}

.hero-subhead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
}

/* Hero - Tablet */
@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
        padding-top: calc(80px + var(--space-lg));
    }

    .hero-content h1 {
        margin-top: 0;
        margin-bottom: var(--space-xl);
    }

    .hero-subhead {
        margin-bottom: var(--space-xl);
    }
}

/* Hero - Mobile */
@media (max-width: 600px) {
    .hero {
        padding: 0;
        padding-top: calc(70px + var(--space-sm));
        min-height: auto;
        height: auto;
    }

    .hero > .container {
        flex: none;
        padding: 0 var(--space-lg);
        padding-top: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-content h1 {
        margin-top: 0;
        margin-bottom: var(--space-md);
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .hero-content h1 .nowrap {
        white-space: normal;
    }

    .hero-content h1 .desktop-only {
        display: none;
    }

    .hero-subhead {
        margin-bottom: var(--space-md);
        font-size: 0.9rem;
        font-weight: 400;
        max-width: 280px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-actions .btn {
        width: auto;
        padding: 0.45rem 0.9rem;
        font-size: 0.7rem;
    }

    .hero-peek {
        margin-bottom: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. WAITLIST MODAL
   ═══════════════════════════════════════════════════════════════════════════════ */
.waitlist-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waitlist-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.waitlist-modal .modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.waitlist-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
    z-index: 1;
}

.modal-close:hover {
    color: var(--charcoal);
}

.modal-body {
    padding: var(--space-xl) var(--space-lg);
}

.modal-body h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
    text-align: center;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--sage);
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-motivation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-sm) calc(-1 * var(--space-lg));
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(90deg, transparent 0%, var(--sage-light) 15%, var(--sage-light) 85%, transparent 100%);
}

.motivation-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-motivation.urgency {
    background: linear-gradient(90deg, transparent 0%, rgba(212, 165, 116, 0.2) 15%, rgba(212, 165, 116, 0.2) 85%, transparent 100%);
}

.form-motivation.urgency .motivation-text {
    color: var(--gold);
}

/* Form Styles */
.waitlist-form {
    margin-top: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sage);
}

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

/* Role Selector */
.role-selector {
    display: flex;
    gap: var(--space-xs);
}

.role-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option span {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
}

.role-option:hover span {
    border-color: var(--sage);
}

.role-option input[type="radio"]:checked+span {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

/* Submit Button */
.btn-block {
    width: 100%;
    padding: 12px var(--space-lg);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

/* Post-Form Info - Hidden by default, shown on desktop */
.post-form-info {
    display: none;
}

.info-item strong {
    color: var(--charcoal);
    font-weight: 700;
}

.info-item.savings-calc {
    background: linear-gradient(135deg, var(--sage-light), rgba(127, 176, 105, 0.08));
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--sage);
    margin: var(--space-md) 0;
}

/* Modal - Desktop */
@media (min-width: 769px) {
    .modal-body {
        padding: var(--space-lg);
    }
}

/* Modal - Mobile */
@media (max-width: 768px) {
    .waitlist-modal .modal-content {
        max-width: 100%;
        margin: var(--space-sm);
        max-height: 95vh;
    }

    .modal-body {
        padding: var(--space-lg) var(--space-md);
    }

    .modal-body h2 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents iOS zoom */
    }

    .role-option span {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   11. SECTION HEADERS (Standard Pattern)
   Reusable eyebrow + title styling for all sections
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Section eyebrow - small uppercase label above title */
.section-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sage);
    margin-bottom: var(--space-md);
    text-align: center;
    padding-top: 1.9rem;
    position: relative;
}

/* Vertical line above eyebrow */
.section-eyebrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.9rem;
    background: linear-gradient(to bottom, var(--sage), var(--sage-light));
    opacity: 0.6;
}

/* Section title - main heading */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.2;
    margin: 0 0 var(--space-xl) 0;
    text-align: center;
}

/* Smaller section title variant */
.section-title-sm {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--charcoal);
    line-height: 1.3;
    margin: 0 0 var(--space-lg) 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   12. PROBLEM CARDS SECTION
   Three-card grid showing pain points
   ═══════════════════════════════════════════════════════════════════════════════ */
.problem-cards-section {
    background: var(--cream);
    padding: var(--space-2xl) 0;
}

.problem-grid {
    display: grid;
    gap: var(--space-xl);
    position: relative;
    counter-reset: problem-step;
}

/* Connecting line on desktop */
@media (min-width: 992px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .problem-grid::before {
        content: '';
        position: absolute;
        top: 46px;
        left: 5%;
        right: 5%;
        height: 2px;
        background: linear-gradient(90deg,
                rgba(127, 176, 105, 0.15),
                rgba(212, 165, 116, 0.25),
                rgba(127, 176, 105, 0.15));
        z-index: 0;
    }
}

/* Problem Card Base */
.problem-card {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left,
            rgba(127, 176, 105, 0.06),
            transparent 60%);
    border: 2px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Card number in top-right */
.problem-card::before {
    counter-increment: problem-step;
    content: '0' counter(problem-step);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Decorative glow in top-left */
.problem-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle,
            rgba(212, 165, 116, 0.14),
            transparent 70%);
    top: -40px;
    left: -40px;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover State */
.problem-card:hover {
    border-color: var(--sage);
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    background: radial-gradient(circle at top left,
            rgba(127, 176, 105, 0.09),
            rgba(251, 247, 244, 1));
}

.problem-card:hover::after {
    opacity: 1;
    transform: translate(4px, 4px);
}

/* Staggered card positions on desktop */
@media (min-width: 992px) {
    .problem-card:nth-child(1) {
        transform: translateY(0);
    }

    .problem-card:nth-child(2) {
        transform: translateY(10px);
    }

    .problem-card:nth-child(3) {
        transform: translateY(20px);
    }

    .problem-card:nth-child(1):hover {
        transform: translateY(-6px);
    }

    .problem-card:nth-child(2):hover {
        transform: translateY(4px);
    }

    .problem-card:nth-child(3):hover {
        transform: translateY(14px);
    }
}

/* Card Icon */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.card-icon-img {
    display: block;
    margin-bottom: var(--space-md);
}

.card-icon-img img {
    height: 5.5rem;
    width: auto;
    object-fit: contain;
}

/* Card Typography */
.problem-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.problem-card p {
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Highlighted first sentence */
.highlight-old {
    color: var(--charcoal);
    font-weight: 600;
}

/* Card call-to-action (final sentence) */
.card-cta {
    color: var(--gold);
    font-weight: 700;
}

/* Fade-in Animation */
.problem-card.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-card.fade-in.is-visible {
    opacity: 1;
}

@media (min-width: 992px) {
    .problem-card.fade-in.is-visible:nth-child(1) {
        transform: translateY(0);
    }

    .problem-card.fade-in.is-visible:nth-child(2) {
        transform: translateY(10px);
    }

    .problem-card.fade-in.is-visible:nth-child(3) {
        transform: translateY(20px);
    }
}

.problem-card.fade-in:nth-child(1) {
    transition-delay: 0s;
}

.problem-card.fade-in:nth-child(2) {
    transition-delay: 0.05s;
}

.problem-card.fade-in:nth-child(3) {
    transition-delay: 0.1s;
}

/* Hover Focus Effect - Desktop */
.problem-grid.scroll-focus-active .problem-card {
    opacity: 0.5;
    transform: scale(0.98);
    transform-origin: center center;
    filter: blur(1px);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.problem-grid.scroll-focus-active .problem-card.card-focused {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
    filter: blur(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--sage);
    z-index: 10;
}

.problem-grid:not(.scroll-focus-active) .problem-card {
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

/* Problem Cards - Mobile */
@media (max-width: 991px) {
    .problem-cards-section {
        padding: 0 0 var(--space-2xl);
    }

    .problem-grid {
        gap: var(--space-xl);
    }

    .problem-card {
        transform: none;
    }

    .problem-card:hover {
        transform: translateY(-4px);
    }

    /* Mobile scroll focus adjustments */
    .problem-grid.scroll-focus-active .problem-card {
        transform: scale(0.98);
    }

    .problem-grid.scroll-focus-active .problem-card.card-focused {
        transform: translateY(-4px) scale(1.01);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   13. SOLUTION SECTION
   The solution overview with email forward visual
   ═══════════════════════════════════════════════════════════════════════════════ */
.solution-section {
    padding: var(--space-2xl) 0 var(--space-xl) 0;
    background: var(--cream);
}

/* Processing visual section (second part of solution) */
.solution-visual-section {
    padding: var(--space-xl) 0;
    display: flex;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   14. EMAIL FORWARD CARD
   Realistic email UI showing forward to KeyFlo
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Wrapper for top badge positioning */
.email-card-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* Fwd badge on top border - matches .status-text styling */
.email-fwd-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--sage);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.email-forward-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Fade-in for email card */
.email-forward-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.email-forward-card.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Email Subject Line */
.email-subject-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.subject-badge {
    background: var(--cream);
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.subject-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Email Header Row */
.email-header-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(90deg, var(--sage-light) 0%, rgba(127, 176, 105, 0.1) 100%);
}

.email-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.email-address {
    font-size: 1.1rem;
    color: var(--sage-dark);
    font-weight: 700;
}

/* Email Body */
.email-body {
    padding: var(--space-md);
}

.email-instruction {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    margin-bottom: 0;
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    background: var(--cream);
    border-radius: var(--radius-sm);
    opacity: 0.8;
}

.email-attachments {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.attachment {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--cream);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.attachment-icon {
    font-size: 1.2rem;
}

.attachment-icon img {
    height: 1.4rem;
    width: auto;
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attachment-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
}

.attachment-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.attachment-size .page-count {
    color: var(--charcoal);
    font-weight: 700;
}

/* Packet attachment - gold tint */
.attachment.packet {
    background: linear-gradient(135deg, #FDF6EE 0%, #F5E6D3 100%);
    border-color: var(--gold);
    position: relative;
    padding: var(--space-md) var(--space-lg);
}

.attachment.packet .attachment-icon {
    font-size: 1.4rem;
}

.attachment-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--gold);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Packet note */
.email-packet-note {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    margin-top: var(--space-sm);
    background: rgba(127, 176, 105, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--sage-dark);
}

.email-packet-note .note-icon {
    font-size: 0.85rem;
}

.email-packet-note .note-text {
    font-weight: 500;
}

/* Sending status bar */
.email-sending {
    background: linear-gradient(90deg, var(--sage-light) 0%, rgba(127, 176, 105, 0.1) 100%);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border-top: 1px solid rgba(127, 176, 105, 0.2);
}

.sending-text {
    font-size: 0.75rem;
    color: var(--sage-dark);
    font-weight: 600;
    margin-left: var(--space-xs);
}

.email-sending-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

/* Email Card - Mobile */
@media (max-width: 600px) {
    .email-card-wrapper {
        margin: 0 var(--space-sm);
    }

    .attachment-badge {
        font-size: 0.5rem;
        top: -6px;
        left: -6px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   15. TRANSITION LINE
   Connects visual steps with animated arrow
   ═══════════════════════════════════════════════════════════════════════════════ */
.intra-step-transition {
    text-align: center;
    padding: var(--space-lg) 0;
    margin: var(--space-xl) 0;
    font-size: 1rem;
    color: var(--sage-dark);
    font-weight: 500;
    position: relative;
}

.intra-step-transition::before {
    content: '↓';
    display: block;
    font-size: 1.5rem;
    color: var(--sage);
    margin-bottom: var(--space-sm);
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* Transition Line - Mobile */
@media (max-width: 768px) {
    .intra-step-transition {
        padding: var(--space-md) 0;
        margin: var(--space-lg) 0;
        font-size: 0.9rem;
    }

    .intra-step-transition::before {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   16. KEYFLO ENGINE - Processing Visual
   Simplified AI analysis visualization
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Wrapper allows badge to sit on top border without being clipped */
.keyflo-engine-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.keyflo-engine {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Fade-in for engine wrapper */
.keyflo-engine-wrapper.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.keyflo-engine-wrapper.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative glow */
.engine-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(127, 176, 105, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: engine-pulse 3s ease-in-out infinite;
}

@keyframes engine-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Engine Header */
.engine-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.engine-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.engine-title {
    display: flex;
    flex-direction: column;
}

.engine-label {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.1rem;
}

.engine-status {
    font-size: 0.85rem;
    color: var(--sage);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Received Packet - matches email card attachment.packet styling */
.received-packet {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    margin: 0;
    background: linear-gradient(135deg, #FDF6EE 0%, #F5E6D3 100%);
    border: 1px solid var(--gold);
    border-bottom: 2px dotted var(--gold);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.packet-icon-wrap {
    font-size: 1.4rem;
}

.packet-icon img {
    height: 1.6rem;
    width: auto;
}

.packet-details {
    display: flex;
    flex-direction: column;
}

.packet-filename {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.packet-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Processing Flow */
.processing-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    background: var(--sage-light);
    border: 1px solid var(--gold);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.4;
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* Only animate when parent is visible */
.keyflo-engine-wrapper.is-visible .flow-step {
    animation: stepComplete 0.4s ease-out forwards;
}

/* Staggered animation delays for sequential completion */
.keyflo-engine-wrapper.is-visible .flow-step:nth-child(1) {
    animation-delay: 0.3s;
}

.keyflo-engine-wrapper.is-visible .flow-step:nth-child(3) {
    animation-delay: 1.2s;
}

.keyflo-engine-wrapper.is-visible .flow-step:nth-child(5) {
    animation-delay: 2.1s;
}

@keyframes stepComplete {
    to {
        opacity: 1;
        color: var(--sage-dark);
    }
}

.flow-check {
    color: var(--sage);
    font-weight: 600;
    opacity: 0;
    transform: scale(0.5);
}

/* Only animate when parent is visible */
.keyflo-engine-wrapper.is-visible .flow-check {
    animation: checkAppear 0.3s ease-out forwards;
}

/* Staggered checkmark animations */
.keyflo-engine-wrapper.is-visible .flow-step:nth-child(1) .flow-check {
    animation-delay: 0.5s;
}

.keyflo-engine-wrapper.is-visible .flow-step:nth-child(3) .flow-check {
    animation-delay: 1.4s;
}

.keyflo-engine-wrapper.is-visible .flow-step:nth-child(5) .flow-check {
    animation-delay: 2.3s;
}

@keyframes checkAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.flow-arrow {
    color: var(--sage);
    font-size: 0.75rem;
    opacity: 0;
}

/* Only animate when parent is visible */
.keyflo-engine-wrapper.is-visible .flow-arrow {
    animation: arrowSlide 0.3s ease-out forwards;
}

/* Staggered arrow animations */
.keyflo-engine-wrapper.is-visible .flow-arrow:nth-of-type(1) {
    animation-delay: 0.8s;
}

.keyflo-engine-wrapper.is-visible .flow-arrow:nth-of-type(2) {
    animation-delay: 1.7s;
}

@keyframes arrowSlide {
    to {
        opacity: 0.6;
        transform: translateX(0);
    }
}

/* Engine Summary - Compact teaser for capabilities */
.engine-summary {
    padding: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.summary-block {
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md);
    opacity: 0;
    filter: blur(4px);
    transform: translateY(5px);
}

/* Only animate when parent is visible */
.keyflo-engine-wrapper.is-visible .summary-block {
    animation: blockReveal 0.4s ease-out forwards;
}

/* Staggered reveal matching checkmark timing */
.keyflo-engine-wrapper.is-visible .summary-block:nth-child(1) {
    animation-delay: 0.5s;
}

.keyflo-engine-wrapper.is-visible .summary-block:nth-child(2) {
    animation-delay: 1.4s;
}

.keyflo-engine-wrapper.is-visible .summary-block:nth-child(3) {
    animation-delay: 2.3s;
}

@keyframes blockReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.summary-badge {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
}

.summary-more-text {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    display: block;
    text-align: center;
    font-style: italic;
}

/* Split row */
.split-row {
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
}

.split-before {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.split-arrow {
    color: var(--sage);
    font-weight: 600;
    font-size: 1rem;
}

.split-after {
    font-size: 1rem;
    color: var(--sage-dark);
    font-weight: 700;
}

/* Rename transformation row */
.rename-row {
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
}

.rename-before {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.3);
}

.rename-arrow {
    color: var(--sage);
    font-weight: 600;
    font-size: 1rem;
}

.rename-after {
    font-size: 1rem;
    color: var(--sage-dark);
    font-weight: 700;
}

/* Data extraction row */
.data-row {
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-xs) 0;
}

.data-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-value {
    font-size: 1rem;
    color: var(--sage-dark);
    font-weight: 700;
}

.data-divider {
    display: none;
}

/* Engine Sending Indicator */
.engine-sending {
    background: linear-gradient(90deg, var(--sage-light) 0%, rgba(127, 176, 105, 0.1) 100%);
    padding: var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-md) calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 600px) {
    .engine-sending {
        padding: var(--space-md) var(--space-sm);
        margin: var(--space-md) calc(-1 * var(--space-md)) calc(-1 * var(--space-md));
    }
}

.engine-sending-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Analysis Container */
.engine-analysis {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.analysis-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.analysis-icon {
    font-size: 0.9rem;
}

/* Progress Bar */
.engine-progress {
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
    border: 1px solid var(--border-light);
}

.progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dark) 100%);
    border-radius: 3px;
    animation: progress-complete 1.5s ease-out forwards;
}

@keyframes progress-complete {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.progress-label {
    font-size: 0.7rem;
    color: var(--sage-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Processing Steps */
.processing-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
    z-index: 1;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.processing-step .step-icon {
    color: var(--sage);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    animation: step-check 0.4s ease-out forwards;
}

.processing-step .step-text {
    font-size: 0.85rem;
    color: var(--charcoal);
}

.processing-step.complete {
    opacity: 0.7;
}

.processing-step.complete .step-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Staggered Step Animations */
.processing-step.step-1 .step-icon {
    animation-delay: 0.3s;
}

.processing-step.step-2 .step-icon {
    animation-delay: 0.6s;
}

.processing-step.step-3 .step-icon {
    animation-delay: 0.9s;
}

@keyframes step-check {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Documents Identified */
.documents-identified {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.docs-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.docs-icon {
    font-size: 0.9rem;
}

.docs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.docs-list li {
    font-size: 0.8rem;
    color: var(--charcoal);
    background: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.doc-check {
    color: var(--sage);
    font-weight: 700;
    font-size: 0.75rem;
}

.docs-list li.docs-more {
    color: var(--sage-dark);
    font-style: italic;
    background: var(--sage-light);
    border: 1px dashed rgba(127, 176, 105, 0.3);
    cursor: pointer;
}

.docs-list li.docs-more:hover {
    background: rgba(127, 176, 105, 0.2);
}

/* Checklist Summary */
.checklist-summary {
    background: linear-gradient(135deg, var(--sage-light) 0%, rgba(127, 176, 105, 0.05) 100%);
    border: 1px solid rgba(127, 176, 105, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    position: relative;
    z-index: 1;
}

.checklist-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sage-dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.checklist-icon {
    font-size: 0.9rem;
}

.checklist-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stat-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.stat-item.complete .stat-icon {
    color: var(--sage);
}

.stat-item.pending .stat-icon {
    color: #B8860B;
}

.stat-text {
    font-size: 0.85rem;
    color: var(--charcoal);
}

.stat-number {
    font-weight: 700;
}

.stat-item.complete .stat-number {
    color: var(--sage-dark);
}

.stat-item.pending .stat-number {
    color: #B8860B;
}

/* Stat item subtle pulse */
.stat-item.complete {
    animation: stat-pulse 2s ease-in-out 1.2s;
}

@keyframes stat-pulse {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(127, 176, 105, 0.1);
        border-radius: var(--radius-xs);
    }
}

/* Checklist Progress Bar */
.checklist-progress {
    margin-top: var(--space-sm);
}

.checklist-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.checklist-fill {
    height: 100%;
    width: 66.67%;
    background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dark) 100%);
    border-radius: 4px;
    animation: checklist-fill-grow 1.2s ease-out 0.5s forwards;
    transform-origin: left;
}

@keyframes checklist-fill-grow {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Processing Visual - Mobile */
@media (max-width: 600px) {
    .keyflo-engine {
        margin: 0 var(--space-sm);
        padding: var(--space-md);
    }

    .engine-main-header {
        margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
        padding: var(--space-xs) var(--space-sm);
    }

    .engine-header-logo {
        width: 20px;
        height: 20px;
    }

    .engine-header-title {
        font-size: 0.8rem;
    }

    .property-address {
        font-size: 0.9rem;
    }

    .property-type {
        font-size: 0.7rem;
    }

    .analysis-steps-inline {
        flex-wrap: wrap;
        gap: var(--space-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .step-inline {
        font-size: 0.7rem;
    }

    .step-arrow {
        font-size: 0.65rem;
    }

    .docs-list {
        flex-direction: column;
    }

    .docs-list li {
        width: fit-content;
    }

    .checklist-stats {
        gap: var(--space-xs);
    }

    .stat-text {
        font-size: 0.8rem;
    }

    /* Fix badge overlap with filename on mobile */
    .received-packet {
        padding-top: var(--space-lg);
    }

    .packet-filename {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   17. CAPABILITY CARDS
   Three outcomes from forwarding your packet
   ═══════════════════════════════════════════════════════════════════════════════ */
.capabilities-section {
    padding: var(--space-2xl) 0;
}

.capabilities-section .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.capability-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.capability-card:last-child {
    margin-bottom: 0;
}

/* Fade-in for cards */
.capability-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.capability-card.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content side */
.capability-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sage);
    background: var(--sage-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.capability-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.capability-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.capability-features {
    list-style: none;
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.capability-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 500;
}

.feature-check {
    color: var(--sage);
    font-weight: 700;
    flex-shrink: 0;
}

.highlight-sage {
    color: var(--sage-dark);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED PREVIEW HEADER STYLES
   Used by Calendar, Docs, and What's Next previews
   ═══════════════════════════════════════════════════════════════════════════════ */
.preview-header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.preview-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Visual side - Calendar Preview */
.calendar-preview {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.calendar-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    color: white;
}

.calendar-items {
    padding: var(--space-md);
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-item:last-child {
    margin-bottom: 0;
}

.calendar-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-item.highlight {
    background: var(--sage-light);
    border-color: rgba(127, 176, 105, 0.3);
}

.calendar-item.highlight .calendar-event {
    color: var(--sage-dark);
    font-weight: 600;
}

.calendar-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sage-dark);
    min-width: 50px;
}

.calendar-event {
    font-size: 0.9rem;
    color: var(--charcoal);
}

/* Calendar Preview - Mobile */
@media (max-width: 500px) {
    .calendar-preview-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .preview-header-logo {
        width: 20px;
        height: 20px;
    }

    .preview-header-title {
        font-size: 0.7rem;
    }

    .calendar-items {
        padding: var(--space-sm);
    }

    .calendar-item {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-sm);
    }

    .calendar-date {
        font-size: 0.7rem;
        min-width: 45px;
    }

    .calendar-event {
        font-size: 0.8rem;
    }
}

/* Visual side - Docs Preview (Renaming + Checklist) */
.docs-preview {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.docs-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    color: white;
}

/* Documents Content Section */
.docs-content-section {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Packet Row */
.docs-packet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--sage-light);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(127, 176, 105, 0.3);
}

.packet-name {
    font-size: 0.7rem;
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--charcoal);
    font-weight: 600;
}

.packet-result {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sage-dark);
    white-space: nowrap;
}

/* Addendum Row */
.docs-addendum-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.65rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.addendum-original {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.addendum-arrow {
    color: var(--sage);
    font-weight: 700;
}

.addendum-clean {
    color: var(--sage-dark);
    font-weight: 600;
}

/* Checklist Row */
.docs-checklist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xs);
    border-top: 1px dashed var(--border-light);
    margin-top: var(--space-xs);
}

.checklist-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.checklist-count {
    font-size: 0.8rem;
    color: var(--sage-dark);
}

.checklist-count strong {
    font-weight: 700;
}

.checklist-progress-bar {
    height: 6px;
    background: var(--cream);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.checklist-progress-fill {
    height: 100%;
    width: 66.67%;
    background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dark) 100%);
    border-radius: 3px;
}

/* Section Boxes - Container-based layout */
.docs-section-box {
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.docs-section-box.needs-attention {
    border-color: rgba(184, 134, 11, 0.3);
}

.docs-section-box.on-file {
    border-color: rgba(127, 176, 105, 0.3);
}

.docs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.docs-section-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
}

.docs-section-label.still-needed {
    background: rgba(184, 134, 11, 0.15);
    color: #9A7209;
}

.docs-section-label.on-file {
    background: rgba(127, 176, 105, 0.15);
    color: var(--sage-dark);
}

.docs-section-count {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Document items container */
.docs-items-container {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual document rows */
.doc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: white;
    border-radius: 4px;
    font-size: 0.7rem;
}

.doc-row.pending {
    border-left: 2px solid #D4A017;
}

.doc-row.complete {
    border-left: 2px solid var(--sage);
}

.doc-status-icon {
    width: 14px;
    flex-shrink: 0;
    font-weight: 700;
}

.doc-row.pending .doc-status-icon {
    color: #B8860B;
}

.doc-row.complete .doc-status-icon {
    color: var(--sage-dark);
}

.doc-row .doc-name {
    flex: 1;
    color: var(--charcoal);
    font-weight: 500;
}

.doc-date {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.doc-date.due {
    background: rgba(184, 134, 11, 0.12);
    color: #9A7209;
}

.doc-date.received {
    background: rgba(127, 176, 105, 0.12);
    color: var(--sage-dark);
}

.docs-expand-row {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
    font-style: italic;
}

/* Checklist Summary - compact footer */
.docs-checklist-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--charcoal);
    border-radius: var(--radius-sm);
    margin-top: 2px;
}

.checklist-state {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.9);
}

.checklist-progress-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-bar-mini {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.checklist-fill-mini {
    height: 100%;
    width: 66.67%;
    background: var(--sage);
    border-radius: 2px;
}

.checklist-fraction {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
}

.checklist-fraction strong {
    color: var(--sage-light);
}

/* Pending Items List */
.docs-pending-list {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
}

.pending-icon {
    color: #B8860B;
    font-weight: 700;
    width: 14px;
    flex-shrink: 0;
}

.pending-name {
    color: var(--charcoal);
    flex: 1;
}

.pending-due {
    font-size: 0.65rem;
    font-weight: 600;
    color: #B8860B;
    background: rgba(184, 134, 11, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.pending-more {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
    padding-left: 22px;
}

/* Docs Preview - Mobile */
@media (max-width: 500px) {
    .docs-preview-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .docs-content-section {
        padding: var(--space-sm);
        gap: var(--space-xs);
    }

    .docs-packet-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: var(--space-xs) var(--space-sm);
    }

    .packet-name {
        font-size: 0.6rem;
    }

    .packet-result {
        font-size: 0.65rem;
    }

    .docs-addendum-row {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xs);
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.55rem;
        justify-content: center;
    }

    .checklist-status {
        font-size: 0.6rem;
    }

    .checklist-count {
        font-size: 0.7rem;
    }

    .checklist-progress-bar {
        height: 5px;
    }

    /* New container-based mobile styles */
    .docs-section-header {
        padding: 5px 8px;
    }

    .docs-section-label {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .docs-section-count {
        font-size: 0.55rem;
    }

    .docs-items-container {
        padding: 4px;
        gap: 3px;
    }

    .doc-row {
        padding: 4px 6px;
        gap: 6px;
        font-size: 0.6rem;
    }

    .doc-status-icon {
        width: 12px;
    }

    .doc-date {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    .docs-expand-row {
        font-size: 0.55rem;
        padding: 3px;
    }

    .docs-checklist-summary {
        padding: 6px 8px;
    }

    .checklist-state {
        font-size: 0.55rem;
    }

    .checklist-bar-mini {
        width: 40px;
        height: 3px;
    }

    .checklist-fraction {
        font-size: 0.55rem;
    }
}

/* Visual side - What's Next Preview */
.whats-next-preview {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.whats-next-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    color: white;
}

.whats-next-tasks {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Up Next Section - Prominent */
.up-next-section {
    background: linear-gradient(135deg, #FDF6EE 0%, #F5E6D3 100%);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.up-next-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8B6914;
    margin-bottom: 4px;
}

.up-next-task {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.up-next-task .task-owner {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #8B6914;
    min-width: 70px;
    flex-shrink: 0;
}

.up-next-task .task-action {
    font-size: 0.7rem;
    color: var(--charcoal);
    flex: 1;
}

.up-next-task .task-due {
    font-size: 0.55rem;
    font-weight: 600;
    color: #8B6914;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.up-next-task .task-due.urgent {
    color: white;
    background: var(--gold);
    font-weight: 700;
    animation: urgent-pulse 1.5s ease-in-out infinite;
}

@keyframes urgent-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Completed Section */
.completed-section {
    background: var(--sage-light);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid rgba(127, 176, 105, 0.2);
    margin-top: var(--space-xs);
}

.completed-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage-dark);
    margin-bottom: 3px;
}

.completed-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-row.done {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
}

.task-row.done .task-check {
    font-size: 0.7rem;
    color: var(--sage);
    font-weight: 700;
}

.task-row.done .task-owner {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 55px;
}

.task-row.done .task-action {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Upcoming Section */
.upcoming-section {
    margin-top: var(--space-xs);
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-light);
}

.upcoming-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.upcoming-tasks {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.task-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.task-owner {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    min-width: 70px;
    flex-shrink: 0;
}

.task-owner.you {
    color: var(--sage-dark);
}

.task-row .task-action {
    font-size: 0.7rem;
    color: var(--charcoal);
    flex: 1;
}

.task-row .task-due {
    font-size: 0.55rem;
    font-weight: 600;
    color: #B8860B;
    background: rgba(184, 134, 11, 0.1);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.tasks-more {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--space-xs) 0 0 0;
    border-top: 1px dashed var(--border-light);
    margin-top: var(--space-xs);
}

/* What's Next - Mobile */
@media (max-width: 500px) {
    .whats-next-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .whats-next-tasks {
        padding: var(--space-xs);
        gap: var(--space-xs);
    }

    .up-next-label {
        font-size: 0.5rem;
        padding: 2px var(--space-xs);
    }

    .up-next-task {
        padding: var(--space-xs);
        gap: var(--space-xs);
    }

    .up-next-task .task-owner {
        font-size: 0.55rem;
        min-width: 40px;
    }

    .up-next-task .task-action {
        font-size: 0.7rem;
    }

    .up-next-task .task-due {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .completed-label,
    .upcoming-label {
        font-size: 0.45rem;
    }

    .task-row {
        padding: 3px var(--space-xs);
        gap: var(--space-xs);
    }

    .task-row.done {
        padding: 2px var(--space-xs);
    }

    .task-owner {
        font-size: 0.5rem;
        min-width: 60px;
    }

    .task-row .task-action {
        font-size: 0.6rem;
    }

    .task-row .task-due {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    .task-row.done .task-check {
        font-size: 0.6rem;
    }

    .task-row.done .task-owner {
        font-size: 0.5rem;
        min-width: 50px;
    }

    .task-row.done .task-action {
        font-size: 0.55rem;
    }

    .tasks-more {
        font-size: 0.5rem;
        padding: 3px 0 0 0;
        margin-top: 3px;
    }
}

/* Capability Cards - Mobile */
@media (max-width: 768px) {
    .capabilities-section {
        padding: var(--space-2xl) 0;
    }

    .capabilities-section .container {
        gap: var(--space-2xl);
    }

    .capability-card {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .capability-title {
        font-size: 1.25rem;
    }

    .capability-description {
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUOTE SECTIONS
   Founder quotes with elegant styling
   ═══════════════════════════════════════════════════════════════════════════════ */
.quote-section {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: var(--sage);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.quote-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}

.quote-title {
    font-size: 0.9rem;
    color: var(--sage-dark);
    font-weight: 500;
}

/* Quote section - Mobile */
@media (max-width: 768px) {
    .quote-section {
        padding: var(--space-3xl) 0;
    }

    .quote-mark {
        font-size: 3rem;
    }

    .quote-text {
        margin-bottom: var(--space-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOUNDER QUOTE - INLINE CARD STYLE
   Cole's quote after capabilities, James's quote after FAQ
   ═══════════════════════════════════════════════════════════════════════════════ */
.founder-quote-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.founder-quote-inline {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.founder-quote-inline .founder-quote-block {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
}

.founder-quote-inline .founder-photo {
    flex-shrink: 0;
}

.founder-quote-inline .founder-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sage);
    box-shadow: var(--shadow-md);
}

.founder-quote-inline .founder-quote {
    flex: 1;
    padding: 0;
    margin: 0;
    text-align: left;
}

.founder-quote-inline .founder-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--sage);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: var(--space-sm);
    font-family: 'Playfair Display', serif;
}

.founder-quote-inline .founder-quote p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 0 0 var(--space-sm) 0;
}

.founder-quote-inline .founder-quote cite {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    font-style: normal;
}

/* Photo on right variant (for James's quote) */
.founder-quote-block.photo-right {
    flex-direction: row-reverse;
}

/* Founder Quote - Mobile */
@media (max-width: 600px) {
    .founder-quote-section {
        padding: var(--space-xl) 0;
    }

    .founder-quote-inline {
        padding: var(--space-lg);
    }

    .founder-quote-inline .founder-quote-block {
        flex-direction: column;
        text-align: center;
    }

    .founder-quote-inline .founder-quote {
        text-align: center;
    }

    .founder-quote-inline .founder-quote::before {
        text-align: center;
    }

    .founder-quote-inline .founder-photo img {
        width: 70px;
        height: 70px;
    }

    .founder-quote-inline .founder-quote p {
        font-size: 1.05rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRICING SECTION
   Clean, intentional design - gold used sparingly for value callout only
   ═══════════════════════════════════════════════════════════════════════════════ */
.pricing-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

/* Pricing title - line breaks on mobile */
@media (max-width: 600px) {
    .pricing-title span {
        display: block;
    }
}

/* Founding Offer Hero Card */
.founding-offer-hero {
    background: white;
    border: 2px solid var(--sage);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    box-shadow:
        0 4px 20px rgba(127, 176, 105, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.08);
}

.founding-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.founding-badge::before,
.founding-badge::after {
    content: '';
    height: 1px;
    width: 30px;
    background: var(--gold);
    opacity: 0.6;
}

/* Price Headline - the big number */
.price-headline {
    margin-bottom: var(--space-lg);
}

.price-amount-large {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--sage-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-per {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.price-included {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-top: var(--space-xs);
}

/* Divider */
.price-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 var(--space-lg) var(--space-lg);
}

/* Platform + Pro Section - THE container for all Pro details */
.platform-pro-section {
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.platform-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 2px 0;
}

.price-compare {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.platform-free-note {
    font-size: 0.82rem;
    color: var(--sage-dark);
    font-weight: 500;
    margin: 0 0 var(--space-sm) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

/* Pro features list - lives inside the container */
.pro-features-list {
    list-style: none;
    margin: 0;
    padding: var(--space-sm) 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    text-align: left;
}

.pro-features-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 18px;
    position: relative;
}

.pro-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 600;
}

/* Value Callout - the ONE gold element */
.pricing-value-callout {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* Urgency */
.pricing-urgency {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: var(--space-xs);
}

/* Pricing - Mobile */
@media (max-width: 500px) {
    .founding-offer-hero {
        padding: var(--space-lg);
    }

    .price-amount-large {
        font-size: 2.75rem;
    }

    .price-per {
        font-size: 0.9rem;
    }

    .price-divider {
        margin: 0 var(--space-sm) var(--space-md);
    }

    .platform-price {
        font-size: 1rem;
    }

    .platform-pro-section {
        padding: var(--space-sm) var(--space-md);
    }

    /* Mobile: Convert list to pill grid */
    /* 2 columns, both aligned */
    .pro-features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding-top: var(--space-sm);
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .pro-features-list li {
        font-size: 0.7rem;
        padding: 4px 10px 4px 8px;
        background: white;
        border-radius: 100px;
        border: 1px solid var(--border-light);
        white-space: nowrap;
        text-align: left;
    }

    .pro-features-list li::before {
        position: static;
        margin-right: 4px;
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOR BROKERS SECTION
   Updated with roster overview visual
   ═══════════════════════════════════════════════════════════════════════════════ */
.brokers-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

/* Visual separator image */
.brokers-image {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.brokers-image img {
    max-width: 280px;
    height: auto;
}

@media (max-width: 600px) {
    .brokers-image img {
        max-width: 200px;
    }
}

/* Narrative intro block */
.brokers-narrative {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
}

.broker-lead {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.broker-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.broker-body:last-child {
    margin-bottom: 0;
}

/* Broker Visual Card - mirrors capability cards */
.broker-visual-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    margin: 0 auto var(--space-xl);
}

.broker-visual-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.broker-visual-card.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.broker-visual-content {
    padding-right: var(--space-lg);
}

/* Roster Preview Visual */
.roster-preview {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.roster-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    color: white;
}

.roster-agent-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Individual deal rows */
.roster-deals {
    padding: var(--space-md);
}

.roster-deal {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roster-deal:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Status indicator dot */
.deal-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.roster-deal.on-track .deal-status-indicator {
    background: var(--sage);
}

.roster-deal.complete .deal-status-indicator {
    background: var(--sage);
}

.roster-deal.needs-attention .deal-status-indicator {
    background: #f5a623;
}

.roster-deal.at-risk .deal-status-indicator {
    background: #e74c3c;
}

/* Deal info */
.deal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.deal-address {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-agent {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Deal metrics */
.deal-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.deal-docs {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deal-docs strong {
    color: var(--charcoal);
}

.deal-deadline {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--sage-light);
    color: var(--sage-dark);
}

.deal-deadline.urgent {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.deal-deadline.warning {
    background: rgba(245, 166, 35, 0.15);
    color: #b8860b;
}

.deal-deadline.complete {
    background: var(--sage-light);
    color: var(--sage-dark);
}

/* Show more indicator */
.roster-more {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: var(--space-sm) 0 0;
    font-weight: 500;
}

/* Summary footer */
.roster-summary {
    display: flex;
    justify-content: space-around;
    padding: var(--space-md);
    background: var(--cream);
    border-top: 1px solid var(--border-light);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-value.good {
    color: var(--sage);
}

.stat-value.warning {
    color: #f5a623;
}

.stat-value.urgent {
    color: #e74c3c;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* CTA wrap */
.broker-cta-wrap {
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .broker-visual-card {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .broker-visual-content {
        padding-right: 0;
        text-align: center;
    }

    .broker-visual-content .capability-features {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 500px) {
    .broker-visual-card {
        padding: var(--space-xl);
    }

    .roster-preview-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .roster-deals {
        padding: var(--space-sm);
    }

    .roster-deal {
        padding: var(--space-xs) var(--space-sm);
        grid-template-columns: 6px 1fr auto;
        gap: var(--space-sm);
    }

    .deal-address {
        font-size: 0.8rem;
    }

    .roster-summary {
        padding: var(--space-sm);
    }

    .stat-value {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FAQ SECTION - Accordion Style
   ═══════════════════════════════════════════════════════════════════════════════ */
.faq-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--sage);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg) var(--space-xl);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: var(--sage-light);
}

.faq-question h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--charcoal);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--sage);
    font-weight: 600;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    max-height: 500px;
    padding: 0 var(--space-xl) var(--space-lg) var(--space-xl);
}

.faq-answer p {
    color: var(--charcoal);
    line-height: 1.7;
    margin: 0;
}

/* FAQ mobile */
@media (max-width: 768px) {
    .faq-question {
        padding: var(--space-md) var(--space-lg);
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question[aria-expanded="true"]+.faq-answer {
        padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.final-cta-section {
    background: linear-gradient(to bottom,
            rgba(127, 176, 105, 0.08) 0%,
            rgba(127, 176, 105, 0.06) 100%);
    padding: var(--space-2xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.cta-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.cta-content .btn-lg {
    margin-bottom: var(--space-sm);
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: var(--space-md) 0 0;
}

/* Final CTA mobile */
@media (max-width: 600px) {
    .final-cta-section {
        padding: var(--space-2xl) var(--space-md);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */
.main-footer {
    background: var(--charcoal);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 3px solid var(--gold);
}

.footer-content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-tagline {
    margin-top: var(--space-md);
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-column h4 {
    margin-bottom: var(--space-md);
    opacity: 0.8;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    opacity: 0.6;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   END OF STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */