:root {
    /* Brand Colors - Warm Sunset Palette */
    --color-bonfire-coral: #FF6B5B;
    --color-golden-hour: #FFAA5A;
    --color-ember: #C84B31;
    --color-driftwood-sand: #F5E6D3;
    --color-dusk: #2D3436;
    --color-sea-foam: #FEFCFA;
    --color-twilight-ocean: #4A90A4;

    /* Semantic mappings */
    --color-primary: var(--color-bonfire-coral);
    --color-primary-hover: #E85A4A;
    --color-text: var(--color-dusk);
    --color-text-light: #636E72;
    --color-bg: var(--color-sea-foam);
    --color-bg-alt: var(--color-driftwood-sand);

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Skip Link ─────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--color-dusk);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ─── Navigation ────────────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    background: rgba(254, 252, 250, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-hero {
    background: white;
    color: var(--color-ember);
}

.btn-hero:hover {
    background: var(--color-sea-foam);
    color: var(--color-ember);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ─── Phone Mockup (CSS-only) ───────────────────────────────── */

.phone-mockup {
    position: relative;
    width: 260px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    border: 8px solid #1a1a1a;
    background: #1a1a1a;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

/* ─── Hero Section ──────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 96px 24px 64px;
    background: linear-gradient(135deg, #FF6B5B 0%, #FFAA5A 100%);
    overflow: hidden;
}

/* Dark overlay for WCAG AA contrast on gradient */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-phone {
    width: 260px;
    flex-shrink: 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.pronunciation {
    font-style: italic;
    opacity: 0.85;
}

.hero-micro {
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ─── Problem Statement ─────────────────────────────────────── */

.problem-statement {
    padding: 80px 24px;
    background: var(--color-bg-alt);
}

.problem-statement h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--color-text);
}

.pain-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pain-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pain-icon {
    color: var(--color-ember);
    margin-bottom: 16px;
}

.pain-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pain-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.problem-transition {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-ember);
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Features Intro ────────────────────────────────────────── */

.features-intro {
    padding: 80px 24px 48px;
    background: var(--color-bg);
    text-align: center;
}

.features-intro h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 16px;
}

.features-intro p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Feature Spotlights ────────────────────────────────────── */

.feature-spotlight {
    padding: 64px 24px;
    overflow: hidden;
}

.feature-spotlight:nth-child(odd) {
    background: var(--color-bg);
}

.feature-spotlight:nth-child(even) {
    background: white;
}

.feature-spotlight .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.feature-spotlight .screenshot-side {
    order: -1;
}

.feature-spotlight .phone-mockup {
    width: 220px;
}

.feature-content {
    text-align: center;
    max-width: 500px;
}

.feature-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-oneliner {
    font-weight: 600;
    color: var(--color-ember) !important;
    font-size: 1rem;
}

.feature-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.7;
}

.feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ─── Tier 2 Feature Grid ───────────────────────────────── */

.tier2-features {
    padding: 80px 24px;
    background: var(--color-bg-alt);
}

.tier2-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.tier2-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.tier2-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tier2-screenshot {
    margin-bottom: 24px;
    text-align: center;
}

.tier2-screenshot img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tier2-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.tier2-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.tier2-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tier2-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.875rem;
}

.tier2-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ─── PWA Explainer ─────────────────────────────────────────── */

.pwa-explainer {
    padding: 80px 24px;
    background: var(--color-bg-alt);
    text-align: center;
}

.pwa-explainer h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.pwa-sub {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.pwa-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pwa-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pwa-icon {
    color: var(--color-ember);
    margin-bottom: 12px;
}

.pwa-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pwa-card p {
    color: var(--color-text-light);
}

/* ─── How It Works ──────────────────────────────────────────── */

.how-it-works {
    padding: 80px 24px;
    background: var(--color-bg);
}

.how-it-works h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--color-text);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-bonfire-coral), var(--color-golden-hour));
    color: white;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step p {
    color: var(--color-text-light);
    max-width: 300px;
    margin: 0 auto;
}

.step-arrow {
    display: none;
}

/* ─── Pricing ───────────────────────────────────────────── */

.pricing {
    padding: 80px 24px;
    background: white;
    text-align: center;
}

.pricing h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.pricing-sub {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.pricing-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 40px 32px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 91, 0.15);
}

.pricing-popular {
    border-color: var(--color-primary);
    position: relative;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.tier-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.per-trip {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.tier-size {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 16px;
}

.tier-features {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.pricing-card .btn {
    margin: 0 auto;
    display: inline-block;
}

.pricing-footnote {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Final CTA ─────────────────────────────────────────────── */

.final-cta {
    position: relative;
    padding: 80px 24px;
    background: linear-gradient(135deg, #FF6B5B 0%, #FFAA5A 100%);
    text-align: center;
    overflow: hidden;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 0;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.final-cta .btn-hero {
    margin-top: 16px;
}

.cta-micro {
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ─── Footer ────────────────────────────────────────────────── */

footer {
    padding: 32px 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-driftwood-sand);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

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

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

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

/* ─── Legal Pages (preserved) ───────────────────────────────── */

.legal-page {
    padding-top: 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-driftwood-sand);
}

.legal-content section { margin-bottom: 2rem; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-ember); margin-bottom: 1rem; }
.legal-content h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--color-text); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p { margin-bottom: 1rem; line-height: 1.7; }
.legal-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.legal-content a { color: var(--color-ember); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ─── Desktop (min-width: 769px) ────────────────────────────── */

@media (min-width: 769px) {
    .hero-grid {
        flex-direction: row;
        gap: 64px;
        max-width: 1100px;
    }

    .hero-text {
        flex: 1;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-text h1 {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-text .hero-sub {
        margin-left: 0;
        margin-right: 0;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-sub {
        font-size: 1.1875rem;
    }

    .hero-phone {
        width: 300px;
    }

    .problem-statement h2,
    .features-intro h2,
    .pwa-explainer h2,
    .how-it-works h2,
    .final-cta h2 {
        font-size: 2.5rem;
    }

    .pain-cards {
        flex-direction: row;
        gap: 24px;
    }

    .pain-card {
        flex: 1;
    }

    .feature-spotlight .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }

    .feature-spotlight .screenshot-side {
        order: 0;
    }

    .feature-spotlight.image-right .container {
        direction: rtl;
    }

    .feature-spotlight.image-right .container > * {
        direction: ltr;
    }

    .feature-spotlight .phone-mockup {
        width: 280px;
    }

    .feature-content {
        text-align: left;
    }

    .feature-content h3 {
        font-size: 1.75rem;
    }

    .pwa-cards {
        flex-direction: row;
        gap: 24px;
    }

    .pwa-card {
        flex: 1;
        text-align: center;
    }

    .steps {
        flex-direction: row;
        align-items: flex-start;
    }

    .step {
        flex: 1;
    }

    .step-arrow {
        display: flex;
        align-items: center;
        padding-top: 36px;
        color: var(--color-text-light);
        opacity: 0.4;
    }

    .tier2-grid {
        flex-direction: row;
        gap: 32px;
    }

    .tier2-card {
        flex: 1;
    }

    .tier2-screenshot img {
        max-width: 220px;
    }

    .pricing-cards {
        flex-direction: row;
        gap: 32px;
    }

    .pricing-card {
        flex: 1;
    }

    .pricing h2 {
        font-size: 2.5rem;
    }
}

/* ─── Mobile adjustments ────────────────────────────────────── */

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

    .logo svg {
        height: 32px;
    }

    .nav-links {
        gap: 16px;
    }

    .feature-spotlight {
        padding: 48px 24px;
    }
}

/* ─── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}
