/* Spectra, Terminal brand: soot, white and one lime. Unbounded 800 for display, Onest for reading, JetBrains Mono for readouts.
   Page sections follow the "one-motif" direction; the account area follows the "data terminal" app style. */

:root {
  --ground: #1a1b1e;
  --tone1: #222327;
  --tone2: #2b2c31;
  --ink: #f4f4f0;
  --soft: #b0b0ac;
  --teal: #34353b;
  --teal-d: #2b2c31;
  --cyan: #dafa9c;
  --cyan-d: #b6d97a;
  --gold: #dafa9c;
  --gold-d: #c2e57f;
  --amber: #ffc94d;
  --lime: #dafa9c;
  --mint: #9fffd0;
  --coral: #ff5c5c;
  --white: #f4f4f0;
  --red: #ff5c5c;
  --red-ink: #ff8a8a;
  --cyan-ink: #dafa9c;

  --m: clamp(16px, 3.4vw, 48px);
  --fs-small: 14px;
  --fs-body: clamp(17px, 16px + 0.25vw, 19px);
  --fs-lead: clamp(20px, 17px + 0.6vw, 26px);
  --fs-state: clamp(24px, 14px + 1.5vw, 36px);
  --fs-head: clamp(28px, 14px + 2.4vw, 52px);
  --fs-display: clamp(34px, 5.8vw, 96px);
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --c: 10px; /* the shield's shoulder, cut into every button's top corners */

  /* app (data terminal) */
  --a-panel: #1f2024;
  --a-raised: #292a2f;
  --a-border: #36373d;
  --a-rule: #2e2f34;
  --a-muted: #a6a6a2;
  --a-faint: #939390;
  --pos: #dafa9c;
  --neg: #ff8a8a;

  --tone3: #34353b;
  --line: #393a40;
  --line2: #46474e;
  --on: #17181a;
  --lime-arc: #dafa9c; /* text on the bright fills: lime, mint, amber, coral, white */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Onest', system-ui, sans-serif; font-size: var(--fs-body); line-height: 1.5; letter-spacing: -0.005em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }
.small { font-size: var(--fs-small); }
.body { font-size: var(--fs-body); }
.lead { font-size: var(--fs-lead); line-height: 1.35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on); }

.display, .h1, .h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; }
.display { font-size: var(--fs-display); line-height: 0.94; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-head); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-head); line-height: 0.98; letter-spacing: -0.03em; max-width: 16ch; }
.mono { font-family: var(--f-mono); }
.enc { color: var(--lime); opacity: 0.7; }
.h3 { font-size: var(--fs-lead); line-height: 1.15; letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-lead); letter-spacing: -0.02em; }
.heavy { font-weight: 600; }

/* ---------- buttons: the shield's shoulders ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-size: var(--fs-body); font-weight: 600; text-decoration: none; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
.btn, .tile-b, .wait-b { position: relative; }
.is-press::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0.22; transform-origin: 0 50%; pointer-events: none; animation: press 480ms var(--ease-out) forwards; }
@keyframes press { 0% { transform: scaleX(0); opacity: 0.28; } 55% { transform: scaleX(1); opacity: 0.22; } 100% { transform: scaleX(1); opacity: 0; } }
.btn:focus-visible { outline: none; background: var(--ink); color: var(--ground); }
.btn.gold { background: var(--gold); color: var(--on); }
.btn.gold:hover { background: #e9ffbd; }
.btn.sand { background: var(--ink); color: var(--ground); }
.btn.sand:hover { background: #ffffff; }
.btn.line { background: var(--tone2); color: var(--ink); }
.btn.line:hover { background: var(--line); }
.btn.xl { min-height: 72px; padding: 0 38px; font-size: var(--fs-lead); --c: 14px; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); --c: 8px; }
.btn.wide { width: 100%; }
.txt { color: var(--cyan-ink); font-size: var(--fs-small); font-weight: 600; padding: 6px 0; }
.txt:hover { color: var(--ink); }

[data-intro] { pointer-events: none; }
/* ---------- Learn with Spectra: announcement bar, section, lesson card, pop-up ---------- */
.annc { position: relative; z-index: 41; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px var(--m); background: var(--lime); color: var(--on); font-size: 14px; }
.annc-t { flex: none; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; background: var(--on); color: var(--lime); }
.annc-p { flex: 1; min-width: 0; }
.annc-b { flex: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.annc-x { flex: none; width: 30px; height: 30px; font-size: 20px; line-height: 1; }
.nl-learn { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.nl-soon { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; padding: 2px 5px; background: var(--lime); color: var(--on); }
.learn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 120px var(--m) 72px; }
.learn-copy { grid-column: 1 / span 6; }
.learn-k { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lime); margin-bottom: 18px; }
.learn-copy .body { margin-top: 22px; max-width: 46ch; }
.learn-l { display: grid; gap: 2px; margin: 32px 0; max-width: 520px; }
.learn-l li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: rows of a list */
.learn-l b { font-weight: 600; }
.learn-l span { color: var(--soft); }
.lq { grid-column: 8 / span 5; background: var(--tone1); padding: 28px; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px); }
.lq-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--soft); }
.lq-tok { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.lq-tok b { font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.lq-tok span { color: var(--soft); font-size: 14px; }
.lq-q { margin-top: 18px; font-size: 18px; font-weight: 600; }
.lq-os { display: grid; gap: 6px; margin-top: 14px; }
.lq-o { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; text-align: left; background: var(--tone2); font-size: 15px; }
.lq-o:hover { background: var(--tone3); }
.lq-l { flex: none; display: grid; place-items: center; width: 26px; height: 26px; font-family: var(--f-mono); font-size: 13px; background: var(--ground); color: var(--soft); }
.lq-o.right { background: var(--lime); color: var(--on); } .lq-o.right .lq-l { background: var(--on); color: var(--lime); }
.lq-o.wrong { background: var(--coral); color: var(--on); } .lq-o.wrong .lq-l { background: var(--on); color: var(--coral); }
.lq-o.dim { opacity: 0.55; }
.lq-o[aria-disabled="true"] { cursor: default; }
.lq-a { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; font-size: 15px; line-height: 1.5; animation: rise 320ms var(--ease-out) both; }
.wait { margin-top: 0; }
.lpop { position: fixed; z-index: 60; left: 24px; bottom: 24px; width: min(320px, calc(100vw - 48px)); padding: 20px 20px 18px; background: var(--lime); color: var(--on); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); animation: lpop-in 520ms var(--ease-expo) both; }
.lpop-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 20px; }
.lpop-k { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.lpop-h { margin-top: 6px; font-family: var(--f-display); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
.lpop-p { margin: 8px 0 14px; font-size: 14px; line-height: 1.45; }
.lpop .btn.gold { background: var(--on); color: var(--lime); }
@keyframes lpop-in { from { opacity: 0; transform: translateY(24px); } }
/* Founder: placeholder plan */
.t-found { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; background: var(--tone1); }
.tf-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: center; padding: 28px 32px; }
.tf-in p { max-width: 60ch; color: var(--soft); }
.tf-tag { display: inline-block; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; padding: 3px 8px; background: var(--ink); color: var(--ground); }
.t-found .tile-b { background: var(--tone2); }
.t-found .tile-b:hover { background: var(--tone3); }
@media (max-width: 900px) {
  .learn { padding-top: 88px; } .learn-copy, .lq { grid-column: 1 / -1; } .lq { margin-top: 40px; }
  .learn-l li { grid-template-columns: 1fr; gap: 4px; }
  .tf-in { grid-template-columns: 1fr; gap: 12px; padding: 28px var(--m); }
  .t-found { grid-column: 1; grid-row: auto; }
  .annc-p { font-size: 13px; } .annc-t { display: none; }
}
@media (max-width: 640px) { .annc { flex-wrap: wrap; gap: 6px 12px; padding: 10px var(--m); } .annc-p { flex-basis: calc(100% - 44px); } .annc-x { position: absolute; top: 6px; right: 8px; } .lpop { left: 16px; bottom: 16px; } .nl-learn .nl-soon { display: none; } }
/* ---------- site header ---------- */
/* it sticks to the top: scrolling down slides it away, any scroll up brings it straight back */
html.head-hide .head { transform: translateY(-100%); }
html.head-float .head { box-shadow: 0 1px 0 var(--tone2), 0 12px 30px rgba(0, 0, 0, 0.18); }
.head { position: sticky; top: 0; z-index: 40; transition: transform 420ms var(--ease-expo), box-shadow 240ms ease; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 76px; padding: 0 var(--m); background: var(--ground); }
.mark { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.mark svg { display: block; }
.links { justify-self: end; display: flex; gap: 4px; }
.nl { height: 40px; padding: 0 14px; font-size: var(--fs-small); font-weight: 500; color: var(--soft); transition: color 160ms ease; position: relative; }
.nl:hover, .nl.on { color: var(--ink); }
.nl.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--gold); }
.head-act { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-b { display: none; width: 44px; height: 44px; position: relative; }
.menu-b span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease-out); }
.menu-b span:first-child { top: 17px; } .menu-b span:last-child { top: 25px; }
.menu-b[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-b[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: absolute; z-index: 39; top: 76px; left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px var(--m) 24px; background: var(--tone1); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: the menu sheet floats */ animation: sheet-in 260ms var(--ease-out) both; }
.sheet-l { text-align: left; min-height: 52px; font-size: var(--fs-lead); font-weight: 500; }
.sheet .btn { margin-top: 12px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

.notice { margin: 12px var(--m) 0; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--tone1); font-size: var(--fs-small); color: var(--ink); }
.app .notice { margin: 20px 32px 0; }

/* ---------- hero ---------- */
.js .hero { transform: translate3d(0, calc(var(--p) * -4%), 0) scale(calc(1 - var(--p) * 0.12)); opacity: calc(1 - var(--p) * 0.8); }
.hero.is-gone { visibility: hidden; }
.over { position: relative; z-index: 1; background: var(--ground); }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

/* the scan card: an interface fragment from the extension */
.scan { width: 340px; max-width: calc(100vw - 2 * var(--m)); background: var(--ground); color: var(--ink); padding: 18px 20px 8px; font-size: 14px; line-height: 1.4; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.scan-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tagc { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--tone2); color: var(--soft); }
.live { margin-left: auto; font-size: 12px; color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.live i, .ldot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s ease-in-out infinite; }
.ldot { margin-right: 8px; vertical-align: 1px; }
@keyframes blink { 50% { opacity: 0.35; } }
.scan-s { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.scan-n { font-family: var(--f-display); font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.scan-h b, .cks em, .scan-note, .tagc, .live, .ck, .gp { font-family: var(--f-mono); }
.cks em { font-size: 12px; }
.gp, .ck { text-transform: uppercase; letter-spacing: 0.02em; }
.scan-n small, .mini-n small { font-size: 14px; color: var(--soft); font-weight: 500; letter-spacing: 0; }
.gp { flex: none; display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.01em; }
/* Safe / Speculative / Risky bar: three flat segments, no dividers; the dot sits above them, never covered */
.rbar { position: relative; display: flex; height: 6px; margin: 16px 6px 0; }
.rbar i { display: block; height: 100%; }
.rbar .r { width: 50%; background: #ff5c5c; border-radius: 3px 0 0 3px; }
.rbar .m { width: 25%; background: var(--amber); }
.rbar .s { width: 25%; background: var(--cyan); border-radius: 0 3px 3px 0; }
.rbar b { position: absolute; z-index: 1; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--ground); }
.rbar.sm { margin: 12px 4px 0; }
.scan-note { margin-top: 14px; color: var(--soft); font-size: 13px; }
.cks { margin-top: 10px; }
.cks li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--line); font-size: 13px; } /* taste-skill-ignore: row rules inside a data-ui fragment */
.cks em { font-style: normal; color: var(--soft); text-align: right; }
.cks.tight li { min-height: 34px; grid-template-columns: 1fr auto; }
.cks.tight li em { display: none; }
.pv-inline .cks.tight li { grid-template-columns: 1fr auto auto; }
.pv-inline .cks.tight li em { display: block; }
.ck { flex: none; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.ck.p { background: rgba(218,250,156,.14); color: var(--cyan-ink); }
.ck.w { background: rgba(255,201,77,.14); color: var(--amber); }
.ck.f { background: rgba(255,92,92,.16); color: var(--red-ink); }
.ck.q { background: var(--tone2); color: var(--soft); }
.pulse { animation: blink 1.2s ease-in-out infinite; }

/* ---------- chain loop (React Bits LogoLoop) ---------- */
.strip { padding: 40px 0 72px; }
.strip-l { padding: 0 var(--m); margin-bottom: 28px; font-family: var(--f-mono); font-size: var(--fs-small); color: var(--soft); }
.loop { color: var(--ink); }
.loop .logoloop__node svg, .loop .logoloop__node img { display: block; width: auto; height: 1em; fill: currentColor; }
.loop .logoloop__label { font-size: 24px; line-height: 1; }
.tkb { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--on); overflow: hidden; }
.tkb.s { width: 30px; height: 30px; font-size: 13px; }
.tkb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--tone1); }
.ctab .s { display: block; font-size: 13px; color: var(--soft); line-height: 1.2; }

/* ---------- showcase: one control, blown up ---------- */
.show { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: 92svh; padding: 120px var(--m) 160px; overflow: hidden; color: var(--on); transition: background-color 500ms var(--ease-out); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 50% 100%, 0 calc(100% - 64px)); }
.show.safe { background: var(--cyan); }
.show.speculative { background: var(--amber); }
.show-copy .h2 { max-width: 13ch; }
.show-copy .body { margin-top: 28px; max-width: 34ch; }
.show-copy .small { margin-top: 16px; max-width: 34ch; }
.ctl-l { display: block; font-size: 0.62em; color: var(--soft); font-weight: 500; }
.ctl-v { display: block; font-family: var(--f-display); font-size: 2.4em; line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin-top: 0.08em; }
.ctl-r { margin-top: 0.45em; }
.ctl-f { display: flex; gap: 1.4em; margin-top: 0.35em; font-size: 0.55em; color: var(--soft); }
.ctl input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 1.6em; background: transparent; margin: 0; cursor: pointer; }
.ctl input[type="range"]::-webkit-slider-runnable-track { height: 0.34em; background: linear-gradient(90deg, var(--gold) var(--fill), var(--tone3) var(--fill)); /* taste-skill-ignore: a hard-stop progress fill, not a gradient */ }
.ctl input[type="range"]::-moz-range-track { height: 0.34em; background: var(--tone3); }
.ctl input[type="range"]::-moz-range-progress { height: 0.34em; background: var(--gold); }
.ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.2em; height: 1.2em; margin-top: -0.43em; border-radius: 50%; background: var(--ink); border: 0.2em solid var(--ground); transition: transform 140ms var(--ease-out); }
.ctl input[type="range"]::-moz-range-thumb { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--ink); border: 0.2em solid var(--ground); }
.ctl input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.ctl input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.2em; }

/* ---------- rule switches ---------- */
.rules-sec { padding: 120px 0 0; }
.pad { padding: 0 var(--m) 48px; }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: max(140px, 19vh); padding: 24px var(--m); color: var(--soft); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.rule-s { font-size: var(--fs-state); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; max-width: 26ch; }
.rule-w { margin-top: 10px; font-size: var(--fs-body); max-width: 60ch; animation: rise 360ms var(--ease-out) both; }
.rule.on .rule-s { color: inherit; }
.tg { position: relative; flex: none; width: 2.1em; height: 1.16em; border-radius: 99px; background: var(--tone3); transition: background-color 200ms ease; }
.tg i { position: absolute; top: 0.16em; left: 0.16em; width: 0.84em; height: 0.84em; border-radius: 50%; background: var(--soft); transition: transform 240ms var(--ease-out), background-color 200ms ease; }
.tg[aria-checked="true"] i { transform: translateX(0.94em); }
.tg.big { font-size: clamp(34px, 3vw, 46px); }
.rule.on .tg { background: currentColor; }
.rule.on .tg i { background: var(--k, var(--ground)); }
.tg:active i { transform: scale(0.9); }
.tg[aria-checked="true"]:active i { transform: translateX(0.94em) scale(0.9); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- how it works: one card, four fields ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 120px; }
.field { display: flex; flex-direction: column; min-height: 62svh; padding: 32px 28px; }
.field .h3 { min-height: 3em; }
.field .mini { margin: auto 0; align-self: center; }
.field:not(.f1)::before { content: ''; min-height: 3em; }
.f1 { background: var(--tone1); }
.f2 { background: var(--mint); color: var(--on); }
.f3 { background: var(--ink); color: var(--ground); }
.f4 { background: var(--lime); color: var(--on); }
.clause { font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 16ch; }
.mini { width: 268px; max-width: 100%; padding: 16px 16px 12px; background: var(--ground); color: var(--ink); font-size: 14px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); transition: transform 180ms var(--ease-out); }
.field:hover .mini { transform: translateY(-6px); }
.mini-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.mini-n { font-family: var(--f-display); font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 14px; }
.mini-n.pos { color: var(--cyan-ink); }
.mini-p { margin-top: 12px; font-size: 13px; color: var(--soft); }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.mini-k { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--soft); }
.mini-k i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.kvs { margin: 10px 0 0; }
.kvs div { display: flex; justify-content: space-between; min-height: 30px; align-items: center; border-top: 1px solid var(--line); font-size: 13px; } /* taste-skill-ignore: data-ui fragment */
.kvs dt { color: var(--soft); }
.kvs dd { margin: 0; }

/* ---------- chains: tabs, banded readings, preview frame ---------- */
.chains { padding: 120px var(--m) 0; }
.chains-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.cx { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.ctab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; text-align: left; background: var(--tone1); transition: background-color 200ms ease, color 200ms ease; }
.ctab b { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.2; }
.ctab:hover { background: var(--tone2); }
.ctab.on { background: var(--ink); color: var(--ground); }
.ctab.on .s { color: var(--a-faint); }
.cx-note { margin-bottom: 20px; max-width: 60ch; }
.bands { display: grid; gap: 4px; margin-bottom: 20px; }
.band { width: 100%; display: grid; grid-template-columns: 110px 130px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 76px; padding: 0 20px; text-align: left; background: var(--tone1); transition: opacity 240ms ease, background-color 240ms ease; }
.band.alt { background: var(--tone2); }
.band.on { background: var(--mint); color: var(--on); }
.b-tok { font-weight: 600; font-size: var(--fs-body); }
.b-flag { color: var(--soft); font-size: var(--fs-small); }
.band.on .b-flag { color: var(--on); }
.band.on .gp { background: var(--ground) !important; }
.pv-inline { display: none; padding: 4px 20px 12px; background: var(--teal); }
.pv-inline .cks em { color: var(--ink); }
.pv-inline .ck { background: var(--ground); }
.pv { position: sticky; top: 24px; }
.pvc { width: 100%; animation: pv-in 260ms var(--ease-out) both; }
@keyframes pv-in { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) and (pointer: fine) {
  .bands:has(.band:hover) .band:not(:hover) { opacity: 0.4; }
}

/* ---------- plans that step up ---------- */
.plans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; padding: 120px var(--m) 0; }
.plans.page { padding-top: 64px; }
.plans-head { grid-column: 1 / span 6; grid-row: 1; align-self: start; padding: 0 24px 48px 0; }
.plans-head .body { margin-top: 20px; max-width: 44ch; }
.segs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
/* option groups change at once (no colour sweeping between buttons): the chosen one is raised with a lime bar under it */
.segs .seg { position: relative; min-height: 40px; padding: 0 14px; font-size: var(--fs-small); font-weight: 500; background: var(--tone1); color: var(--soft); transition: none; }
.segs .seg:hover { color: var(--ink); }
.segs .seg.on { background: var(--tone2); color: var(--ink); }
.segs .seg.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); }
.plans-head .small { margin-top: 10px; }
.tile { align-self: end; display: flex; flex-direction: column; justify-content: space-between; }
.t-free { grid-column: 1 / span 6; grid-row: 2; background: var(--teal); }
.t-prem { grid-column: 7 / span 6; grid-row: 1 / span 2; background: var(--gold); color: var(--on); }
.tile-in { padding: 32px; }
.tile-n { font-size: var(--fs-lead); font-weight: 600; }
.tile-p { font-family: var(--f-display); font-size: var(--fs-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; }
.tile-p small { font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; }
.sl { margin-top: 28px; display: grid; gap: 12px; }
.sl li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: var(--fs-body); line-height: 1.4; }
.sl li::before { content: ''; width: 14px; height: 17px; margin-top: 4px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 6 96 120'%3E%3Cpath d='M64 6 L112 22 V62 C112 92 92 114 64 126 C36 114 16 92 16 62 V22 Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 6 96 120'%3E%3Cpath d='M64 6 L112 22 V62 C112 92 92 114 64 126 C36 114 16 92 16 62 V22 Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.t-free .sl li::before { background: var(--cyan); }
.tile-b { display: flex; align-items: center; min-height: 64px; padding: 0 32px; font-weight: 600; font-size: var(--fs-body); text-align: left; text-decoration: none; transition: background-color 160ms ease; }
.t-free .tile-b { background: var(--teal-d); }
.t-free .tile-b:hover { background: var(--line); }
.t-prem .tile-b { background: var(--gold-d); color: var(--on); }
.t-prem .tile-b:hover { background: #b6d97a; }
.tile-b::after { content: '→'; margin-left: auto; transition: transform 160ms var(--ease-out); }
.tile-b:hover::after { transform: translateX(4px); }

.pchat { margin-top: 32px; background: var(--ground); color: var(--ink); padding: 16px 18px 14px; font-size: 14px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }
.pchat-h { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); } /* taste-skill-ignore: data-ui fragment */
.pchat-h span { color: var(--gold); font-size: 13px; font-weight: 600; }
.pmsg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0 2px; line-height: 1.45; }
.pmsg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 2px; }
.pmsg-h .soft { font-size: 13px; }
.pscan { margin-top: 32px; max-width: 360px; background: var(--ground); color: var(--ink); padding: 16px 18px 6px; font-size: 14px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }
.pscan .scan-h .gp { margin-left: auto; }
.pcomp { margin-top: 12px; padding: 10px 12px; background: var(--tone2); color: var(--soft); font-size: 13px; }
.close { padding: 160px var(--m) 0; }
.close-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.close-f { margin: 0; }
.close-f figcaption { margin-top: 20px; max-width: 46ch; }
.pdm, .plb, .psync { background: var(--tone1); color: var(--ink); padding: 18px 20px; font-size: 14px; min-height: 260px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }
.pdm { display: flex; flex-direction: column; gap: 10px; }
.pdm .pchat-h, .plb .pchat-h, .psync .pchat-h { margin-bottom: 4px; }
.pdm .dmb { align-self: flex-start; max-width: 80%; padding: 9px 12px; border-radius: 10px 10px 10px 3px; background: var(--tone2); }
.pdm .dmb.me { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: var(--gold); color: var(--on); }
.pdm .pcomp { margin-top: auto; background: var(--ground); }
.plb-r { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.plb-r p { color: var(--soft); font-size: 13px; margin-top: 2px; }
.tg.demo { font-size: 26px; display: inline-block; }
.tg.demo i { background: var(--soft); }
.psync { min-height: 0; margin-top: 40px; max-width: 460px; }
.psync-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 12px; align-items: center; min-height: 52px; border-top: 1px solid var(--line); } /* taste-skill-ignore: rows inside a data-ui fragment */
.psync-r b { display: block; font-weight: 600; }
.psync-r em { font-style: normal; color: var(--soft); font-size: 13px; }
.psync-r .num { text-align: right; }
.psync .pos { color: var(--cyan-ink); }
.psync .neg { color: var(--red-ink); }
.cmp { padding: 120px var(--m) 0; }
.cmp .h3 { margin-bottom: 24px; }
.tbl-wrap { overflow-x: auto; background: var(--tone1); padding: 8px 24px; }
.ct { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-body); }
.ct th, .ct td { padding: 14px 8px; text-align: left; border-top: 1px solid var(--line); font-weight: 400; vertical-align: top; } /* taste-skill-ignore: a real table */
.ct thead th { border-top: 0; color: var(--soft); }
.ct tbody th { color: var(--ink); }
.ct td { color: var(--ink); }
.ct td.dash { color: var(--soft); }
.cmp .small { margin-top: 16px; }

/* ---------- waitlist: a sentence with a blank ---------- */
.wait { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-top: 120px; padding: 112px var(--m); background: var(--amber); color: var(--on); }
.wait-f { grid-column: 1 / span 7; }
.wait-l { grid-column: 9 / span 4; display: grid; gap: 4px; }
.wait-l li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #f2b93a; }
.wait-l b { font-weight: 600; }
.wait-l span { color: #3b3016; font-size: var(--fs-small); }
.wait-s { font-size: var(--fs-head); line-height: 1.12; letter-spacing: -0.04em; font-weight: 600; max-width: 16ch; }
.wait-s input { width: 7.6em; height: 1.1em; padding: 0 0.22em; vertical-align: -0.16em; border: 0; background: #f7dc9a; color: var(--on); font: inherit; letter-spacing: -0.03em; }
.wait-s input::placeholder { color: #8a7440; }
.wait-s input:focus { outline: none; background: #fff3d4; }
.wait-b { height: 1.1em; padding: 0 0.22em; vertical-align: -0.16em; background: var(--ground); color: var(--amber); font: inherit; letter-spacing: -0.04em; clip-path: polygon(0.16em 0, calc(100% - 0.16em) 0, 100% 0.16em, 100% 100%, 0 100%, 0 0.16em); transition: background-color 160ms ease; }
.wait-b:hover { background: var(--line); }
.wait-x { margin-top: 32px; max-width: 58ch; }
.wait-m { margin-top: 12px; min-height: 1.5em; color: var(--on); font-weight: 600; }
.wait .wait-x { color: #2a2414; }

/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--tone1); padding: 96px var(--m) 32px; }
.foot-top { display: flex; align-items: flex-end; gap: 40px; }
.built { display: block; height: max(220px, 34svh); width: auto; flex: none; }
.foot-wm { font-family: var(--f-display); font-size: var(--fs-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; }
.foot-name .body { margin-top: 12px; color: var(--soft); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 32px; margin-top: 56px; }
.fh { font-size: var(--fs-small); color: var(--soft); margin-bottom: 8px; }
.fl { display: block; text-align: left; padding: 6px 0; font-size: var(--fs-body); text-decoration: none; color: var(--ink); transition: color 160ms ease; }
.fl:hover { color: var(--gold); }
.foot-d { max-width: 52ch; font-size: var(--fs-body); }
.foot-end { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; }

/* ---------- page-to-page swipe ---------- */
.sw { animation: swr 440ms var(--ease-out) both; }
.sw.swl { animation-name: swl; }
@keyframes swr { from { opacity: 0; transform: translateX(40px); } }
@keyframes swl { from { opacity: 0; transform: translateX(-40px); } }

/* ---------- load sequence and reveals (only when the runtime is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateX(-104%); animation: line-up 820ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 90ms); }
  .js [data-load] { opacity: 0; transform: translateX(-36px); animation: load-rise 620ms var(--ease-expo) forwards; animation-delay: var(--d); }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .tile[data-reveal]:nth-of-type(3) { transition-delay: 90ms; }
  .js .wait-l[data-reveal] { transition-delay: 120ms; }
  .js .rule { animation: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }


/* ---------- header dropdowns ---------- */
.dd { position: relative; }
.dd-b { display: inline-flex; align-items: center; gap: 8px; }
.car { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.dd:hover .car, .dd:focus-within .car { transform: translateY(1px) rotate(225deg); }
.nl-s { color: var(--lime); }
.av.xs { width: 22px; height: 22px; font-size: 11px; }
.dd-p { position: absolute; z-index: 50; top: calc(100% + 12px); left: -14px; display: grid; grid-template-columns: 330px 230px; gap: 6px; padding: 6px; background: var(--tone1); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease, transform 260ms var(--ease-expo), visibility 0s linear 260ms; }
.dd-p::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd-r .dd-p { left: auto; right: -14px; }
.dd-n { grid-template-columns: 290px; }
.dd:hover .dd-p, .dd:focus-within .dd-p { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd.dd-shut .dd-p { opacity: 0; visibility: hidden; }
.dd-l { display: grid; gap: 2px; align-content: start; }
.dd-i { display: block; width: 100%; text-align: left; padding: 12px 14px; transition: background-color 140ms ease; }
.dd-i:hover, .dd-i:focus-visible { background: var(--tone2); outline: none; }
.dd-i b { display: block; font-size: 15px; font-weight: 600; }
.dd-i span { display: block; margin-top: 2px; font-size: 13px; color: var(--soft); line-height: 1.35; }
.dd:hover .dd-l li, .dd:focus-within .dd-l li { animation: dd-in 320ms var(--ease-expo) both; }
.dd-l li:nth-child(2) { animation-delay: 30ms !important; } .dd-l li:nth-child(3) { animation-delay: 60ms !important; } .dd-l li:nth-child(4) { animation-delay: 90ms !important; } .dd-l li:nth-child(5) { animation-delay: 120ms !important; }
@keyframes dd-in { from { opacity: 0; transform: translateX(-12px); } }
.dd-f { display: flex; flex-direction: column; gap: 8px; padding: 18px; font-size: 14px; line-height: 1.4; color: var(--on); }
.dd-f .btn { margin-top: auto; align-self: flex-start; }
.dd-ft { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-transform: uppercase; line-height: 1; }
.f-lime { background: var(--lime); } .f-mint { background: var(--mint); }
.ldot.dk { background: var(--ground); }
.btn.dark { background: var(--ground); color: var(--ink); }
.btn.dark:hover { background: var(--line); }
.sheet-h { margin-top: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--soft); }

/* ---------- photographs in two tones: black stays soot, white takes the field colour ---------- */
.tape { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding: 120px var(--m) 0; }
.tape-a { grid-column: 1 / span 7; aspect-ratio: 4 / 3.2; }
.tape-copy { grid-column: 9 / span 4; }
.tape-copy .body { margin-top: 24px; }
.tape-b { margin-top: 40px; aspect-ratio: 4 / 4.4; }
.tape-b img { object-position: 50% 40%; }
.rules-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.rules-ph { aspect-ratio: 16 / 8; }
.rules-ph img { object-position: 60% 0; }
.cipher { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 112px var(--m); background: var(--mint); color: var(--on); }
.cipher-copy { grid-column: 1 / span 6; }
.cipher-copy .h2 { max-width: 13ch; }
.cipher-copy .lead { margin: 28px 0 36px; max-width: 34ch; }
.cipher .enc { color: var(--on); opacity: 0.4; }
.cipher-ph { grid-column: 8 / span 5; aspect-ratio: 1 / 1; }
.credits { margin-top: 40px; max-width: 56ch; font-size: 13px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .cx { grid-template-columns: 200px minmax(0, 1fr); }
  .pv { display: none; }
  .pv-inline { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { min-height: 64svh; }
  .ag .span8, .ag .span4 { grid-column: 1 / -1; }
  .cm { grid-template-columns: 220px minmax(0, 1fr); }
  .side { display: none; }
  .cm:has(.dm) .side { display: block; position: absolute; }
  .srow { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .links { display: none; }
  .menu-b { display: block; }
  .head { grid-template-columns: auto 1fr auto; }
  .wait { grid-template-columns: 1fr; row-gap: 48px; }
  .tape, .cipher { grid-template-columns: 1fr; row-gap: 40px; }
  .tape-a, .tape-copy, .cipher-copy, .cipher-ph { grid-column: 1; }
  .tape-b { max-width: 420px; }
  .rules-head { grid-template-columns: 1fr; }
  .close-g { grid-template-columns: 1fr; }
  .wait-f, .wait-l { grid-column: 1; }
  .cx { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; row-gap: 8px; }
  .plans-head, .t-free, .t-prem { grid-column: 1; grid-row: auto; min-height: 0; }
  .plans-head { margin-bottom: 40px; padding: 0; }
  .split { grid-template-columns: 1fr; row-gap: 40px; }
  .split-copy, .panel.form { grid-column: 1; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-d { grid-column: 1 / -1; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  .head { height: 64px; }
  .sheet { top: 64px; }
  .head .btn.sm { display: none; }
  .display { font-size: clamp(28px, 8.8vw, 48px); }
  .loop .logoloop__label { font-size: 19px; }
  .btn.xl { min-height: 64px; }
  .chatl { min-height: 44px; font-size: 14px; padding: 0 14px 0 12px; }
  .rule { grid-template-columns: minmax(0, 1fr) auto; min-height: 132px; }
  .rule-s { font-size: 24px; }
  .tg.big { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .field { min-height: 64svh; }
  .field:not(.f1)::before { display: none; }
  .field .mini { margin: 32px 0; align-self: flex-start; }
  .band { grid-template-columns: 1fr auto; row-gap: 4px; padding: 14px 16px; }
  .b-flag { grid-column: 1 / -1; }
  .chains-head .btn { width: 100%; }
  .wait-s { font-size: 9.4vw; }
  .wait-s input { width: 5.2em; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .built { height: 22svh; min-height: 160px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .tile { margin: 0 calc(-1 * var(--m)); }
  .tile-in { padding: 28px var(--m); }
  .tile-b { padding: 0 var(--m); }
  .tbl-wrap { margin: 0 calc(-1 * var(--m)); padding: 4px var(--m); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- light theme: warm stone ground, soot ink, lime kept for fills and darkened for text ---------- */
:root[data-theme="light"] {
  --ground: #e3e1d9; --tone1: #d8d5cb; --tone2: #cdcabf; --tone3: #c3bfb3; --line: #c2beb2; --line2: #b0aca0;
  --ink: #17181a; --soft: #4f4d47; --teal: #c3bfb3; --teal-d: #b9b5a9;
  --cyan-ink: #46640c; --lime-arc: #6f961c; --pos: #46640c; --neg: #b3261e; --red-ink: #b3261e;
  --a-panel: #ebe9e2; --a-raised: #dedbd2; --a-border: #cbc7bb; --a-rule: #d5d2c8; --a-muted: #5a5852; --a-faint: #6f6d66;
  color-scheme: light;
}
:root[data-theme="light"] body { background: var(--ground); }
:root[data-theme="light"] .ck.w { color: #7a5200; }
:root[data-theme="light"] .ck.f { color: #a3221a; }
:root[data-theme="light"] .enc { color: #46640c; }
:root[data-theme="light"] .nl-s, :root[data-theme="light"] .txt { color: #46640c; }
:root[data-theme="light"] .txt:hover { color: var(--ink); }
/* verdict colours written inline by the page logic */
:root[data-theme="light"] [style*="color:#dafa9c"] { color: #46640c !important; }
:root[data-theme="light"] [style*="color:#ffc94d"] { color: #7a5200 !important; }
:root[data-theme="light"] [style*="color:#ff8a8a"] { color: #a3221a !important; }
:root[data-theme="light"] [style*="color:#9fffd0"] { color: #17694a !important; }
:root[data-theme="light"] [style*="background:rgba(218,250,156"] { background: rgba(120, 160, 20, 0.16) !important; }
:root[data-theme="light"] [style*="background:rgba(255,201,77"] { background: rgba(200, 140, 0, 0.16) !important; }
:root[data-theme="light"] [style*="background:rgba(255,92,92"] { background: rgba(190, 40, 30, 0.13) !important; }
/* the mark goes soot on light grounds; charts keep a darker lime */
:root[data-theme="light"] .mark svg [stroke="#dafa9c"], :root[data-theme="light"] .rail-mark svg [stroke="#dafa9c"], :root[data-theme="light"] .built [stroke="#dafa9c"] { stroke: var(--ink); }
:root[data-theme="light"] .mark svg [fill="#dafa9c"], :root[data-theme="light"] .rail-mark svg [fill="#dafa9c"], :root[data-theme="light"] .built [fill="#dafa9c"] { fill: var(--ink); }
:root[data-theme="light"] svg [stroke="#dafa9c"] { stroke: #6f961c; }
:root[data-theme="light"] svg [fill="#dafa9c"] { fill: #8fb82e; }
:root[data-theme="light"] .rbar b { border-color: var(--ground); }
:root[data-theme="light"] .loop { color: var(--ink); }

/* ---------- round four: centred hero, film, dial, decoded contract ---------- */
.hero { --p: 0; position: sticky; top: 0; z-index: 0; transform-origin: 50% 18%; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100svh - 76px); padding: 48px var(--m) 56px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 1000px; }
.hero .lead { margin-top: 26px; max-width: 40ch; }
.hero-acts { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .small { margin-top: 14px; }
.hero-stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr); align-items: center; gap: 28px; width: 100%; max-width: 1260px; margin-top: 44px; text-align: left; }
.hero-stage .scan.safe { grid-column: 1; justify-self: end; }
.hero-stage .scan.risky { grid-column: 3; justify-self: start; }
.hero-metal { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 0.86; }
.metallic-paint--off { background: none; }
.scan { background: var(--tone1); }
.scan-d { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.scan-d .scan-note { margin-top: 8px; }
.live i.bad { background: var(--coral); }
.dial-ro { flex: none; color: var(--ink); }
.dial-ro .comet-dial__value { font-size: 32px; }
.show { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; padding: 104px var(--m) 150px; }
.show-copy { max-width: 820px; }
.show-copy .h2 { max-width: none; }
.show-copy .body, .show-copy .small { margin-left: auto; margin-right: auto; }
.ctl { position: relative; display: flex; flex-direction: column; align-items: center; width: auto; margin-top: 40px; padding: 26px 44px 22px; font-size: 16px; background: var(--ground); color: var(--ink); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.ctl-l { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.ctl-f { display: flex; gap: 28px; margin-top: 6px; font-size: 15px; color: var(--soft); }
.dial-size .comet-dial__value { font-size: 52px; }
.show-fine { position: static; margin-top: 28px; max-width: 52ch; }
.film { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 120px var(--m) 0; }
.film .h2 { max-width: 20ch; }
.film .body { margin-top: 20px; max-width: 52ch; }
.film-f { position: relative; width: min(1180px, 100%); aspect-ratio: 16 / 9; margin-top: 40px; background: var(--tone1); clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px); }
.film-f video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-s { position: absolute; right: 16px; bottom: 16px; min-height: 40px; padding: 0 16px; background: var(--ground); color: var(--ink); font-size: 14px; font-weight: 600; }
.film-s[aria-pressed="true"] { background: var(--lime); color: var(--on); }
.rules-head { display: block; text-align: center; }
.rules-head .h2 { margin: 0 auto; }
.rules { max-width: 1180px; margin: 0 auto; }
.rule .squish { --ss-w: 84px; --ss-h: 44px; --ss-track: var(--tone3); }
.rule.on .squish { --ss-track-on: var(--on); --ss-thumb-on: var(--k, var(--lime)); }
.cipher { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cipher-copy { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.cipher-copy .h2 { max-width: none; }
.cipher-copy .lead { margin: 24px 0 0; max-width: 40ch; }
.cipher-t { width: min(880px, 100%); margin: 40px 0 36px; padding: 18px 24px 8px; background: #17181a; color: #f4f4f0; text-align: left; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.ct-h, .ct-v { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: 14px; }
.ct-h span, .ct-v span { color: #b0b0ac; }
.ct-v { padding: 14px 0 10px; border-top: 1px solid #2e2f34; } /* taste-skill-ignore: rows inside a data-ui fragment */
.ct-v b { font-family: var(--f-display); font-weight: 800; color: #dafa9c; text-transform: uppercase; }
.cipher-t li { display: grid; grid-template-columns: 120px minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; gap: 16px; min-height: 54px; border-top: 1px solid #2e2f34; } /* taste-skill-ignore: rows inside a data-ui fragment */
.cipher-t code { font-family: var(--f-mono); font-size: 14px; color: #dafa9c; }
.ct-f { font-family: var(--f-mono); font-size: 13px; color: #b0b0ac; overflow-wrap: anywhere; }
.cipher-t .sck { --sc-check: #17181a; --sc-fill: #dafa9c; font-size: 15px; }
.chains-head { flex-direction: column; align-items: center; text-align: center; }
.cx { grid-template-columns: 260px minmax(0, 1fr) 360px; }
.cx .bm { align-self: start; }
.sheet .bm { margin: 4px 0 8px; font-size: 17px; }
.sheet .bm-i { height: 48px; }
.sheet .bm-head { font-size: 13px; }
@media (max-width: 1100px) { .cx { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 32px; }
  .hero-stage { grid-template-columns: 1fr; justify-items: center; gap: 20px; margin-top: 32px; }
  .hero-metal { grid-row: 1; grid-column: 1; width: min(300px, 70vw); }
  .hero-stage .scan.safe, .hero-stage .scan.risky { grid-column: 1; justify-self: center; }
  .cx { grid-template-columns: 1fr; }
  .cipher-t li { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
}
@media (max-width: 640px) {
  .hero-acts { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-acts .btn { width: 100%; }
  .ctl { padding: 22px 18px; width: 100%; }
  .dial-size .comet-dial { --cd-size: 260px !important; }
  .film-f { margin-left: calc(-1 * var(--m)); margin-right: calc(-1 * var(--m)); width: calc(100% + 2 * var(--m)); clip-path: none; }
}
:root[data-theme="light"] .scan, :root[data-theme="light"] .ctl { background: var(--a-panel); }

/* ---------- round five ---------- */
.show.risky { background: var(--coral); }
/* the copy above the dial keeps its height, so a change of verdict never moves the dial under the pointer */
.show-copy .h2 { min-height: 1.96em; display: flex; align-items: center; justify-content: center; }
.show-copy .body { min-height: 4.6em; }
@media (max-width: 640px) { .show-copy .h2 { min-height: 2.94em; } .show-copy .body { min-height: 6.2em; } }
/* light theme: cream, with the bright fills taken down to pale tints */
:root[data-theme="light"] {
  --ground: #f0ece3; --tone1: #e7e2d7; --tone2: #ddd8cb; --tone3: #d2ccbe; --line: #d0cabc; --line2: #bdb7a8;
  --lime: #d9e6ad; --gold: #d9e6ad; --cyan: #d9e6ad; --gold-d: #c9d897; --cyan-d: #c9d897; --mint: #d3e8d9; --amber: #f1dfae; --coral: #efc1b7; --white: #f7f4ee;
  --a-panel: #f5f2eb; --a-raised: #e9e4da; --a-border: #d8d2c5; --a-rule: #e1dcd1;
}
:root[data-theme="light"] .btn.gold:hover, :root[data-theme="light"] .chatl:hover, :root[data-theme="light"] .bt.gold:hover { background: #cddc98; }
:root[data-theme="light"] .rbar .r { background: #d9584c; }
:root[data-theme="light"] .rbar .s { background: #8fb32e; }

/* ---------- round six: downloads, outcome ladder, inside the panel ---------- */
.btn svg path[d^="M3 5h18"] { stroke-width: 2; }
.dd-dl .dd-p { top: calc(100% + 10px); }
.dd-dl .btn.dd-b { gap: 8px; }
.ladder { width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); } /* taste-skill-ignore: rows inside a data-ui fragment */
.ladder-h { font-size: 13px; color: var(--soft); text-align: left; margin-bottom: 6px; }
.lad { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; min-height: 34px; font-size: 15px; text-align: left; }
.lad .lx { font-family: var(--f-mono); font-size: 13px; padding: 2px 0; text-align: center; background: var(--tone2); }
.lad.up .num:last-child { color: var(--cyan-ink); }
.lad.dn .num:last-child { color: var(--neg); }
.panelsec { padding: 120px var(--m) 0; }
.ps-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ps-head .h2 { max-width: 18ch; }
.ps-head .body { margin-top: 20px; max-width: 54ch; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; max-width: 1240px; margin: 48px auto 0; }
.ps-card { background: var(--tone1); padding: 24px 26px; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.ps-k { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 13px; color: var(--soft); margin-bottom: 14px; }
.ps-k2 { margin-top: 20px; }
.ps-segs { margin: 0 0 12px; }
.ps-d { font-size: 15px; color: var(--soft); min-height: 2.9em; }
.ps-t { margin: 10px 0 0; }
.ps-t div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; } /* taste-skill-ignore: rows inside a data-ui fragment */
.ps-t dt { color: var(--soft); }
.ps-t dd { margin: 0; font-family: var(--f-mono); font-size: 14px; text-align: right; }
.ps-fee dd { font-family: inherit; color: var(--soft); }
/* numbered 01 to 13 down the first column, then the second; the weight sits on the right of each row */
.ps-checks ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.ps-n { font-family: var(--f-mono); font-size: 13px; color: var(--soft); padding-top: 2px; }
.ps-checks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: rows inside a data-ui fragment */
.ps-w { font-family: var(--f-display); font-weight: 800; font-size: 16px; color: var(--cyan-ink); text-align: right; }
.ps-checks b { display: block; font-size: 15px; font-weight: 600; }
.ps-checks em { display: block; font-style: normal; font-size: 13px; color: var(--soft); line-height: 1.35; }
.ps-rules { max-width: 1240px; margin: 16px auto 0; padding: 28px 30px; background: var(--amber); color: var(--on); }
.ps-rules .ps-k { color: var(--on); opacity: 0.7; }
.ps-rules ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: r; }
.ps-rules li { counter-increment: r; font-size: 15px; line-height: 1.45; }
.ps-rules li::before { content: counter(r); display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; margin-bottom: 10px; }
.ps-rules b { display: block; margin-bottom: 4px; }
.ps-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 16px auto 0; }
.ps-chart { display: block; width: 100%; height: auto; background: var(--ground); }
.ps-p { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.ps-curs { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-curs span { font-family: var(--f-mono); font-size: 13px; padding: 5px 10px; background: var(--tone2); }
.ps-curs span:first-child { background: var(--lime); color: var(--on); }
.ps-links li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; } /* taste-skill-ignore: rows inside a data-ui fragment */
.ps-links span { color: var(--soft); font-size: 13px; text-align: right; }
.ps-src { max-width: 1240px; margin: 20px auto 0; text-align: center; }
.cp-sub { margin-top: 6px; color: var(--soft); font-size: 15px; }
@media (max-width: 1100px) { .ps-grid, .ps-tiles { grid-template-columns: 1fr; } .ps-rules ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ps-checks ol { grid-template-rows: none; grid-auto-flow: row; } .ps-checks ol, .ps-rules ol { grid-template-columns: 1fr; } .ps-card { padding: 20px 18px; } }
a.dd-i { color: inherit; text-decoration: none; }
