/* =========================================================================
   Wayli — landing styles (2026 relaunch, "your walk" positioning)
   Zero external dependencies. System-font stack, warm-paper light theme +
   midnight dark theme via prefers-color-scheme.
   Shared by  /index.html  (web-plan accent, map-canvas hero)
   and        /app/index.html  (mobile-install accent, phone-centred hero).
   Motifs: the drawn route, the mood, the waveform.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --indigo: #6366F1;
    --indigo-strong: #4F46E5;
    --teal: #14B8A6;
    --teal-deep: #0F766E;
    --amber: #F59E0B;

    /* Warm paper light theme */
    --bg: #FBF9F4;
    --bg-2: #F3EFE6;
    --surface: #FFFFFF;
    --surface-2: #FBFAF7;
    --ink: #1B1A17;
    --ink-soft: #57534A;
    --ink-faint: #8B857A;
    --line: #E7E1D3;
    --line-strong: #D8D1C0;

    --brand-grad: linear-gradient(120deg, var(--indigo) 0%, var(--teal) 100%);
    --shadow-sm: 0 1px 2px rgba(35, 30, 20, .06), 0 2px 6px rgba(35, 30, 20, .05);
    --shadow-md: 0 6px 16px rgba(35, 30, 20, .08), 0 12px 32px rgba(35, 30, 20, .06);
    --shadow-lg: 0 20px 50px -12px rgba(30, 25, 15, .22);

    --maxw: 1160px;
    --radius: 18px;
    --radius-lg: 26px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "New York", Georgia, "Times New Roman", serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B0E17;
        --bg-2: #0E1220;
        --surface: #141A2A;
        --surface-2: #10162340;
        --ink: #F1EEE7;
        --ink-soft: #ADB3C2;
        --ink-faint: #7A8194;
        --line: #232B3E;
        --line-strong: #2E374D;

        --indigo: #818CF8;
        --teal: #2DD4BF;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
        --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .6);
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ambient brand light */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 700px at 85% -8%, color-mix(in srgb, var(--indigo) 12%, transparent), transparent 60%),
        radial-gradient(900px 600px at -5% 12%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 55%);
    pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--indigo) 30%, transparent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }

/* ---------- Focus / a11y ---------- */
:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--indigo) 65%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    padding: .6rem 1rem;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
    --btn-py: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 650;
    letter-spacing: -.01em;
    padding: var(--btn-py) 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn-sm { --btn-py: .55rem; padding-inline: 1.05rem; font-size: .93rem; }

.btn-primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--indigo) 75%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--indigo) 80%, transparent); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    color: var(--ink);
    border-color: var(--line-strong);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }

.btn-block { width: 100%; }

/* inline text link with arrow */
.link-arrow {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 650; color: var(--indigo-strong);
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s var(--ease), gap .2s var(--ease);
}
@media (prefers-color-scheme: dark) { .link-arrow { color: var(--indigo); } }
.link-arrow:hover { border-color: currentColor; gap: .55rem; }

/* ---------- Header (shared) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--indigo) 35%, transparent)); }
.brand-word { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-weight: 550; font-size: .96rem; transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.nav-app { color: var(--ink); }

.header-cta { margin-left: .25rem; }

@media (max-width: 760px) {
    .site-nav { display: none; }
    .header-cta { margin-left: auto; }
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { max-width: 680px; margin-inline: auto; text-align: center; }

.kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: .9rem;
}
@media (prefers-color-scheme: dark) { .kicker { color: var(--teal); } }
.kicker-invert { color: color-mix(in srgb, #fff 82%, var(--teal)); }

h2.h-section {
    font-size: clamp(1.6rem, 4.4vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 780;
}
.section-lead {
    margin-top: 1rem;
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
    color: var(--ink-soft);
    max-width: 54ch;
}
.section-head.center .section-lead { margin-inline: auto; }

.serif-accent {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -.01em;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .06em;
}

/* full-bleed band helper */
.band { position: relative; padding-block: clamp(3.4rem, 8vw, 6rem); }
.band + .band { padding-top: clamp(1rem, 3vw, 2rem); }

/* ---------- Shared motifs: chips, moods, waveform, device ---------- */
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .74rem; font-weight: 650; letter-spacing: .01em;
    padding: .28rem .6rem; border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--ink-soft);
}
.chip-live { color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 15%, transparent); }
@media (prefers-color-scheme: dark) { .chip-live { color: var(--teal); } }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s var(--ease) infinite; }
.chip-mood { color: var(--indigo-strong); background: color-mix(in srgb, var(--indigo) 14%, transparent); }
@media (prefers-color-scheme: dark) { .chip-mood { color: var(--indigo); } }

.moods { display: flex; gap: .5rem; flex-wrap: wrap; }
.mood { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.mood.is-on { background: var(--brand-grad); color: #fff; border-color: transparent; }

.wave { display: flex; align-items: center; gap: 3px; height: 34px; flex: 1; }
.wave span {
    flex: 1; height: 30%; min-width: 3px; border-radius: 3px;
    background: color-mix(in srgb, var(--indigo) 55%, var(--teal));
    animation: wave 1.3s ease-in-out infinite;
}
.wave span:nth-child(odd) { animation-delay: -.2s; }
.wave span:nth-child(3n) { animation-delay: -.5s; }
.wave span:nth-child(4n) { animation-delay: -.8s; }
.wave span:nth-child(5n) { animation-delay: -1.1s; }

/* Device mock (used centred on /app, and as the "walk" act visual on index) */
.device {
    position: relative;
    z-index: 2;
    width: min(100%, 380px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-lg);
}
.device-map {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 320 / 210;
    background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 9%, var(--surface)), color-mix(in srgb, var(--indigo) 8%, var(--surface)));
    border: 1px solid var(--line);
}
.route-svg { width: 100%; height: 100%; color: color-mix(in srgb, var(--ink) 12%, transparent); }
.map-grid line { opacity: .5; }
.route-line { stroke: var(--indigo); stroke-dasharray: 7 9; }
.stops circle { fill: var(--surface); stroke: var(--indigo); stroke-width: 3; }
.stops circle:last-of-type { fill: var(--teal); stroke: var(--teal); }
.walker { fill: var(--indigo); stroke: var(--surface); stroke-width: 3; filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--indigo) 55%, transparent)); }
.map-pin { position: absolute; top: 8%; right: 6%; color: var(--teal); filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }

.player { padding: 1rem .95rem .6rem; }
.player-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.player-title { font-weight: 700; font-size: 1.06rem; letter-spacing: -.015em; margin-bottom: .75rem; }
.player-row { display: flex; align-items: center; gap: .8rem; }
.play-btn {
    flex: 0 0 auto; width: 44px; height: 44px;
    display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: var(--brand-grad); color: #fff;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--indigo) 75%, transparent);
}
.player-time { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-faint); margin-top: .55rem; font-variant-numeric: tabular-nums; }

/* =========================================================================
   INDEX — map-canvas hero
   ========================================================================= */
.map-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 82vh, 760px);
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
}
/* faint street grid behind the route */
.map-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 100% 46px,
        linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 46px 100%;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 92%);
    mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 92%);
    opacity: .8;
    pointer-events: none;
}
/* the route SVG spans the entire hero */
.hero-route { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-route .route-path {
    fill: none;
    stroke: url(#heroRouteGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-route .route-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: routeDraw 2.6s var(--ease) .2s forwards;
}
.hero-route .route-stop { fill: var(--bg); stroke: var(--indigo); stroke-width: 3.5; opacity: 0; animation: stopPop .5s var(--ease) forwards; }
.hero-route .route-stop.is-end { fill: var(--teal); stroke: var(--teal); }
.hero-route .hero-walker { fill: var(--indigo); stroke: var(--bg); stroke-width: 3; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--indigo) 55%, transparent)); }

.map-hero-inner {
    position: relative;
    z-index: 3;
    padding: clamp(3rem, 8vh, 5rem) clamp(1.15rem, 4vw, 2.5rem);
    max-width: 780px;
    margin-inline: auto;
}
/* soft scrim so text keeps contrast over the route */
.map-hero-inner::before {
    content: "";
    position: absolute; inset: -6% -8%;
    z-index: -1;
    background: radial-gradient(70% 62% at 50% 46%, color-mix(in srgb, var(--bg) 86%, transparent) 40%, transparent 78%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .86rem; font-weight: 600; color: var(--ink-soft);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    border: 1px solid var(--line);
    padding: .4rem .85rem; border-radius: 999px;
    margin-bottom: 1.6rem;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2.4s var(--ease) infinite; }

.hero-title {
    font-size: clamp(1.95rem, 7.6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--ink);
}
.hero-title .serif-accent { display: inline; }

.hero-sub {
    margin: 1.35rem auto 0;
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    color: var(--ink-soft);
    max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; justify-content: center; }
.hero-note { margin-top: 1.15rem; font-size: .92rem; color: var(--ink-faint); }

/* =========================================================================
   INDEX — "Chapters become your walk" (asymmetric two-column positioning)
   ========================================================================= */
.split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.1rem, 3vw, 1.9rem);
    align-items: stretch;
}
.split-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.split-card .tag {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-faint);
}
.split-card h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.025em; margin: .5rem 0 .7rem; line-height: 1.1; }
.split-card p { color: var(--ink-soft); }
.split-card.is-chapters { background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 6%, var(--surface)), var(--surface)); }
.split-card.is-walk { background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 8%, var(--surface)), var(--surface)); }
.split-card .moods { margin-top: 1.3rem; }
.split-card .card-note { margin-top: .8rem; font-size: .9rem; color: var(--ink-faint); }

/* the "assembled" mini diagram: chapters flowing into one walk */
.assembly { margin-top: 1.5rem; display: grid; gap: .55rem; }
.assembly .a-chip {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .8rem; border-radius: 12px;
    background: color-mix(in srgb, var(--ink) 4%, var(--surface));
    border: 1px solid var(--line);
    font-size: .92rem; font-weight: 600; color: var(--ink-soft);
}
.assembly .a-chip .a-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-grad); flex: 0 0 auto; }

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* =========================================================================
   INDEX — three-act sequence: Plan / Walk / Listen (alternating bands)
   ========================================================================= */
.acts { display: grid; gap: clamp(2.4rem, 6vw, 4.5rem); }
.act {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}
.act:nth-child(even) .act-media { order: 2; }
.act-index {
    font-family: var(--font-serif);
    font-size: 1.05rem; color: var(--ink-faint); letter-spacing: .1em;
    display: inline-flex; align-items: center; gap: .7rem;
    margin-bottom: .9rem;
}
.act-index::before { content: ""; width: 26px; height: 1.5px; background: var(--line-strong); }
.act-body h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1.06; }
.act-body p { color: var(--ink-soft); margin-top: .85rem; font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 46ch; }
.act-body .link-arrow { margin-top: 1.1rem; }

.act-media { position: relative; display: grid; place-items: center; }
.act-glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(58px); opacity: .5; z-index: 0; }
.act:nth-child(1) .act-glow { background: color-mix(in srgb, var(--indigo) 55%, transparent); }
.act:nth-child(2) .act-glow { background: color-mix(in srgb, var(--teal) 50%, transparent); }
.act:nth-child(3) .act-glow { background: color-mix(in srgb, var(--amber) 45%, transparent); }

/* browser-frame mock for the "Plan on the web" act */
.browser {
    position: relative; z-index: 1;
    width: min(100%, 440px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.browser-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.browser-dots { display: inline-flex; gap: .35rem; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-url {
    flex: 1; font-size: .78rem; color: var(--ink-faint);
    background: var(--bg); border: 1px solid var(--line);
    padding: .3rem .7rem; border-radius: 999px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; min-height: 210px; }
.browser-map {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 10%, var(--surface)), color-mix(in srgb, var(--indigo) 9%, var(--surface)));
    border-right: 1px solid var(--line);
}
.browser-map .route-svg { color: color-mix(in srgb, var(--ink) 12%, transparent); position: absolute; inset: 0; }
.browser-list { padding: .9rem; display: grid; gap: .55rem; align-content: start; }
.browser-list .bl-row {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.browser-list .bl-row .bl-n {
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; flex: 0 0 auto;
    font-size: .68rem; font-weight: 700; color: #fff; background: var(--indigo);
}
.browser-list .bl-row.is-last .bl-n { background: var(--teal); }
.browser-list .bl-cta {
    margin-top: .4rem; font-size: .78rem; font-weight: 700; text-align: center;
    padding: .5rem; border-radius: 10px; color: #fff; background: var(--brand-grad);
}

@media (max-width: 800px) {
    .act { grid-template-columns: 1fr; }
    .act:nth-child(even) .act-media { order: 0; }
    .act-media { margin-bottom: .4rem; }
}
@media (max-width: 420px) {
    .browser-body { grid-template-columns: 1fr; }
    .browser-map { min-height: 130px; border-right: none; border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   Waitlist band (shared, invert)
   ========================================================================= */
.waitlist-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--teal) 32%, transparent), transparent 55%),
        linear-gradient(135deg, var(--indigo-strong), #3f3fb0);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.waitlist-inner::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(color-mix(in srgb, #fff 10%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35; pointer-events: none;
}
.waitlist-head { position: relative; }
.waitlist-head h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 780; }
.waitlist-inner .section-lead { color: color-mix(in srgb, #fff 82%, transparent); max-width: 42ch; }

.signup { position: relative; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: .4rem; }
.field .opt { color: var(--ink-faint); font-weight: 500; }
.field input {
    width: 100%; font: inherit; color: var(--ink);
    padding: .82rem 1rem;
    background: var(--surface-2);
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 18%, transparent); }
.field input:user-invalid { border-color: #e0573f; }

.signup .btn-primary { margin-top: .35rem; position: relative; }
.signup .btn-primary[disabled] { opacity: .8; cursor: progress; }
.btn-spinner { display: none; width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.signup.is-loading .btn-spinner { display: inline-block; }
.signup.is-loading .btn-label { opacity: .85; }

.form-status { min-height: 1.2em; margin-top: .9rem; font-size: .95rem; font-weight: 600; }
.form-status.ok { color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .form-status.ok { color: var(--teal); } }
.form-status.err { color: #d4432c; }
@media (prefers-color-scheme: dark) { .form-status.err { color: #f98d7a; } }

.signup.is-done .field, .signup.is-done .btn-primary { display: none; }
.signup.is-done .form-fine { display: none; }
.signup-done { display: none; }
.signup.is-done .signup-done { display: block; text-align: center; padding: .5rem 0 .2rem; }
.signup-done .done-mark {
    width: 46px; height: 46px; margin: 0 auto .8rem; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: var(--brand-grad);
}
.signup-done h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .35rem; }
.signup-done p { color: var(--ink-soft); font-size: .95rem; }

.form-fine { margin-top: 1rem; font-size: .82rem; color: var(--ink-faint); }
.form-fine a { color: var(--indigo-strong); font-weight: 600; }
@media (prefers-color-scheme: dark) { .form-fine a { color: var(--indigo); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) { .waitlist-inner { grid-template-columns: 1fr; } }

/* =========================================================================
   /app — phone-centred hero
   ========================================================================= */
.app-hero {
    text-align: center;
    padding-top: clamp(2.6rem, 6vw, 4.2rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    position: relative;
    overflow: hidden;
}
.app-hero-inner { max-width: 640px; margin-inline: auto; position: relative; z-index: 2; }
.app-hero .hero-title { font-size: clamp(1.95rem, 7.6vw, 3.9rem); }
.app-hero .hero-sub { max-width: 40ch; }

.phone-stage { position: relative; display: grid; place-items: center; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.phone-stage .glow-a, .phone-stage .glow-b { position: absolute; border-radius: 50%; filter: blur(64px); z-index: 0; opacity: .55; }
.phone-stage .glow-a { width: 300px; height: 300px; background: color-mix(in srgb, var(--indigo) 55%, transparent); top: -6%; left: 8%; }
.phone-stage .glow-b { width: 260px; height: 260px; background: color-mix(in srgb, var(--teal) 50%, transparent); bottom: -8%; right: 8%; }

/* the phone shell */
.phone {
    position: relative; z-index: 2;
    width: min(300px, 78vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}
.phone::before {
    content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 42%; height: 20px; border-radius: 0 0 14px 14px;
    background: var(--surface); border: 1px solid var(--line); border-top: none;
    z-index: 3;
}
.phone-screen {
    border-radius: 30px; overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.phone-screen .device-map { border-radius: 30px 30px 0 0; border: none; aspect-ratio: 300 / 300; }
.phone-screen .player { padding: 1rem 1rem .9rem; }

/* store badges */
.store-badges {
    display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
    margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.store-badge {
    position: relative;
    display: inline-flex; align-items: center; gap: .7rem;
    padding: .7rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    min-width: 178px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.store-badge .sb-glyph { flex: 0 0 auto; color: var(--ink); }
.store-badge .sb-text { display: grid; text-align: left; line-height: 1.12; }
.store-badge .sb-small { font-size: .66rem; letter-spacing: .02em; color: var(--ink-soft); }
.store-badge .sb-big { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
/* coming-soon state */
.store-badge.is-soon { opacity: .62; cursor: not-allowed; }
.store-badge .sb-soon {
    position: absolute; top: -9px; right: 10px;
    font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: .12rem .45rem; border-radius: 999px;
    color: #fff; background: var(--ink-soft);
}
/* live (URL set by JS) */
.store-badge.is-live { opacity: 1; cursor: pointer; }
.store-badge.is-live:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-soft); }
.store-badge.is-live .sb-soon { display: none; }

.app-cta { margin-top: clamp(1.6rem, 4vw, 2.2rem); display: grid; justify-items: center; gap: .8rem; }
.app-cta .cta-hint { font-size: .92rem; color: var(--ink-faint); }
.app-cta .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; align-items: center; }

/* =========================================================================
   /app — bento feature tiles
   ========================================================================= */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: clamp(.9rem, 2vw, 1.3rem);
}
.tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 2.5vw, 1.7rem);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .5rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    overflow: hidden;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tile h3 { font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.12; }
.tile p { color: var(--ink-soft); font-size: .98rem; }
.tile-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: .3rem;
    color: var(--indigo); background: color-mix(in srgb, var(--indigo) 12%, transparent);
}
.tile .moods { margin-top: auto; padding-top: .8rem; }
/* feature tile spans */
.tile.is-wide { grid-column: span 2; }
.tile.is-tall { grid-row: span 2; }
.tile.is-feature {
    grid-column: span 2; grid-row: span 2;
    background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 8%, var(--surface)), var(--surface) 60%);
    justify-content: space-between;
}
.tile.is-feature h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tile.is-feature p { font-size: 1.05rem; }
.tile.accent-teal .tile-icon { color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 15%, transparent); }
@media (prefers-color-scheme: dark) { .tile.accent-teal .tile-icon { color: var(--teal); } }
.tile.accent-amber .tile-icon { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }

@media (max-width: 860px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile.is-feature { grid-column: span 2; grid-row: span 1; }
    .tile.is-tall { grid-row: span 1; }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .tile.is-wide, .tile.is-feature { grid-column: span 1; }
}

/* =========================================================================
   Footer (shared)
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 3.5rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-bottom: 2rem; }
.footer-brand { max-width: 320px; }
.footer-tag { margin-top: .9rem; color: var(--ink-soft); font-size: .96rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-content: flex-start; }
.footer-nav a { color: var(--ink-soft); font-weight: 550; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between;
    padding-block: 1.4rem; margin-top: .5rem;
    border-top: 1px solid var(--line);
    font-size: .88rem; color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--ink-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes stopPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .wave span { height: 60%; }
    .hero-route .route-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
    .hero-route .route-stop { opacity: 1; }
    .hero-route .hero-walker { display: none; }
}
