/* snapline.org — one stylesheet for the whole site.
 *
 * The palette is the iOS app's dark appearance, token for token, so the site
 * and the product are visibly the same object. If you retune the app's dark
 * mode (ios/Vision/DesignSystem/Theme.swift), change these to match.
 */

:root {
  --desk: #14161c;
  --bg: #1e212a;
  --card: #2a2e39;
  --control: #383d4b;
  --border: #3c4150;
  --border-strong: #4b5163;
  --divider: #333846;

  --ink: #ffffff;
  --body: #c7c7cf;
  --muted: #9a9aa2;
  --faint: #8a8a94;

  --blue: #6e9bf7;
  --blue-deep: #2563eb;
  --blue-ink: #a9c4fb;
  --amber: #f0b457;
  --green: #3ccb8a;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── Chrome ───────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 33, 42, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }

.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--body); font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--control);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 9px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--divider); }
  .nav-links .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #32343b; }
.btn-primary:hover { background: #86adf9; }
.btn-ghost {
  background: var(--control);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); }

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.eyebrow {
  color: var(--blue-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lede { font-size: 1.16rem; color: var(--body); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: 44px; }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero p.lede { font-size: 1.24rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { color: var(--faint); font-size: 0.9rem; margin-top: 16px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(110, 155, 247, 0.16);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }

.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #32343b;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.alt { background: var(--desk); }
.rule { border: 0; border-top: 1px solid var(--divider); margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
}
.stat-row div { text-align: center; }
.stat-row .k {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
}
.stat-row .v { color: var(--ink); font-weight: 700; font-size: 0.98rem; }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--control);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--body);
}

.tick { list-style: none; padding: 0; margin: 0; }
.tick li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
}

.cta-band {
  background: linear-gradient(140deg, #23304d, #1e212a 70%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 52px 40px;
  text-align: center;
}
.cta-band .hero-cta { justify-content: center; }

/* ── Pricing ──────────────────────────────────────────────────────────── */

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--blue); }
.plan .name { color: var(--ink); font-weight: 800; font-size: 1.16rem; }
.plan .ceiling {
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 6px 0 18px;
}
.plan .price { color: var(--ink); font-size: 2rem; font-weight: 800; }
.plan .per { color: var(--faint); font-size: 0.86rem; margin-bottom: 20px; }
.plan ul { margin: 0 0 24px; }
.plan .btn { margin-top: auto; }
.badge {
  display: inline-block;
  background: rgba(110, 155, 247, 0.18);
  color: var(--blue-ink);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* ── The hero phone ───────────────────────────────────────────────────── */

.device {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  background: #0b0c10;
  border: 10px solid #303239;
  border-radius: 46px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}
.device-screen {
  background: var(--bg);
  height: 660px;
  overflow: hidden;
  position: relative;
  font-size: 13px;
}
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 26px;
  background: #0b0c10;
  border-radius: 0 0 16px 16px;
  z-index: 6;
}
.screen-head {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: 34px 16px 10px;
  border-bottom: 1px solid var(--divider);
}
.screen-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.screen-brand svg { width: 18px; height: 18px; }
.screen-title { color: var(--ink); font-size: 1.5rem; font-weight: 800; }
.screen-sub { color: var(--faint); font-size: 0.72rem; margin-bottom: 10px; }
.screen-search {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  color: var(--faint);
  font-size: 0.78rem;
  display: flex;
  gap: 7px;
  align-items: center;
}
.screen-chips { display: flex; gap: 6px; margin-top: 9px; overflow: hidden; }
.screen-chips span {
  background: var(--control);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
}

.reel-mask { position: absolute; inset: 0; top: 0; overflow: hidden; }
.reel {
  padding: 0 16px 90px;
  animation: reel 26s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes reel {
  0%, 7% { transform: translateY(0); }
  25%, 32% { transform: translateY(-232px); }
  50%, 57% { transform: translateY(-464px); }
  75%, 82% { transform: translateY(-696px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { animation: none; }
}
.day { color: var(--ink); font-weight: 700; font-size: 0.86rem; margin: 14px 0 2px; }
.day-sub { color: var(--faint); font-size: 0.7rem; margin-bottom: 8px; }
.shot {
  border-radius: 12px;
  height: 148px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72));
}
.filed {
  position: absolute;
  left: 9px;
  bottom: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.filed .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.filed .dot.review { background: var(--amber); }

.screen-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  background: rgba(42, 46, 57, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 9px 6px 14px;
}
.screen-bar div {
  text-align: center;
  color: var(--faint);
  font-size: 0.6rem;
  font-weight: 600;
}
.screen-bar div.on { color: var(--blue); }
.screen-bar .fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #474952;
  display: grid;
  place-items: center;
  margin: -20px auto 3px;
}
.screen-bar .fab svg { width: 21px; height: 21px; }

/* ── Legal documents ──────────────────────────────────────────────────── */

.doc { padding: 60px 0 90px; }
.doc h1 { margin-bottom: 8px; }
.doc .updated {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.doc h2 {
  font-size: 1.32rem;
  margin: 42px 0 14px;
  padding-top: 6px;
}
.doc h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 9px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { color: var(--ink); background: var(--card); font-weight: 700; }
.doc .toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.doc .toc ol { margin-bottom: 0; }
.doc .toc li { margin-bottom: 6px; }
.note {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 1.6em;
}
.note p:last-child { margin-bottom: 0; }

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--desk);
  border-top: 1px solid var(--divider);
  padding: 56px 0 40px;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-grid h4 {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--ink); text-decoration: none; }
.foot-legal {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  color: var(--faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-addr { color: var(--faint); font-size: 0.85rem; line-height: 1.7; }

/* ── Snap ─────────────────────────────────────────────────────────────── */
/* The mascot. APNGs built by tools/build_mascot.py, same artefacts the app
   ships. They animate natively — no JS, no library — and `prefers-reduced-
   motion` cannot pause an APNG from CSS, so the reduced case swaps in a
   still poster instead. */

.mascot { display: block; height: auto; }

.hero-snap {
  position: absolute;
  left: -34px;
  bottom: -8px;
  width: 108px;
  z-index: 3;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.device-wrap { position: relative; }
@media (max-width: 940px) {
  .hero-snap { left: 0; width: 88px; }
}

.cta-band { position: relative; overflow: hidden; }
.cta-snap {
  width: 132px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
}

.mascot-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.mascot-row img { width: 116px; }

/* Reduced motion is handled in the MARKUP, not here: each mascot is a
   <picture> whose <source media="(prefers-reduced-motion: reduce)"> points at
   a still poster, so the browser picks ONE image and there is never a second
   one for CSS to hide. The previous version shipped two <img> tags and hid one
   with a rule in this file — which meant a stale copy of this file showed both,
   and that is exactly what happened. */
