:root {
    /* Palette — matches the app's mono + navy aesthetic */
    --bg: #EEF0F4;
    --bg-card: #FFFFFF;
    --bg-dark: #1D2B3A;
    --bg-dark-hover: #2A3A4D;
    --text: #1D2B3A;
    --text-muted: #8A96A3;
    --text-soft: #5C6B7A;
    --border: #D8DEE5;
    --border-light: #E4E9EF;
    --border-dark: #2A3A4D;
    --success: #1F7A4D;
    --error: #B91C1C;

    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
    --font-body: 'Courier Prime', 'Courier New', monospace;

    --max-width: 1000px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 1, "calt" 1;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--bg-dark); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    text-align: left;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-bg-glow {
    display: none;  /* no glow in the app aesthetic — keep it flat */
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.hero-text { min-width: 0; }

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screens {
    position: relative;
    width: 100%;
}

/* Browser window frame */
.browser-frame {
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(29, 43, 58, 0.15);
}

.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-dark);
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-desktop-screen {
    width: 100%;
    display: block;
}

/* Phone overlapping the browser frame */
.hero-screens .phone-frame--hero {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    padding: 6px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(29, 43, 58, 0.22);
}

.hero-screens .phone-frame--hero img {
    border-radius: 18px;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--bg-dark);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Kill the gradient — the app doesn't use gradients. Inline accent text stays plain navy. */
.gradient-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
    font-weight: 500;
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 0 2.5rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    background: var(--bg-dark);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.cta-btn:hover {
    background: var(--bg-dark-hover);
    text-decoration: none !important;
}

.hero-tag {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-tag a {
    color: var(--text-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.hero-tag a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.section-story { background: var(--bg-card); }
.section-waitlist { background: var(--bg); }
.section-support { background: var(--bg-card); }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-inner--narrow {
    max-width: 560px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 640px;
    margin: 0 0 2rem;
}

/* Leading paragraph at the top of the merged story section — no title above it,
   so give it a touch more weight and breathing room. */
.story-body {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

/* ═══════════════════════════════════════════
   SHOWCASE
   ═══════════════════════════════════════════ */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.section-body--muted {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.showcase-gifs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 1.5rem;
    margin-bottom: 6rem;
}

.showcase-gif-fig { margin: 0; }

.showcase-gif {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: block;
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(29, 43, 58, 0.08);
}

.showcase-caption {
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-align: center;
}

/* Alternating feature rows */
.feature-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-row--reverse {
    grid-template-columns: 1fr 1.4fr;
}

.feature-row--reverse .feature-media {
    order: 2;
}

.feature-row--reverse .feature-text {
    order: 1;
}

.feature-media .browser-frame img,
.feature-media .browser-frame video {
    width: 100%;
    display: block;
}

.feature-media--phone {
    display: flex;
    justify-content: center;
}

.feature-media--phone .phone-frame video {
    width: 100%;
    display: block;
    border-radius: 30px;
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.showcase-phone-fig {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* iPhone-style frame — navy bezel + rounded corners, flat (no skeuomorphism) */
.phone-frame {
    width: 220px;
    padding: 8px;
    background: var(--bg-dark);
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(29, 43, 58, 0.08);
    flex-shrink: 0;
}

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

/* Bigger frame for the hero */
.phone-frame--hero {
    width: 280px;
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(29, 43, 58, 0.12);
}

.phone-frame--hero img {
    border-radius: 30px;
}

/* ═══════════════════════════════════════════
   WAITLIST FORM
   ═══════════════════════════════════════════ */
.waitlist-form {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    transition: border-color 0.15s ease;
}

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

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--bg-dark);
}

.submit-btn {
    width: 100%;
    padding: 0.95rem;
    margin-top: 0.5rem;
    background: var(--bg-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--bg-dark-hover);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-success {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(31, 122, 77, 0.08);
    color: var(--success);
    border: 1px solid rgba(31, 122, 77, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-align: center;
}

.form-error {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(185, 28, 28, 0.06);
    color: var(--error);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-align: center;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.morph-footer {
    padding: 5rem 2rem 3rem;
    background: var(--bg-dark);
    color: #fff;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border-dark);
}

.morph-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-name {
    font-family: var(--font-mono);
    font-size: 2.75rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 1.5rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.footer-blurb {
    max-width: 560px;
    margin: 0 0 3rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #B8C3CE;
}

.footer-blurb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.footer-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-detail a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 1px;
}

.footer-detail a:hover {
    border-bottom-color: #fff;
}

.footer-links {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 1rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-dot { display: none; }

.footer-fine {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   PRIVACY PAGE
   ═══════════════════════════════════════════ */
.doc-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    background: var(--bg);
    font-family: var(--font-mono);
}

.doc-page h1 {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.doc-page .doc-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-page h2 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin: 2.5rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.doc-page h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
}

.doc-page p,
.doc-page li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.doc-page ul,
.doc-page ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-page .back-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.doc-page .back-link:hover {
    color: var(--text);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    /* Keep natural order: headline first, phone below. Better above-the-fold UX on mobile. */
}

@media (max-width: 768px) {
    .hero { padding: 3.5rem 1.25rem 3rem; }
    .section { padding: 3rem 1.25rem; }
    .morph-footer { padding: 3.5rem 1.25rem 2.5rem; }

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

    .hero-inner {
        gap: 2.5rem;
    }

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

    .hero-screens .phone-frame--hero {
        width: 110px;
        padding: 4px;
        border-radius: 18px;
        bottom: -20px;
        right: -5px;
    }

    .hero-screens .phone-frame--hero img {
        border-radius: 14px;
    }

    .browser-frame-bar {
        padding: 8px 10px;
        gap: 5px;
    }

    .browser-dot {
        width: 7px;
        height: 7px;
    }

    .showcase-gifs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-row,
    .feature-row--reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-row--reverse .feature-media { order: 0; }
    .feature-row--reverse .feature-text { order: 0; }

    .phone-frame img {
        border-radius: 20px;
    }

    .story-body {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .footer-name {
        font-size: 2rem;
    }

    .waitlist-form {
        padding: 1.5rem 1.25rem;
    }
}
