/* whalealert.fun: one stylesheet for every page.
   Brand: docs/brand/README.md (abyss ground, signal blue, amber only for live moments, Archivo).
   Nothing here hides content unless site.js has started and the content is below the fold:
   every page reads complete without JavaScript. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --abyss: #050A18;
  --trench: #0C1733;
  --shelf: #1A2C57;
  --signal: #4C7DFF;
  --action: #3562EA;
  --action-press: #2448D6;
  --amber: #FFC24B;
  --foam: #E9F0FF;
  --mist: #93A3C7;
  /* Light ground (wallets, fees, documents) */
  --paper: #F2F5FD;
  --card: #FFFFFF;
  --ink: #050A18;
  --ink-soft: #3A4766;
  --pos-ink: #05774A;
  --neg-ink: #C02A3B;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --wide: 118%;
  --section: clamp(88px, 11vw, 168px);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* The type scale: seven sizes. */
  --t-micro: 13px;
  --t-small: 15px;
  --t-body: 18px;
  --t-lead: 21px;
  --t-head: clamp(24px, 2.1vw, 30px);
  --t-title: clamp(38px, 5.1vw, 76px);
  --t-display: clamp(42px, 11.2vw, 56px);
}
@media (min-width: 700px) {
  :root { --t-display: clamp(56px, 6.9vw, 108px); --t-body: 19px; --t-lead: 22px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
/* On the light and blue sections amber is too faint to see (1.5:1 and 2.3:1): use ink there. */
.wallets :focus-visible, .how :focus-visible, .fees :focus-visible, .get :focus-visible, .doc-wrap :focus-visible { outline-color: var(--ink); }
::selection { background: var(--signal); color: var(--abyss); }

/* `hidden` must win over component display rules (.btn is inline-flex). */
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--foam); color: var(--abyss); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Shared type */
.title {
  font-size: var(--t-title);
  font-stretch: var(--wide);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease;
}
.textlink:hover { text-decoration-color: var(--amber); }

/* Buttons: one shape, fully round. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: var(--t-body);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.btn:hover { background: var(--action-press); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--t-small); }
.btn--ink { background: var(--abyss); color: var(--foam); }
.btn--ink:hover { background: var(--trench); }
.btn--quiet { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.btn--quiet:hover { background: #E8EEFC; }

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foam);
  text-decoration: none;
  font-size: var(--t-lead);
  font-weight: 700;
  font-stretch: var(--wide);
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a { color: var(--foam); text-decoration: none; font-size: var(--t-small); font-weight: 500; }
.bar__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--amber); }
.bar .btn { margin-left: 8px; }
@media (max-width: 899px) {
  .bar__nav { display: none; }
  .bar .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- Home: hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 0;
}
.hero__title {
  font-size: var(--t-display);
  font-stretch: var(--wide);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 9.5em;
}
.hero__lede { margin-top: 28px; max-width: 31em; font-size: var(--t-lead); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero__qr { display: none; }
.hero__device { margin: 0; position: relative; z-index: 2; }
.hero__caption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: 26em;
  margin-bottom: 16px;
  color: var(--mist);
  font-size: var(--t-small);
  line-height: 1.45;
}
.live {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-1px);
}
@media (max-width: 899px) {
  .hero__device { max-width: 420px; width: 100%; justify-self: center; }
  .hero__device .phone { height: 620px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
  .hero__device .phone__screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: auto; height: 100%; }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 400px);
    column-gap: clamp(40px, 6vw, 112px);
    align-items: start;
  }
  .hero__copy { padding-top: clamp(16px, 4vh, 56px); }
  .hero__device { margin-bottom: -220px; }
  .hero__qr {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 30em;
    margin-top: clamp(48px, 9vh, 104px);
    color: var(--mist);
    font-size: var(--t-small);
    line-height: 1.45;
  }
  .hero__qr img { flex: none; width: 112px; height: 112px; padding: 9px; background: #fff; border-radius: 12px; }
}

/* The phone: an interface fragment drawn from the real lock screen and push layout. */
.phone {
  container-type: inline-size;
  padding: 11px;
  border-radius: 54px;
  background: #11141C;
  box-shadow: inset 0 0 0 1.5px #2B3245;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 2670;
  border-radius: 43px;
  background: #0A132C;
  padding: 0 4.4cqw;
  color: var(--foam);
}
.phone__screen::before {
  content: "";
  position: absolute;
  top: 3.4cqw;
  left: 50%;
  width: 3.4cqw;
  height: 3.4cqw;
  margin-left: -1.7cqw;
  border-radius: 50%;
  background: #000;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.9cqw 2.4cqw 0;
  font-size: 3.3cqw;
  font-weight: 600;
}
.phone__icons { display: flex; gap: 1.4cqw; }
.phone__icons i { display: block; width: 3.2cqw; height: 3.2cqw; border-radius: 0.8cqw; background: var(--foam); opacity: 0.9; }
.phone__icons i:nth-child(1) { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone__icons i:nth-child(2) { clip-path: polygon(50% 100%, 0 25%, 100% 25%); }
.phone__icons i:nth-child(3) { width: 1.8cqw; border-radius: 0.4cqw; }
.lock__time {
  margin-top: 9cqw;
  text-align: center;
  font-size: 21cqw;
  font-weight: 300;
  font-stretch: 105%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lock__date { margin-top: 2.4cqw; text-align: center; font-size: 4.1cqw; font-weight: 500; }
.pushes { list-style: none; display: grid; gap: 1.6cqw; margin-top: 9cqw; }
.push {
  display: grid;
  grid-template-columns: 8.4cqw minmax(0, 1fr);
  gap: 3cqw;
  align-items: start;
  padding: 3.6cqw 4cqw;
  border-radius: 2cqw;
  background: #1C2539;
}
.push:first-child { border-top-left-radius: 5.4cqw; border-top-right-radius: 5.4cqw; }
.push:last-child { border-bottom-left-radius: 5.4cqw; border-bottom-right-radius: 5.4cqw; }
.push__icon {
  display: grid;
  place-items: center;
  width: 8.4cqw;
  height: 8.4cqw;
  border-radius: 50%;
  background: var(--signal);
  transition: box-shadow 600ms ease;
}
.push__icon svg { width: 72%; height: 72%; }
.push.is-new .push__icon { box-shadow: 0 0 0 0.7cqw #1C2539, 0 0 0 1.3cqw var(--amber); }
.push__body { display: grid; gap: 0.5cqw; min-width: 0; }
.push__meta { font-size: 3.2cqw; color: var(--mist); }
.push__meta time::before { content: "\00a0\2022\00a0"; }
.push__title { font-size: 3.9cqw; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.push__text { font-size: 3.6cqw; color: #C3CEE8; line-height: 1.35; }
.push--quiet .push__title { font-weight: 500; }

/* ---------------------------------------------------------------- Home: wallets */
.wallets { background: var(--paper); color: var(--ink); }
.wallets > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wallets__head { padding-top: clamp(72px, 9vw, 120px); }
.wallets__intro { margin-top: 28px; max-width: 34em; }
@media (min-width: 900px) {
  .wallets__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 400px);
    column-gap: clamp(40px, 6vw, 112px);
  }
  .wallets__head > * { grid-column: 1; }
}
.board { margin-top: 56px; }
.board:focus-visible { outline-offset: 8px; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.board thead th {
  padding: 0 18px 6px;
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.board thead th:nth-child(2) { text-align: left; }
.board tbody tr { background: var(--card); transition: background-color 160ms ease; }
.board tbody tr:hover { background: #F8FAFF; }
.board td, .board tbody th { padding: 16px 18px; text-align: right; font-size: var(--t-body); font-weight: 450; vertical-align: middle; }
.board tbody > tr > :first-child { border-radius: 16px 0 0 16px; }
.board tbody > tr > :last-child { border-radius: 0 16px 16px 0; }
.board .board__rank { width: 56px; color: var(--ink-soft); font-size: var(--t-small); }
.board .board__who { display: flex; align-items: center; gap: 14px; text-align: left; }
.ident { flex: none; width: 42px; height: 42px; border-radius: 11px; overflow: hidden; }
.ident svg { width: 100%; height: 100%; }
.board__name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; font-size: var(--t-body); font-weight: 650; line-height: 1.25; }
.board__addr { font-size: var(--t-small); font-weight: 450; color: var(--ink-soft); text-decoration: none; }
.board__addr:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.flag { padding: 2px 9px; border-radius: 999px; background: #E3EAFB; color: var(--ink-soft); font-size: var(--t-micro); font-weight: 600; }
.board .board__pnl { font-size: var(--t-head); font-weight: 650; font-stretch: 80%; letter-spacing: -0.01em; }
.board .board__last { color: var(--ink-soft); font-size: var(--t-small); white-space: nowrap; }
.pos { color: var(--pos-ink); }
.neg { color: var(--neg-ink); }
.board .board__empty td { text-align: left; color: var(--ink-soft); border-radius: 16px; }
.board__all { display: none; }
.wallets__foot {
  display: grid;
  gap: 6px;
  padding-top: 22px;
  padding-bottom: var(--section);
  color: var(--ink-soft);
  font-size: var(--t-small);
}
.wallets__foot a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board table, .board tbody { display: block; }
  .board tbody tr {
    display: grid;
    grid-template-columns: 24px repeat(4, minmax(0, 1fr));
    grid-template-areas: "rank who who who pnl" "rank a b c d";
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    margin-bottom: 8px;
    padding: 16px 16px 16px 12px;
    border-radius: 16px;
  }
  .board tbody td, .board tbody th { padding: 0; border-radius: 0 !important; }
  .board .board__rank { grid-area: rank; width: auto; align-self: start; padding-top: 11px; text-align: left; }
  .board .board__who { grid-area: who; gap: 12px; min-width: 0; }
  .board .board__pnl { grid-area: pnl; font-size: var(--t-head); }
  .ident { width: 40px; height: 40px; border-radius: 10px; }
  .board__name { column-gap: 8px; }
  .board tbody td[data-label] { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-size: var(--t-small); }
  .board tbody td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: var(--t-micro); }
  .board .board__pnl[data-label] { align-items: flex-end; text-align: right; font-size: var(--t-head); }
  .board .board__pnl[data-label]::before { content: none; }
  .board tbody tr > td:nth-child(4) { grid-area: a; }
  .board tbody tr > td:nth-child(5) { grid-area: b; }
  .board tbody tr > td:nth-child(6) { grid-area: c; }
  .board tbody tr > td:nth-child(7) { grid-area: d; }
  .board .board__empty { display: block; }
  .board.is-clipped tbody tr:nth-child(n+9) { display: none; }
  .board__all { display: block; margin-top: 8px; }
}

/* ---------------------------------------------------------------- Home: how */
.how { background: var(--signal); color: var(--ink); padding: var(--section) 0; }
.how > .title { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.steps {
  list-style: none;
  display: grid;
  gap: 40px;
  max-width: var(--max);
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding: 0 var(--gutter);
}
.step__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1335;
  object-fit: cover;
  border: 8px solid var(--abyss);
  border-radius: 34px;
  background: var(--abyss);
}
.step__shot[hidden] { display: none; }
.step h3 { font-size: var(--t-head); font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.1; }
.step p { margin-top: 12px; max-width: 24em; }
/* Phones: each screen at a readable width, its words underneath. */
@media (max-width: 699px) {
  .steps { gap: 56px; }
  .step__shot { max-width: 320px; border-width: 6px; border-radius: 28px; }
  .step__text { margin-top: 24px; }
}
/* Tablets and up: the three screens side by side. */
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); }
  .step__shot { max-width: 340px; }
  .step__text { margin-top: 32px; }
}
@media (min-width: 900px) {
  .step__text { margin-top: 40px; }
  .step:nth-child(2) { margin-top: 64px; }
  .step:nth-child(3) { margin-top: 128px; }
}

/* ---------------------------------------------------------------- Home: keys */
.keys { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.keys__title { max-width: 12em; }
.keys__body { display: grid; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }
.keys__text { max-width: 30em; }
.keys__more { margin-top: 20px; }
.keys__more a, .faq a, .foot a { color: var(--foam); text-underline-offset: 4px; }
.keys__more a { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.facts div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: var(--trench);
}
.facts dt { font-size: var(--t-small); line-height: 1.4; color: var(--foam); }
.facts dd {
  margin: 0;
  font-size: clamp(38px, 3.9vw, 56px);
  font-weight: 700;
  font-stretch: var(--wide);
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.facts div:last-child { background: var(--shelf); }
@media (min-width: 1000px) {
  .keys__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts dt { font-size: var(--t-body); }
}

/* ---------------------------------------------------------------- Home: fees */
.fees {
  display: grid;
  gap: 48px;
  padding: var(--section) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--paper);
  color: var(--ink);
}
.fees__head p { margin-top: 28px; max-width: 30em; }
.plans { display: grid; gap: 12px; width: 100%; }
.plan { padding: 28px; border-radius: var(--radius); background: var(--card); }
.plan__name { font-size: var(--t-head); font-stretch: var(--wide); letter-spacing: -0.02em; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.plan li b { font-size: var(--t-lead); font-weight: 700; }
.plan--pro { background: var(--abyss); color: var(--foam); }
.plan__price { margin-top: 8px; font-size: var(--t-lead); font-weight: 700; }
.plan__price span { font-size: var(--t-body); font-weight: 400; color: var(--ink-soft); }
.plan--pro .plan__price span { color: inherit; opacity: 0.75; }
.plans__note { color: var(--ink-soft); }
.seeker { padding: 28px 32px; border-radius: var(--radius); background: var(--signal); color: var(--ink); }
.seeker__line { font-size: var(--t-head); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.15; }
.seeker p + p { margin-top: 12px; }
.seeker a { font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seeker, .plans__note { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .fees { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 112px); align-items: start; }
}

/* ---------------------------------------------------------------- Home: questions */
.faq { max-width: 980px; margin: 0 auto; padding: var(--section) var(--gutter); }
.faq__list { display: grid; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.qa { border-radius: 16px; background: var(--trench); transition: background-color 160ms ease; }
.qa:hover, .qa[open] { background: var(--shelf); }
.qa summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  width: 14px;
  height: 14px;
  justify-self: end;
  border-right: 2.5px solid var(--foam);
  border-bottom: 2.5px solid var(--foam);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 220ms var(--ease);
}
.qa[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa__a { padding: 0 24px 24px; max-width: 44em; }

/* ---------------------------------------------------------------- Home: get */
.get {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 28px;
  padding: var(--section) var(--gutter);
  background: var(--signal);
  color: var(--ink);
}
.get .title { max-width: 12em; }
.get__lede { max-width: 32em; }
.get .btn { min-height: 64px; padding: 0 36px; }
/* The QR code is for anyone not on Android (a computer, an iPhone): site.js hides it on Android,
   where the store button opens the listing. Without JavaScript everyone sees it. */
.get__qr { display: flex; align-items: center; gap: 16px; max-width: 30em; margin-top: 12px; text-align: left; font-size: var(--t-small); }
.get__qr img { flex: none; width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: 12px; }
.get__qr[hidden] { display: none; }
@media (min-width: 900px) {
  .get__qr { gap: 20px; }
  .get__qr img { width: 132px; height: 132px; padding: 10px; border-radius: 14px; }
}

/* ---------------------------------------------------------------- Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.foot__top { display: grid; gap: 32px; }
.foot__line { max-width: 18em; font-size: var(--t-head); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.15; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.foot__nav a { text-decoration: none; font-size: var(--t-small); }
.foot__nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
/* Bigger tap areas without moving anything: the padding is taken back by an equal negative margin.
   Footer links keep 6px each way, so neighbouring rows (12px apart) touch but never overlap. */
.board__addr { padding-block: 12px; margin-block: -12px; }
.foot__nav a { padding-block: 6px; margin-block: -6px; }
.foot__legal { margin-top: 56px; max-width: 60em; color: var(--mist); font-size: var(--t-micro); line-height: 1.6; }
.foot__legal a { color: var(--mist); }
@media (min-width: 900px) {
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__nav { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- Documents */
.doc-hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.doc-hero__title { font-size: var(--t-title); font-stretch: var(--wide); font-weight: 700; line-height: 0.98; letter-spacing: -0.032em; max-width: 14em; text-wrap: balance; }
.doc-hero__updated { margin-top: 20px; color: var(--mist); font-size: var(--t-small); }
.doc-hero__lede { margin-top: 24px; max-width: 34em; font-size: var(--t-lead); }
.doc-hero .actions { margin-top: 32px; }
.doc-wrap { background: var(--paper); color: var(--ink); }
.doc {
  display: grid;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) var(--section);
}
.doc__toc { display: grid; gap: 4px; align-content: start; }
.doc__toc a { padding: 6px 0; color: var(--ink-soft); text-decoration: none; font-size: var(--t-small); line-height: 1.35; }
.doc__toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc__body { max-width: 44em; min-width: 0; }
.doc__body h2 { margin: 56px 0 16px; font-size: var(--t-head); font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.12; scroll-margin-top: 24px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin: 32px 0 10px; font-size: var(--t-lead); line-height: 1.25; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__body p + ol, .doc__body ol + p, .doc__body table + p, .doc__body p + table, .doc__body p + div, .doc__body div + p { margin-top: 16px; }
.doc__body ul, .doc__body ol { padding-left: 1.3em; display: grid; gap: 10px; }
.doc__body li::marker { color: var(--ink-soft); }
.doc__body a:not(.btn) { color: var(--action); text-underline-offset: 3px; }
.doc__body a:not(.btn):hover { color: var(--ink); }
.doc__body strong, .doc__body b { font-weight: 650; }
.doc__lead { font-size: var(--t-lead); line-height: 1.5; }
.doc__table, .doc__body table { width: 100%; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.doc__body th, .doc__body td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #D5DDF0; }
.doc__body thead th { color: var(--ink-soft); font-weight: 500; }
.doc__scroll { overflow-x: auto; }
.doc__note { margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: var(--card); }
.doc__shot { margin: 24px 0; }
.doc__shot img { width: 100%; max-width: 480px; height: auto; border-radius: 20px; }
.doc__shot figcaption { margin-top: 10px; color: var(--ink-soft); }
.small { font-size: var(--t-small); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(48px, 6vw, 112px); }
  .doc--single { grid-template-columns: minmax(0, 1fr); }
  .doc__sticky { position: sticky; top: 24px; }
}
@media (max-width: 999px) {
  .doc__toc { padding: 16px 20px; border-radius: 16px; background: var(--card); }
}

/* Invite page */
.code {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--paper);
  font-size: var(--t-title);
  font-weight: 700;
  font-stretch: var(--wide);
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.doc__note .btn { margin-top: 16px; }

/* Delete-account page: the settings fragment drawn from the app */
.screen { max-width: 360px; padding: 20px; border-radius: 28px; background: var(--abyss); color: var(--foam); font-size: var(--t-small); }
.screen .card { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--trench); }
.screen .setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.screen .ui-title { font-size: var(--t-body); font-weight: 650; }
.screen .ui-meta { color: var(--mist); font-size: var(--t-micro); }
.screen .ui-btn { display: block; margin-top: 14px; padding: 14px; border-radius: 14px; text-align: center; font-weight: 650; background: var(--action); color: #fff; }
.screen .neg { color: #FF6370; }
.screen .ui-btn--quiet { background: var(--trench); color: var(--foam); }
.switch { display: inline-block; width: 40px; height: 24px; border-radius: 999px; background: var(--action); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.confirm { margin-top: 12px; }

/* ---------------------------------------------------------------- Motion
   The hero arrives on load; below the fold, a section's parts rise as it comes into view, but only
   the ones site.js marked as below the fold (.will-rise), so nothing is ever hidden without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lede, .hero__actions, .hero__qr, .hero__caption { animation: rise 700ms var(--ease) both; }
  .hero__lede { animation-delay: 90ms; }
  .hero__actions { animation-delay: 170ms; }
  .hero__qr { animation-delay: 260ms; }
  .hero__caption { animation-delay: 220ms; }
  .hero__device .phone { animation: rise-far 900ms var(--ease) 120ms both; }
  .pushes .push { animation: push-in 600ms var(--ease) both; }
  .pushes .push:nth-child(1) { animation-delay: 520ms; }
  .pushes .push:nth-child(2) { animation-delay: 610ms; }
  .pushes .push:nth-child(3) { animation-delay: 700ms; }
  .pushes .push:nth-child(4) { animation-delay: 790ms; }
  .pushes .push:nth-child(5) { animation-delay: 880ms; }
  .pushes .push.is-entering { animation-delay: 0ms; }
  .will-rise { opacity: 0; transform: translateY(28px); }
  .will-rise.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--delay, 0ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-far { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes push-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }

@media print {
  body { background: #fff; color: #000; }
  .will-rise { opacity: 1 !important; transform: none !important; }
  .bar, .foot, .hero__device, .hero__qr { display: none; }
}

/* Until 2.0 is in the store (LATEST_VERSION_CODE below 6): what the store has today. */
.store-note { margin-top: 16px; max-width: 46ch; font-size: var(--t-small); line-height: 1.5; opacity: 0.85; }
.get .store-note { margin: 0 0 20px; opacity: 1; }
