/* DATproof home. Dark first; light follows the system or data-theme. One accent: bitcoin orange.
   Three type options set on <html data-type="a|b|c"> (C is the default); every type decision reads from the tokens below. */
:root {
  --bg: oklch(0.155 0.004 70);
  --bg-2: oklch(0.195 0.004 70);
  --line: oklch(0.27 0.004 70);
  --line-2: oklch(0.36 0.005 70);
  --ink: oklch(0.965 0.003 70);
  --ink-2: oklch(0.78 0.005 70);
  --ink-3: oklch(0.66 0.005 70);
  --quiet: oklch(0.46 0.004 70);      /* T-bill and money market bars */
  --accent: oklch(0.76 0.165 62);     /* bitcoin orange */
  --accent-ink: oklch(0.79 0.155 64);
  --accent-wash: oklch(0.76 0.165 62 / 0.1);
  --on-accent: oklch(0.17 0.02 60);
  --focus: oklch(0.76 0.165 62 / 0.55);

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;

  /* type tokens: option A, Archivo */
  --f-text: "Archivo", system-ui, sans-serif;
  --f-disp: "Archivo", system-ui, sans-serif;
  --f-num: "Archivo", system-ui, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --d-wt: 800; --d-str: 112%; --d-trk: -0.025em; --d-lh: 1.04; --d-style: normal;
  --h2-wt: 800; --h2-trk: -0.02em; --h2-lh: 1.1;
  --n-wt: 800; --n-str: 112%; --n-trk: -0.02em;
  --t-hero: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  --t-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --t-big: clamp(2.75rem, 2rem + 2.4vw, 3.75rem);
  --tk-wt: 800;

  --gut: 1rem;
  --wide: 72rem;
  color-scheme: dark;
}

/* B: Geist for words, Geist Mono for every number. Crisp product feel. */
:root[data-type="b"] {
  --f-text: "Geist", system-ui, sans-serif;
  --f-disp: "Geist", system-ui, sans-serif;
  --f-num: "Geist Mono", ui-monospace, monospace;
  --f-code: "Geist Mono", ui-monospace, monospace;
  --d-wt: 600; --d-str: 100%; --d-trk: -0.04em; --d-lh: 1; --d-style: normal;
  --h2-wt: 600; --h2-trk: -0.035em; --h2-lh: 1.05;
  --n-wt: 500; --n-str: 100%; --n-trk: -0.05em;
  --t-hero: clamp(2.5rem, 1.1rem + 5.4vw, 5.25rem);
  --t-xl: clamp(1.75rem, 1.2rem + 1.7vw, 2.625rem);
  --t-big: clamp(2.5rem, 1.9rem + 2.2vw, 3.5rem);
  --tk-wt: 500;
}

/* C: editorial. Gambetta headlines, Sora text and fixed-width numbers. */
:root[data-type="c"] {
  --f-text: "Sora", system-ui, sans-serif;
  --f-disp: "Gambetta", Georgia, serif;
  --f-num: "Sora", system-ui, sans-serif;
  --d-wt: 300; --d-str: 100%; --d-trk: -0.03em; --d-lh: 1.02; --d-style: normal;
  --h2-wt: 300; --h2-trk: -0.022em; --h2-lh: 1.08;
  --n-wt: 300; --n-str: 100%; --n-trk: -0.04em;
  --t-hero: clamp(2.625rem, 1.3rem + 5.2vw, 5.125rem);
  --t-xl: clamp(2rem, 1.4rem + 2vw, 3rem);
  --t-big: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  --tk-wt: 400;
}

/* Colour options, set on <html data-color="green|blue|orange">. Orange uses the base tokens above.
   Each option retints every neutral toward its own hue; --dither is the dot colour for the dithered backdrops. */
:root { --dither: transparent; --hover-mix: white; }
/* Green: income ticking up on a trading screen. */
:root[data-color="green"] {
  --bg: oklch(0.155 0.014 162);
  --bg-2: oklch(0.195 0.016 162);
  --line: oklch(0.275 0.018 162);
  --line-2: oklch(0.365 0.022 160);
  --ink: oklch(0.965 0.008 155);
  --ink-2: oklch(0.8 0.014 158);
  --ink-3: oklch(0.69 0.016 158);
  --quiet: oklch(0.47 0.006 160);
  --accent: oklch(0.8 0.2 148);
  --accent-ink: oklch(0.85 0.18 148);
  --accent-wash: oklch(0.8 0.2 148 / 0.1);
  --on-accent: oklch(0.2 0.05 158);
  --focus: oklch(0.8 0.2 148 / 0.55);
  --dither: oklch(0.36 0.1 150);
}
/* Blue: cold instrument light, not a bank's navy. */
:root[data-color="blue"] {
  --bg: oklch(0.15 0.018 252);
  --bg-2: oklch(0.19 0.02 252);
  --line: oklch(0.275 0.022 250);
  --line-2: oklch(0.365 0.026 248);
  --ink: oklch(0.965 0.008 235);
  --ink-2: oklch(0.8 0.016 240);
  --ink-3: oklch(0.69 0.02 242);
  --quiet: oklch(0.47 0.008 248);
  --accent: oklch(0.83 0.12 222);
  --accent-ink: oklch(0.86 0.11 222);
  --accent-wash: oklch(0.83 0.12 222 / 0.1);
  --on-accent: oklch(0.18 0.04 248);
  --focus: oklch(0.83 0.12 222 / 0.55);
  --dither: oklch(0.36 0.075 232);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: oklch(0.99 0 0);
    --bg-2: oklch(0.965 0.002 70);
    --line: oklch(0.9 0.003 70);
    --line-2: oklch(0.8 0.004 70);
    --ink: oklch(0.19 0.004 70);
    --ink-2: oklch(0.38 0.005 70);
    --ink-3: oklch(0.48 0.005 70);
    --quiet: oklch(0.77 0.004 70);
    --accent: oklch(0.72 0.17 58);
    --accent-ink: oklch(0.55 0.16 50);
    --accent-wash: oklch(0.72 0.17 58 / 0.12);
    --on-accent: oklch(0.16 0.02 60);
    --focus: oklch(0.6 0.16 55 / 0.5);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: oklch(0.99 0 0); --bg-2: oklch(0.965 0.002 70); --line: oklch(0.9 0.003 70); --line-2: oklch(0.8 0.004 70);
  --ink: oklch(0.19 0.004 70); --ink-2: oklch(0.38 0.005 70); --ink-3: oklch(0.48 0.005 70); --quiet: oklch(0.77 0.004 70);
  --accent: oklch(0.72 0.17 58); --accent-ink: oklch(0.55 0.16 50); --accent-wash: oklch(0.72 0.17 58 / 0.12);
  --on-accent: oklch(0.16 0.02 60); --focus: oklch(0.6 0.16 55 / 0.5); color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-color="green"]:not([data-theme="dark"]) {
    --bg: oklch(0.99 0.004 155); --bg-2: oklch(0.965 0.008 155); --line: oklch(0.9 0.01 155); --line-2: oklch(0.8 0.014 155);
    --ink: oklch(0.2 0.02 160); --ink-2: oklch(0.38 0.02 160); --ink-3: oklch(0.48 0.018 160); --quiet: oklch(0.77 0.006 160);
    --accent: oklch(0.52 0.15 150); --accent-ink: oklch(0.47 0.13 152); --accent-wash: oklch(0.52 0.15 150 / 0.12);
    --on-accent: oklch(0.99 0.01 150); --focus: oklch(0.55 0.15 150 / 0.5); --hover-mix: black; --dither: oklch(0.9 0.06 150);
  }
  :root[data-color="blue"]:not([data-theme="dark"]) {
    --bg: oklch(0.99 0.004 240); --bg-2: oklch(0.965 0.008 240); --line: oklch(0.9 0.01 240); --line-2: oklch(0.8 0.014 240);
    --ink: oklch(0.2 0.025 250); --ink-2: oklch(0.38 0.025 250); --ink-3: oklch(0.48 0.022 250); --quiet: oklch(0.77 0.008 248);
    --accent: oklch(0.52 0.12 238); --accent-ink: oklch(0.47 0.11 238); --accent-wash: oklch(0.52 0.12 238 / 0.12);
    --on-accent: oklch(0.99 0.01 235); --focus: oklch(0.55 0.12 235 / 0.5); --hover-mix: black; --dither: oklch(0.91 0.04 232);
  }
}
:root[data-theme="light"][data-color="green"] {
  --bg: oklch(0.99 0.004 155); --bg-2: oklch(0.965 0.008 155); --line: oklch(0.9 0.01 155); --line-2: oklch(0.8 0.014 155);
  --ink: oklch(0.2 0.02 160); --ink-2: oklch(0.38 0.02 160); --ink-3: oklch(0.48 0.018 160); --quiet: oklch(0.77 0.006 160);
  --accent: oklch(0.52 0.15 150); --accent-ink: oklch(0.47 0.13 152); --accent-wash: oklch(0.52 0.15 150 / 0.12);
  --on-accent: oklch(0.99 0.01 150); --focus: oklch(0.55 0.15 150 / 0.5); --hover-mix: black; --dither: oklch(0.9 0.06 150);
}
:root[data-theme="light"][data-color="blue"] {
  --bg: oklch(0.99 0.004 240); --bg-2: oklch(0.965 0.008 240); --line: oklch(0.9 0.01 240); --line-2: oklch(0.8 0.014 240);
  --ink: oklch(0.2 0.025 250); --ink-2: oklch(0.38 0.025 250); --ink-3: oklch(0.48 0.022 250); --quiet: oklch(0.77 0.008 248);
  --accent: oklch(0.52 0.12 238); --accent-ink: oklch(0.47 0.11 238); --accent-wash: oklch(0.52 0.12 238 / 0.12);
  --on-accent: oklch(0.99 0.01 235); --focus: oklch(0.55 0.12 235 / 0.5); --hover-mix: black; --dither: oklch(0.91 0.04 232);
}
@media (min-width: 40rem) { :root { --gut: 2rem; } }

* { 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(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root[data-type="c"] body { letter-spacing: -0.005em; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mark { font-family: var(--f-disp); font-weight: var(--d-wt); font-stretch: var(--d-str); font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.01em; }
:root[data-type="c"] .mark { font-size: 1.5rem; letter-spacing: 0; }
.bar-link { font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; }
.bar-link:hover { color: var(--ink); }

/* hero */
.hero { padding-top: clamp(2.5rem, 8vh, 6rem); padding-bottom: clamp(4rem, 10vh, 7rem); }
.hero-h {
  font-family: var(--f-disp);
  font-size: var(--t-hero);
  font-weight: var(--d-wt);
  font-stretch: var(--d-str);
  line-height: var(--d-lh);
  letter-spacing: var(--d-trk);
  max-width: 18ch;
  text-wrap: balance;
}
.hl-dc { color: var(--accent-ink); white-space: nowrap; }
:root[data-type="b"] .hl-dc { font-family: var(--f-num); font-weight: 500; letter-spacing: -0.06em; }
:root[data-type="c"] .hl-dc { font-style: italic; }
.hero-sub { margin-top: 1.5rem; font-size: var(--t-lg); color: var(--ink-2); max-width: 40ch; line-height: 1.45; text-wrap: pretty; }
:root[data-type="b"] .hero-sub { font-size: 1.25rem; letter-spacing: -0.01em; }
:root[data-type="c"] .hero-sub { font-size: 1.25rem; letter-spacing: -0.012em; max-width: 42ch; }

.earn { margin: clamp(2.75rem, 6vh, 4rem) 0 0; }
.earn-cap { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; margin-bottom: 0.75rem; }
.earn-foot { margin-top: 1rem; font-size: var(--t-sm); color: var(--ink-3); }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.hero-act { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.asof { font-size: var(--t-xs); color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0 1.25rem;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 650; font-size: var(--t-sm);
  border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: background-color 140ms cubic-bezier(0.25, 1, 0.5, 1), transform 140ms cubic-bezier(0.25, 1, 0.5, 1);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in oklab, var(--accent) 86%, var(--hover-mix)); } }
.btn:active { transform: scale(0.97); }
/* the two doors under the opening paragraph: one filled, one quiet */
.doors { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 30rem) { .doors .btn { flex: 1 1 100%; } }  /* phones: both labels do not fit on one line, so each takes the full width */
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--ink-2); } }
.btn-quiet:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), 0 0 0 3px var(--focus); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* chart text (SVG) */
.c-name { fill: var(--ink); font-size: 15px; font-weight: 600; font-family: var(--f-text); }
:root[data-type="b"] .c-name { font-family: var(--f-num); font-weight: 500; }
.c-note { fill: var(--ink-3); font-size: 12.5px; font-family: var(--f-text); }
.c-val { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
:root[data-type="b"] .c-val { font-weight: 500; }
:root[data-type="c"] .c-val { font-weight: 600; }
.c-val.dc { fill: var(--accent-ink); }
.c-bar { fill: var(--quiet); }
.c-bar.dc { fill: var(--accent); }
.c-inf { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-inf-t { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--f-num); }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-band { fill: var(--accent-wash); }
.c-tick { fill: var(--ink-3); font-size: 12px; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-par { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; }
.c-par-t { fill: var(--ink-3); font-size: 12px; font-family: var(--f-num); }
.c-div { stroke: var(--accent); stroke-width: 1.5; }
.paid-t { fill: var(--accent-ink); font-weight: 600; font-family: var(--f-text); }
.c-dot { fill: var(--accent); }
.c-end { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--f-num); }

@media (prefers-reduced-motion: no-preference) {
  .chart.draw .c-bar { transform-box: fill-box; transform-origin: left center; animation: grow 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .chart.draw .c-bar:nth-of-type(2) { animation-delay: 60ms; }
  .chart.draw .c-val, .chart.draw .c-inf, .chart.draw .c-inf-t { animation: fade 500ms 500ms ease-out backwards; }
  @keyframes grow { from { transform: scaleX(0.02); } }
  @keyframes fade { from { opacity: 0; } }
}

/* sections */
.block { padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: 0.5rem; }
.block h2 {
  font-family: var(--f-disp); font-size: var(--t-xl); font-weight: var(--h2-wt); font-stretch: var(--d-str);
  letter-spacing: var(--h2-trk); line-height: var(--h2-lh); text-wrap: balance; max-width: 22ch;
}
.sub { margin-top: 0.75rem; color: var(--ink-2); max-width: 58ch; font-size: var(--t-md); text-wrap: pretty; }
h3 { font-family: var(--f-disp); }
:root[data-type="b"] h3 { font-family: var(--f-num); }

/* odds by holding time */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.odds { margin-top: 2.75rem; }
.od { width: 100%; border-collapse: collapse; table-layout: fixed; }
.od thead th { text-align: left; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); padding: 0 1.5rem 0.875rem 0; }
.od thead th:first-child, .od-tk { width: 7rem; }
.od tbody tr { border-top: 1px solid var(--line-2); }
.od-tk { text-align: left; vertical-align: top; padding: 1.5rem 1rem 0 0; font-family: var(--f-disp); font-size: 1.75rem; font-weight: var(--tk-wt); line-height: 1; }
.od td { vertical-align: top; padding: 1.5rem 1.5rem 2rem 0; }
.od-n { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: var(--n-wt); letter-spacing: var(--n-trk); line-height: 1; color: var(--accent-ink); }
.od-l { margin-left: 0.25rem; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
.od-bar { display: block; margin-top: 0.875rem; height: 0.375rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.od-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.od-s { display: block; margin-top: 0.75rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.5; }
.od-s b { color: var(--ink-2); font-weight: 600; }
.od-s2 { margin-top: 0.125rem; }
@media (max-width: 44rem) {
  .od, .od tbody, .od tr, .od td, .od-tk { display: block; width: auto; }
  .od thead { display: none; }
  .od-tk { padding: 1.5rem 0 0.25rem; }
  .od td { padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); }
  .od tr td:first-of-type { border-top: 0; }
  .od td::before { content: attr(data-span); display: block; margin-bottom: 0.5rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
}

/* three panels */
.panels { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 0 2.5rem; }
.panel { border-top: 1px solid var(--line-2); padding: 1.5rem 0 2rem; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.p-tk { font-size: var(--t-lg); font-weight: var(--tk-wt); font-stretch: var(--d-str); letter-spacing: -0.01em; }
:root[data-type="c"] .p-tk { font-size: 1.75rem; }
.p-iss { font-size: var(--t-sm); color: var(--ink-3); }
.p-yield { margin-top: 1.25rem; font-size: var(--t-big); font-weight: var(--n-wt); font-stretch: var(--n-str); line-height: 1; color: var(--accent-ink); letter-spacing: var(--n-trk); }
.p-x { margin-top: 0.625rem; font-size: var(--t-sm); color: var(--ink-2); }
.p-x .num { color: var(--ink); font-weight: 600; }
.p-facts { margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: var(--t-sm); color: var(--ink-2); }
.p-facts li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.p-facts b { color: var(--ink); font-weight: 600; }

.longer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-size: var(--t-sm); color: var(--ink-3); }
.longer .lg-t { color: var(--ink-2); flex-basis: 100%; }
.longer b { color: var(--ink-2); font-weight: 600; }

/* comparison under the three panels: digital credit in the accent with a bar each, cash options quiet */
.cmp-wrap { margin-top: clamp(2.75rem, 6vw, 4rem); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp thead th { text-align: left; vertical-align: bottom; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); padding: 0 1.25rem 0.75rem 0; }
.cmp thead th:nth-child(1) { width: 25%; }
.cmp thead th:nth-child(2) { width: 31%; }
.cmp thead th:nth-child(3) { width: 16%; }
.cmp thead th:nth-child(4) { width: 14%; }
.cmp tbody tr { border-top: 1px solid var(--line); }
.cmp tbody tr.dc, .cmp tr.dc + tr.bm { border-top-color: var(--line-2); }
.cmp th[scope="row"], .cmp td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); }
.cmp-nm { display: block; color: var(--ink); font-weight: 600; font-size: var(--t-md); line-height: 1.3; }
.cmp tr.dc .cmp-nm { font-family: var(--f-disp); font-weight: var(--tk-wt); font-size: 1.375rem; line-height: 1.1; }
.cmp-d { display: block; margin-top: 0.25rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.cmp-y { display: inline-block; font-size: 1.375rem; font-weight: var(--n-wt); letter-spacing: var(--n-trk); line-height: 1; color: var(--ink-2); }
.cmp tr.dc .cmp-y { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem); color: var(--accent-ink); }
.cmp-y + .cmp-d { margin-top: 0.375rem; }
.cmp-bar { display: block; margin-top: 0.75rem; height: 0.375rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: var(--quiet); border-radius: 2px; transform-origin: left center; }
.cmp tr.dc .cmp-bar i { background: var(--accent); }
.cmp tr.bm .cmp-bar { height: 0.25rem; }
.cmp td .num { color: var(--ink); font-weight: 600; }
.cmp tr.bm td .num { color: var(--ink-2); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .cmp-bar i { animation: grow 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .cmp tr.bm .cmp-bar i { animation-delay: 160ms; }
}
@media (max-width: 44rem) {
  /* phones: the panels above already carry price and detail, so each row is one compact line */
  .cmp, .cmp tbody { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: 0.875rem 0; }
  .cmp th[scope="row"], .cmp td { padding: 0; }
  .cmp th[scope="row"] { grid-column: 1; grid-row: 1 / span 2; }
  .cmp tr.dc .cmp-nm { font-size: 1.25rem; }
  .cmp td.cmp-yc { grid-column: 2; grid-row: 1; text-align: right; }
  .cmp td.cmp-yc .cmp-d, .cmp .cmp-bar { display: none; }
  .cmp td.cmp-yc .cmp-as { display: block; margin-top: 0.25rem; }
  .cmp tr.dc .cmp-y { font-size: 1.5rem; }
  .cmp td:not(.cmp-yc):not(.cmp-r) { display: none; }
  .cmp td.cmp-r { grid-column: 2; grid-row: 2; margin-top: 0.25rem; text-align: right; font-size: var(--t-xs); }
  .cmp td.cmp-r::before { content: attr(data-l); margin-right: 0.375rem; color: var(--ink-3); }
}
/* price charts */
.paid { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 3rem 3rem; }
.pc h3 { font-size: var(--t-lg); font-weight: var(--tk-wt); font-stretch: var(--d-str); }
:root[data-type="c"] .pc h3 { font-size: 1.75rem; }
.pc .chart { margin-top: 1rem; }
.pc p { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-sm); max-width: 46ch; }
.pc p b { color: var(--ink); font-weight: 600; font-family: var(--f-num); }

/* past holds by price paid, inside "Liquid and steady" */
.below { margin-top: clamp(3.5rem, 7vw, 5rem); }
.bp-h { font-size: var(--t-lg); font-weight: var(--tk-wt); font-stretch: var(--d-str); text-wrap: balance; }
:root[data-type="c"] .bp-h { font-size: 1.75rem; }
.bp-lede { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--t-md); max-width: 58ch; text-wrap: pretty; }
.bp-grid { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
.bp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bp thead th { text-align: left; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); padding: 0 1rem 0.75rem 0; }
.bp thead th:first-child { width: 8.5rem; font-size: var(--t-xs); color: var(--ink-3); vertical-align: bottom; }
.bp tbody tr { border-top: 1px solid var(--line-2); }
.bp th[scope="row"] { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.bp td { vertical-align: top; padding: 0.875rem 1rem 1rem 0; }
.bp-n { display: block; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); font-weight: var(--n-wt); letter-spacing: var(--n-trk); line-height: 1.05; color: var(--ink-2); }
.bp td.up .bp-n { color: var(--accent-ink); }
.bp-s { display: block; margin-top: 0.375rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.bp-now { margin: 0; padding: 0; list-style: none; }
.bp-now li { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--ink-2); }
.bp-now b { color: var(--ink); font-weight: 600; }
.bp-tk { font-family: var(--f-disp); font-size: 1.375rem; font-weight: var(--tk-wt); color: var(--ink); line-height: 1.1; }
.below .fine { max-width: 76ch; }
@media (max-width: 52rem) { .bp-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .bp thead th:first-child { width: 6.25rem; } .bp th[scope="row"], .bp td { padding-right: 0.625rem; } }
@media (max-width: 30rem) { .below .bp thead th:first-child { width: 5rem; } .below .bp-n { font-size: 1.25rem; letter-spacing: -0.02em; } .below .bp th[scope="row"] { font-size: var(--t-xs); } }
/* questions */
.faq { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 3rem; }
.qa { border-top: 1px solid var(--line-2); padding: 1.5rem 0 1.75rem; }
.qa h3 { font-size: var(--t-lg); font-weight: var(--tk-wt); line-height: 1.2; text-wrap: balance; }
.qa p { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--t-sm); max-width: 60ch; text-wrap: pretty; }
/* lift: two stacked bars */
.lift { margin-top: 2.75rem; display: grid; gap: 1.75rem; max-width: 52rem; }
.lf-row { display: grid; grid-template-columns: 12rem 1fr 8rem; gap: 0.5rem 1.5rem; align-items: center; }
.lf-name { font-weight: 600; font-size: var(--t-md); }
.lf-bar { display: flex; height: 2.75rem; border-radius: 4px; overflow: hidden; gap: 2px; }
.lf-seg { display: flex; align-items: center; padding: 0 0.75rem; font-size: var(--t-xs); white-space: nowrap; overflow: hidden; }
.lf-seg.trade { background: var(--quiet); color: var(--ink); }
.lf-seg.cash { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); border-radius: 0 4px 4px 0; }
.lf-row.dc .lf-seg.cash { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.lf-n { text-align: right; font-size: 1.75rem; font-weight: var(--n-wt); letter-spacing: var(--n-trk); font-stretch: var(--n-str); line-height: 1; color: var(--ink-3); }
.lf-row.dc .lf-n { color: var(--accent-ink); }
.lf-n small { display: block; margin-top: 0.25rem; font-family: var(--f-text); font-size: var(--t-xs); font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.lift .fine { margin-top: 0; max-width: 62ch; }

/* backed by bitcoin and cash: a ranked list (digital credit in the accent, the rest quiet), then the crash
   test table in the .bp table styles */
.bk-out { margin-top: 2rem; }
.bk-measure { color: var(--ink-2); font-size: var(--t-sm); max-width: 66ch; }
.rk { margin: 1.25rem 0 0; padding: 0; list-style: none; max-width: 56rem; }
.rk li { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 4.5rem; gap: 0.25rem 1.25rem; align-items: center;
  padding: 0.625rem 0; border-top: 1px solid var(--line); }
.rk li.dc { border-top-color: var(--line-2); }
.rk-nm { font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; }
.rk li.dc .rk-nm { font-family: var(--f-disp); font-size: 1.25rem; font-weight: var(--tk-wt); }
.rk-nm a { text-decoration-color: var(--line-2); }
.rk-d { display: block; margin-top: 0.125rem; font-family: var(--f-text); font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.rk-bar { display: block; height: 0.5rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--quiet); border-radius: 2px; transform-origin: left center; }
.rk li.dc .rk-bar { height: 0.75rem; }
.rk li.dc .rk-bar i { background: var(--accent); }
.rk-v { text-align: right; font-size: var(--t-md); color: var(--ink-2); }
.rk li.dc .rk-v { font-size: 1.375rem; font-weight: var(--n-wt); letter-spacing: var(--n-trk); color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) { .rk-bar i { animation: grow 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; } }
@media (max-width: 44rem) {
  .rk li { grid-template-columns: minmax(0, 1fr) auto; }
  .rk-bar { grid-column: 1 / -1; grid-row: 2; }
  .rk-v { grid-column: 2; grid-row: 1; }
}
.bk-crash { margin-top: 2.5rem; }
.bp-hd { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.bp td.wait .bp-s { margin-top: 0.5rem; }
.lift-sharpe { max-width: 72ch; }
.bk-out .bp thead th:first-child { width: 6rem; }
.bk-line { margin-top: 1.25rem; color: var(--ink-2); font-size: var(--t-sm); max-width: 66ch; text-wrap: pretty; }
.bk-line + .bk-line { margin-top: 0.5rem; }
.bk-line b { color: var(--ink); font-weight: 600; }
@media (max-width: 44rem) {
  .bk-out .bp, .bk-out .bp tbody { display: block; }
  .bk-out .bp thead { display: none; }
  .bk-out .bp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 0.875rem; padding: 1rem 0 1.125rem; }
  .bk-out .bp th[scope="row"] { grid-column: 1 / -1; padding: 0 0 0.5rem; font-size: var(--t-md); }
  .bk-out .bp td { padding: 0; }
  .bk-out .bp td::before { content: attr(data-l); display: block; margin-bottom: 0.25rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.3; min-height: 2.6em; }
  .bk-out .bp-n { font-size: 1.375rem; }
}

/* calculator */
.calc-in { margin-top: 2.5rem; display: grid; grid-template-columns: auto minmax(0, 26rem); gap: 0.75rem 1.5rem; align-items: center; justify-content: start; }
.calc-l { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.field { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 1rem; min-height: 3.5rem; }
.field:focus-within { border-color: var(--accent); }
.field .pre { color: var(--ink-3); margin-right: 0.25rem; font-size: 1.5rem; }
.field input { background: transparent; border: 0; color: var(--ink); font-size: 1.5rem; font-weight: 600; width: 9.5rem; }
.field input:focus { outline: none; }
.slide { width: 100%; accent-color: var(--accent); height: 2rem; cursor: pointer; }
.calc-out { margin-top: 3rem; display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem 4rem; align-items: end; }
.co-l { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.co-l .num { color: var(--ink-3); font-weight: 400; margin-left: 0.25rem; }
.co-n { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; }
.co-n dt { font-size: var(--t-xs); color: var(--ink-3); }
.co-n dd { margin: 0.375rem 0 0; font-weight: var(--n-wt); font-stretch: var(--n-str); letter-spacing: var(--n-trk); line-height: 1; }
.co.dc .co-n dd { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); color: var(--accent-ink); }
.co.tb .co-n dd { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); color: var(--ink-2); }
.co.tb .co-n { gap: 1rem 1.75rem; }
.co.tb { padding-bottom: 0.25rem; }
.fine { margin-top: 1.25rem; font-size: var(--t-xs); color: var(--ink-3); max-width: 70ch; }
.err { color: var(--ink); }

/* connect: the example exchange */
.talk { margin-top: 2.75rem; max-width: 40rem; }
.chat { display: grid; gap: 0.75rem; }
.msg { padding: 0.875rem 1.125rem; border-radius: 14px; font-size: var(--t-sm); line-height: 1.5; }
.msg.me { justify-self: end; max-width: 30rem; background: var(--line); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; max-width: 36rem; }
.msg.bot p + * { margin-top: 0.75rem; }
.msg.bot ul + p { margin-top: 0.75rem; }
.ans { list-style: none; margin: 0; padding: 0; }
.ans li { display: grid; grid-template-columns: 1fr auto 5rem; gap: 1rem; padding: 0.375rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.ans li:first-child { border-top: 0; }
.ans li.dc span:first-child { color: var(--ink); font-weight: 600; }
.ans li.dc .num { color: var(--accent-ink); }
.ans .num { text-align: right; }
.chat-tag { margin-top: 0.625rem; font-size: var(--t-xs); color: var(--ink-3); }

/* connect: setup tabs */
.setup { margin-top: 3rem; max-width: 52rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--line); }
.tabs button {
  font: inherit; font-size: var(--t-sm); color: var(--ink-3); background: none; border: 0; cursor: pointer;
  padding: 0.75rem 0.875rem; margin-bottom: -1px; border-bottom: 2px solid transparent;
  transition: color 140ms cubic-bezier(0.25, 1, 0.5, 1);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.pane { margin-top: 1rem; display: flex; align-items: stretch; gap: 0.75rem; flex-wrap: wrap; }
.code {
  flex: 1 1 22rem; min-width: 0; margin: 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 0.875rem 1rem;
  font-family: var(--f-code); font-size: 0.8125rem; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.code code { font: inherit; }
.pane .btn { align-self: flex-start; }
.copy-msg { min-height: 1.25rem; margin-top: 0.5rem; font-size: var(--t-xs); color: var(--ink-2); }
.broker { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--ink-2); }
.links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--t-sm); color: var(--ink-2); }

/* footer */
.foot { margin-top: clamp(5rem, 10vw, 8rem); padding-top: 1.5rem; padding-bottom: 4.5rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); display: grid; gap: 1rem; }
.tell { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.sources summary { cursor: pointer; color: var(--ink-2); font-weight: 600; width: max-content; }
.sources ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; }
.sources li { overflow-wrap: anywhere; }

/* dithered shading: 8x8 ordered (Bayer) dots drawn on canvas in app.js; static SVG patterns when canvas is missing.
   Dots mean digital credit; T-bills and cash stay flat grey. Green and blue only. */
.dz { display: block; pointer-events: none; shape-rendering: crispEdges; }
.dz-ink { fill: var(--dither); }
.dz-acc { fill: var(--accent); }
.dz-cv { position: absolute; image-rendering: crisp-edges; image-rendering: pixelated; }
.dz-hero { position: absolute; top: 0; left: 0; z-index: -1; }
svg.dz-hero { width: 100%; }
.dz-edge { position: absolute; top: clamp(1rem, 2.5vw, 2rem); left: calc(50% - 50vw); }
/* The full-width dot strips round up to whole cells and use 100vw; clip so they can never add a sideways scroll. */
body { overflow-x: clip; }
svg.dz-edge { width: 100vw; height: 3rem; }
#agent, #calc { position: relative; }
.dz-host { position: relative; }
.dz-host > svg, .dz-host > span { position: relative; z-index: 1; }
.dz-ov { position: absolute; left: 0; top: 0; z-index: 0; }
.dz-live .dz-bar { visibility: hidden; }
.lf-row.dc .lf-seg.cash.dz-live { background: transparent; border-color: transparent; justify-content: flex-end; }
.co-ink { height: 2px; margin-bottom: 1.125rem; background: var(--quiet); }
.co.dc .co-ink { height: 0.625rem; background: var(--accent); }
.co.dc .co-ink.dz-live { background: transparent; }
:root[data-color="orange"] .dz, :root[data-color="orange"] .co-ink { display: none; }

@media (max-width: 40rem) {
  .lf-row { grid-template-columns: 1fr auto; }
  .lf-bar { grid-column: 1 / -1; grid-row: 2; }
  .lf-n { grid-row: 1; grid-column: 2; font-size: 1.375rem; }
  .lf-n small { display: inline; margin-left: 0.375rem; }
  .lf-seg { padding: 0 0.5rem; }
  .calc-in { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; gap: 2.25rem; }
  .co-n { gap: 1rem 1.5rem; }
  .ans li { grid-template-columns: 1fr auto 4.25rem; gap: 0.75rem; }
  .pane .btn { flex: 1 1 100%; }
  /* Phones: the option switches sit at the end of the page instead of floating over the charts. */
  .foot { padding-bottom: 2rem; }
}

/* bought under $100: the table alone, full width */
.bp-wrap { margin-top: 2rem; }

/* what can go wrong: one list, said once */
.risk { margin-top: 2rem; }
.risk-l { margin: 0; padding: 0; list-style: none; max-width: 62rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 3rem; }
.risk-l li { border-top: 1px solid var(--line-2); padding: 1rem 0 1.125rem; font-size: var(--t-sm); color: var(--ink-2); text-wrap: pretty; }
.risk-l b { display: block; margin-bottom: 0.25rem; color: var(--ink); font-weight: 600; font-size: var(--t-md); }

/* your situation */
.st-in { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; align-items: end; }
.st-f { display: grid; gap: 0.5rem; }
.st-in .calc-l { grid-column: auto; }
.sel {
  font: inherit; font-size: 1.125rem; font-weight: 600; color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 8px; min-height: 3.5rem; padding: 0 2.5rem 0 1rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.sel:focus-visible, .field:focus-within { outline: none; box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.st-out { margin-top: 2.5rem; }
.st { width: 100%; border-collapse: collapse; table-layout: fixed; }
.st thead th { text-align: left; vertical-align: bottom; padding: 0 1rem 0.875rem 0; font-family: var(--f-disp); font-size: 1.5rem; font-weight: var(--tk-wt); line-height: 1.1; }
.st thead th:first-child { width: 11rem; }
.st-iss { display: block; margin-top: 0.25rem; font-family: var(--f-text); font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.st tbody tr { border-top: 1px solid var(--line-2); }
.st th[scope="row"] { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.st td { vertical-align: top; padding: 0.875rem 1rem 1rem 0; }
.st-n { display: block; font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-weight: var(--n-wt); letter-spacing: var(--n-trk); line-height: 1.1; color: var(--ink); }
.st tbody tr:first-child .st-n { color: var(--accent-ink); }
.st-s { display: block; margin-top: 0.375rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.st-buy td { font-size: var(--t-sm); }

/* where to buy */
.wb-wrap { margin-top: 2rem; max-width: 52rem; }
.wb { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wb thead th { text-align: left; padding: 0 1rem 0.75rem 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.wb thead th:first-child { width: 11rem; }
.wb tbody tr { border-top: 1px solid var(--line); }
.wb th[scope="row"] { text-align: left; padding: 0.875rem 1rem 0.875rem 0; font-weight: 600; font-size: var(--t-sm); }
.wb td { padding: 0.875rem 1rem 0.875rem 0; font-size: var(--t-sm); }
.wb-n { color: var(--ink-3); font-size: var(--t-xs); }

@media (max-width: 40rem) {
  .st-in { display: grid; grid-template-columns: 1fr; }
  .st-in .field input, .sel { width: 100%; }
  .st, .st tbody { display: block; }
  .st thead { display: none; }
  .st tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 0.75rem; padding: 0.875rem 0 1rem; }
  .st th[scope="row"] { grid-column: 1 / -1; padding: 0 0 0.375rem; }
  .st td { padding: 0; min-width: 0; }
  .st td::before { content: attr(data-l); display: block; margin-bottom: 0.25rem; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
  .st-n { font-size: 1.25rem; }
  .wb thead th:first-child, .wb th[scope="row"] { width: 6.5rem; }
  .wb td a { overflow-wrap: anywhere; }
}
#below .below { margin-top: 0; }
