/* ZecPy website. Direction: "Type and nothing else" (tasteskill seed 1316761327), graphite with
   the Zcash gold in place of the dealt orange. Every colour and size below comes from these tokens. */

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2d31;
  --ink: #eff0f1;
  --muted: #a4a6ab;
  --accent: #f4b728;
  --accent-ink: #18191b;
  --field-1: #eff0f1;
  --field-1-ink: #18191b;
  --field-1-surface: #e2e3e5;
  --field-1-muted: #4b4d52;
  --field-1-accent: #9a6a00;

  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;
  --font-code: ui-monospace, /* taste-skill-ignore: code blocks only */ "SF Mono", "Cascadia Code", "Liberation Mono", monospace;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-display: clamp(3rem, 12.4vw, 12.5rem);
  --step-figure: clamp(4.5rem, 2rem + 7vw, 8.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(8rem, 10vw, 10rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, pre { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-wrap: balance; }
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
code, pre { font-family: var(--font-code); font-size: var(--step-small); }
p code, li code, td code { background: var(--surface-2); padding: 0.08em 0.3em; }
.field-1 p code, .field-1 li code { background: var(--field-1-surface); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.field-1 { background: var(--field-1); color: var(--field-1-ink); }
.field-1 ::selection { background: var(--field-1-ink); color: var(--field-1); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
  .field-1 .link-plain:hover { color: inherit; text-decoration-thickness: 0.14em; }
}

/* ---------- code blocks ---------- */
.code { background: var(--surface); padding: 1.25rem 1.4rem; overflow-x: auto; line-height: 1.6; tab-size: 4; }
.code .k { color: var(--accent); }
.code .c { color: var(--muted); }
.code .s { color: #c9d6a3; }

/* ---------- icons and icon links (shared with the docs) ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { to { transform: scaleX(1); } }

.iconlink { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 0.75rem; color: inherit; text-decoration: none; background: transparent; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.iconlink .icon { transition: transform var(--t-ui) var(--ease-out); }
.iconlink:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .iconlink:hover { background: var(--surface); }
  .iconlink:hover .icon { transform: translateY(-1px) scale(1.08); }
}
.iconlink--solid { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .iconlink--solid:hover { background: var(--ink); color: var(--bg); } }
.iconlink--big { font-size: var(--step-lead); padding: 0; min-height: 3rem; gap: 0.75rem; }
@media (hover: hover) and (pointer: fine) { .field-1 .iconlink:hover, .footer .iconlink:hover { background: var(--field-1-surface); } .iconlink--big:hover { background: none; color: var(--field-1-accent); } }
.iconrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.button { gap: 0.6rem; }
.button .icon { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .button:hover .icon { transform: translateX(4px); } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding: 1.5rem var(--margin) 1.75rem; }
.hero__top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-small); }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.toplinks { display: flex; gap: 0.25rem; margin-right: -0.75rem; }
.hero__title { margin-top: 15svh; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; }
.hero__title .line:last-child { text-align: right; }
.hero__foot { padding-top: 2.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.hero__foot p { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.ticker { margin-top: auto; padding-top: 6svh; overflow: hidden; color: var(--muted); font-size: var(--step-small); }
.ticker__track { display: flex; gap: 2.5rem; width: max-content; }
.ticker__item { display: inline-flex; gap: 0.6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker__item b { font-weight: 500; color: var(--ink); }
.ticker__item i { font-style: normal; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .ticker__track { animation: ticker 60s linear infinite; } .ticker:hover .ticker__track { animation-play-state: paused; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- shared section head: title left, one line right ---------- */
.section__head { align-items: end; margin-bottom: 2rem; }
.section__head h2 { grid-column: 1 / 7; }
.section__head p { grid-column: 7 / 13; color: var(--muted); }
.field-1 .section__head p { color: var(--field-1-muted); }

/* ---------- measured: 0, 7, 71 ---------- */
.measured__grid { align-items: end; }
.measured__copy { grid-column: 1 / 6; grid-row: 1; }
.measured__copy p { margin-top: 1.25rem; max-width: 40ch; }
.measured__link { grid-column: 1 / 6; grid-row: 2; justify-self: start; margin-top: 1rem; margin-left: -0.75rem; }
.stats { grid-column: 7 / 13; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 0.6rem; background: var(--field-1-surface); padding: 1.25rem 1.25rem 1rem; }
.stat dt { font-size: var(--step-small); font-weight: 500; color: var(--field-1-muted); }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: var(--step-figure); line-height: 0.85; letter-spacing: -0.05em; }
.stat--ours { background: var(--field-1-ink); color: var(--field-1); }
.stat--ours dt { color: var(--accent); }

.testnet { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(12rem, 4fr) 6fr auto; align-items: center; gap: var(--gutter); margin-top: var(--gutter); padding: 1rem 1.25rem; background: var(--field-1-ink); color: var(--field-1); text-decoration: none; transition: background-color var(--t-hover) ease; }
.testnet__where { font-weight: 500; color: var(--accent); }
.testnet__fact { max-width: 70ch; }
.testnet__go { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.testnet__go .icon { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .testnet:hover { background: #000; } .testnet:hover .testnet__go .icon { transform: translateX(4px); } }

/* ---------- fixed upstream ---------- */
.upstream__list { display: grid; gap: 0.5rem; }
.upstream__list li { display: flex; justify-content: space-between; align-items: center; gap: var(--gutter); padding: 0.9rem 1rem 0.9rem 1.25rem; background: var(--surface); }
.upstream__what { display: flex; flex-direction: column; gap: 0.2rem; color: var(--muted); }
.upstream__what strong { font-weight: 500; color: var(--ink); }
.upstream__links { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: flex-end; }
.upstream__links .iconlink { background: var(--surface-2); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .upstream__links .iconlink:hover { background: var(--accent); color: var(--accent-ink); } }

/* ---------- see it run ---------- */
.demo__grid { align-items: start; }
.demo__copy { grid-column: 1 / 5; }
.demo__copy p { margin-top: 1.25rem; max-width: 34ch; }
.demo__video { grid-column: 5 / 13; background: var(--surface); }
.demo__video video { width: 100%; aspect-ratio: 1920 / 1734; }
.demo__shots { margin-top: var(--gutter); align-items: start; }
.demo__shots figure:first-child { grid-column: 5 / 11; }
.demo__shots figure:last-child { grid-column: 11 / 13; }
.demo__shots img { width: 100%; }
.demo__shots figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- the server's log ---------- */
.wallets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wallets button { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.7rem 1rem; background: var(--surface); text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.wallets button:active { transform: scale(0.98); }
.wallets button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.wallets .name { font-weight: 500; }
.wallets .count { font-size: var(--step-small); opacity: 0.75; }
@media (hover: hover) and (pointer: fine) { .wallets button[aria-pressed="false"]:hover { background: var(--surface-2); } }
.log-wrap { margin-top: 1rem; background: var(--bg); }
.log { width: 100%; border-collapse: collapse; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.log th { text-align: left; font-weight: 500; font-size: var(--step-small); color: var(--muted); padding: 0.6rem 0.8rem; }
.log td { padding: 0.5rem 0.8rem; vertical-align: top; }
.log tbody tr:nth-child(even) td { background: var(--surface); }
.log .scenario { width: 14%; font-weight: 500; }
.log .method { width: 24%; }
.log .learn { width: 46%; }
.log .label { width: 16%; text-align: right; }
.log tr.is-identifying td { color: var(--accent); }
.log tr.gap td { padding: 0.25rem; background: none !important; }
.log-more { margin-top: 0.75rem; }
.log-more[hidden] { display: none; }
.log-summary { margin-top: 1rem; }
.log-summary strong { color: var(--accent); font-weight: 500; }

/* ---------- a small API: tabs and a panel ---------- */
.api__box { display: grid; grid-template-columns: minmax(14rem, 4fr) 8fr; background: var(--surface); }
.api__tabs { display: flex; flex-direction: column; padding: 0.5rem; background: var(--surface-2); }
.api__tab { text-align: left; padding: 0.6rem 0.9rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.api__tab code { font-size: var(--step-body); background: none; padding: 0; }
.api__tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .api__tab[aria-selected="false"]:hover { background: var(--surface); } }
.api__panel { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.api__name code { font-size: var(--step-lead); background: none; padding: 0; color: var(--accent); }
.api__desc { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.api__panel .code { width: 100%; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.api__panel .iconlink { margin-top: auto; margin-left: -0.75rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .api__panel.is-swapping > * { animation: swap 360ms var(--ease-out) backwards; }
  .js .api__panel.is-swapping > :nth-child(2) { animation-delay: 40ms; }
  .js .api__panel.is-swapping > :nth-child(3) { animation-delay: 80ms; }
}
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- what it refuses ---------- */
.refuse__grid { align-items: start; }
.refuse__grid h2 { grid-column: 1 / 5; }
.refuse__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.refuse__list li { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; background: var(--field-1-surface); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.refuse__list li:last-child { grid-column: span 2; }
.refuse__list strong { font-family: var(--font-display); font-weight: 900; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.01em; }
.refuse__list span { color: var(--field-1-muted); }
@media (hover: hover) and (pointer: fine) { .refuse__list li:hover { background: var(--field-1-ink); color: var(--field-1); } .refuse__list li:hover span { color: var(--accent); } }

/* ---------- clone to paid: the slip ---------- */
.slip-section { background: var(--surface); }
.slip-section .grid { align-items: start; }
.slip-copy { grid-column: 1 / 7; }
.slip-copy p { margin-top: 1.25rem; max-width: 40ch; }
.slip-copy .code { margin-top: 1.75rem; background: var(--bg); }
.slip { grid-column: 8 / 12; background: var(--field-1); color: var(--field-1-ink); padding: 1.5rem 1.5rem 2.75rem; font-size: var(--step-small); font-variant-numeric: tabular-nums; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.slip h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-small); margin-top: 1.25rem; }
.slip h3:first-child { margin-top: 0; }
.slip ul { margin-top: 0.35rem; }
.slip li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.2rem 0; }
.slip li .dots { flex: 1 1 2rem; min-width: 1.5rem; height: 4px; align-self: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%2318191b'/%3E%3C/svg%3E"); background-size: 8px 4px; background-repeat: repeat-x; opacity: 0.5; }
.slip li .when { flex: 0 0 auto; text-align: right; }
.slip .total { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem -1.5rem 0; padding: 0 1.5rem; min-height: 2.5rem; background: var(--field-1-ink); color: var(--field-1); font-weight: 500; }

/* ---------- agents ---------- */
.agents .grid { align-items: start; }
.agents__copy { grid-column: 1 / 6; }
.agents__copy p { margin-top: 1.25rem; max-width: 40ch; }
.agents__links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.agents__links .iconlink { background: var(--surface); }
.agents__brief { grid-column: 7 / 13; }
.agents__bar { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 0.45rem 0.45rem 0.45rem 1.25rem; font-size: var(--step-small); }
.copy-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; padding: 0 0.9rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--step-small); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.copy-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: var(--ink); color: var(--bg); } }
.agents__brief pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- cta band ---------- */
.cta { display: flex; flex-direction: column; justify-content: space-between; position: relative; min-height: 18rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 1.5rem var(--margin); }
.cta__note { font-size: var(--step-lead); max-width: 28ch; }
.cta__arrow { position: absolute; top: 1.5rem; right: var(--margin); width: 40px; height: 40px; transition: transform var(--t-ui) var(--ease-out); }
.cta__word { margin-top: 2rem; font-family: var(--font-display); font-weight: 900; font-size: var(--step-figure); line-height: 0.78; letter-spacing: -0.05em; text-transform: uppercase; }
.cta:hover, .cta:focus-visible { background: var(--accent-ink); color: var(--accent); }
.cta:hover .cta__arrow { transform: translate(6px, -6px); }
.cta:focus-visible { outline-offset: -6px; outline-color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--field-1); color: var(--field-1-ink); padding: 3.5rem var(--margin) 1.5rem; }
.footer__name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-figure); line-height: 0.9; letter-spacing: -0.05em; }
.footer__row { margin-top: 3rem; align-items: start; }
.footer__places { grid-column: 1 / 6; display: grid; justify-items: start; gap: 0.1rem; font-weight: 500; }
.footer__cols { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); font-size: var(--step-small); }
.footer__cols h2 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-small); margin-bottom: 0.4rem; color: var(--field-1-muted); }
.footer__cols ul { list-style: none; padding: 0; }
.footer__cols .iconlink { padding-inline: 0.5rem; margin-left: -0.5rem; min-height: 2.25rem; }
.footer__legal { margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step-small); }
.footer__legal p { max-width: none; }

/* ---------- tablet ---------- */
@media (max-width: 68.74em) {
  .measured__copy, .stats, .measured__link, .testnet { grid-row: auto; }
  .section__head h2, .section__head p, .measured__copy, .stats, .measured__link, .demo__copy, .demo__video,
  .refuse__grid h2, .refuse__list, .slip-copy, .agents__copy, .agents__brief { grid-column: 1 / -1; }
  .section__head p { margin-top: 0.75rem; }
  .hero { min-height: 80svh; }
  .stats, .demo__video, .refuse__list, .agents__brief { margin-top: 2rem; }
  .demo__shots figure:first-child { grid-column: 1 / 9; } .demo__shots figure:last-child { grid-column: 9 / 13; }
  .slip { grid-column: 1 / 8; margin-top: 2.5rem; }
  .footer__places { grid-column: 1 / -1; }
  .footer__cols { grid-column: 1 / -1; margin-top: 2rem; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  .toplinks .iconlink span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .toplinks { gap: 0; margin-right: -0.75rem; }
  .ticker { margin-top: 6svh; }
  .hero { min-height: 82svh; padding: 1.25rem 1rem 1.25rem; }
  .hero__title { margin-top: 12svh; font-size: 12.6vw; line-height: 0.92; }
  .hero__title .line:last-child { text-align: left; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 1.25rem; padding-top: 8svh; }
  .hero__foot p { font-size: 1.0625rem; }
  .hero__foot .button { width: 100%; }

  .stat { padding: 0.9rem 0.9rem 0.75rem; }
  .stat dd { font-size: 3.5rem; }
  .testnet { grid-template-columns: 1fr; gap: 0.5rem; }
  .upstream__list li { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .upstream__links { justify-content: flex-start; }
  .demo__shots { row-gap: 1.5rem; }
  .demo__shots figure:first-child, .demo__shots figure:last-child { grid-column: 1 / -1; }
  .demo__shots figure:last-child img { width: 60%; }

  .wallets button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 0; padding: 0.6rem 0.75rem; }
  .log thead { display: none; }
  .log, .log tbody { display: block; }
  .log tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.6rem 0; }
  .log td { display: block; width: auto !important; padding: 0 0.8rem; }
  .log td.scenario { grid-column: 1 / -1; grid-row: 1; font-size: var(--step-body); padding-bottom: 0.2rem; }
  .log td.method { grid-column: 1; grid-row: 2; }
  .log td.label { grid-column: 2; grid-row: 2; text-align: right !important; }
  .log td.learn { grid-column: 1 / -1; grid-row: 3; color: var(--muted); }
  .log tr.is-identifying td.learn { color: var(--accent); }
  .log tr.gap { display: none; }
  .log td.scenario:empty { display: none; }
  .log tbody tr:nth-child(even) { background: var(--surface); }
  .log tbody tr:nth-child(even) td { background: none; }

  .api__box { grid-template-columns: 1fr; }
  .api__tabs { flex-direction: row; overflow-x: auto; }
  .api__tab { white-space: nowrap; }
  .api__panel { padding: 1.25rem; }

  .refuse__list { grid-template-columns: 1fr; }
  .refuse__list li:last-child { grid-column: auto; }

  .slip { grid-column: 1 / -1; }
  .cta { min-height: 14rem; }
  .cta__note { font-size: 1.0625rem; max-width: 18ch; }
  .cta__arrow { width: 32px; height: 32px; }
  .footer__name { font-size: 4.5rem; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion (content stays visible without JavaScript) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: 1000ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .log tbody tr { animation: row-in 380ms var(--ease-out) backwards; animation-delay: calc(var(--r, 0) * 22ms); }
  .js .slip[data-reveal] { transform: translateY(-32px); transition: opacity 500ms ease, transform 1000ms var(--ease-out); }
  .js .slip li, .js .slip h3, .js .slip .total { opacity: 0; transition: opacity 300ms ease; transition-delay: calc(var(--r, 0) * 100ms + 300ms); }
  .js .slip.is-in li, .js .slip.is-in h3, .js .slip.is-in .total { opacity: 1; }
}
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
