/* ==========================================================================
   Worthington - Premium AI Assistant for Real Estate
   A warm, sophisticated design that feels like a personal service, not software
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Crimson Clay palette */
    --color-ink: #1a1a1a;
    --color-ink-light: #4a4a4a;
    --color-ink-muted: #8d8d8d;
    --color-paper: #ebebeb;
    --color-paper-warm: #e3e3e3;
    --color-paper-dark: #d6d6d6;
    --color-accent: #b83b2f;
    --color-accent-light: #d4625a;
    --color-accent-dark: #8a2b22;
    --color-success: #4a7c59;
    --phone-green: #34c759;
    --color-border: #d4d4d4;
    --color-highlight: #b83b2f;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Sizing */
    --max-width: 1100px;
    --max-width-narrow: 680px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-paper);
}

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

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

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    color: var(--color-ink-light);
}

strong {
    font-weight: 500;
    color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header p {
    font-size: 1.125rem;
    margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(184, 59, 47, 0.15);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--color-ink);
    color: var(--color-paper);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
}

.btn-primary:active {
    background-color: var(--color-accent-dark);
    transform: scale(0.98);
}

.btn-full {
    width: 100%;
}

.btn-loading {
    display: none;
}

.btn.is-loading .btn-text {
    display: none;
}

.btn.is-loading .btn-loading {
    display: inline;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(235, 235, 235, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-icon {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-wordmark {
    display: block;
    height: 20px;
    width: auto;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.logo-wordmark--footer {
    height: 16px;
}

.nav-lockup {
    display: block;
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.footer-lockup {
    display: block;
    height: 24px;
    width: auto;
}

.logo-ai {
    color: var(--color-highlight);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-ink-light);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-ink);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--color-ink);
}

a.nav-cta {
    padding: 0.625rem 1.25rem;
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a.nav-cta:hover {
    background-color: var(--color-accent-dark);
}

a.nav-cta:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(184, 59, 47, 0.15);
}

a.nav-cta:active {
    background-color: var(--color-accent-dark);
    transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Hero Section — Dark asymmetric split layout
   -------------------------------------------------------------------------- */
.hero {
    padding: calc(var(--space-2xl) + 64px) 0 var(--space-2xl);
    background-color: var(--color-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
    position: relative;
}

/* Subtle radial spotlight behind the phone column */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 55%;
    height: 90%;
    background: radial-gradient(
        ellipse at 60% 40%,
        rgba(184, 59, 47, 0.08) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-2xl);
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* Left column: text */
.hero-greeting {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.hero-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-paper);
    margin-bottom: var(--space-md);
}

.hero-h1 em {
    font-style: italic;
    color: var(--color-paper);
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(235, 235, 235, 0.65);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.btn--hero {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
    background-color: var(--color-accent);
    color: #fff;
}

.btn--hero:hover {
    background-color: var(--color-accent-dark);
}

.hero-cta-note {
    font-size: 0.875rem;
    color: rgba(235, 235, 235, 0.5);
}

.hero-cta-note strong {
    color: rgba(235, 235, 235, 0.85);
}

.hero-cta-note s {
    opacity: 0.4;
}

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

.proof-avatars {
    display: flex;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-paper);
    background-color: var(--color-accent);
    border: 2px solid var(--color-ink);
    border-radius: 50%;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:nth-child(2) {
    background-color: var(--color-ink-light);
}

.avatar:nth-child(3) {
    background-color: var(--color-accent-dark);
}

.avatar:last-child {
    background-color: #2a2a2a;
    color: rgba(235, 235, 235, 0.5);
    font-size: 1rem;
}

.proof-text {
    font-size: 0.875rem;
    color: rgba(235, 235, 235, 0.45);
}

/* Right column: phone card */
.hero-phone {
    transform: rotate(2.5deg);
    will-change: transform;
    position: relative;
}

/* Volume buttons — two bumps on the left edge */
.hero-phone::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 28%;
    width: 3px;
    height: 32px;
    background-color: #1e1e1e;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 -40px 0 0 #1e1e1e;
}

/* Power button — single bump on the right edge */
.hero-phone::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 38%;
    width: 3px;
    height: 64px;
    background-color: #1e1e1e;
    border-radius: 0 2px 2px 0;
}

.hero-phone-chrome {
    background-color: #0d0d0d;
    border-radius: 44px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 8px rgba(255, 255, 255, 0.03),
        0 0 60px 6px rgba(255, 255, 255, 0.06),
        0 32px 64px rgba(0, 0, 0, 0.5);
}

.hero-phone-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 1.5rem 1.125rem;
    background-color: #111;
}

/* .phone-call-status, .call-status-dot, .call-status-label,
   .phone-call-contact, .phone-call-timer are defined in animations.css
   and apply here for free */

/* Override: make the status label more prominent in the hero card only */
.hero-phone-header .call-status-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

/* Connected state: iOS green, driven by class toggle from JS */
#callStatusLabel.is-connected,
#heroCallStatus.is-connected {
    color: var(--phone-green);
}

.hero-phone-transcript {
    background-color: #1a1a1c;
    padding: 2.5rem 1.25rem 2.5rem;
    flex: 1;
    min-height: 0;
}

.hero-transcript-bubble {
    /* structural wrapper only — no background or padding */
}

.hero-transcript-speaker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    color: rgba(245, 245, 247, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-transcript-speaker.is-visible {
    opacity: 1;
}

.hero-transcript-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(245, 245, 247, 0.9);
    min-height: 1.5em;
}

.hero-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.hero-waveform.is-speaking {
    height: 28px;
    margin-bottom: 0.625rem;
    opacity: 1;
}

.hero-waveform.is-done {
    height: 12px;
    margin-bottom: 0.625rem;
    opacity: 0.35;
}

.hero-wave-bar {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background-color: var(--color-highlight);
    opacity: 0.7;
}

.hero-waveform.is-speaking .hero-wave-bar {
    animation: heroWave 0.5s ease-in-out infinite;
    opacity: 1;
}

.hero-waveform.is-speaking .hero-wave-bar:nth-child(1) { animation-delay: 0.00s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(2) { animation-delay: 0.06s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(3) { animation-delay: 0.12s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(4) { animation-delay: 0.18s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(5) { animation-delay: 0.24s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(6) { animation-delay: 0.30s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(7) { animation-delay: 0.36s; }
.hero-waveform.is-speaking .hero-wave-bar:nth-child(8) { animation-delay: 0.42s; }

@keyframes heroWave {
    0%, 100% { height: 8px; }
    50% { height: 32px; }
}

.hero-phone-controls {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.5rem 0.875rem;
    background-color: #111;
}

.hero-endcall-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ff3b30;
    color: #fff;
    pointer-events: none;
}

/* Dynamic Island */
.hero-phone-island {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 96px;
    height: 28px;
    margin: 14px auto 0;
    background-color: #000;
    border-radius: 20px;
    padding-right: 10px;
}

.hero-phone-island-camera {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Home indicator bar */
.hero-phone-home-bar {
    height: 28px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-home-bar::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/* Trust badge below phone card */
.hero-phone-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.875rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(235, 235, 235, 0.35);
}

.hero-phone-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34c759;
    animation: badgeDotPulse 2.5s ease-in-out infinite;
}

@keyframes badgeDotPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

/* Ringing glow — applied via .is-ringing class by JS (no shake) */
@keyframes heroPhoneGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12),
            0 0 0 8px rgba(255, 255, 255, 0.03),
            0 0 60px 6px rgba(255, 255, 255, 0.06),
            0 32px 64px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.22),
            0 0 0 10px rgba(184, 59, 47, 0.18),
            0 0 40px 12px rgba(184, 59, 47, 0.35),
            0 24px 60px rgba(0, 0, 0, 0.6),
            0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

.hero-phone-chrome.is-ringing {
    animation: heroPhoneGlow 0.9s ease-in-out infinite;
}

/* Hero responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-phone {
        transform: none;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-proof {
        justify-content: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: clamp(2.25rem, 8vw, 2.75rem);
    }

    .hero-greeting {
        font-size: 1.375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-phone {
        transform: none;
    }

    .hero-phone-chrome.is-ringing {
        animation: none !important;
    }

    .hero-waveform.is-speaking .hero-wave-bar {
        animation: none !important;
        height: 16px !important;
    }

    .hero-phone-badge-dot {
        animation: none !important;
        opacity: 0.8;
    }

    .trust-left,
    .trust-list li {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.problem {
    padding: var(--space-2xl) 0;
    background-color: var(--color-paper);
    background-image: linear-gradient(to bottom, rgba(26, 26, 26, 0.08) 0%, transparent 80px);
}

.problem-statement {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.7;
    text-align: center;
    color: var(--color-ink-light);
}


/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: var(--space-2xl) 0;
    background-color: var(--color-paper-warm);
}

/* Section header left-aligned variant */
.section-header--left {
    text-align: left;
    max-width: none;
    margin-bottom: var(--space-xl);
}

/* Journey container */
.journey {
    position: relative;
    padding-left: 0;
}

/* Vertical track — hidden; JS height updates silently no-op */
.journey-track,
.journey-track-fill {
    display: none;
}

/* Individual step */
.journey-step {
    position: relative;
    padding-bottom: var(--space-2xl);
    opacity: 0.28;
    transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.journey-step:last-child {
    padding-bottom: 0;
}

.journey-step.is-active {
    opacity: 1;
}

/* Step text: entrance animation */
.journey-step-text {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.journey-step-text h3 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.25;
    font-family: var(--font-display);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.journey-step.is-active .journey-step-text h3 {
    opacity: 1;
    transform: translateX(0);
}

/* Step 3: reversed layout — h3 enters from the right instead of left */
.journey-step-content--reversed .journey-step-text h3 {
    transform: translateX(16px);
}

/* Step number marker — in-flow typographic label, lives inside .journey-step-text */
.journey-step-marker {
    position: static;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    border-radius: 0;
    display: block;
    margin-bottom: var(--space-sm);
}

.journey-step-number {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-accent);
    opacity: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

/* Step content: text left, graphic right */
.journey-step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

/* Reversed layout (Step 3): graphic left, text right — use order instead of direction:rtl */
.journey-step-content--reversed .journey-step-text {
    order: 2;
}

.journey-step-content--reversed .journey-step-graphic {
    order: 1;
}

/* Step graphic area */
.journey-step-graphic {
    background-color: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-lg);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.journey-step.is-active .journey-step-graphic {
    border-color: rgba(184, 59, 47, 0.2);
    box-shadow: 0 4px 24px rgba(184, 59, 47, 0.06);
}


/* Step 1 — onboarding cards */
.graphic-onboarding {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
}

.onboard-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 0.75rem;
    background-color: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--color-ink-light);
    opacity: 0;
    transform: translateX(-20px) translateY(4px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboard-card.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Green flash when a card is confirmed */
@keyframes onboardFlash {
    0%   { background-color: var(--color-paper-warm); }
    30%  { background-color: rgba(74, 124, 89, 0.12); }
    100% { background-color: var(--color-paper-warm); }
}

.onboard-card.is-checked {
    animation: onboardFlash 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* "Worthington is ready" — distinct Y-axis entrance */
.onboard-card:last-child {
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
    margin-top: 0.25rem;
    transform: translateY(10px); /* override default X slide */
}

.onboard-card:last-child.is-visible {
    transform: translateY(0);
}

/* Icon slot: single-cell grid so source and check children overlay each other */
.onboard-icon {
    display: grid;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    align-items: center;
    justify-items: center;
}

/* Both children occupy the same grid cell */
.onboard-icon--source,
.onboard-icon--check {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Source icon: visible by default */
.onboard-icon--source {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-ink-muted);
}

/* Check icon: hidden + scaled down initially */
.onboard-icon--check {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-success);
}

/* When card is checked: source shrinks away, checkmark snaps in */
.onboard-card.is-checked .onboard-icon--source {
    opacity: 0;
    transform: scale(0.6);
}
.onboard-card.is-checked .onboard-icon--check {
    opacity: 1;
    transform: scale(1);
}

/* Step 3 — task demo inside journey */
.journey-step-graphic .task-demo {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Step 2 — featured layout (single-column, centred) */
.journey-step-content.journey-step-content--featured {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}

.journey-step-content--featured .journey-step-text {
    text-align: center;
    padding-top: 0;
    padding-bottom: var(--space-sm);
}

#conversation-demo.journey-step-graphic {
    padding: 0;
    background: transparent;
    border: none;
    min-height: auto;
    overflow: visible;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* Step 2 — full-bleed dark interrupt */
.journey-step--breakout {
    margin-left: calc(-1 * var(--space-md) - max(0px, (100vw - var(--max-width)) / 2));
    margin-right: calc(-1 * var(--space-md) - max(0px, (100vw - var(--max-width)) / 2));
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl) var(--space-md);
    background-color: #4a4a4a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.22);
    /* Reset opacity — the breakout always shows at full strength */
    opacity: 1 !important;
}

/* Step 2 marker — inline step label above heading */
.journey-step--breakout .journey-step-marker {
    position: static;
    margin-bottom: var(--space-sm);
    pointer-events: none;
}

.journey-step--breakout .journey-step-number {
    color: rgba(245, 245, 247, 0.4);
}

/* Step 2 heading — left-aligned, light */
.journey-step--breakout .journey-step-text {
    padding-top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.journey-step--breakout .journey-step-text h3 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: rgba(245, 245, 247, 0.92);
}

/* Inner wrapper — two-column grid */
.journey-step-breakout-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-xl);
    align-items: center;
}

/* Step 2 right column — flex so replay button sits under phone */
.journey-step--breakout .journey-step-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Step 2 phone — sized for side-by-side layout */
.journey-step--breakout .step2-phone-chrome {
    width: 100%;
    max-width: 100%;
    /* Dark drop-shadow suits mid-grey background */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.22),
        0 20px 56px rgba(0, 0, 0, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Step 2 phone — hero structure, light-background shadow (overridden by breakout above) */
.step2-phone-chrome {
    background-color: #0d0d0d;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 19;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.18),
        0 16px 48px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* iOS-style text notification banner */
.step2-notification {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.5rem;
    top: 2.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    background: rgba(38, 38, 40, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    transform: translateY(calc(-100% - 3rem));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.3s ease;
    pointer-events: none;
}

.step2-notification.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.step2-notification-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.step2-notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: linear-gradient(180deg, #5ede76 0%, #34c759 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step2-notification-app {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
    flex: 1;
}

.step2-notification-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.step2-notification-body {
    min-width: 0;
}

.step2-notification-from {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.05rem;
}

.step2-notification-preview {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

/* Match hero phone header dimensions */
.step2-phone-chrome .phone-call-header {
    padding: 0.875rem 1.5rem 1.125rem;
    gap: 0.25rem;
    background-color: #111;
}

.step2-phone-island {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 96px;
    height: 28px;
    margin: 14px auto 0;
    background-color: #000;
    border-radius: 20px;
    padding-right: 10px;
}

.step2-phone-island-camera {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step2-phone-transcript {
    background-color: #1a1a1c;
    padding: 2.5rem 1.25rem 2.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (prefers-reduced-motion: no-preference) {
    .step2-phone-transcript {
        scroll-behavior: smooth;
    }
}

.step2-phone-transcript::-webkit-scrollbar {
    display: none;
}

/* Message row — bubble snaps in immediately, content fills within */
.step2-msg {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.625rem;
    flex-shrink: 0;
}

/* Speaker label above each bubble */
.step2-msg-speaker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    color: rgba(245, 245, 247, 0.35);
}

.step2-msg--you .step2-msg-speaker {
    text-align: right;
}

/* Shared bubble text */
.step2-msg-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(245, 245, 247, 0.9);
}

/* Worthington bubble — left-aligned, no background */
.step2-msg--worthington .step2-msg-bubble {
    align-self: flex-start;
    max-width: 85%;
    color: rgba(245, 245, 247, 0.9); /* wave bars inherit via currentColor */
}

/* You bubble — right-aligned, no background */
.step2-msg--you .step2-msg-bubble {
    align-self: flex-end;
    max-width: 80%;
    color: rgba(245, 245, 247, 0.65); /* wave bars inherit via currentColor */
}

.step2-msg--you .step2-msg-text {
    color: rgba(245, 245, 247, 0.65);
}

.step2-msg--you .voice-waveform {
    justify-content: flex-end;
}

.step2-phone-controls {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.5rem 0.875rem;
    background-color: #111;
}

.step2-endcall-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ff3b30;
    color: #fff;
    pointer-events: none;
}

.step2-phone-home-bar {
    height: 28px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step2-phone-home-bar::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/* Step 4 — morphing vertical calendar */
.week-calendar {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.week-calendar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Label: two states stacked, crossfade between them */
.week-calendar-label {
    position: relative;
    height: 1.2em;
    margin-bottom: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.week-label--before,
.week-label--after {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease;
}

.week-label--before {
    color: var(--color-ink-muted);
    opacity: 1;
}

.week-label--after {
    color: var(--color-success);
    opacity: 0;
}

.week-calendar.is-after .week-label--before { opacity: 0; }
.week-calendar.is-after .week-label--after  { opacity: 1; }

/* Vertical grid: 5 equal columns, one per day */
.week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    height: 160px;
}

/* Each day column */
.week-day {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Day label */
.week-day-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink-muted);
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 2px;
}

/* Block stack within each day column */
.week-day-blocks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
}

/* Individual time blocks: flex controls vertical height proportion */
.week-block {
    border-radius: 3px;
    font-size: 0.52rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    min-height: 0;
    /* Animate flex (height proportion) and opacity on morph */
    transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
}

.week-block--admin {
    background-color: rgba(184, 59, 47, 0.18);
    color: var(--color-highlight);
}

.week-calendar.is-after .week-block--admin {
    background-color: var(--color-paper-dark);
    color: var(--color-ink-muted);
    transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.5s ease 0.3s,
                color 0.3s ease 0.3s,
                opacity 0.4s ease;
}

.week-block--client {
    background-color: rgba(74, 124, 89, 0.25);
    color: var(--color-success);
}

.week-calendar.is-after .week-block--client {
    background-color: var(--color-success);
    color: #fff;
    transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.5s ease 0.3s,
                color 0.3s ease 0.3s,
                opacity 0.4s ease;
}

.week-block--free {
    background-color: rgba(74, 124, 89, 0.15);
    color: var(--color-success);
    opacity: 0;
    /* Collapsed in "before" state — JS sets flex: 0 which with min-height: 0 gives zero height */
    min-height: 0 !important;
    overflow: hidden;
}

.week-calendar.is-after .week-block--free {
    opacity: 1;
    background-color: rgba(74, 124, 89, 0.2);
    transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease 0.4s,
                background-color 0.4s ease 0.4s;
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust {
    padding: 8rem 0;
    background-color: var(--color-ink);
    color: var(--color-paper);
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: none;
}

/* Crimson editorial accent line above heading — centred */
.trust-left::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background-color: var(--color-accent);
    margin: 0 auto var(--space-lg);
}

.trust h2 {
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    line-height: 1.1;
    color: var(--color-paper);
    text-align: center;
    margin-bottom: var(--space-md);
}

.trust-intro {
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 38rem;
    margin: 0 auto;
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-top: 0;
    list-style: none;
}

/* Two-column per row: title left, card right */
.trust-list li {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
    padding-left: 0;
    border-left: none;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.trust-list li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-list strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-paper);
    margin-bottom: 0;
    padding-top: 0.5rem;
}

/* Trust section message cards — mirrors step 2 phone transcript aesthetic */
.trust-msg-card {
    margin-top: 0;
    background-color: #1a1a1c;
    border-radius: 12px;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.trust-msg {
    display: flex;
    flex-direction: column;
}

.trust-msg--you {
    align-items: flex-end;
}

.trust-msg-speaker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
    color: rgba(245, 245, 247, 0.35);
}

.trust-msg--you .trust-msg-speaker {
    text-align: right;
}

.trust-msg-time {
    font-weight: 400;
    opacity: 0.7;
}

.trust-msg-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(245, 245, 247, 0.9);
    max-width: 85%;
}

.trust-msg--you .trust-msg-text {
    color: rgba(245, 245, 247, 0.65);
    align-self: flex-end;
    text-align: right;
    max-width: 80%;
}

.trust-msg-item {
    display: block;
    margin-top: 0.25rem;
    color: rgba(245, 245, 247, 0.7);
    font-size: 0.8125rem;
}

.trust-msg-note {
    display: block;
    margin-top: 0.5rem;
    color: rgba(245, 245, 247, 0.45);
    font-size: 0.8125rem;
}

/* Entrance animation for header block */
.trust-left {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
}

.trust-left.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: stack title above card */
@media (max-width: 768px) {
    .trust-content {
        gap: var(--space-lg);
    }

    .trust-list {
        gap: var(--space-lg);
    }

    .trust-list li {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .trust-list strong {
        padding-top: 0;
    }

    .trust-intro {
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
    padding: var(--space-2xl) 0;
    background-color: var(--color-paper);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.testimonial {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    background-color: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.testimonial:first-child {
    border-top: 1px solid var(--color-border);
}

.testimonial p {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--color-ink);
    margin-bottom: 0;
    text-indent: -3rem;
    padding-left: 3rem;
}

.testimonial p::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0;
    color: var(--color-accent);
    opacity: 0.18;
    vertical-align: -0.15em;
    margin-right: 0.15em;
    pointer-events: none;
}

.testimonial p::after {
    content: '\201D';
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0;
    color: var(--color-accent);
    opacity: 0.18;
    vertical-align: -0.55em;
    margin-left: 0.15em;
    pointer-events: none;
}

.testimonial cite {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-style: normal;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Tier Comparison
   -------------------------------------------------------------------------- */
.tiers {
    padding: var(--space-2xl) 0;
    background-color: var(--color-paper-warm);
}

.tiers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: stretch;
}

/* Shared card base */
.tier {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}

/* --- Individual tier (dark, featured) --- */
.tier--individual {
    background-color: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-top: 4px solid var(--color-accent);
    color: var(--color-paper);
}

.tier--individual .tier-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier--individual .tier-label {
    color: var(--color-paper);
}

.tier--individual .tier-price {
    color: var(--color-paper);
}

.tier--individual .tier-features li {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --- Brokerage tier (light, secondary) --- */
.tier--brokerage {
    background-color: var(--color-paper);
    border: 1px solid var(--color-border);
}

.tier--brokerage .tier-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.tier--brokerage .tier-label {
    color: var(--color-ink);
}

.tier--brokerage .tier-price {
    color: var(--color-ink);
}

.tier--brokerage .tier-features li.tier-features-everything {
    color: var(--color-ink-muted);
}

/* --- Shared header elements --- */
.tier-label {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tier-price {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
}

.tier-period {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.55;
}

/* --- Feature list --- */
.tier-features {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.tier-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-ink-light);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li.tier-features-everything {
    font-size: 0.8125rem;
    color: var(--color-ink-muted);
    padding-bottom: 0.625rem;
}

/* --- CTA button --- */
.tier-cta {
    margin: 0 var(--space-lg) var(--space-lg);
    text-decoration: none;
    align-self: stretch;
    text-align: center;
}

.tier--individual .tier-cta {
    background-color: var(--color-paper);
    color: var(--color-ink);
}

.tier--individual .tier-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-paper);
}

.tier--individual .tier-cta:active {
    background-color: var(--color-accent-dark);
    color: var(--color-paper);
}

.tier--brokerage .tier-cta {
    background-color: var(--color-ink);
    color: var(--color-paper);
}

.tier--brokerage .tier-cta:hover {
    background-color: var(--color-ink-light);
    color: var(--color-paper);
}

.tier--brokerage .tier-cta:active {
    background-color: var(--color-ink);
    color: var(--color-paper);
}

/* Mobile: single column */
@media (max-width: 640px) {
    .tiers-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Requirements Section
   -------------------------------------------------------------------------- */
.requirements {
    padding: var(--space-2xl) 0;
    background-color: var(--color-paper-warm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.requirements-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-2xl);
    align-items: start;
}

.requirements h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    text-align: left;
}

.requirements h2 em {
    font-style: italic;
}

.requirements-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-ink-light);
    text-align: left;
    margin-bottom: 0;
}

.requirements-list {
    counter-reset: requirement;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    border-top: 1px solid var(--color-border);
}

.requirement {
    display: block;
    padding: var(--space-md) 0 var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-ink);
    position: relative;
}

.requirement::before {
    counter-increment: requirement;
    content: counter(requirement, decimal-leading-zero);
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.8;
}

.requirement-check {
    display: none;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--space-2xl) 0;
    background-color: var(--color-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.cta-text {
    padding-top: var(--space-md);
}

.cta-content h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    color: var(--color-paper);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.cta-content h2 em {
    color: var(--color-accent-light);
    font-style: italic;
}

.cta-text > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(235, 235, 235, 0.55);
    margin-bottom: 0;
}

/* Button override for dark background */
.cta-section .btn-primary {
    background-color: var(--color-paper);
    color: var(--color-ink);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-paper);
}

.cta-section .btn-primary:active {
    background-color: var(--color-accent-dark);
    color: var(--color-paper);
}

/* Dark background form overrides */
.cta-section .form-group label {
    color: rgba(235, 235, 235, 0.7);
}

.cta-section .form-group input,
.cta-section .form-group select {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(235, 235, 235, 0.15);
    color: var(--color-paper);
}

.cta-section .form-group input:focus,
.cta-section .form-group select:focus {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 3px rgba(212, 98, 90, 0.2);
}

.cta-section .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ebebeb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.cta-section .form-note {
    color: rgba(235, 235, 235, 0.35);
}

.cta-section .form-error {
    color: var(--color-accent-light);
}

.cta-section .form-success h3 {
    color: var(--color-paper);
}

.cta-section .form-success p {
    color: rgba(235, 235, 235, 0.55);
}

/* Form Styles */
.waitlist-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

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

/* "Others" CRM conditional field — hidden until JS activates it */
#otherCRMGroup {
    display: none;
}

#otherCRMGroup.is-visible {
    display: block;
}

/* Honeypot field — invisible to real users, filled by bots */
.form-honeypot {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-ink);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-ink);
    background-color: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 59, 47, 0.12);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group-hidden {
    display: none;
}

.form-group-hidden.is-visible {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.waitlist-form .btn {
    margin-top: var(--space-sm);
}

.form-note {
    margin-top: var(--space-sm);
    font-size: 0.8125rem;
    text-align: center;
    color: var(--color-ink-muted);
}

/* Form Success State */
.form-success {
    display: none;
    padding: var(--space-md) 0;
    border-top: 2px solid var(--color-accent);
}

.form-success.is-visible {
    display: block;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.form-success p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-ink-light);
}

.waitlist-form.is-hidden {
    display: none;
}

/* Form Error State */
.form-error {
    display: none;
    margin-top: var(--space-sm);
    padding: 0.75rem 1rem;
    background-color: rgba(184, 59, 47, 0.08);
    border: 1px solid rgba(184, 59, 47, 0.25);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--color-accent-dark);
    text-align: center;
}

.form-error.is-visible {
    display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-lg) 0;
    background-color: var(--color-paper-dark);
    border-top: 3px solid var(--color-accent);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
}

.footer-brand .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-ink);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--color-ink);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .requirements-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .cta-text {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .journey-step-content {
        grid-template-columns: 1fr;
    }

    /* Reset reversed layout on mobile — single column, DOM order applies */
    .journey-step-content--reversed .journey-step-text,
    .journey-step-content--reversed .journey-step-graphic {
        order: 0;
    }

    /* Step 2 breakout — collapse to single column */
    .journey-step-breakout-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .journey-step--breakout .journey-step-text {
        text-align: center;
        align-items: center;
    }

    .journey-step--breakout .step2-phone-chrome {
        width: 100%;
        max-width: 280px;
    }

    /* Step 2: featured layout — phone is already single-column, just expand to full width */
    .journey-step-content.journey-step-content--featured {
        max-width: 100%;
    }

    .journey-step-content--featured .journey-step-text h3 {
        text-align: center;
    }

    /* Step 2 phone chrome: soften border-radius slightly on mid-width screens */
    .step2-phone-chrome {
        border-radius: 36px;
    }

    /* Week calendar: reduce text label size on tablet so blocks remain visual bars.
       Keep text visible (not font-size:0) so color-blind sighted users can read labels
       and WCAG 1.4.1 (Use of Color) is not violated. */
    .week-block {
        font-size: 0.45rem;
        line-height: 1;
        overflow: hidden;
        white-space: nowrap;
        padding: 2px 3px;
    }

    /* Week grid: slightly shorter on tablet */
    .week-grid {
        height: 140px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-proof {
        flex-direction: column;
    }

    .journey-step-graphic {
        min-height: 180px;
    }

    /* Step 1: tighten onboarding card gap on small screens */
    .graphic-onboarding {
        gap: 3px;
    }

    .onboard-card {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    /* Step 2: phone chrome border-radius scales down further */
    .step2-phone-chrome {
        border-radius: 28px;
    }

    /* Step 2 breakout: further constrain phone */
    .journey-step--breakout .step2-phone-chrome {
        max-width: 260px;
    }

    /* Step 2: Dynamic Island — proportionally smaller */
    .step2-phone-island {
        width: 80px;
        height: 24px;
        margin: 10px auto 0;
    }

    /* Step 2: transcript padding tighter */
    .step2-phone-transcript {
        padding: 1.125rem 1rem;
        min-height: 90px;
    }

    /* Step 2: controls tighter */
    .step2-phone-controls {
        padding: 0.75rem 1.25rem 1rem;
    }

    /* Step 2: home bar slimmer */
    .step2-phone-home-bar {
        height: 22px;
    }

    .step2-phone-home-bar::after {
        width: 88px;
    }

    /* Step 4: week calendar — shorter on very small screens */
    .week-grid {
        height: 120px;
    }
}
