/* ───────────────────────── Chill landing ─────────────────────────
   Mirrors the app: pure black, white hand-drawn ink, low contrast,
   generous whitespace, calm. SF Pro / system font.
------------------------------------------------------------------ */

:root {
  --bg: #000000;
  --bg-soft: #101010;          /* OnboardingView 0.063 */
  --tile: #212124;             /* RouteSketch emphasized tile */
  --tile-soft: #16161a;
  --ink: #ffffff;
  --ink-dim: #c7c7cc;
  --ink-mute: #8a8a8e;         /* secondary text */
  --ink-faint: #5a5a5e;
  --line: rgba(255, 255, 255, 0.08);
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.18); }

/* Elements we animate in: hidden until JS reveals them. */
[data-reveal] { opacity: 0; }
.no-js [data-reveal],
.reduced [data-reveal] { opacity: 1; }

/* ───────────────────────── Nav ───────────────────────── */
/* Floating, narrow bar — transparent at the top, becomes a glass capsule on scroll. */
.nav {
  position: fixed;
  top: 12px;
  left: 14px; right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(18, 18, 20, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.78);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo { display: block; width: 25px; height: auto; opacity: 0.95; }
.nav-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.nav-name__muted { color: var(--ink-mute); font-weight: 500; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }
.apple-mark { width: 14px; height: 14px; margin-top: -2px; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(92px, 12vh, 150px) 24px 8vh;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-soft) 0%, var(--bg) 65%);
}

.hero-inner {
  text-align: center;
  max-width: 900px;
}

/* Centered status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.badge:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,0.2); }
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d1c4;
  box-shadow: 0 0 10px 1px rgba(52, 209, 196, 0.6);
}
.badge__chev { color: var(--ink-mute); font-size: 1.05em; margin-left: 2px; }

.hero-title {
  margin: clamp(28px, 6vh, 72px) 0 0;
  font-size: clamp(2.2rem, 6.4vw, 4.3rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 1.1em auto 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--ink-mute);
  line-height: 1.55;
}

/* Big rounded media tile (mirrors the app's routeTile "Walk detail" card) */
.hero-media {
  position: relative;
  width: min(720px, 100%);
  margin-top: clamp(60px, 10vh, 120px);
  height: clamp(340px, 56vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, #26262a 0%, var(--tile) 45%, #161619 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 60px 120px -50px rgba(0, 0, 0, 0.9);
}
.hero-media { cursor: pointer; }
.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#heroHead {
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.75));
}

/* Live HUD (top-left) */
.walk-hud {
  position: absolute;
  top: 20px; left: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.walk-hud__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.walk-hud__label.is-done {
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 1rem;
  color: var(--ink);
}
.walk-hud__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5b54;
  box-shadow: 0 0 9px 1px rgba(255, 91, 84, 0.6);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.walk-hud__stats {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Route markers — a ring left where each thought was captured. */
.walk-marker { pointer-events: none; }

/* Captured-thought cards — a stream at bottom-left, one at a time. */
.walk-notes {
  position: absolute;
  left: 24px; bottom: 20px;
  width: min(360px, calc(100% - 48px));
  height: 70px;
  z-index: 3;
  pointer-events: none;
}
.walk-note {
  position: absolute;
  left: 0; bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(20, 20, 23, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.walk-note--text { padding: 12px 18px; }
.walk-note img {
  width: 46px; height: 46px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
}
.walk-note__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.walk-note__title {
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.walk-note--text .walk-note__title { white-space: normal; }
.walk-note__time { font-size: 0.82rem; color: var(--ink-mute); }

/* ───────────────────────── CTA ───────────────────────── */
.cta {
  display: inline-block;
  margin-top: 2.4em;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background 0.4s var(--ease);
}
.cta:hover { transform: translateY(-2px); opacity: 0.92; }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 13px 26px;
}
.cta--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,0.4); }

/* ───────────────────────── Manifesto ───────────────────────── */
.manifesto {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22vh 24px;
  text-align: center;
}
.manifesto-line {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.manifesto-line--muted { color: var(--ink-faint); }
.manifesto-line:nth-child(4) { margin-top: 0.7em; }

/* ───────────────────────── Feature blocks ───────────────────────── */
.feature {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14vh 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.feature--reverse .feature-visual { order: -1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.4em;
}
.feature-copy h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.feature-copy p {
  margin-top: 1.2em;
  max-width: 38ch;
  color: var(--ink-mute);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Phone frame */
.feature-visual { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw);
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2a2e, #0c0c0e);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 34px;
}

/* Thought capture bar (under the capture copy) */
.thought-bar {
  margin-top: 2em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(320px, 80vw);
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 1.02rem;
}
.thought-bar__dot {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-mute);
  flex: none;
}
.thought-bar__text { white-space: nowrap; }
.thought-bar__caret {
  width: 2px; height: 1.1em;
  background: var(--ink);
  margin-left: -8px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ───────────────────────── Calm grid ───────────────────────── */
.calm {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12vh 24px;
}
.calm-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.calm-grid li {
  background: var(--bg);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calm-grid strong {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.calm-grid span { color: var(--ink-mute); font-size: 1rem; }

/* ───────────────────────── Join ───────────────────────── */
.join {
  text-align: center;
  padding: 22vh 24px 18vh;
  background: radial-gradient(120% 80% at 50% 100%, var(--bg-soft) 0%, var(--bg) 72%);
}
.join .logo {
  display: block;
  width: 82px;
  height: auto;
  margin: 0 auto 2.2em;
  opacity: 0.95;
}
.join h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.join > p {
  margin-top: 1em;
  color: var(--ink-mute);
  font-size: 1.15rem;
}
.join .cta { margin-top: 2.4em; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  max-width: 1040px;            /* same width as the nav capsule */
  margin: 0 auto;
  padding: clamp(80px, 18vh, 220px) 18px 30px;
  border-top: 1px solid var(--line);
}
.footer-wordmark {
  position: absolute;
  left: 0; right: 0;
  bottom: -0.16em;
  text-align: center;
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: var(--ink-mute);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-credit:hover { color: var(--ink); }
.footer-arrow { transition: transform 0.3s var(--ease); }
.footer-credit:hover .footer-arrow { transform: translate(2px, -2px); }
.footer-meta { color: var(--ink-faint); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
    padding: 12vh 24px;
  }
  .feature--reverse .feature-visual { order: 0; }
  .feature-copy p, .thought-bar { margin-left: auto; margin-right: auto; }
  .feature-copy { display: flex; flex-direction: column; align-items: center; }
  .calm-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; }
  .scroll-hint__line, .thought-bar__caret { animation: none; }
}
