/* Landing page (alt design) — standalone, does not extend base.html.
   Uses design-system token names where possible; defines landing-specific
   overrides where the marketing aesthetic intentionally diverges. */

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

:root {
    /* Design-system tokens (defined here since page is standalone) */
    --accent: #FF2D55;
    --text-2: #636366;
    --border: #E5E5EA;

    /* Spacing (8pt grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-sm-plus: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;

    /* Landing-specific overrides */
    --landing-black: #0A0A0A;
    --landing-bg: #F7F6F3;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--landing-bg);
    color: var(--landing-black);
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xxl);
    background: rgba(247, 246, 243, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    letter-spacing: -0.3px;
    color: var(--landing-black);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    gap: var(--space-sm-plus);
    align-items: center;
}

.nav-web-link {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px var(--space-xs);
    transition: color 0.2s;
}
.nav-web-link:hover { color: var(--landing-black); }

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px var(--space-lg) 80px;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 1.0;
    letter-spacing: -2px;
    max-width: 800px;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.25s;
}

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

.hero-sub {
    font-size: 18px;
    color: var(--text-2);
    max-width: 440px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: var(--space-xxl);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm-plus);
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.55s;
}

.btn-primary {
    background: var(--landing-black);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.btn-primary:hover { background: #222; transform: translateY(-1px); }

.btn-outline {
    border: 1.5px solid var(--landing-black);
    color: var(--landing-black);
    padding: 15px var(--space-xl);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
    background: var(--landing-black);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text-2);
    font-size: 14px;
    text-decoration: none;
    padding: var(--space-md) var(--space-sm);
}
.btn-secondary:hover { color: var(--landing-black); }

/* PHONE MOCKUP HERO */
.hero-phones {
    margin-top: var(--space-xxxl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.7s;
}

.phone-wrap {
    position: relative;
}

.phone-frame {
    width: 220px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    background: white;
    position: relative;
}

.phone-frame.large {
    width: 260px;
    transform: translateY(0);
}

.phone-frame.small {
    width: 200px;
    transform: translateY(40px);
    opacity: 0.85;
}

.phone-frame img {
    width: 100%;
    display: block;
}

/* SECTION LAYOUT */
section {
    padding: 100px var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: var(--space-md);
}

/* PAIN SECTION */
.pain-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px var(--space-lg) 100px;
    text-align: center;
}

.pain-section .section-label {
    margin-bottom: 40px;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: left;
}

.pain-card {
    background: white;
    border-radius: 20px;
    padding: var(--space-xl);
    border: 1px solid var(--border);
}

.pain-icon {
    font-size: 24px;
    display: block;
    margin-bottom: var(--space-md);
}

.pain-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
    font-weight: 300;
}

/* HOW IT WORKS */
.how {
    background: white;
    border-radius: 32px;
    padding: 80px var(--space-xxxl);
    margin: 0 var(--space-lg);
    max-width: none;
}

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

.how h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(36px, 4vw, 52px);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-top: var(--space-sm);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xxl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 1px;
    background: var(--border);
}

.step {
    text-align: center;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--landing-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 22px;
    font-family: 'Instrument Serif', serif;
    position: relative;
    z-index: 1;
}

.step-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.3px;
}

.step p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    font-weight: 300;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xxl);
}

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.feature-card.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
    font-weight: 300;
}

.feature-screenshot {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-screenshot img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
    object-position: top;
}

/* FEATURES SECTION HEADER */
.features-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(36px, 4vw, 52px);
    letter-spacing: -1px;
    margin-top: var(--space-sm);
    max-width: 520px;
}

/* CTA SECTION */
.cta-section {
    background: var(--landing-black);
    border-radius: 32px;
    margin: 0 var(--space-lg) 80px;
    padding: 100px var(--space-xxxl);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -1.5px;
    margin-bottom: var(--space-lg);
    line-height: 1.05;
    position: relative;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 17px;
    font-weight: 300;
    margin-bottom: var(--space-xxl);
    position: relative;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-white {
    background: white;
    color: var(--landing-black);
    padding: var(--space-md) var(--space-xl);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}
.btn-white:hover { transform: translateY(-2px); opacity: 0.92; }

.btn-ghost {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-md) var(--space-sm);
    transition: color 0.2s;
}
.btn-ghost:hover { color: white; }

.cta-beta {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 300;
    margin-top: var(--space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

/* FOOTER */
footer {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    color: var(--text-2);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--landing-black); }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* TABLET */
@media (max-width: 768px) {
    .pain-grid { grid-template-columns: 1fr; }
    nav { padding: var(--space-md) var(--space-lg); }
    .hero { padding: 120px var(--space-lg) 60px; }
    .hero-phones { gap: var(--space-sm-plus); }
    .phone-frame.large { width: 180px; }
    .phone-frame.small { width: 145px; }
    .how { padding: var(--space-xxl) var(--space-xl); margin: 0 var(--space-md); }
    .steps { grid-template-columns: 1fr; gap: var(--space-xl); }
    .steps::before { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.wide { grid-column: auto; grid-template-columns: 1fr; }
    .cta-section { padding: var(--space-xxxl) var(--space-xl); margin: 0 var(--space-md) 60px; }
    section { padding: 70px var(--space-lg); }
}

/* SMALL PHONES */
@media (max-width: 480px) {
    .hero {
        padding: 100px var(--space-md) 40px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 16px;
        margin-bottom: var(--space-xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-phones {
        margin-top: var(--space-xxl);
    }

    .phone-frame.large { width: 160px; }
    .phone-frame.small { width: 120px; }

    .pain-card { padding: var(--space-lg); }

    .how {
        border-radius: 20px;
        padding: var(--space-xl) var(--space-lg);
        margin: 0 var(--space-sm-plus);
    }

    .feature-card {
        padding: var(--space-xl);
        border-radius: var(--space-md);
    }

    .cta-section {
        border-radius: 20px;
        padding: var(--space-xxl) var(--space-lg);
        margin: 0 var(--space-sm-plus) 40px;
    }

    .cta-section h2 { font-size: 32px; }

    nav { padding: var(--space-sm-plus) var(--space-md); }

    .nav-web-link { display: none; }

    section { padding: 56px var(--space-md); }
}

/* TOUCH DEVICES */
@media (hover: none) {
    .btn-primary:hover,
    .btn-outline:hover,
    .btn-white:hover,
    .feature-card:hover {
        transform: none;
        box-shadow: none;
    }
}
