/* Sapid website. Same colours as the app (docs/design.md): black and white, colour only from ratings
   and the logo's glow. Inter (closest web font to the app's SF Pro), hosted here. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --card: #FFFFFF;
  --primary: #0A0A0A;
  --tint: #F0F0F0;
  --on-primary: #FFFFFF;
  --text: #0A0A0A;
  --muted: #737373;
  --muted-strong: #666666;
  --border: #E6E6E6;
  --empty: #D4D4D4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.07);
  --card-edge: transparent;
  /* Ratings */
  --great: #1E7A3F; --great-bg: #E6F6EC;
  --okay: #A16207;  --okay-bg: #FFF4D6;
  --poor: #C62828;  --poor-bg: #FDECEC;
  /* Logo glow (light mode) */
  --glow-1: #E5484D; --glow-2: #F5B83D; --glow-3: #2FBF6A; --glow-opacity: 0.32;
  /* Map in the phone screens */
  --map: #EEF0EA; --map-road: #FFFFFF; --map-minor: #F6F7F3; --map-park: #DDE8D6; --map-water: #CFE0EA;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #141414; --card: #141414; --primary: #F5F5F5; --tint: #1A1A1A;
    --on-primary: #0A0A0A; --text: #F5F5F5; --muted: #8C8C8C; --muted-strong: #8C8C8C; --border: #2A2A2A; --empty: #3A3A3A;
    --shadow: none; --card-edge: #2A2A2A;
    --great: #4CD07D; --great-bg: #0F2417; --okay: #F5B83D; --okay-bg: #2A2008; --poor: #FF7B72; --poor-bg: #2A1112;
    --glow-1: #C62828; --glow-2: #A16207; --glow-3: #1E7A3F; --glow-opacity: 0.55;
    --map: #1A1C1B; --map-road: #2A2D2B; --map-minor: #202221; --map-park: #1F2A20; --map-water: #172530;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #141414; --card: #141414; --primary: #F5F5F5; --tint: #1A1A1A;
  --on-primary: #0A0A0A; --text: #F5F5F5; --muted: #8C8C8C; --muted-strong: #8C8C8C; --border: #2A2A2A; --empty: #3A3A3A;
  --shadow: none; --card-edge: #2A2A2A;
  --great: #4CD07D; --great-bg: #0F2417; --okay: #F5B83D; --okay-bg: #2A2008; --poor: #FF7B72; --poor-bg: #2A1112;
  --glow-1: #C62828; --glow-2: #A16207; --glow-3: #1E7A3F; --glow-opacity: 0.55;
  --map: #1A1C1B; --map-road: #2A2D2B; --map-minor: #202221; --map-park: #1F2A20; --map-water: #172530;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { position: relative; display: block; flex-shrink: 0; line-height: 0; text-decoration: none; }
/* The logo image has room around the word for its glow, so it overhangs the header. */
.brand img { display: block; width: 163px; height: 70px; max-width: none; margin: -21px 0 -21px -52px; }
.brand .logo-dark { position: absolute; left: 0; top: 0; opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { opacity: 0; }
  :root:not([data-theme="light"]) .brand .logo-dark { opacity: 1; }
}
:root[data-theme="dark"] .brand .logo-light { opacity: 0; }
:root[data-theme="dark"] .brand .logo-dark { opacity: 1; }

.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .icon-sun { display: none; }

/* ---------- Type ---------- */
.eyebrow {
  width: fit-content;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; background: var(--surface);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--great); }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.display { font-size: clamp(44px, 7.4vw, 84px); font-weight: 800; }
.title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.25s cubic-bezier(.16, 1, .3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary small { display: block; font-size: 12px; font-weight: 500; opacity: 0.7; line-height: 1.1; }
.btn-primary span { line-height: 1.15; }
.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; perspective: 1400px; }
.tilt { position: relative; z-index: 1; transition: transform 0.6s cubic-bezier(.16, 1, .3, 1); transform-style: preserve-3d; will-change: transform; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

/* Brand glow (same colours as the logo) */
.glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow span {
  position: absolute; width: 46%; height: 46%; border-radius: 50%;
  filter: blur(70px); opacity: var(--glow-opacity);
  animation: drift 14s ease-in-out infinite alternate;
}
.glow span:nth-child(1) { left: 6%; top: 30%; background: var(--glow-1); }
.glow span:nth-child(2) { left: 28%; top: 12%; background: var(--glow-2); animation-delay: -4s; }
.glow span:nth-child(3) { left: 50%; top: 34%; background: var(--glow-3); animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, -5%) scale(1.08); }
}

/* Floating rating pills around the hero phone */
.float-pill {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--card-edge);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
  transition: opacity 0.45s ease, scale 0.45s cubic-bezier(.16, 1, .3, 1), filter 0.45s ease;
}
.float-pill.swap { opacity: 0; scale: 0.85; filter: blur(4px); }
.float-pill:nth-of-type(2) { animation-delay: -1.5s; }
.float-pill:nth-of-type(3) { animation-delay: -3s; }
.float-pill:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fp-1 { left: -2%; top: 16%; }
.fp-2 { right: -4%; top: 30%; }
.fp-3 { left: 2%; bottom: 20%; }
.fp-4 { right: 0%; bottom: 8%; }
@media (max-width: 520px) {
  .fp-1 { left: -6px; top: 22%; } .fp-2 { right: -6px; top: 40%; } .fp-3 { left: -6px; bottom: 30%; }
  .fp-4 { display: none; }
  .float-pill { font-size: 12px; }
}

/* ---------- Score pill (same as the app) ---------- */
.score {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4;
}
.score svg { width: 10px; height: 10px; fill: currentColor; }
.score.great { color: var(--great); background: var(--great-bg); }
.score.okay { color: var(--okay); background: var(--okay-bg); }
.score.poor { color: var(--poor); background: var(--poor-bg); }
.score.grey { color: var(--muted); background: var(--surface); }

/* ---------- Phone ---------- */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1C1C1E;
}
.phone::before { left: -3px; top: 21%; height: 50px; box-shadow: 0 64px 0 #1C1C1E; }
.phone::after { right: -3px; top: 27%; height: 74px; }
.phone {
  position: relative; z-index: 1;
  width: 290px; aspect-ratio: 9 / 19.3;
  border-radius: 48px; padding: 10px;
  background: #0B0B0C;
  box-shadow: 0 0 0 1.5px #2C2C2E inset, 0 30px 80px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.screen {
  text-align: left;
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-size: 12px; line-height: 1.35;
}
.island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 22px; border-radius: 20px; background: #000; z-index: 20;
}
.status {
  position: absolute; top: 12px; left: 24px; right: 18px; z-index: 15;
  display: flex; justify-content: space-between; font-size: 12px; font-weight: 600;
}
.status .icons { display: flex; align-items: center; gap: 3px; }
.status svg:first-child { width: 13px; }
.status .batt { display: inline-block; width: 20px; height: 10px; padding: 1.5px; border: 1.3px solid currentColor; border-radius: 3.5px; opacity: 0.9; }
.status .batt::before { content: ""; display: block; width: 78%; height: 100%; border-radius: 1.5px; background: currentColor; }
.screen::after {
  content: ""; position: absolute; z-index: 30; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 4px; border-radius: 2px; background: var(--text); opacity: 0.85;
}

/* Map screen */
.map {
  position: absolute; inset: 0;
  background-color: var(--map);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 21px, var(--map-minor) 21px 22.5px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--map-minor) 27px 28.5px),
    linear-gradient(28deg, transparent 47%, var(--map-road) 47%, var(--map-road) 50%, transparent 50%),
    linear-gradient(-62deg, transparent 58%, var(--map-road) 58%, var(--map-road) 60.5%, transparent 60.5%),
    linear-gradient(90deg, transparent 30%, var(--map-road) 30%, var(--map-road) 31.5%, transparent 31.5%),
    linear-gradient(0deg, transparent 64%, var(--map-road) 64%, var(--map-road) 65.5%, transparent 65.5%),
    linear-gradient(0deg, transparent 24%, var(--map-road) 24%, var(--map-road) 25%, transparent 25%);
}
.map .park { position: absolute; border-radius: 40% 60% 50% 45%; background: var(--map-park); }
.map .water { position: absolute; border-radius: 50%; background: var(--map-water); }
.map .street { position: absolute; font-size: 7px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); opacity: 0.75; white-space: nowrap; }
.searchbar {
  position: absolute; top: 46px; left: 12px; right: 12px; z-index: 6;
  display: flex; gap: 8px;
}
.searchbar .field, .searchbar .round {
  height: 36px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--card-edge);
  display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--muted); font-size: 12px;
}
.searchbar .field { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.searchbar .round { width: 36px; padding: 0; justify-content: center; color: var(--text); }
.pin { position: absolute; z-index: 4; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); border-radius: 999px; }
.pin .score { font-size: 11px; padding: 2px 8px; }
.pin-label { position: absolute; z-index: 4; transform: translate(-50%, 0); font-size: 9.5px; font-weight: 600; color: var(--text); white-space: nowrap; text-shadow: 0 0 3px var(--map), 0 0 3px var(--map); }
.tabbar {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 6px; padding: 5px; border-radius: 28px;
  background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: var(--shadow); border: 1px solid var(--card-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tabbar span { width: 58px; height: 40px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 9px; font-weight: 600; color: var(--muted); }
.tabbar span.on { background: var(--surface); color: var(--text); }
.tabbar svg { width: 16px; height: 16px; }

/* Unlock: grey pin turns into your colour, with a pop */
.pin.unlock .score { transition: color 0.3s ease, background 0.3s ease; }
.play .pin.unlock .score { transition: color 0.6s ease 0.9s, background 0.6s ease 0.9s; }
.play .pin.unlock .score { color: var(--great); background: var(--great-bg); }
.play .pin.unlock { animation: pop 0.7s cubic-bezier(.34, 1.56, .64, 1) 0.9s both; }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(1.35); } 100% { transform: translate(-50%, -50%) scale(1); } }
.toast {
  position: absolute; top: 44px; left: 10px; right: 10px; z-index: 8;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--card-edge);
  transform: translateY(-140%); opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.play .toast { transform: translateY(0); opacity: 1; transition: transform 0.6s cubic-bezier(.2, .9, .3, 1.1) 1.7s, opacity 0.4s ease 1.7s; }
.toast .lock { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
.toast b { font-size: 12.5px; }
.toast .score { margin-left: auto; }

/* App pages inside the phone */
.page { position: absolute; inset: 0; padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.page h4 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.page .sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.xbtn { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.steps { display: flex; gap: 3px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.steps i.on { background: var(--primary); }
.card {
  background: var(--card); border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--card-edge);
}
.label { font-size: 10px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field-box { height: 32px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; padding: 0 10px; font-weight: 700; font-size: 12.5px; }
.rating { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; display: flex; gap: 5px; height: 18px; }
.bar > span { flex: 1; display: flex; gap: 2px; }
.bar i { flex: 1; border-radius: 3px; background: var(--border); transition: background 0.18s ease; }
.bar i.f { background: var(--primary); }
.rating b { width: 24px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.footer-btns { margin-top: auto; display: flex; gap: 8px; }
.pbtn { flex: 1; height: 38px; border-radius: 19px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.pbtn.ghost { flex: 0 0 74px; background: none; color: var(--text); border: 1px solid var(--border); }

.minimap { height: 96px; border-radius: 14px; overflow: hidden; position: relative; }
.minimap .map { filter: saturate(0.9); }
.minimap .dot { position: absolute; left: 50%; top: 48%; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); transform: translate(-50%, -50%); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo .card { padding: 10px; }
.duo small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 4px; }
.rows .row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.rows .row:last-child { border-bottom: 0; }
.rows .n { width: 14px; color: var(--muted); font-weight: 800; }
.rows .name { flex: 1; font-weight: 600; }
.rows .name small { display: block; color: var(--muted); font-weight: 500; font-size: 9.5px; }
.rows .v { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 48px; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.step h3 { font-size: 24px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); max-width: 320px; }
.step .phone { width: 260px; }

/* Map explainer */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip .split-visual { order: -1; } }
.split-copy { display: flex; flex-direction: column; gap: 20px; }
.split-visual { position: relative; display: flex; justify-content: center; }
.legend { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.legend .score { min-width: 58px; justify-content: center; }

/* Feature cards */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border-radius: 24px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature { will-change: transform; }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-edge); display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow); }
.feature h3 { font-size: 20px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Big quote band */
.band { text-align: center; padding: 104px 0; overflow: hidden; }
.band .title { max-width: 860px; margin: 0 auto; }
.band .glow { -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.band .glow span { width: 30%; height: 60%; filter: blur(90px); }
.band .glow span:nth-child(1) { left: 14%; top: 16%; }
.band .glow span:nth-child(2) { left: 36%; top: 4%; }
.band .glow span:nth-child(3) { left: 56%; top: 20%; }
.band .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; align-items: center; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 4px 22px; overflow: hidden; transition: background-color 0.3s ease; }
.faq details:hover { background: color-mix(in srgb, var(--surface) 70%, var(--border)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }
.faq details > p { transition: opacity 0.35s ease, transform 0.35s ease; }
.faq details.closing > p { opacity: 0; transform: translateY(-6px); }
.faq summary::after { transition: transform 0.35s cubic-bezier(.16, 1, .3, 1); }

/* ---------- Scroll reveal ---------- */
/* Hidden only once the script is running (it adds .js); without it everything simply shows. */
.js [data-reveal] {
  opacity: 0; transform: translateY(44px) scale(0.98); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 0.9s ease;
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="2"] { transition-delay: 0.08s; }
.js [data-reveal="3"] { transition-delay: 0.16s; }
.js [data-reveal="4"] { transition-delay: 0.24s; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 800; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 40px 0 8px; letter-spacing: -0.02em; }
.legal h3 { font-size: 18px; margin: 22px 0 4px; letter-spacing: -0.01em; }
.legal li { margin-bottom: 6px; }
.legal .summary { background: var(--surface); border-radius: 20px; padding: 16px 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .site-header nav .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .hero-visual { min-height: 0; padding: 20px 0; }
  .phone { width: 260px; }
  .band { padding: 80px 0; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Light / dark switch: one quick cross-fade of the whole page (where the browser supports it). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: ease; }
.theme-toggle svg { transition: transform 0.5s cubic-bezier(.16, 1, .3, 1); }
.theme-toggle.flip svg { animation: spin-in 0.55s cubic-bezier(.16, 1, .3, 1); }
@keyframes spin-in { from { transform: rotate(-120deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- App Store button (main action) ---------- */
.btn-store { position: relative; height: 58px; padding: 0 24px 0 18px; }
.btn-store .apple { margin-top: -3px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.05; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0; }
.btn-store em {
  position: absolute; top: -11px; right: -14px;
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: var(--great-bg); color: var(--great); border: 1px solid var(--bg);
}

/* ---------- Manifesto: pinned on screen while the words fill in, left to right ---------- */
.manifesto { position: relative; height: 195vh; }
.manifesto-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.manifesto-text {
  margin: 0; font-size: clamp(34px, 5.4vw, 64px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.08;
}
.manifesto-text .w {
  --p: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, var(--text) calc(var(--p) * 125% - 25%), color-mix(in srgb, var(--text) 15%, transparent) calc(var(--p) * 125%));
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-reduced-motion: reduce) {
  .manifesto { height: auto; padding: 96px 0; }
  .manifesto-pin { position: static; height: auto; }
  .manifesto-text .w { --p: 1; }
}

/* ---------- How it works: pinned phone, steps scroll past ---------- */
.story { display: grid; grid-template-columns: 1fr; gap: 40px; }
.story-steps { display: flex; flex-direction: column; gap: 72px; }
.story-step { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.story-num { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.story-step h3 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.story-step p { margin: 0; color: var(--muted); font-size: 18px; max-width: 420px; }
.story-step .step-phone { margin-top: 18px; width: 260px; }
.story-visual { display: none; }

@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: 64px; }
  .story-steps { gap: 0; }
  .story-step { min-height: 82vh; justify-content: center; align-items: flex-start; text-align: left; transition: opacity 0.5s ease; }
  .js .story-step { opacity: 0.25; }
  .js .story-step.active { opacity: 1; }
  .story-step .step-phone { display: none; }
  .story-visual { display: flex; justify-content: center; align-items: flex-start; position: relative; }
  .sticky-phone { position: sticky; top: calc(50vh - 300px); width: 290px; height: auto; align-self: flex-start; }
  .scr-stack { position: relative; width: 100%; height: 100%; }
  .scr { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
  .scr.on { opacity: 1; transform: none; }
  .story-visual .glow { position: absolute; inset: 0; }
}

/* ---------- Features: bento of real app pieces ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-half { grid-column: span 3; }
  .t-third { grid-column: span 2; }
  .t-full { grid-column: span 6; }
}
.tile {
  background: var(--surface); border-radius: 28px; padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden; position: relative;
}
.tile h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; margin-top: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 420px; }
.tile-visual { flex: 1; min-height: 190px; display: flex; align-items: center; justify-content: center; padding: 8px 0 14px; }

/* Public / Just me cards that swap selection */
.privacy-demo { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.pv {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--card); border: 1.5px solid var(--card-edge); box-shadow: var(--shadow); font-size: 14px;
  animation: pv-select 7s ease-in-out infinite;
}
.pv b { display: block; font-size: 14.5px; }
.pv small { display: block; color: var(--muted); font-size: 12px; }
.pv-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface); color: var(--text); animation: pv-icon 7s ease-in-out infinite; }
.pv-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--empty); flex-shrink: 0; animation: pv-tick 7s ease-in-out infinite; }
.pv-public, .pv-public .pv-icon, .pv-public .pv-check { animation-delay: -3.5s; }
@keyframes pv-select { 0%, 45% { border-color: var(--primary); } 55%, 95% { border-color: var(--card-edge); } 100% { border-color: var(--primary); } }
@keyframes pv-icon { 0%, 45% { background: var(--primary); color: var(--on-primary); } 55%, 95% { background: var(--surface); color: var(--text); } 100% { background: var(--primary); color: var(--on-primary); } }
@keyframes pv-tick { 0%, 45% { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); } 55%, 95% { border-color: var(--empty); background: transparent; box-shadow: none; } 100% { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); } }

/* Want to Try list */
.save-list { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow); border-radius: 18px; padding: 4px 14px; }
.save-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.save-row:last-child { border-bottom: 0; }
.save-row small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Photos and a note */
.note-card { width: 100%; max-width: 280px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow); border-radius: 18px; padding: 12px; transform: rotate(-2deg); }
.note-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.note-photos i { aspect-ratio: 1; border-radius: 10px; }
/* Soft, warm tones that read as food photos without pretending to be real ones. */
.note-photos i:nth-child(1) { background: radial-gradient(circle at 35% 40%, #F2B56B, #C9772F 55%, #8A4A1C); }
.note-photos i:nth-child(2) { background: radial-gradient(circle at 60% 45%, #E9D9A6, #B9A15C 55%, #6F6A3A); }
.note-photos i:nth-child(3) { background: radial-gradient(circle at 45% 55%, #E58A6B, #B24A32 55%, #6E2A1E); }
.note-card p { margin: 0; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4; }

/* "Checking before it goes public…" turning into "Public" */
.check-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--muted);
  position: relative;
}
.check-pill .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--muted); animation: spin 0.9s linear infinite, check-spin 6s ease infinite; }
.check-pill .c-done { display: none; color: var(--great); }
.check-pill .c-wait { animation: check-wait 6s ease infinite; }
.check-pill::after { content: "Public ✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: var(--great-bg); color: var(--great); font-weight: 700; opacity: 0; animation: check-done 6s ease infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes check-done { 0%, 55% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes check-wait { 0%, 55% { opacity: 1; } 62%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes check-spin { 0%, 55% { opacity: 1; } 62%, 92% { opacity: 0; } 100% { opacity: 1; } }

/* Settings rows */
.settings-demo { width: 100%; max-width: 280px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow); border-radius: 18px; padding: 2px 14px; font-size: 14px; font-weight: 600; }
.set-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row .tick { color: var(--great); font-weight: 800; }
.set-row.danger { color: var(--poor); }

/* Dishes from all over India, scrolling */
.t-full { padding-bottom: 28px; }
.marquee { display: flex; flex-direction: column; gap: 10px; margin: 18px -24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 44s; }
.dish-chip { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.dish-chip b { font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 999px; background: var(--surface); font-size: 13px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tile { transition: transform 0.4s cubic-bezier(.16, 1, .3, 1); }
.tile:hover { transform: translateY(-4px); }

/* Small grey text on grey cards: a touch darker so it stays easy to read (4.5:1 or better). */
.eyebrow, .tile p, .faq p, .legal .summary, .pv small, .save-row small, .dish-chip b { color: var(--muted-strong); }

/* 6. Phones: less empty space in the feature cards */
@media (max-width: 759px) { .tile-visual { min-height: 140px; } }

/* 7. Reduce Motion: show "Public" selected (the swap animation is off) */
@media (prefers-reduced-motion: reduce) {
  .pv-public { border-color: var(--primary); }
  .pv-public .pv-icon { background: var(--primary); color: var(--on-primary); }
  .pv-public .pv-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
  .check-pill::after { opacity: 0; }
}

/* 404 page */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 80px 20px; position: relative; overflow: hidden; }
.notfound .big { font-size: clamp(96px, 18vw, 180px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; position: relative; z-index: 1; }
.notfound .lead, .notfound .btn { position: relative; z-index: 1; }
