/* native_datastore — landing page
   Duotone by meaning: amber = your Dart code, teal = what the native store holds.
   Both accent pairs are validated for CVD separation and contrast in each mode. */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --paper:      #eef1f4;
  --surface:    #ffffff;
  --surface-2:  #e4e9ed;
  --ink:        #101820;
  --ink-2:      #46545f;
  --ink-3:      #6c7a85;
  --rule:       #d3dae0;
  --teal:       #00919e;   /* validated: light surface #eef1f4 */
  --amber:      #b45309;
  --teal-ink:   #026b74;
  --amber-ink:  #9a4708;
  --secure-bg:  #101820;
  --secure-ink: #e8edf1;
  --secure-ink-2: #a2b0bb;
  --secure-rule:  #2a343d;
  --focus:      #b45309;
  --shadow:     0 1px 2px rgb(16 24 32 / .05), 0 12px 32px -18px rgb(16 24 32 / .35);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0c1116;
    --surface:    #12181f;
    --surface-2:  #1a222b;
    --ink:        #e8edf1;
    --ink-2:      #a2b0bb;
    --ink-3:      #7a8894;
    --rule:       #253039;
    --teal:       #1ba3b0;   /* validated: dark surface #12181f */
    --amber:      #cc7d14;
    --teal-ink:   #3ecad6;
    --amber-ink:  #e9a648;
    --secure-bg:  #080c10;
    --secure-rule:#1e262e;
    --focus:      #e9a648;
    --shadow:     0 1px 2px rgb(0 0 0 / .5), 0 16px 40px -24px rgb(0 0 0 / .8);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::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(--paper);
  color: var(--ink-2);
  font: 400 1rem/1.62 var(--body);
  font-feature-settings: "cv05" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.032em;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 115%;
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -.022em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--amber-ink); }

code {
  font: 500 .875em/1.5 var(--mono);
  color: var(--ink);
  background: var(--surface-2);
  padding: .1em .34em;
  border-radius: 4px;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--rule);
  font: 500 .875rem var(--body); text-decoration: none;
}
.skip:focus { top: 12px; }

.shell {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

.eyebrow {
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--amber);
  flex: none;
}

.note {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--ink-3);
  max-width: 68ch;
}

/* ── Platform marks ───────────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mark { flex: none; vertical-align: -.16em; }
/* Apple asks for a solid one-colour mark, so it rides on the text colour. */
.mark-apple { color: var(--ink); }
.mark-space { display: inline-block; width: 15px; }

.platforms {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.platforms li {
  display: inline-flex; align-items: center; gap: .55em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  padding: .5rem .9rem .5rem .75rem;
  font-size: .8125rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.platforms b { color: var(--ink); font-weight: 600; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-in {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .9375rem/1 var(--mono);
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-glyph {
  width: 22px; height: 12px; flex: none;
  background:
    radial-gradient(circle at 5px 6px, var(--amber) 4.5px, transparent 5px) left center / 12px 12px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right center / 12px 8px no-repeat;
  border-radius: 2px;
}

.chip {
  font: 500 .72rem/1 var(--mono);
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .38em .7em;
}

.topnav {
  margin-left: auto;
  display: flex; gap: clamp(12px, 2.4vw, 26px);
  font-size: .875rem;
}
.topnav a { color: var(--ink-2); text-decoration: none; }
.topnav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 680px) {
  .chip { display: none; }
  .topbar-in { flex-wrap: wrap; padding-block: 12px; }
  .topnav { margin-left: 0; width: 100%; overflow-x: auto; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: clamp(34px, 5vw, 60px);
  padding-block: clamp(48px, 8vw, 92px) clamp(40px, 6vw, 76px);
  align-items: start;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.02fr .98fr; }
}

h1 .hl {
  color: var(--teal-ink);
  display: inline-block;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.58;
  max-width: 46ch;
  margin-top: 1.6rem;
}
.lede b { color: var(--ink); font-weight: 600; }

.install {
  display: flex; align-items: stretch;
  margin-top: 1.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  max-width: 26.5rem;
  box-shadow: var(--shadow);
}
.install code {
  flex: 1;
  background: none;
  padding: .82rem 1rem;
  font-size: .875rem;
  white-space: nowrap;
  overflow-x: auto;
}
.copy {
  flex: none;
  border: 0; border-left: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-2);
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-inline: 1rem;
  cursor: pointer;
}
.copy:hover { background: var(--amber); color: #fff; }
.copy[data-copied] { background: var(--teal); color: #fff; }

.hero-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex; align-items: center;
  font: 500 .9375rem/1 var(--body);
  padding: .82rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-primary {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--amber-ink); border-color: var(--amber-ink); color: #fff; }

/* ── Signature: the live store ────────────────────────────────────────── */
.store {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

.store-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.store-name { font: 600 .875rem/1 var(--mono); color: var(--ink); }
.store-count { margin-left: auto; font: 400 .75rem/1 var(--mono); color: var(--ink-3); }
.store-count b { color: var(--teal-ink); font-weight: 600; }

.store-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 .78rem/1.4 var(--mono);
  table-layout: fixed;
}
.store-table th, .store-table td {
  text-align: left;
  padding: .62rem .4rem;
  border-bottom: 1px solid var(--rule);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-table thead th {
  font: 500 .66rem/1 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  padding-block: .8rem .5rem;
}
/* table-layout: fixed sizes from the first row only, so the widths have to
   live on the thead cells — not on the tbody tds. */
.store-table thead th:nth-child(1) { width: 25%; }
.store-table thead th:nth-child(2) { width: 23%; }
.store-table thead th:nth-child(4) { width: 26px; }
.store-table th:first-child { padding-left: 0; }
.store-table td:nth-child(2) { color: var(--ink-3); }
.store-table td:last-child { padding-right: 0; }
.store-table tbody th { font-weight: 500; color: var(--ink); }
.store-table .val { color: var(--teal-ink); font-weight: 500; }

.store-table tbody tr:last-child th,
.store-table tbody tr:last-child td { border-bottom: 0; }

.row-drop {
  border: 0; background: none; cursor: pointer; padding: 2px 4px;
  color: var(--ink-3); font: 400 .9rem/1 var(--mono); border-radius: 4px;
}
.row-drop:hover { color: #fff; background: var(--amber); }

.store-empty {
  margin: 1rem 0 0;
  padding: 1.15rem;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  font-size: .875rem;
  color: var(--ink-3);
  text-align: center;
}

.store-log {
  display: block;
  margin-top: 14px;
  min-height: 2.6em;
  padding: .6rem .7rem;
  background: var(--surface-2);
  border-radius: 8px;
  font: 400 .78rem/1.5 var(--mono);
  color: var(--ink-3);
  word-break: break-word;
}
.store-log .call { color: var(--amber-ink); }
.store-log .ret { color: var(--teal-ink); }

.store-ops {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 14px;
}
.store-ops button {
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: 500 .78rem/1 var(--mono);
  padding: .58rem .7rem;
  border-radius: 8px;
  cursor: pointer;
}
.store-ops button:hover { border-color: var(--amber); color: var(--amber-ink); }
.store-ops .op-danger { color: var(--ink-3); }
.store-ops .op-danger:hover { border-color: var(--amber); color: var(--amber-ink); }

.store-foot {
  margin: 14px 0 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.linkish {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--teal-ink);
  text-decoration: underline; text-underline-offset: .18em;
}
.linkish:hover { color: var(--amber-ink); }

/* one orchestrated beat: a written row lights up, then settles into the store */
@keyframes commit {
  0%   { background: color-mix(in srgb, var(--amber) 26%, transparent); }
  55%  { background: color-mix(in srgb, var(--teal) 20%, transparent); }
  100% { background: transparent; }
}
.store-table tr.wrote th,
.store-table tr.wrote td { animation: commit .9s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .store-table tr.wrote th,
  .store-table tr.wrote td { animation: none; }
}

/* ── Bands ────────────────────────────────────────────────────────────── */
.band {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--rule);
}
.band-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.band-lede { margin-top: 1rem; font-size: 1.0625rem; }

/* ── Comparison ───────────────────────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  text-align: left;
}
.compare th, .compare td {
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare thead th {
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--ink-3);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare .col-old { color: var(--ink-3); }
.compare .col-new { color: var(--teal-ink); }
.compare td:nth-child(3) { color: var(--ink); }
.compare tbody td:nth-child(2) { color: var(--ink-3); }
.compare th:first-child, .compare td:first-child { padding-left: 0; }

@media (max-width: 720px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: .15rem 0; width: auto; }
  .compare tbody td::before {
    display: block;
    font: 500 .68rem/1.8 var(--mono);
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .compare tbody td:nth-child(2)::before { content: "SharedPreferences"; }
  .compare tbody td:nth-child(3)::before { content: "native_datastore"; }
}

/* ── Feature cards ────────────────────────────────────────────────────── */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.35rem 1.35rem 1.45rem;
}
.card h3 {
  font: 600 1.0625rem/1.3 var(--body);
  letter-spacing: -.01em;
  margin-bottom: .55rem;
  padding-top: .85rem;
  border-top: 2px solid var(--teal);
  display: inline-block;
}
.card p { font-size: .9375rem; }

.arch {
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.arch img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.arch figcaption {
  margin-top: .8rem;
  font-size: .875rem;
  color: var(--ink-3);
  max-width: 68ch;
}

/* ── Platform mapping ─────────────────────────────────────────────────── */
.mapping {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  text-align: left;
}
.mapping th, .mapping td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.mapping thead th {
  font: 500 .72rem/1.3 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--ink-3);
  white-space: nowrap;
}
.mapping thead th .mark { margin-right: .35em; }
.mapping tbody th { font-weight: 400; }
.mapping tbody td:nth-child(2) { color: var(--ink-3); }
.mapping tbody td:nth-child(3),
.mapping tbody td:nth-child(4) { color: var(--ink-2); }
.mapping th:first-child, .mapping td:first-child { padding-left: 0; }
.mapping th:last-child, .mapping td:last-child { padding-right: 0; }
/* Nearly every cell is an identifier — pills on all of them would read as noise. */
.mapping code { background: none; padding: 0; color: inherit; }
.mapping tbody th code { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .mapping, .mapping thead, .mapping tbody, .mapping tr, .mapping th, .mapping td { display: block; }
  .mapping thead { display: none; }
  .mapping tr { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
  .mapping th, .mapping td { border: 0; padding: .12rem 0; }
  .mapping tbody td::before {
    display: block;
    font: 500 .66rem/1.9 var(--mono);
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-3);
  }
  .mapping tbody td:nth-child(2)::before { content: "Dart"; }
  .mapping tbody td:nth-child(3)::before { content: "Android"; }
  .mapping tbody td:nth-child(4)::before { content: "iOS"; }
}

.natives {
  display: grid; gap: 18px;
  margin-top: clamp(34px, 5vw, 52px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.native {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.6rem;
}
.native h3 {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.5rem;
  letter-spacing: -.015em;
}
.native-min {
  margin: .55rem 0 1.2rem;
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .06em;
  color: var(--ink-3);
}
.native ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .7rem; }
.native li { font-size: .9375rem; padding-left: .2rem; }
.native li::marker { color: var(--teal); }

/* ── Code ─────────────────────────────────────────────────────────────── */
.codewrap { position: relative; }
.copy-float {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: .45rem .75rem;
}

.code {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  overflow-x: auto;
  font: 400 .8125rem/1.75 var(--mono);
  color: var(--ink);
  tab-size: 2;
}
.code code { background: none; padding: 0; font-size: inherit; font-weight: inherit; }
.code-sm { font-size: .78rem; line-height: 1.7; padding: 1rem 1.05rem; }

.c-com { color: var(--ink-3); font-style: italic; }
.c-str { color: var(--teal-ink); }
.c-num { color: var(--teal-ink); }
.c-key { color: var(--amber-ink); }
.c-typ { color: var(--ink); font-weight: 600; }
.c-fn  { color: var(--ink-2); }

/* ── Secure band ──────────────────────────────────────────────────────── */
.secure-band {
  background: var(--secure-bg);
  color: var(--secure-ink-2);
  border-block: 1px solid var(--secure-rule);
}
.secure-in {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(56px, 8vw, 104px);
  align-items: center;
}
@media (min-width: 900px) {
  .secure-in { grid-template-columns: 1fr 1fr; }
}
.secure-band h2 { color: var(--secure-ink); }
.secure-band code { background: rgb(255 255 255 / .07); color: #f0d9b5; }
.secure-band .eyebrow { color: #a2b0bb; }
.secure-band .eyebrow::before { background: #e9a648; }
.secure-copy p { max-width: 52ch; }
.secure-copy h2 + p { margin-top: 1rem; }

.secure-facts { margin: 1.9rem 0; display: grid; gap: 1.2rem; }
.secure-facts dt {
  display: flex; align-items: center; gap: .5em;
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: #e9a648;
  margin-bottom: .5rem;
}
.secure-band .mark-apple { color: var(--secure-ink); }
.secure-facts dd { margin: 0; font-size: .9375rem; max-width: 52ch; }
.secure-scope { font-size: .875rem; color: #8896a2; }

.btn-onsecure {
  margin-top: 1.6rem;
  background: transparent;
  border-color: #3a464f;
  color: var(--secure-ink);
}
.btn-onsecure:hover { border-color: #e9a648; color: #e9a648; }

.secure-fig { margin: 0; }
.secure-fig img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--secure-rule);
}
.secure-fig figcaption {
  margin-top: .8rem;
  font-size: .8125rem;
  color: #8896a2;
}

/* ── Benchmarks ───────────────────────────────────────────────────────── */
.legend {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-bottom: 1.4rem;
  font: 400 .8125rem/1 var(--body);
  color: var(--ink-2);
}
.legend-item { display: inline-flex; align-items: center; gap: .55em; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch-regular { background: var(--teal); }
.swatch-secure  { background: var(--amber); }

.bench {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.bench thead th {
  font: 500 .68rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 0 1rem .8rem 0;
  border-bottom: 1px solid var(--rule);
}
.bench tbody th, .bench tbody td {
  padding: .62rem 1rem .62rem 0;
  border-bottom: 1px solid var(--rule);
}
.bench tbody th {
  text-align: left; font: 500 .8125rem/1.3 var(--mono);
  color: var(--ink); white-space: nowrap;
}
.bench-store {
  display: inline-block;
  min-width: 4.6em;
  color: var(--ink-3);
  font-weight: 400;
}
.bench .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
/* "µs" must not be uppercased — "MS" would read as milliseconds. */
.bench thead .unit { text-transform: none; }
.bench tbody td:last-child { padding-right: 0; color: var(--ink-3); }
.bench thead th:last-child { padding-right: 0; }

.bench-plot { position: relative; width: 44%; min-width: 120px; }
.bench-plot-h { width: 44%; }
.bench-plot::before {
  content: "";
  position: absolute; left: 0; right: 1rem;
  top: calc(50% - 5px); height: 10px;
  background: var(--surface-2);
  border-radius: 5px;
}
.bench .bar {
  position: relative;
  display: block;
  height: 10px;
  width: var(--w);
  border-radius: 0 5px 5px 0;
  background: var(--teal);
}
.bench tr[data-store="secure"] .bar { background: var(--amber); }

@media (max-width: 620px) {
  .bench-plot, .bench-plot-h { display: none; }
}

/* ── Device demos ─────────────────────────────────────────────────────── */
/* Two portrait screen recordings sit beside one landscape diagram, so the
   phones get fixed narrow tracks and the diagram spans the row below. */
.demos {
  display: grid; gap: 24px;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 300px));
  justify-content: start;
}
@media (min-width: 900px) {
  .demos { grid-template-columns: 300px 300px 1fr; }
}
.demos figure { margin: 0; }
.demos img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.demos figcaption { margin-top: .8rem; font-size: .8125rem; color: var(--ink-3); }
.demo-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .demo-wide { grid-column: 3; align-self: center; }
}

/* ── Start ────────────────────────────────────────────────────────────── */
.start-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}
.start-step p:last-child { margin-top: .85rem; font-size: .875rem; color: var(--ink-3); }
.step-label {
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: .7rem;
}

.reqs {
  margin-top: clamp(34px, 5vw, 54px);
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: min(100%, 30rem);
}
.reqs caption {
  text-align: left;
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .8rem;
}
.reqs th, .reqs td { padding: .6rem 1.4rem .6rem 0; border-bottom: 1px solid var(--rule); text-align: left; }
.reqs th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.reqs th .mark { margin-right: .2em; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.footer-in {
  display: grid; gap: 36px;
  padding-block: clamp(40px, 6vw, 64px);
}
@media (min-width: 820px) {
  .footer-in { grid-template-columns: 1.2fr 1fr; }
}
.footer-brand p { margin-top: 1rem; font-size: .9375rem; max-width: 40ch; color: var(--ink-3); }
.footer-legal { font-size: .8125rem !important; }
.trademarks { font-size: .75rem !important; line-height: 1.6; max-width: 52ch; opacity: .8; }

.footer-nav { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-nav h2 {
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-nav a { font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  }
  .js .reveal.seen { opacity: 1; transform: none; }
}
