/* ============================================================================
   MetaBook — landing page
   Palette, type and roles are lifted from the app itself
   (lib/app/design/metabook_colors.dart), so the site and the product are
   recognisably the same object.
   ========================================================================= */

/* ── fonts ───────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("assets/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ── tokens ──────────────────────────────────────────────────────────────── */

:root {
  --paper:        #FAF8F4;
  --paper-raised: #F5F1EA;
  --card:         #FFFFFF;
  --sunken:       rgba(26, 25, 23, .055);
  --hairline:     rgba(26, 25, 23, .09);
  --rule:         rgba(26, 25, 23, .13);

  --ink:        #1A1917;
  --ink-strong: #3B372F;
  --ink-body:   #5F5A51;
  --ink-muted:  #8A8478;
  --ink-faint:  #9A9488;

  --inverse:    #1A1917;
  --on-inverse: #F7F4EE;

  --accent:      #35566E;
  --accent-ink:  #22384A;
  --accent-wash: #F1F5F8;
  --accent-edge: rgba(53, 86, 110, .16);

  --money:      #8A6A3B;
  --money-soft: #9C7B47;
  --money-wash: rgba(138, 106, 59, .07);
  --money-edge: rgba(138, 106, 59, .26);

  --held:      #CFE0EC;
  --held-edge: #8FB0C8;

  /* the one dark band, and the phone's own reading colours */
  --band-bg:     #15161A;
  --band-card:   #1E2026;
  --band-ink:    #DEDAD2;
  --band-body:   #A9A7A4;
  --band-faint:  #7C7C85;
  --band-rule:   rgba(255, 255, 255, .13);
  --band-accent: #9FBACD;

  --shadow-sm: 0 1px 2px rgba(26, 25, 23, .04), 0 2px 8px rgba(26, 25, 23, .04);
  --shadow-md: 0 2px 6px rgba(26, 25, 23, .05), 0 14px 34px rgba(26, 25, 23, .07);
  --shadow-lg: 0 8px 22px rgba(26, 25, 23, .10), 0 40px 90px rgba(26, 25, 23, .16);

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --sec-y: clamp(64px, 8.4vw, 112px);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #15161A;
    --paper-raised: #191A1F;
    --card:         #1E2026;
    --sunken:       rgba(255, 255, 255, .05);
    --hairline:     rgba(255, 255, 255, .10);
    --rule:         rgba(255, 255, 255, .14);

    --ink:        #DEDAD2;
    --ink-strong: #C9C5BD;
    --ink-body:   #A9A7A4;
    --ink-muted:  #8A8A93;
    --ink-faint:  #7C7C85;

    --inverse:    #EDE8DF;
    --on-inverse: #15161A;

    --accent:      #9FBACD;
    --accent-ink:  #C2D5E2;
    --accent-wash: #1D2530;
    --accent-edge: rgba(159, 186, 205, .26);

    --money:      #C9A468;
    --money-soft: #B08F5C;
    --money-wash: rgba(201, 164, 104, .10);
    --money-edge: rgba(201, 164, 104, .30);

    --held:      #33465A;
    --held-edge: #6A8CA8;

    --band-bg:   #0E0F12;
    --band-card: #191A1F;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .32);
    --shadow-lg: 0 8px 22px rgba(0, 0, 0, .4), 0 40px 90px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --paper:        #15161A;
  --paper-raised: #191A1F;
  --card:         #1E2026;
  --sunken:       rgba(255, 255, 255, .05);
  --hairline:     rgba(255, 255, 255, .10);
  --rule:         rgba(255, 255, 255, .14);

  --ink:        #DEDAD2;
  --ink-strong: #C9C5BD;
  --ink-body:   #A9A7A4;
  --ink-muted:  #8A8A93;
  --ink-faint:  #7C7C85;

  --inverse:    #EDE8DF;
  --on-inverse: #15161A;

  --accent:      #9FBACD;
  --accent-ink:  #C2D5E2;
  --accent-wash: #1D2530;
  --accent-edge: rgba(159, 186, 205, .26);

  --money:      #C9A468;
  --money-soft: #B08F5C;
  --money-wash: rgba(201, 164, 104, .10);
  --money-edge: rgba(201, 164, 104, .30);

  --held:      #33465A;
  --held-edge: #6A8CA8;

  --band-bg:   #0E0F12;
  --band-card: #191A1F;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .32);
  --shadow-lg: 0 8px 22px rgba(0, 0, 0, .4), 0 40px 90px rgba(0, 0, 0, .5);
}

/* ── base ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-color: var(--accent-edge); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--inverse);
  color: var(--on-inverse);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 800px; }
.center { text-align: center; }

/* ── type ────────────────────────────────────────────────────────────────── */

.display {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.6rem, 6.1vw, 4.4rem); }
h2.display { font-size: clamp(2rem, 4vw, 3.1rem); }

h3 {
  font-family: "Plex Sans", sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.35;
  margin: 0 0 .45em;
}

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

em { font-style: italic; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .705rem;
  letter-spacing: .155em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1em;
}
.eyebrow.money-eyebrow { color: var(--money-soft); }

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 40ch;
  text-wrap: pretty;
}

.sec-head { max-width: 46rem; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; }
.sec-head-left { margin-inline: 0; text-align: left; }
.sec-head .display + .sec-lede { margin-top: 1.1em; }

.sec-lede {
  font-size: clamp(1rem, 1.2vw, 1.11rem);
  line-height: 1.62;
  color: var(--ink-body);
  margin: 0;
  text-wrap: pretty;
}
.sec-head:not(.sec-head-left) .sec-lede { margin-inline: auto; max-width: 42rem; }

/* ── buttons and store badges ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--inverse);
  color: var(--on-inverse);
  border: 0;
  border-radius: 999px;
  padding: .62em 1.15em;
  font: inherit;
  font-size: .92rem;
  font-weight: 550;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { color: var(--on-inverse); opacity: .88; transform: translateY(-1px); }
.btn-small { font-size: .855rem; padding: .5em 1em; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2.1rem 0 1.4rem;
}
.center-row { justify-content: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 10px 15px;
  border-radius: 12px;
  background: var(--inverse);
  color: var(--on-inverse);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.store-badge:hover {
  color: var(--on-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-glyph { flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-small {
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .72;
}
.store-big { font-size: 1.06rem; font-weight: 550; letter-spacing: -.01em; }

/* ── header ──────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.42rem;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1;
  padding-top: 2px;
}

.head-nav { display: flex; gap: 26px; }
.head-nav a {
  color: var(--ink-body);
  text-decoration: none;
  font-size: .9rem;
  transition: color .16s ease;
}
.head-nav a:hover { color: var(--ink); }

.head-side { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-body);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.theme-toggle:hover { background: var(--sunken); color: var(--ink); }
.theme-toggle .t-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: block; }
:root[data-theme="light"] .theme-toggle .t-sun { display: block; }
:root[data-theme="light"] .theme-toggle .t-moon { display: none; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .display { margin-bottom: .5em; }
.hero-copy .lede { max-width: 34rem; }

.hero-fine {
  font-size: .87rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 34rem;
  border-left: 2px solid var(--money-edge);
  padding-left: 14px;
}

.hero-demo { position: relative; display: flex; justify-content: center; }

.demo-glow {
  position: absolute;
  inset: -14% -6% -6%;
  background:
    radial-gradient(46% 42% at 28% 26%, rgba(28, 74, 172, .30), transparent 70%),
    radial-gradient(48% 46% at 74% 62%, rgba(126, 34, 176, .28), transparent 70%);
  filter: blur(58px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

/* ── the phone ───────────────────────────────────────────────────────────── */

.phone-figure { margin: 0; position: relative; z-index: 1; }

.phone {
  width: min(310px, 78vw);
  aspect-ratio: 310 / 630;
  margin-inline: auto;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(168deg, #3a3a3e, #17171a 42%, #2b2b30);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 0 4px rgba(0, 0, 0, .55);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 3px;
  font-family: "Plex Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}
.status-icons { display: inline-flex; align-items: center; gap: 4px; }
.status-icons i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink); opacity: .75; display: block;
}
.status-icons b {
  width: 16px; height: 8px; border-radius: 2px;
  border: 1px solid var(--ink-muted); position: relative; display: block;
}
.status-icons b::after {
  content: ""; position: absolute; inset: 1.5px; right: 5px;
  background: var(--ink); border-radius: 1px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 9px;
  border-bottom: 1px solid var(--hairline);
}
.chev {
  width: 8px; height: 8px; flex: none;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
  margin-left: 3px;
}
.app-bar-title {
  flex: 1;
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-bar-dots { display: inline-flex; flex-direction: column; gap: 2.5px; }
.app-bar-dots i {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-muted); display: block;
}

.page {
  flex: 1;
  padding: 16px 18px 20px;
  overflow: hidden;
  font-family: "Literata", Georgia, serif;
  color: var(--ink-strong);
}

.ch-meta {
  font-family: "Plex Mono", monospace;
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.ch-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 14px;
}
.ch-h3 {
  font-family: "Literata", Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 7px;
}
.ch-p {
  font-size: 11.7px;
  line-height: 1.62;
  margin: 0 0 10px;
  color: var(--ink-strong);
  hyphens: auto;
}

/* The passage that changes.
   The original stays in flow, so the block keeps its height and nothing above or
   below it can move; the rewrite is laid over it. */
.swap {
  position: relative;
  margin: 0 -5px 10px;
  padding: 3px 5px 1px;
  border-radius: 5px;
}
.swap .ch-target { margin: 0; }
.swap .simplified {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 3px;
  opacity: 0;
}

/* the app's own selection toolbar */
.sel-toolbar {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 11px;
  background: var(--inverse);
  color: var(--on-inverse);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  opacity: 0;
  white-space: nowrap;
}
.tool {
  font-family: "Plex Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--on-inverse);
}

.undo-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 13px;
  border-radius: 11px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-family: "Plex Sans", sans-serif;
  font-size: 10.5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  opacity: 0;
  transform: translateY(10px);
}
.undo-btn {
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: .02em;
}

.phone-caption {
  margin: 22px auto 0;
  max-width: 30ch;
  text-align: center;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ── the demo, animated ──────────────────────────────────────────────────── */

.js .swap            { animation: hold 17s linear infinite; }
.js .swap .original  { animation: fadeOriginal 17s linear infinite; }
.js .swap .simplified{ animation: fadeSimplified 17s linear infinite; }
.js .sel-toolbar     { animation: toolbarIn 17s linear infinite; }
.js .tool:first-child{ animation: press 17s linear infinite; }
.js .undo-bar        { animation: undoIn 17s linear infinite; }
.js .undo-btn        { animation: pressUndo 17s linear infinite; }

@keyframes hold {
  0%, 11.8%   { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
  14.5%, 42%  { background: var(--held); box-shadow: inset 0 0 0 1px var(--held-edge); }
  46%, 100%   { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
}

@keyframes fadeOriginal {
  0%, 31%     { opacity: 1; transform: translateY(0); }
  36%, 40%    { opacity: .42; transform: translateY(0); }
  44.5%       { opacity: 0; transform: translateY(-3px); }
  78%         { opacity: 0; transform: translateY(-3px); }
  82.5%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSimplified {
  0%, 40%     { opacity: 0; transform: translateY(4px); }
  44.5%, 78%  { opacity: 1; transform: translateY(0); }
  82.5%, 100% { opacity: 0; transform: translateY(4px); }
}

@keyframes toolbarIn {
  0%, 15.5%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  19%, 31%    { opacity: 1; transform: translateX(-50%) translateY(0); }
  33.5%, 100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

@keyframes press {
  0%, 26.5%   { background: transparent; }
  28%, 30%    { background: rgba(159, 186, 205, .34); }
  31.5%, 100% { background: transparent; }
}

@keyframes undoIn {
  0%, 44%     { opacity: 0; transform: translateY(10px); }
  47%, 80%    { opacity: 1; transform: translateY(0); }
  84%, 100%   { opacity: 0; transform: translateY(10px); }
}

@keyframes pressUndo {
  0%, 74%     { background: transparent; }
  75.5%, 77%  { background: rgba(159, 186, 205, .34); }
  78.5%, 100% { background: transparent; }
}

/* ── bands ───────────────────────────────────────────────────────────────── */

.band { padding-block: var(--sec-y); }
.band-alt { background: var(--paper-raised); }

.band-dark {
  background: var(--band-bg);
  color: var(--band-body);
}
.band-dark .display,
.band-dark h3,
.band-dark strong { color: var(--band-ink); }
.band-dark .eyebrow { color: var(--band-faint); }
.band-dark .sec-lede { color: var(--band-body); }

/* ── the loop ────────────────────────────────────────────────────────────── */

.loop-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 2.6vw, 34px);
  align-items: center;
}

.loop-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.loop-after {
  border-color: var(--accent-edge);
  box-shadow: var(--shadow-md);
}

.loop-label {
  font-family: "Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.2em;
}
.loop-after .loop-label { color: var(--accent); }

.loop-list {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.loop-list li {
  counter-increment: step;
  position: relative;
  padding: .42em 0 .42em 2.1em;
  font-size: .96rem;
  line-height: 1.45;
  border-top: 1px solid var(--rule);
}
.loop-list li:first-child { border-top: 0; }
.loop-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .52em;
  width: 1.5em;
  font-family: "Plex Mono", monospace;
  font-size: .72rem;
  color: var(--ink-faint);
}
/* The number sits in an absolutely positioned ::before, which the line-through
   does not reach — so only the step text is struck. */
.loop-list.struck li {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-decoration-thickness: 1px;
}
.loop-after .loop-list li { color: var(--ink); }
.loop-after .loop-list li::before { color: var(--accent); }

.loop-note {
  font-size: .87rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

.loop-arrow { color: var(--ink-faint); display: grid; place-items: center; }

/* ── four actions ────────────────────────────────────────────────────────── */

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.action-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.action-key {
  font-family: "Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1.4em;
}
.action-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .35em;
}
.action-card p { font-size: .92rem; line-height: 1.55; margin: 0; }

.action-foot {
  margin: clamp(28px, 3.4vw, 44px) auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-muted);
}

/* ── proof list (dark band) ──────────────────────────────────────────────── */

.proof-list {
  counter-reset: proof;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62rem;
  margin-inline: auto;
  display: grid;
  gap: 2px;
  border: 1px solid var(--band-rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band-rule);
}
.proof-list li {
  counter-increment: proof;
  background: var(--band-bg);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 38px);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 4px 8px;
  align-items: start;
}
.proof-list li::before {
  content: counter(proof, decimal-leading-zero);
  font-family: "Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--band-accent);
  grid-row: span 2;
  padding-top: .35em;
}
.proof-list h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.22;
  margin: 0 0 .4em;
}
.proof-list p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 58ch;
}

.proof-foot {
  margin: clamp(28px, 3.2vw, 40px) auto 0;
  max-width: 48ch;
  text-align: center;
  font-size: .95rem;
  color: var(--band-faint);
}
.band-dark .proof-foot em,
.band-dark .proof-list em { color: var(--band-ink); font-style: italic; }

/* ── steps ───────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0 clamp(14px, 2vw, 24px);
  padding-bottom: clamp(26px, 3vw, 38px);
  position: relative;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.7rem;
  top: 3.4rem;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.step-n {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.steps h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  margin: .55rem 0 .5rem;
}
.steps p { font-size: .97rem; margin: 0; max-width: 54ch; }

/* ── money ───────────────────────────────────────────────────────────────── */

.money-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}

.money-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.money-list li {
  position: relative;
  padding: .95em 0 .95em 1.5em;
  border-top: 1px solid var(--rule);
  font-size: .97rem;
  line-height: 1.58;
}
.money-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--money);
}

.cost-card {
  background: var(--money-wash);
  border: 1px solid var(--money-edge);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  position: sticky;
  top: 96px;
}
.cost-head {
  font-family: "Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--money-soft);
  margin: 0 0 1.5em;
  line-height: 1.5;
}
.cost-rows { margin: 0 0 1.6em; }
.cost-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: .8em 0;
  border-top: 1px solid var(--money-edge);
}
.cost-rows > div:first-child { border-top: 0; padding-top: 0; }
.cost-rows dt {
  flex: 1 1 9rem;
  min-width: 0;
  font-size: .92rem;
  color: var(--ink-strong);
  line-height: 1.35;
}
.cost-rows dd {
  margin: 0;
  font-family: "Plex Mono", monospace;
  font-size: .95rem;
  color: var(--money);
  text-align: right;
  font-feature-settings: "tnum" 1;
}
.cost-rows dd.cost-qual {
  font-family: "Plex Sans", sans-serif;
  font-size: .8rem;
  color: var(--money-soft);
  text-align: right;
  white-space: normal;
  max-width: 12rem;
}
.cost-unit { font-size: .72rem; color: var(--money-soft); white-space: nowrap; }
.cost-fine {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ── privacy cards ───────────────────────────────────────────────────────── */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 60rem;
  margin-inline: auto;
}
.p-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent-edge);
  border-radius: var(--radius);
  padding: clamp(24px, 2.8vw, 32px);
  box-shadow: var(--shadow-sm);
}
.p-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.22;
  margin-bottom: .55em;
}
.p-card p { font-size: .94rem; line-height: 1.58; margin: 0; }

/* ── feature grid ────────────────────────────────────────────────────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 36px);
}
.feat { padding-top: 18px; border-top: 1px solid var(--rule); }
.feat h3 { font-size: .98rem; margin-bottom: .5em; }
.feat p { font-size: .88rem; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ── honest list ─────────────────────────────────────────────────────────── */

.honest-list { list-style: none; margin: 0; padding: 0; }
.honest-list li {
  padding: 1.15em 0;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.62;
}
.honest-list li:last-child { border-bottom: 1px solid var(--rule); }

/* ── final cta ───────────────────────────────────────────────────────────── */

.band-cta {
  background:
    radial-gradient(60% 100% at 50% 0%, var(--accent-wash), transparent 70%),
    var(--paper);
  border-top: 1px solid var(--hairline);
}
.cta-mark {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin: 0 auto 26px;
  box-shadow: var(--shadow-md);
}
.band-cta .sec-lede { margin: 1.2em auto 0; max-width: 40ch; }

/* ── footer ──────────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--paper-raised);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(40px, 5vw, 64px) 28px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 34ch; }
.foot-brand .brand-name { display: block; margin-bottom: 4px; }
.foot-tag { font-size: .87rem; line-height: 1.5; color: var(--ink-muted); margin: 0; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--ink-body); font-size: .88rem; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

.foot-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.foot-fine p { font-size: .8rem; color: var(--ink-faint); margin: 0; }

/* ── reveal ──────────────────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

.js .action-grid .reveal:nth-child(2),
.js .privacy-grid .reveal:nth-child(2) { transition-delay: .07s; }
.js .action-grid .reveal:nth-child(3) { transition-delay: .14s; }
.js .action-grid .reveal:nth-child(4) { transition-delay: .21s; }
.js .privacy-grid .reveal:nth-child(3) { transition-delay: .07s; }
.js .privacy-grid .reveal:nth-child(4) { transition-delay: .14s; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-grid { grid-template-columns: 1fr; }
  .cost-card { position: static; }
}

@media (max-width: 900px) {
  .head-nav { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede,
  .hero-fine { margin-inline: auto; }
  .hero-copy .lede { max-width: 46ch; }
  .hero-fine { text-align: left; max-width: 44ch; }
  .store-row { justify-content: center; }

  /* the svg, not the container — .reveal owns the container's transform */
  .loop-grid { grid-template-columns: 1fr; }
  .loop-arrow svg { transform: rotate(90deg); }

  .proof-list li { grid-template-columns: 1fr; }
  .proof-list li::before { grid-row: auto; margin-bottom: .6em; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .action-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 2.6rem 1fr; }
  .step-n { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
  .steps li:not(:last-child)::before { left: 1.3rem; top: 2.6rem; }
  .store-badge { flex: 1 1 auto; justify-content: center; }
  .foot-inner { flex-direction: column; }
}

/* ── reduced motion: hold the demo on one honest frame ───────────────────── */

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

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }

  .js .swap {
    animation: none;
    background: var(--held);
    box-shadow: inset 0 0 0 1px var(--held-edge);
  }
  .js .swap .original { animation: none; opacity: 1; }
  .js .swap .simplified { animation: none; opacity: 0; }
  .js .sel-toolbar {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .js .undo-bar { animation: none; opacity: 0; }
}

/* ── print ───────────────────────────────────────────────────────────────── */

@media print {
  .site-head, .hero-demo, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
