/* ==========================================================================
   PixMap — marketing site design system
   Ported 1:1 from the app's pins design brief (docs/pins-design-prompt.md)
   and lib/theme/*. Golden-ratio type scale, Fibonacci spacing ladder,
   2.5px stroke, flat 4px offset shadows, radii 4/8/16 only.
   ========================================================================== */

/* ── Fonts (self-hosted; no third-party round-trip) ───────────────────── */
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/silkscreen-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/silkscreen-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Palette — pins brief §3. Web canvas uses the brandTeal ramp-50 mint,
     which is what the already-live 404 page uses. */
  --bg: #e9f2ec;
  --grid: #cbe1d2;
  --card: #f7fbf8;
  --ink: #0b211b;
  --shadow: #2f6f5b;
  --teal: #1e5f4f;
  --mint: #bdede0;
  --muted: #44554d;

  --green: #57a05a;
  --green-soft: #ddefd9;
  --amber: #e8a33d;
  --amber-soft: #f6e9c8;
  --red: #d65540;
  --red-soft: #f4d9cf;

  /* Tab accents — lifted from lib/widgets/pixel_icon.dart call sites. */
  --sky: #4d9fff;
  --coral: #ff5e62;
  --tangerine: #ffa62b;
  --violet: #6c5ce7;

  /* Type scale — 12 × φ = 19 × φ = 31, extended upward for the web
     (31 × φ ≈ 50, 50 × φ ≈ 81). No sizes outside this set. */
  --t-xs: 12px;
  --t-sm: 15px;
  --t-md: 19px;
  --t-lg: 31px;
  --t-xl: clamp(31px, 4.6vw, 50px);
  --t-2xl: clamp(34px, 6vw, 62px);

  /* Fibonacci spacing ladder — 8 · 13 · 21 · 34 · 55 · 89 · 144. */
  --s-1: 8px;
  --s-2: 13px;
  --s-3: 21px;
  --s-4: 34px;
  --s-5: 55px;
  --s-6: 89px;
  --s-7: 144px;

  /* Structure — brief §2. Three radii only; one stroke; one flat shadow. */
  --r-tag: 4px;
  --r-pill: 8px;
  --r-card: 16px;
  --stroke: 2.5px;
  --cell: 34px;
  --inset: 17px;
  --lift: 4px;

  --page: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1614;
    --grid: #16302a;
    --card: #12241f;
    --ink: #e7f2ec;
    --shadow: #2f6f5b;
    --teal: #7fb49c;
    --mint: #1e5f4f;
    --muted: #9db3aa;
    --green-soft: #1c3320;
    --amber-soft: #3a2f16;
    --red-soft: #3a201a;
    color-scheme: dark;
  }
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-6);
}
body {
  font-family: 'Quicksand', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* Graph paper — 34px cell, 17px phase, exactly as the app paints it
     (lib/widgets/isometric_grid_background.dart). */
  background-image: repeating-linear-gradient(
      0deg,
      var(--grid) 0 1px,
      transparent 1px var(--cell)
    ),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px var(--cell));
  background-position: var(--inset) var(--inset);
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
:focus-visible {
  outline: var(--stroke) solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-tag);
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
.px {
  font-family: 'Silkscreen', 'Courier New', monospace;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-2xl);
}
h2 {
  font-size: var(--t-xl);
}
h3 {
  font-size: var(--t-md);
}
p {
  text-wrap: pretty;
}
.lede {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: 1.5;
  max-width: 62ch;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: var(--t-xs);
  color: var(--muted);
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.wrap {
  width: min(100% - var(--s-4), var(--page));
  margin-inline: auto;
}
section {
  padding-block: var(--s-6);
}
.stack > * + * {
  margin-top: var(--s-3);
}
.section-head {
  max-width: 68ch;
  margin-bottom: var(--s-5);
}
.section-head .eyebrow {
  margin-bottom: var(--s-2);
}
.center {
  text-align: center;
  margin-inline: auto;
}

/* Eyebrow — the pixel face earns its keep on short labels only. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-xs);
  color: var(--teal);
  background: var(--mint);
  border-radius: var(--r-pill);
  padding: 6px 10px;
}

/* Phone-width rhythm: the 89px section gap reads as dead space once the
   columns collapse to one. Step the ladder down rather than overriding
   individual sections. */
@media (max-width: 640px) {
  section {
    padding-block: var(--s-5);
  }
  .hero {
    padding-block: var(--s-4) var(--s-3);
  }
  .cta {
    padding-block: var(--s-5);
  }
  .section-head {
    margin-bottom: var(--s-4);
  }
}

/* ── Isometric canvas — the 3D plane behind hero + CTA bands ──────────── */
/* True triangular isometric mesh: lines at ±30° spaced 34px, verticals at
   34 / cos(30°) ≈ 39.26px so every cell is equilateral. */
.iso {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.iso::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background-image: repeating-linear-gradient(
      30deg,
      var(--grid) 0 1px,
      transparent 1px var(--cell)
    ),
    repeating-linear-gradient(-30deg, var(--grid) 0 1px, transparent 1px var(--cell)),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 39.26px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 78%);
  opacity: 0.9;
}

/* ── Sticker card — lib/widgets/sticker_card.dart ─────────────────────── */
/* radius 16 · flat 4px/4px/0 shadow in --shadow · optional 2.5px ink border */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  padding: var(--s-3);
}
.card--bordered {
  border: var(--stroke) solid var(--ink);
}

/* 3D extrusion — stacked 1px steps read as a solid extruded block rather
   than a drop shadow. Reserved for hero-plane objects. */
.extrude {
  box-shadow: 1px 1px 0 var(--shadow), 2px 2px 0 var(--shadow), 3px 3px 0 var(--shadow),
    4px 4px 0 var(--shadow), 5px 5px 0 var(--shadow), 6px 6px 0 var(--shadow);
}

/* Interactive lift — press the sticker into the page on hover. */
.hoverable {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.hoverable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.hoverable:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}

/* ── Glyphs ───────────────────────────────────────────────────────────── */
/* shape-rendering: crispEdges mirrors the app's isAntiAlias = false. */
.g {
  width: 1em;
  height: 1em;
  fill: currentColor;
  shape-rendering: crispEdges;
  flex: none;
}
.g-lg {
  width: 34px;
  height: 34px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--t-sm);
  border: var(--stroke) solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
/* In dark mode --teal is the light end of the ramp, so white-on-teal loses
   contrast — flip the label to ink instead. */
@media (prefers-color-scheme: dark) {
  .btn--primary,
  .nav a.btn--primary {
    color: #06120f;
  }
  .store {
    background: var(--card);
    color: var(--ink);
  }
}
.btn--mint {
  background: var(--mint);
  color: var(--ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Store badges — two-line lockup, sticker shell. */
.store {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px var(--s-3);
  border-radius: var(--r-pill);
  border: var(--stroke) solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.store:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.store__k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.2;
}
.store__v {
  display: block;
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-sm);
  line-height: 1.2;
}
.store[aria-disabled='true'] {
  opacity: 0.72;
  pointer-events: none;
  box-shadow: 2px 2px 0 var(--shadow);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: var(--s-2);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.hdr[data-stuck='true'] {
  border-bottom-color: var(--grid);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-md);
  color: var(--ink);
}
.brand .g {
  width: 21px;
  height: 21px;
  color: var(--coral);
}
.nav {
  display: flex;
  gap: var(--s-3);
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px;
  border-bottom: var(--stroke) solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--mint);
}
/* `.nav a` would otherwise out-specify `.btn--primary`'s own colour. */
.nav a.btn {
  padding: var(--s-1) var(--s-2);
  font-size: var(--t-xs);
  border-bottom-width: var(--stroke);
  color: var(--ink);
}
.nav a.btn--primary {
  color: #fff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: var(--s-1);
  border-radius: var(--r-pill);
  border: var(--stroke) solid var(--ink);
  background: var(--card);
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    inset-inline: var(--s-3);
    top: calc(100% + var(--s-1));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2);
    background: var(--card);
    border: var(--stroke) solid var(--ink);
    border-radius: var(--r-card);
    box-shadow: var(--lift) var(--lift) 0 var(--shadow);
    display: none;
  }
  .nav[data-open='true'] {
    display: flex;
  }
  .nav a {
    padding: var(--s-2);
    border-bottom: 0;
    border-radius: var(--r-pill);
  }
  .nav a:hover {
    background: var(--mint);
  }
  .nav .btn {
    margin-top: var(--s-1);
    justify-content: center;
    font-size: var(--t-sm);
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding-block: var(--s-6) var(--s-5);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-5);
  align-items: center;
}
.hero h1 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-block: var(--s-3) var(--s-3);
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero .lede {
  font-size: clamp(16px, 2.2vw, var(--t-md));
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  color: var(--muted);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__meta .g {
  color: var(--teal);
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .hero__art {
    order: -1;
  }
}

/* ── Phone mockup — the app, rebuilt in CSS at app-exact numbers ──────── */
.phone {
  width: 288px;
  margin-inline: auto;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--s-4);
  background: var(--bg);
  padding: 8px;
  box-shadow: 6px 6px 0 var(--shadow);
  position: relative;
}
.phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  background-image: repeating-linear-gradient(
      0deg,
      var(--grid) 0 1px,
      transparent 1px 17px
    ),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 17px);
  height: 452px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone--tilt {
  transform: rotate(-1.5deg);
}

/* app bar */
.pbar {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) 10px;
  flex: none;
}
.pbar__title {
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-xs);
  color: var(--ink);
}
.pbar__av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex: none;
}
.pbar__av .g {
  width: 13px;
  height: 13px;
}
.pbar__sp {
  margin-left: auto;
}
.pbar .g {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

/* scrollable body */
.pbody {
  flex: 1;
  overflow: hidden;
  padding-bottom: var(--s-1);
}

/* pin card — place_item_card.dart: radius 16, no border, 4/4/0 shadow */
.pin {
  margin: var(--s-1) 10px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: 3px 3px 0 var(--shadow);
  overflow: hidden;
}
.pin__hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
}
.pin__av {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex: none;
}
.pin__t {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pin__sub {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
}
.pin__hd .g {
  width: 12px;
  height: 12px;
  color: var(--muted);
  flex: none;
}
/* full-bleed φ media block — brief §1: aspect-ratio 1.618/1 */
.pin__img {
  aspect-ratio: 1.618 / 1;
  background: linear-gradient(135deg, var(--mint), var(--grid));
  display: grid;
  place-items: center;
  color: var(--teal);
  position: relative;
}
.pin__img .g {
  width: 34px;
  height: 34px;
  opacity: 0.5;
}
.pin__ft {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px 8px 11px;
}
.pin__tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
}
/* distance pill — fill = distanceColor(km) @ 22%, radius 8, w800 */
.pin__km {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
}
.pin__km .g {
  width: 11px;
  height: 11px;
  color: var(--teal);
}
.km--near {
  background: color-mix(in srgb, var(--green) 22%, transparent);
}
.km--mid {
  background: color-mix(in srgb, var(--amber) 22%, transparent);
}
.km--far {
  background: color-mix(in srgb, var(--red) 22%, transparent);
}
.pin__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--amber);
}
.pin__stars .g {
  width: 11px;
  height: 11px;
}

/* bottom nav — home_shell.dart: gradient #2F6F5B → #0B211B, h60, Silkscreen 12 */
.pnav {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(90deg, var(--shadow), #0b211b);
  padding: 7px 0 9px;
}
.pnav div {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-family: 'Silkscreen', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
}
.pnav .g {
  width: 17px;
  height: 17px;
}
.pnav [data-on] {
  color: var(--mint);
}

/* floating chips that break the phone frame */
.float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-pill);
  background: var(--card);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  font-size: var(--t-xs);
  font-weight: 700;
  white-space: nowrap;
}
.float .g {
  width: 15px;
  height: 15px;
}
.float--a {
  top: 52px;
  left: -46px;
  color: var(--teal);
}
.float--b {
  bottom: 96px;
  right: -40px;
  color: var(--coral);
}
/* Below this the phone is only ~288px wide, so a floating chip can only sit
   on top of the card content it is meant to point at. Drop them — they are
   decorative and already aria-hidden. */
@media (max-width: 560px) {
  .float {
    display: none;
  }
}

/* ── Grids ────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

/* Feature card — 21px pad against 13px internal gaps (21:13 = φ) */
.feat {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.feat__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  border: var(--stroke) solid var(--ink);
  flex: none;
}
.feat__ico .g {
  width: 22px;
  height: 22px;
  color: var(--ink);
}
.feat h3 {
  font-size: var(--t-md);
}
.feat p {
  font-size: var(--t-sm);
  color: var(--muted);
}
.ic--sky {
  background: color-mix(in srgb, var(--sky) 30%, var(--card));
}
.ic--coral {
  background: color-mix(in srgb, var(--coral) 30%, var(--card));
}
.ic--amber {
  background: color-mix(in srgb, var(--tangerine) 34%, var(--card));
}
.ic--violet {
  background: color-mix(in srgb, var(--violet) 26%, var(--card));
}
.ic--mint {
  background: var(--mint);
}
.ic--green {
  background: var(--green-soft);
}

/* Numbered steps */
.step {
  padding: var(--s-3);
  position: relative;
}
.step__n {
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-lg);
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--s-2);
  display: block;
}
.step h3 {
  margin-bottom: var(--s-1);
}
.step p {
  font-size: var(--t-sm);
  color: var(--muted);
}

/* Comparison table */
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--t-sm);
  overflow: hidden;
  border-radius: var(--r-card);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  background: var(--card);
}
.cmp th,
.cmp td {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--grid);
  vertical-align: top;
}
.cmp thead th {
  font-family: 'Silkscreen', monospace;
  font-size: var(--t-xs);
  background: var(--mint);
  color: var(--ink);
  white-space: nowrap;
}
.cmp tbody tr:last-child td {
  border-bottom: 0;
}
.cmp td:first-child {
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Quote / callout band */
.band {
  padding: var(--s-5) var(--s-4);
  text-align: center;
}
.band h2 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  font-size: var(--t-lg);
  margin-bottom: var(--s-2);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: var(--s-2);
  max-width: 76ch;
}
.faq details {
  background: var(--card);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-weight: 700;
  font-size: var(--t-sm);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .g {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--teal);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary .g {
  transform: rotate(90deg);
}
.faq .faq__a {
  padding: 0 var(--s-3) var(--s-3);
  color: var(--muted);
  font-size: var(--t-sm);
}

/* ── Prose (legal + long-form pages) ──────────────────────────────────── */
.prose {
  max-width: 76ch;
  font-size: var(--t-sm);
}
.prose h2 {
  font-size: var(--t-lg);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  scroll-margin-top: var(--s-6);
}
.prose h3 {
  font-size: var(--t-md);
  margin-top: var(--s-4);
  margin-bottom: var(--s-1);
}
.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-top: var(--s-2);
}
.prose ul,
.prose ol {
  padding-left: var(--s-3);
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.prose strong {
  font-weight: 700;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--grid);
  margin-block: var(--s-4);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-xs);
}
.prose th,
.prose td {
  border: 1px solid var(--grid);
  padding: var(--s-1) var(--s-2);
  text-align: left;
}
.prose th {
  background: var(--mint);
  font-weight: 700;
}
.prose code {
  font-family: 'Silkscreen', monospace;
  font-size: 0.85em;
  background: var(--mint);
  padding: 1px 5px;
  border-radius: var(--r-tag);
}

/* Page masthead for subpages */
.masthead {
  padding-block: var(--s-5) var(--s-4);
}
.masthead h1 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  font-size: var(--t-xl);
  margin-block: var(--s-2);
}
.crumb {
  font-size: var(--t-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumb a {
  color: var(--teal);
  font-weight: 700;
}
.crumb .g {
  width: 10px;
  height: 10px;
}

/* Table of contents */
.toc {
  padding: var(--s-3);
  margin-bottom: var(--s-4);
}
.toc h2 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  font-size: var(--t-xs);
  margin: 0 0 var(--s-2);
  color: var(--teal);
}
.toc ol {
  margin: 0;
  padding-left: var(--s-3);
  font-size: var(--t-xs);
  columns: 2;
  column-gap: var(--s-4);
}
.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}
.toc a {
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding-block: var(--s-6);
}
.cta h2 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  margin-bottom: var(--s-2);
}
.cta .btn-row {
  justify-content: center;
  margin-top: var(--s-4);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.ftr {
  border-top: var(--stroke) solid var(--ink);
  margin-top: var(--s-5);
  padding-block: var(--s-5) var(--s-4);
  background: var(--card);
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-4);
}
.ftr h2 {
  font-family: 'Silkscreen', monospace;
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--teal);
  margin-bottom: var(--s-2);
}
.ftr ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-1);
  font-size: var(--t-sm);
}
.ftr a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ftr__legal {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--grid);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  font-size: var(--t-xs);
  color: var(--muted);
}
.ftr__legal .brand {
  font-size: var(--t-sm);
}
@media (max-width: 800px) {
  .ftr__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .ftr__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Motion ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d='1'] {
  transition-delay: 0.08s;
}
.reveal[data-d='2'] {
  transition-delay: 0.16s;
}
.reveal[data-d='3'] {
  transition-delay: 0.24s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.bob {
  animation: bob 4.5s ease-in-out infinite;
}
.bob--slow {
  animation-duration: 6s;
  animation-delay: -1.5s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Print (legal pages get printed / filed) ──────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .hdr,
  .ftr,
  .toc,
  .cta,
  .nav-toggle {
    display: none !important;
  }
  .prose {
    max-width: none;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 10px;
  }
}
