/* ============================================================================
   AppMama — site styles

   The page is dressed the way the app is: the same phosphor palette, the same
   two typefaces (ui/theme/Theme.kt), the same rounded tonal surfaces stacked
   on near-black, and headlines in light Space Grotesk exactly like the app's
   own "What should we build?". Green is light, not paint — it glows out of
   the phone screens and the one action that matters, and is used sparingly
   everywhere else. Fonts are self-hosted so the page makes no third-party
   request; the privacy page would otherwise be lying.
   ========================================================================== */

/* ── Fonts ────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */

:root {
  /* DarkPalette, from Theme.kt */
  --ink:        #060a07;   /* near-black with a green undertone */
  --ink-deep:   #030504;
  --panel:      #0e1510;   /* tonal surface, a shade above the page */
  --raised:     #151e17;   /* the card that leads */
  --sunken:     #0b100c;
  --edge:       #1c2a1f;   /* hairline */
  --edge-hi:    #2a3b2d;
  --phos:       #4af078;   /* CRT green */
  --phos-mid:   #37955a;   /* the app's #2a7a44, lifted to read as text */
  --phos-dim:   #2a7a44;
  --amber:      #ffb454;
  --fog:        #a8b8aa;   /* body text */
  --fog-hi:     #e3ece4;
  --fog-dim:    #738474;   /* the app's #5c6b5e, lifted for small text */
  --alarm:      #ff5d5d;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;

  --gutter: clamp(16px, 4.4vw, 64px);
  --head-h: 64px;
  --measure: 60ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset-ish ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--phos); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--phos); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--phos);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--phos); color: var(--ink);
  padding: 10px 16px; font: 700 12px/1 var(--mono); letter-spacing: .06em;
}
.skip:focus { left: 0; }

/* ── Shared primitives ────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The app's own label voice: lowercase mono, opened up a little. */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.dim  { color: var(--fog-dim); }
.hi   { color: var(--phos); }
.warn { color: var(--amber); }
.bad  { color: var(--alarm); }

.lede {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--fog);
  max-width: 46ch;
  margin: 0;
}

.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0 0 22px;
  font: 400 12px/1.4 var(--mono); letter-spacing: .08em;
  color: var(--phos-mid);
}
.eyebrow .dot { color: var(--phos); }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--phos);
  background: var(--phos); color: var(--ink);
  font: 700 13px/1 var(--mono); letter-spacing: .04em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s linear, color .2s linear, border-color .2s linear;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 40px -10px rgba(74, 240, 120, .55);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ghost {
  background: transparent; color: var(--fog-hi); border-color: var(--edge-hi);
}
.btn--ghost:hover { border-color: var(--phos-dim); color: var(--phos); box-shadow: none; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 14px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 12px; }

/* The store button carries two lines, like a store badge, in our own type. */
.btn--store { gap: 14px; padding: 0 28px 0 22px; text-align: left; }
.btn--store svg { width: 22px; height: 22px; }
.btn--store span { display: grid; gap: 4px; }
.btn--store small { font: 400 10.5px/1 var(--mono); letter-spacing: .08em; opacity: .7; }
.btn--store b { font: 600 18px/1 var(--sans); letter-spacing: -.01em; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s linear, background .3s linear;
}
.top[data-scrolled="true"] {
  border-bottom-color: var(--edge);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
}
.top__in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--phos); }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; display: block; }
.brand b { font: 500 17px/1 var(--sans); letter-spacing: -.02em; color: var(--fog-hi); }

.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.top nav a:not(.btn) {
  font: 400 12.5px/1 var(--mono); letter-spacing: .06em;
  color: var(--fog-dim);
  transition: color .2s linear;
}
.top nav a:not(.btn):hover { color: var(--fog-hi); text-decoration: none; }
@media (max-width: 880px) { .top nav a.opt { display: none; } }
@media (max-width: 420px) { .top nav a:not(.btn) { display: none; } }

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

section { scroll-margin-top: calc(var(--head-h) + 12px); }

.band { padding: clamp(80px, 11vw, 160px) 0; position: relative; }

h2.head {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02; letter-spacing: -.045em;
  color: var(--fog-hi);
  margin: 0 0 24px;
  max-width: 16ch;
}
h2.head em { font-style: normal; color: var(--phos); }

.intro { margin-bottom: clamp(44px, 6vw, 72px); }
.intro .lede { max-width: 52ch; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate;
  overflow-x: clip;       /* the glow and comb run wide; never let them widen the page */
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
/* The light source: the phone's screen, washing the page around it. */
.hero::before {
  content: ""; position: absolute; z-index: -2;
  inset: -40% -20% -10% 30%;
  background:
    radial-gradient(40% 46% at 62% 46%, rgba(74, 240, 120, .17), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(74, 240, 120, .05), transparent 70%);
  pointer-events: none;
}
/* The app's scanline comb, only where the light falls. */
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0 -50vw;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  -webkit-mask-image: radial-gradient(42% 60% at 68% 46%, #000, transparent 75%);
  mask-image: radial-gradient(42% 60% at 68% 46%, #000, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.badge-live {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 30px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--edge-hi); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--fog);
  transition: border-color .2s linear, color .2s linear;
}
.badge-live:hover { text-decoration: none; border-color: var(--phos-dim); color: var(--fog-hi); }
.badge-live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--phos);
  box-shadow: 0 0 0 4px rgba(74, 240, 120, .16), 0 0 12px var(--phos);
}
.badge-live span { color: var(--fog-dim); }

h1 {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(46px, 6vw, 88px);
  line-height: .94; letter-spacing: -.058em;
  color: var(--fog-hi);
  margin: 0 0 clamp(26px, 3vw, 38px);
}
h1 em { font-style: normal; color: var(--phos); text-shadow: 0 0 40px rgba(74, 240, 120, .35); }

.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: clamp(32px, 4vw, 44px);
}

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 26px 0 0; padding: 0; list-style: none;
  font: 400 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--fog-dim);
}
.hero__facts li::before { content: "✓ "; color: var(--phos-mid); }

/* Desktop visitors are on the wrong device: hand them a code to scan. */
.qr {
  display: none;
  align-items: center; gap: 14px;
  margin-left: 6px; padding-left: 20px;
  border-left: 1px solid var(--edge);
  font: 400 11.5px/1.5 var(--mono); letter-spacing: .05em; color: var(--fog-dim);
}
.qr img {
  width: 58px; height: 58px; padding: 6px;
  background: #e9f2ea; border-radius: 10px;
}
@media (min-width: 1024px) and (hover: hover) { .qr { display: flex; } }

/* ── Phone ────────────────────────────────────────────────────────────────── */

.device {
  --w: 330px;
  position: relative;
  width: min(var(--w), 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: calc(var(--w) * .15);
  background: linear-gradient(150deg, #2c362e 0%, #0d120e 32%, #0a0e0b 68%, #222b24 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 0 0 2px #000,
    0 0 0 1px rgba(0, 0, 0, .9),
    0 50px 100px -30px rgba(0, 0, 0, .9),
    0 30px 120px -40px rgba(74, 240, 120, .38);
}
/* Side keys. */
.device::before, .device::after {
  content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #1a211b, #2d382f);
}
.device::before { top: 21%; height: 9%; }
.device::after  { top: 33%; height: 5%; }

.device__screen {
  position: relative; overflow: hidden;
  border-radius: calc(var(--w) * .125);
  background: var(--ink);
  padding-top: 7%;        /* a drawn status band: no tester's clock or battery */
}
/* Punch-hole camera. */
.device__screen::before {
  content: ""; position: absolute; z-index: 3; top: 2.4%; left: 50%;
  width: 3.4%; aspect-ratio: 1; transform: translate(-50%, 0);
  border-radius: 50%; background: #000;
  box-shadow: 0 0 0 1.5px #111811, inset 0 0 2px 1px rgba(80, 120, 255, .25);
}
/* Glass. */
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .06) 0%, transparent 34%);
  border-radius: inherit;
}
.device__screen img {
  display: block; width: 100%; height: auto; aspect-ratio: 720 / 1433;
}

/* A screen that holds several captures and shows one at a time. */
.device__screen--stack { display: grid; }
.device__screen--stack img {
  grid-area: 1 / 1;
  opacity: 0; transform: scale(1.015);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
.device__screen--stack img[data-on] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .device__screen--stack img { transition: none; transform: none; }
}

.hero .device { --w: 340px; animation: rise 1.1s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) { .hero .device { animation: none; } }

/* The light the screen throws onto the floor. */
.floor { position: relative; }
.floor::after {
  content: ""; position: absolute; left: 50%; bottom: -36px; z-index: -1;
  width: 120%; height: 90px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(74, 240, 120, .22), transparent 70%);
  filter: blur(8px);
}
@media (max-width: 960px) { .hero .device { --w: 290px; } }

/* ── Works-with strip ─────────────────────────────────────────────────────── */

.works {
  border-block: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
}
.works__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 40px; padding-block: 28px;
}
.works p { margin: 0; font: 400 12px/1.5 var(--mono); letter-spacing: .08em; color: var(--fog-dim); }
.works ul {
  display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 56px);
  margin: 0; padding: 0; list-style: none;
}
.works li {
  font: 300 clamp(22px, 2.6vw, 30px)/1 var(--sans); letter-spacing: -.03em;
  color: var(--fog);
}

/* ── Statement ────────────────────────────────────────────────────────────── */

.statement-band { text-align: center; }
.statement {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(34px, 5.8vw, 80px);
  line-height: 1.04; letter-spacing: -.05em;
  color: var(--fog-hi);
  max-width: 16ch;
  margin: 0 auto;
}
.statement em { font-style: normal; color: var(--phos); }
.statement-band .lede { margin: 34px auto 0; max-width: 54ch; color: var(--fog); }

/* ── How it works: four real screens, one phone ───────────────────────────── */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.flow__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.flow__step {
  min-height: 74vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 0 32px 34px;
  position: relative;
  opacity: .42;
  transition: opacity .45s var(--ease);
}
.flow__step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 8vh; }
.flow__step:last-child  { min-height: 64vh; }
.flow__step[data-on] { opacity: 1; }
/* The track: a line that fills as the steps go by. */
.flow__step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--edge);
}
.flow__step::after {
  content: ""; position: absolute; left: -4px; top: calc(50% - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--edge-hi);
  transition: background .3s linear, border-color .3s linear, box-shadow .3s linear;
}
.flow__step:first-child::after { top: calc(8vh + 8px); }
.flow__step[data-on]::after {
  background: var(--phos); border-color: var(--phos);
  box-shadow: 0 0 0 5px rgba(74, 240, 120, .14), 0 0 14px var(--phos);
}
.flow__n { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--phos-mid); margin: 0 0 16px; }
.flow__step h3 {
  margin: 0 0 14px;
  font: 300 clamp(30px, 3.4vw, 44px)/1.05 var(--sans); letter-spacing: -.04em;
  color: var(--fog-hi);
}
.flow__step p { margin: 0; max-width: 40ch; font-size: 17.5px; line-height: 1.62; }
.flow__step q { color: var(--fog-hi); quotes: "“" "”"; }

.flow__phone { position: relative; }
.flow__phone .device {
  /* Fits the viewport under the header: the frame is ~2.19× as tall as wide. */
  --w: min(330px, calc((100vh - var(--head-h) - 48px) / 2.19));
  position: sticky; top: calc(var(--head-h) / 2 + 50vh - var(--w) * 1.095);
}
/* Small screens: each step carries its own phone; the sticky one goes. */
.flow__inline { display: none; }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__phone { display: none; }
  .flow__step, .flow__step:first-child, .flow__step:last-child {
    min-height: 0; opacity: 1; padding: 0 0 64px 26px;
  }
  .flow__step::after, .flow__step:first-child::after { top: 6px; background: var(--phos); border-color: var(--phos); }
  .flow__inline { display: block; margin-top: 30px; }
  .flow__inline .device { --w: 250px; margin: 0; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  position: relative;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 40%, var(--ink)));
  padding: clamp(22px, 2.4vw, 30px);
}
.card h3 {
  margin: 0 0 6px;
  font: 400 26px/1.15 var(--sans); letter-spacing: -.03em; color: var(--fog-hi);
}
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.card .mono { color: var(--fog-dim); }

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

/* Providers */
.provider { display: flex; flex-direction: column; gap: 22px; min-height: 210px; }
.provider .mono:first-child { display: flex; justify-content: space-between; }
.provider h3 { font-size: clamp(28px, 2.6vw, 34px); font-weight: 300; margin-top: auto; }
.provider p { color: var(--fog); }
.provider p span { display: block; color: var(--fog-dim); font-size: 14px; }

/* The free way in — the one card lit from inside. */
.free {
  margin-top: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center;
  border-color: color-mix(in srgb, var(--phos) 34%, var(--edge));
  background:
    radial-gradient(60% 140% at 0% 0%, rgba(74, 240, 120, .12), transparent 60%),
    var(--panel);
}
.free h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 300; }
.free h3 em { font-style: normal; color: var(--phos); }
.free p { max-width: 64ch; }
.free .mono { color: var(--phos-mid); }
@media (max-width: 760px) { .free { grid-template-columns: minmax(0, 1fr); } }

/* Spec tiles */
.spec { min-height: 168px; display: flex; flex-direction: column; }
.spec .mono { margin-bottom: auto; padding-bottom: 26px; }
.spec b {
  display: block; margin-bottom: 6px;
  font: 300 clamp(26px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -.035em; color: var(--fog-hi);
}
.spec p { color: var(--fog-dim); font-size: 14.5px; }

/* Caveats: the amber of the app's "working" state. */
.caveat h3 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; margin-bottom: 10px; }
.caveat h3::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 180, 84, .6);
}

/* ── Split layout (heading left, content right) ───────────────────────────── */

.split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .split > :first-child { position: sticky; top: calc(var(--head-h) + 40px); } }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px;
  padding: 26px 0; border-top: 1px solid var(--edge);
}
.checks li:first-child { border-top: 0; padding-top: 4px; }
.checks li::before {
  content: "✓"; font: 700 14px/1.75 var(--mono); color: var(--phos);
}
.checks b {
  display: block; margin-bottom: 4px;
  font: 400 21px/1.3 var(--sans); letter-spacing: -.02em; color: var(--fog-hi);
}
.checks span { font-size: 16px; }
.note { margin: 30px 0 0; font-size: 14.5px; max-width: 60ch; color: var(--fog-dim); }

/* ── Get it ───────────────────────────────────────────────────────────────── */

.get {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  background:
    radial-gradient(45% 75% at 74% 100%, rgba(74, 240, 120, .2), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--ink-deep));
  padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 80px) 0;
}
.get__copy { padding-bottom: clamp(40px, 6vw, 80px); }
.get h2.head { max-width: 13ch; }
#install { padding-bottom: clamp(48px, 6vw, 80px); }
.get__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.get__cta .qr { margin-left: 0; }
.get__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 44px 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--edge);
}
.get__facts b { display: block; color: var(--fog-hi); font-weight: 500; font-size: 16px; }
.get__facts span { font-size: 14px; color: var(--fog-dim); line-height: 1.5; display: block; margin-top: 4px; }
@media (max-width: 560px) { .get__facts { grid-template-columns: minmax(0, 1fr); } }

/* The phone rises out of the panel's bottom edge, cut off by it. */
.get__phone { align-self: end; display: flex; justify-content: center; }
.get__phone .device {
  --w: 320px;
  margin-bottom: -46%;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
@media (max-width: 900px) {
  .get { grid-template-columns: minmax(0, 1fr); }
  .get__copy { padding-bottom: 0; }
  .get__phone .device { --w: 260px; margin-bottom: -60%; }
}

/* ── Code blocks (404 page) ───────────────────────────────────────────────── */

code {
  font-family: var(--mono); font-size: .86em;
  color: var(--fog-hi); background: var(--panel);
  border: 1px solid var(--edge); border-radius: 6px; padding: .1em .4em;
}
pre {
  margin: 0; overflow-x: auto;
  border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--sunken);
  padding: 20px clamp(16px, 2vw, 24px);
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--fog);
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
pre .c { color: var(--fog-dim); }
pre .g { color: var(--phos); }

/* ── Tables ───────────────────────────────────────────────────────────────── */

.tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--edge); border-radius: var(--r-md);
  background: var(--panel);
}
table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
}
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead th {
  font: 400 11.5px/1.4 var(--mono); letter-spacing: .08em;
  color: var(--fog-dim);
  border-bottom: 1px solid var(--edge);
}
tbody tr + tr { border-top: 1px solid var(--edge); }
tbody th { font-weight: 500; color: var(--fog-hi); }
td { color: var(--fog); }
td .dim { display: block; margin-top: 3px; }

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

.foot { border-top: 1px solid var(--edge); padding: 56px 0 64px; }
.foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 820px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__grid > :first-child { grid-column: 1 / -1; } }
.foot__tag { margin: 16px 0 0; font-size: 15px; color: var(--fog-dim); max-width: 30ch; }
.foot h6 {
  margin: 0 0 16px; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--fog-dim);
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot li a { font-size: 15px; color: var(--fog); }
.foot li a:hover { color: var(--phos); text-decoration: none; }
.foot__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--edge); }
.foot__legal p {
  margin: 0 0 6px; max-width: 90ch;
  font: 400 12px/1.8 var(--mono); letter-spacing: .02em; color: var(--fog-dim);
}
.foot__legal a { color: var(--fog); }

/* ── Document pages (privacy, terms) ──────────────────────────────────────── */

.doc { padding: clamp(48px, 7vw, 96px) 0 40px; max-width: 74ch; }
.doc h1 {
  font-size: clamp(42px, 6vw, 72px); margin-bottom: 18px;
}
.doc__meta {
  font: 400 12px/1.9 var(--mono); letter-spacing: .04em;
  color: var(--fog-dim); margin: 0 0 36px; padding-bottom: 28px;
  border-bottom: 1px solid var(--edge);
}
.doc h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin: 60px 0 16px;
  font-family: var(--sans); font-weight: 400; font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: -.03em; color: var(--fog-hi);
}
.doc h2 .n { font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--phos-mid); flex: none; }
.doc h3 {
  margin: 32px 0 10px;
  font: 500 18px/1.4 var(--sans); letter-spacing: -.01em;
  color: var(--fog-hi);
}
.doc p, .doc li { font-size: 16.5px; line-height: 1.75; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.doc ul li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--phos-dim);
}
.doc strong { color: var(--fog-hi); font-weight: 600; }
.doc .tbl-scroll { margin: 6px 0 24px; }
.doc .callout {
  border: 1px solid var(--edge); border-left: 3px solid var(--phos);
  border-radius: var(--r-md); background: var(--panel);
  padding: 20px 24px; margin: 0 0 24px;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc .callout--warn { border-left-color: var(--amber); }

.toc {
  border: 1px solid var(--edge); border-radius: var(--r-md);
  padding: 22px 26px; margin: 0 0 40px; background: var(--panel);
}
.toc h6 { margin: 0 0 14px; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--fog-dim); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; columns: 2; column-gap: 28px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { font-size: 15px; color: var(--fog); }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero) "  "; font: 400 12px var(--mono); color: var(--phos-mid); }
.toc a:hover { color: var(--phos); text-decoration: none; }

/* Placeholder the maintainer must replace before publishing. */
.todo {
  color: var(--amber); border-bottom: 1px dashed var(--amber);
  font-family: var(--mono); font-size: .9em;
}

/* ── Print ────────────────────────────────────────────────────────────────── */

@media print {
  :root { --ink: #fff; --panel: #fff; --fog: #222; --fog-hi: #000; --fog-dim: #555; --edge: #ccc; --phos: #0a6b30; --phos-mid: #0a6b30; --phos-dim: #0a6b30; }
  body { background: #fff; color: #222; }
  .top, .hero::before, .hero::after { display: none !important; }
  .doc { max-width: none; }
  a { color: #0a6b30; }
}
