/* Tokens follow docs/DESIGN_SYSTEM.md (mobile/src/theme.ts). */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --sunken: #f2efea;
  --ink: #14161a;
  --ink-2: #4f5663;
  --ink-3: #666c78;
  --hairline: rgba(20, 22, 26, 0.08);
  --border-strong: #7e8189;
  --primary: #4f46e5;
  --primary-pressed: #4338ca;
  --primary-soft: #ecebfd;
  --primary-text: #4338ca;
  --on-primary: #ffffff;
  --teal: #14b8a6;
  --teal-dark: #147f75;
  --teal-soft: #d8f3ef;
  --hype: #ff6b4a;
  --warm: #f5b83d;
  --shadow-1: 0 1px 4px rgba(20, 22, 26, 0.06);
  --shadow-2: 0 4px 12px rgba(20, 22, 26, 0.12);
  --shadow-3: 0 30px 70px rgba(20, 22, 26, 0.22);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Nunito', var(--font);
  --max: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1013;
    --surface: #171a1f;
    --sunken: #0a0c0f;
    --ink: #f3f4f6;
    --ink-2: #aeb5c2;
    --ink-3: #939ba8;
    --hairline: rgba(243, 244, 246, 0.1);
    --border-strong: #6d7380;
    --primary: #8b85ff;
    --primary-pressed: #a5a0ff;
    --primary-soft: #272548;
    --primary-text: #a5a0ff;
    --on-primary: #0e1013;
    --teal-soft: #123d38;
    --shadow-1: 0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 30px 70px rgba(0, 0, 0, 0.65);
  }
}
:root[data-theme='dark'] {
  --bg: #0e1013;
  --surface: #171a1f;
  --sunken: #0a0c0f;
  --ink: #f3f4f6;
  --ink-2: #aeb5c2;
  --ink-3: #939ba8;
  --hairline: rgba(243, 244, 246, 0.1);
  --border-strong: #6d7380;
  --primary: #8b85ff;
  --primary-pressed: #a5a0ff;
  --primary-soft: #272548;
  --primary-text: #a5a0ff;
  --on-primary: #0e1013;
  --teal-soft: #123d38;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--primary-text);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 66px);
  letter-spacing: -0.025em;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
}
h3 {
  font-weight: 600;
  font-size: 19px;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
h1 span {
  display: block;
}
.grad {
  background: linear-gradient(90deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
}
.nav a:hover {
  color: var(--ink);
  background: var(--sunken);
}
.top .spacer {
  flex: 1;
}
.lang {
  display: inline-flex;
  background: var(--sunken);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 32px;
}
.lang button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 150ms ease, background 150ms ease;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-pressed);
}
.top .btn {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .top .btn {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 15px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 480px at 12% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(560px 420px at 88% 30%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%),
    radial-gradient(420px 320px at 70% 100%, color-mix(in srgb, var(--warm) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero {
    padding: 88px 0 0;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 580px;
  padding-bottom: 48px;
}
.hero-copy .lead {
  font-size: 19px;
  color: var(--ink-2);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 150ms ease, opacity 150ms ease;
}
.store:active {
  transform: scale(0.97);
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store .lbl {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store .lbl small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}
.store .lbl b {
  font-size: 18px;
  font-weight: 600;
}
.store.is-soon {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--hairline);
  cursor: default;
  box-shadow: var(--shadow-1);
}
.store.is-soon .lbl small {
  color: var(--primary-text);
  font-weight: 600;
  opacity: 1;
}
.store .soon {
  display: none;
}
.store.is-soon .soon {
  display: inline;
}
.store.is-soon .hint {
  display: none;
}
.store.beta {
  background: var(--primary);
  color: var(--on-primary);
}
.store.beta:hover {
  background: var(--primary-pressed);
}
.hero-note {
  font-size: 14px;
  color: var(--ink-3);
}

/* Two phones, cut by the bottom of the hero */
.hero-art {
  position: relative;
  height: clamp(360px, 58vw, 460px);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-art {
    height: 500px;
  }
}
.phone {
  position: absolute;
  top: 0;
  width: min(290px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0e1013;
  padding: 10px;
  box-shadow: var(--shadow-3), inset 0 0 0 2px #3a3f47;
}
.phone::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: #0e1013;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--sunken);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-front {
  left: 50%;
  transform: translateX(-62%);
  z-index: 2;
}
.phone-back {
  left: 50%;
  top: 28px;
  transform: translateX(-12%) scale(0.92);
  transform-origin: top center;
  z-index: 1;
  opacity: 0.95;
}
@media (min-width: 900px) {
  .phone-front {
    left: auto;
    right: 170px;
    transform: none;
  }
  .phone-back {
    left: auto;
    right: 0;
    transform: scale(0.92);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .phone-front {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .phone-back {
    animation: rise 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Sections */
section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  margin-bottom: 36px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-text);
  margin-bottom: 8px;
}
.icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.icon.hype {
  background: color-mix(in srgb, var(--hype) 16%, var(--surface));
  color: #c2410c;
}
.icon.warm {
  background: color-mix(in srgb, var(--warm) 22%, var(--surface));
  color: #a14c04;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon.teal {
    color: #5eead4;
  }
  :root:not([data-theme='light']) .icon.hype {
    color: #fdba74;
  }
  :root:not([data-theme='light']) .icon.warm {
    color: #fbbf24;
  }
}

/* Privacy strip */
.privacy {
  background: var(--sunken);
  padding: 56px 0;
}
.privacy-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .privacy-inner {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
}
.privacy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.privacy li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.privacy li svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .privacy li svg {
    stroke: #5eead4;
  }
}

/* Beta band */
.beta-band {
  padding: 80px 0 0;
}
.beta-band .card {
  background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
  color: #ffffff;
  border: 0;
  padding: 44px 28px;
  gap: 16px;
  text-align: center;
  align-items: center;
  box-shadow: var(--shadow-2);
}
.beta-band .card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 560px;
}
.beta-band .btn {
  background: #ffffff;
  color: #3730a3;
}
.beta-band .btn:hover {
  background: #eef2ff;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-text);
  flex: none;
  transition: transform 150ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 720px;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--ink-3);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
footer a {
  color: var(--ink-2);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
footer .note {
  flex-basis: 100%;
}

/* Plain pages (privacy, scout) */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.page h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 8px;
}
.page h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.page p,
.page li {
  color: var(--ink-2);
  margin-bottom: 12px;
}
.page ul {
  padding-left: 20px;
}
.page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--sunken);
  padding: 2px 6px;
  border-radius: 6px;
}
.page .back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
}
.muted {
  color: var(--ink-2);
}
