/* MakerLens site pages: landing, Privacy, Legal, 404.
   Colours, fonts and radii come from MakerLens Assets' design tokens
   (/assets/css/tokens.css: slate neutrals, one green action colour), so the family stays in
   sync. Only what the marketing pages need on top is defined here (pixel-art colours, the
   dark "night" band, the hard shadow); each of those has the three theme copies below
   (light base, prefers-color-scheme, explicit data-theme), like tokens.css. */
:root {
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Cambria, Georgia, serif;
  --night: #0f172a;
  --shadow: #0f172a;
  --blue: #1d4ed8;
  --px-k: #0f172a; --px-h: #7b3f1d; --px-s: #efc59a; --px-c: #15803d; --px-b: #1d4ed8;
  --px-w: #f8fafc; --px-g: #65a30d; --px-l: #bef264; --px-r: #dc2626;
  --on-night: #f8fafc; --on-night-2: #94a3b8; --night-line: rgba(248, 250, 252, .28); --night-a: #4ade80;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #111827;
    --shadow: rgba(74, 222, 128, .32);
    --blue: #60a5fa;
    --px-k: #020617; --px-h: #c27a47; --px-s: #f3cba3; --px-c: #22c55e; --px-b: #60a5fa;
    --px-w: #f8fafc; --px-g: #84cc16; --px-l: #d9f99d; --px-r: #f87171;
  }
}
:root[data-theme="dark"] {
  --night: #111827;
  --shadow: rgba(74, 222, 128, .32);
  --blue: #60a5fa;
  --px-k: #020617; --px-h: #c27a47; --px-s: #f3cba3; --px-c: #22c55e; --px-b: #60a5fa;
  --px-w: #f8fafc; --px-g: #84cc16; --px-l: #d9f99d; --px-r: #f87171;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: linear-gradient(var(--dot) 1px, transparent 1px), linear-gradient(90deg, var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--t);
  font: 400 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.sprites { position: absolute; }
main { flex: 1; width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--a); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--a); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: var(--s3); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -64px; min-height: 44px; display: inline-flex; align-items: center; background: var(--t); color: var(--bg); padding: 10px 16px; border-radius: var(--r); z-index: 10; font: 500 16px/1.4 var(--font); }
.skip:focus { top: 12px; }
.only-m { display: none; }

/* header: lens mark with three green pixels, mono nav with a rule under the current page.
   Compact (56px, one row on phones too) and pinned to the top while the page scrolls; it gains
   the hard shadow once the page has moved (scroll-driven, CSS only). Mirrored for the tools'
   faq.html in css/family-chrome.css of both tool repos: edit the three together. */
.top { background: var(--bg); border-bottom: 2px solid var(--t); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 700 20px/1 var(--serif); letter-spacing: -.02em; color: var(--t); }
.brand b { font-weight: 700; font-style: italic; color: var(--a); }
.brand:hover { color: var(--t); }
.brand:hover b { color: var(--a); }
.mark { color: currentColor; }
.lp { fill: var(--a); }
.top nav { display: flex; gap: 8px; }
.top nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; font: 400 14px/1 var(--mono); text-decoration: none; color: var(--t2); border-radius: 0; }
.top nav a:hover { background: var(--s3); color: var(--t); }
.top nav a[aria-current="page"] { color: var(--t); font-weight: 700; box-shadow: inset 0 -4px 0 var(--a-bg); }
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--t2); cursor: pointer; }
.theme-btn:hover { color: var(--t); background: var(--s2); border-color: var(--bd); }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* buttons: mono, ink border, hard shadow; green is the only action colour */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); font: 700 15px/1 var(--mono); text-decoration: none; border: 2px solid var(--t); box-shadow: 4px 4px 0 var(--shadow); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.btn-p { background: var(--a-bg); color: var(--a-on); }
.btn-p:hover { color: var(--a-on); filter: brightness(1.08); }
.btn-s { background: var(--s1); color: var(--t); }
.btn-s:hover { color: var(--t); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 15px/1.2 var(--mono); text-decoration: none; border-bottom: 2px solid var(--a); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--a); }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--a); }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--t2); max-width: 34rem; }
.lede strong { color: var(--t); }
.kicker { display: inline-block; font: 700 13px/1.3 var(--mono); color: var(--a); border: 2px solid var(--a); background: var(--s1); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; transform: rotate(-1.2deg); }
.hero-note { margin-top: 20px; font: 400 14px/1.5 var(--mono); color: var(--t2); }
.fig { width: 100%; height: auto; filter: drop-shadow(6px 6px 0 var(--shadow)); }
figcaption { margin-top: 14px; font: 400 14px/1.5 var(--mono); color: var(--t2); max-width: 40rem; }
figcaption i { font-style: normal; color: var(--a); font-weight: 700; }
.plate { fill: var(--s2); stroke: var(--t); stroke-width: 2.5; }
.hex text { font: 400 12.4px var(--mono); fill: color-mix(in srgb, var(--t) 40%, transparent); white-space: pre; }
.hx-h { fill: var(--a); font-weight: 600; }
.ring { fill: var(--t); }
.hd-line { stroke: var(--t); }
.hd-cap { stroke: var(--a-bg); }
.ck1 { fill: var(--c2); }
.ck2 { fill: var(--c1); }
.shadow { fill: var(--t); opacity: .16; }
.pk { fill: var(--px-k); } .ph { fill: var(--px-h); } .ps { fill: var(--px-s); } .pc { fill: var(--px-c); } .pb { fill: var(--px-b); }
.pw { fill: var(--px-w); } .pg { fill: var(--px-g); } .pl { fill: var(--px-l); } .pr { fill: var(--px-r); }

.ruler { border-block: 2px solid var(--t); background: var(--s2); }
.ruler ul { list-style: none; margin: 0 auto; padding: 0 24px; max-width: 1200px; display: flex; flex-wrap: wrap; }
.ruler li { flex: 1 1 0; min-width: 88px; padding: 14px 12px; border-left: 1px solid var(--bd2); font: 400 14px/1.2 var(--mono); color: var(--t2); position: relative; }
.ruler li:first-child { flex: 1.6 1 0; border-left: 0; padding-left: 0; }
.ruler li:not(:first-child)::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 8px; background: var(--t); }

/* sections */
.sec { padding: 96px 0; }
.band { background: var(--s2); border-block: 2px solid var(--t); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: end; margin-bottom: 48px; }
.sec h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.sec-head p { font-size: 18px; color: var(--t2); max-width: 38rem; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 700 13px/1 var(--mono); padding: 8px 10px; border: 2px solid var(--t); border-radius: 6px; background: var(--s1); color: var(--t); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 2px solid var(--t); }
.facts div { padding: 20px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--bd2); }
.facts h3 { font-size: 18px; line-height: 1.3; }
.facts p { margin-top: 8px; font-size: 16px; color: var(--t2); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; margin-top: 24px; border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); font: 700 15px/1.2 var(--mono); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-size: 20px; }
.more[open] > summary::after { content: "\2212"; }
.more .steps { margin-top: 0; }
.more > summary { display: none; }

/* mock of the Assets window (an illustration made of HTML and CSS) */
.win { border: 2px solid var(--t); border-radius: 10px; background: var(--s1); box-shadow: 6px 6px 0 var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 16px; border-bottom: 2px solid var(--t); background: var(--s2); font: 400 14px/1 var(--mono); color: var(--t2); }
.win-bar .brand { font-size: 16px; min-height: 0; }
.win-bar .sw { display: inline-flex; flex-shrink: 0; border: 2px solid var(--t); border-radius: 6px; overflow: hidden; }
.win-bar .brand span { white-space: nowrap; }
.win-bar .sw span { padding: 5px 10px; }
.win-bar .sw .on { background: var(--t); color: var(--bg); }
.win-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.side { border-right: 1px solid var(--bd2); padding: 16px; font: 400 14px/1 var(--mono); }
.side p { color: var(--t2); margin-bottom: 8px; }
.side ul { list-style: none; margin: 0 0 24px; padding: 0; }
.side li { display: flex; justify-content: space-between; height: 32px; align-items: center; padding: 0 8px; border-radius: 6px; color: var(--t2); font-variant-numeric: tabular-nums; }
.side li.on { background: var(--s2); color: var(--t); box-shadow: inset 0 0 0 1px var(--bd2); }
.side .tg { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--a-bg); }
.side .tg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.win .main { padding: 16px; }
.mtools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mtools span { font: 400 13px/1 var(--mono); padding: 8px 12px; border: 1px solid var(--bd2); border-radius: 8px; color: var(--t2); }
.mtools .on { background: var(--t); color: var(--bg); border-color: var(--t); }
.mtools .go { margin-left: auto; border-color: var(--a); color: var(--a); font-weight: 700; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--bd2); border-radius: 6px; display: grid; place-items: center;
  background: conic-gradient(var(--c2) 25%, var(--c1) 0 50%, var(--c2) 0 75%, var(--c1) 0) 0 0 / 16px 16px; }
.thumb .px { width: 52%; height: 60%; image-rendering: pixelated; }
.thumb .pic { width: 86%; height: auto; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--bd2); }
.dup { position: absolute; top: 8px; right: 8px; font: 700 12px/1 var(--mono); background: var(--t); color: var(--bg); padding: 4px 6px; border-radius: 4px; }
.tmeta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font: 400 12px/1.3 var(--mono); }
.fname { color: var(--t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsz { color: var(--t2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* events */
.ev { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.ev .player-wrap { display: grid; gap: 16px; }
.scene-fig { border-radius: 10px; border: 2px solid var(--t); background: #020617; overflow: hidden; }
.p-h { font: 700 14px var(--mono); fill: #f8fafc; }
.p-nm { font: 700 12px var(--font); fill: #020617; }
.p-t { font: 400 13px var(--font); fill: #f8fafc; }
.scene-fig.only-d .p-t { font-size: 16px; }
.p-m { font: 400 12px var(--mono); fill: #cbd5e1; }
.p-i { fill: none; stroke: #e2e8f0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.n-d rect:first-child, .n-c rect:first-child, .n-k rect:first-child { fill: var(--s1); stroke: var(--t); stroke-width: 1.2; }
.n-d .bar { fill: var(--t); }
.n-c .bar { fill: var(--a-bg); }
.n-k .bar { fill: var(--blue); }
.n-k rect:first-child { stroke-dasharray: 5 4; }
.n-t { font: 400 12px var(--mono); fill: var(--t2); }
.n-b { font: 400 14px var(--font); fill: var(--t); }
.n-l { font: 700 12px var(--mono); fill: var(--a); }
.mk { fill: var(--t); }
.dot { fill: var(--t); opacity: .18; }
.dotfill { fill: url(#dots); }
.edge { fill: none; stroke: var(--t); stroke-width: 1.4; }
.edge.dash { stroke-dasharray: 5 5; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--t); }
.notes li { padding: 16px 0; border-bottom: 1px solid var(--bd2); font-size: 16px; color: var(--t2); }
.notes b { display: block; color: var(--t); font-size: 17px; margin-bottom: 2px; }

/* "how it works" band (always dark) */
.night { background: var(--night); color: var(--on-night); }
.night h2, .night h3 { color: var(--on-night); }
.night .kicker { color: var(--night-a); border-color: var(--night-a); background: var(--night); }
.night .sec-head p, .night .steps p, .night .notes li { color: var(--on-night-2); }
.night a { text-decoration-color: var(--night-a); }
.night a:hover, .night .link-arrow:hover { color: var(--night-a); }
.night .link-arrow { border-color: var(--night-a); }
.night :focus-visible { outline-color: var(--night-a); }
.night code { background: rgba(248, 250, 252, .12); color: var(--on-night); }
.night .chips li { background: transparent; border-color: var(--on-night); color: var(--on-night); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; padding: 32px 24px 24px; border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -22px; left: 20px; width: 44px; height: 44px; display: grid; place-items: center; font: 700 20px var(--serif); color: var(--a-on); background: var(--a-bg); border: 2px solid var(--t); border-radius: 50%; }
.steps h3 { font-size: 21px; line-height: 1.2; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--t2); }
.night .steps li { background: transparent; border-color: rgba(248, 250, 252, .5); }
.night .steps li::before { border-color: var(--on-night); background: #22c55e; color: #0f172a; }
.priv-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 56px; }
.night .fig { filter: none; }
.pv-s { font: 400 13px var(--mono); fill: #94a3b8; }
.pv-t { font: 400 14px var(--font); fill: #f8fafc; }
.pv-m { font: 400 13px var(--mono); fill: #94a3b8; }
.stamp-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stamp { width: 168px; flex: none; transform: rotate(-8deg); }
.stamp .st-r { fill: none; stroke: var(--a); }
.stamp .st-t { font: 700 20px var(--mono); fill: var(--a); letter-spacing: .04em; }
.stamp .st-t2 { font: 400 15px var(--mono); fill: var(--a); }
.night .stamp .st-r { stroke: var(--night-a); }
.night .stamp .st-t, .night .stamp .st-t2 { fill: var(--night-a); }

/* FAQ as boxed details */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.faq > * { min-width: 0; }
.faq-list { display: grid; gap: 12px; align-content: start; }
details.q { border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); }
details.q summary { list-style: none; cursor: pointer; position: relative; min-height: 56px; display: flex; align-items: center; padding: 14px 64px 14px 20px; font: 700 18px/1.35 var(--serif); border-radius: 6px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 16px; top: 50%; margin-top: -16px; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--t); border-radius: 50%; font: 700 20px/1 var(--mono); }
details.q[open] summary::after { content: "\2212"; background: var(--t); color: var(--bg); }
details.q summary:hover { color: var(--a); }
details.q .a { padding: 0 20px 20px; color: var(--t2); }
details.q .a p + p { margin-top: 12px; }
details.q .a a { color: var(--t); }
details.q .a ul, details.q .a ol { margin: 8px 0 0; padding-left: 22px; }
details.q .a li + li { margin-top: 6px; }
details.q .a li::marker { color: var(--a); }

/* closing call to action + footer (always dark) */
.closing { background: var(--night); color: var(--on-night); text-align: center; padding: 88px 0 96px; border-top: 4px solid var(--bd2); }
.closing h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -.02em; }
.closing p { color: var(--on-night-2); margin-top: 12px; font-size: 18px; }
.closing .cta { justify-content: center; }
.closing .btn { box-shadow: 4px 4px 0 rgba(74, 222, 128, .4); border-color: var(--on-night); }
.closing .btn-p { background: #22c55e; color: #0f172a; }
.closing .btn-s { background: transparent; color: var(--on-night); }
.closing :focus-visible, .foot :focus-visible { outline-color: var(--night-a); }
.foot { background: #0b1120; color: var(--on-night); border-top: 4px solid #334155; padding: 52px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.foot .brand, .foot a { color: var(--on-night); }
.foot .brand b { color: var(--night-a); }
.foot .lp { fill: var(--night-a); }
.foot a { text-decoration-color: var(--night-a); }
.foot a:hover { color: var(--night-a); }
.foot h2 { font: 700 14px/1 var(--mono); margin: 0 0 14px; }
.foot-brand p { margin-top: 12px; font-size: 15px; color: var(--on-night-2); max-width: 24rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot li a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid #1f2a3d; padding-top: 24px; font: 400 13px/1.5 var(--mono); color: var(--on-night-2); }

/* Privacy and Legal */
.page-head { background: var(--s2); border-bottom: 2px solid var(--t); padding: 64px 0 48px; }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -.025em; }
.page-head .lede { max-width: 38rem; }
.page-head .stamp-row { justify-content: flex-end; }
.spec { font: 400 14px/1.5 var(--mono); border: 2px solid var(--t); box-shadow: 6px 6px 0 var(--shadow); border-radius: var(--r); padding: 16px 20px; background: var(--s1); color: var(--t2); }
.spec dl { margin: 0; }
.spec dt { color: var(--t2); }
.spec dd { margin: 0 0 12px; color: var(--t); }
.spec dd:last-child { margin-bottom: 0; }
.spec a { display: inline-flex; align-items: center; min-height: 44px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding: 56px 24px 96px; }
.toc { position: sticky; top: 16px; font: 400 14px/1.4 var(--mono); border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); padding: 16px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; border-radius: 6px; }
.toc a:hover { background: var(--s3); color: var(--t); }
.doc-body { max-width: 46rem; min-width: 0; }
.doc-body section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 2px solid var(--t); scroll-margin-top: 24px; }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 16px; }
.doc-body p, .doc-body li { color: var(--t2); }
.doc-body p + p, .doc-body ul, .doc-body ol { margin-top: 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-top: 8px; }
.doc-body strong { color: var(--t); }
.doc-body a { color: var(--t); }
.doc-body a:hover { color: var(--a); }
.doc-meta { font: 400 14px var(--mono); color: var(--t2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; align-items: start; }
.card-x { border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); padding: 20px; }
.card-x h3 { font-size: 19px; margin-bottom: 6px; }
.card-x p { margin: 0; color: var(--t2); font-size: 16px; }
.card-x.no { border-left: 8px solid var(--err); }
.card-x.yes { border-left: 8px solid var(--a-bg); }
.card-x ul { margin: 0; }
.doc-body .ic-list { list-style: none; padding: 0; margin: 0; }
.ic-list li { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 16px; }
.ic-list li:first-child { margin-top: 0; }
.ic-list .ic { flex: none; margin-top: 2px; }
.card-x.yes .ic { color: var(--a); }
.card-x.no .ic { color: var(--err); }
.card-x .ic-list code { overflow-wrap: anywhere; }
.defs { border: 2px solid var(--t); border-radius: var(--r); background: var(--s1); padding: 14px 18px; margin-bottom: 40px; }
.doc-body .defs { color: var(--t2); }
.legal { counter-reset: sec; }
.legal section { counter-increment: sec; counter-reset: cl; }
.legal h2::before { content: counter(sec) ". "; color: var(--t2); font-family: var(--mono); font-weight: 400; }
.doc-body .clauses { list-style: none; padding: 0; margin-top: 0; }
.clauses > li { counter-increment: cl; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bd2); }
.clauses > li:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.clauses > li::before { content: counter(sec) "." counter(cl); font: 700 15px/1.7 var(--mono); color: var(--t); }
.clauses ul { margin-top: 8px; }
.doc-body .clauses p + p { margin-top: 8px; }
/* privacy: the summary card beside the heading */
.page-head .sum { border: 2px solid var(--t); box-shadow: 6px 6px 0 var(--shadow); border-radius: var(--r); background: var(--s1); padding: 16px 20px 8px; }
.sum-top { display: flex; align-items: center; gap: 16px; }
.page-head .sum .stamp { width: 104px; }
.page-head .sum .stamp .st-t2 { display: none; }
.sum-h { margin: 0; font: 700 15px/1.3 var(--mono); color: var(--t); }
.sum ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sum li + li { border-top: 1px solid var(--bd2); }
.sum a { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 8px 0; color: var(--t2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.sum a b { display: block; color: var(--t); font: 700 15px/1.35 var(--mono); }
.sum a:hover b { color: var(--a); }
.sum .ic { flex: none; color: var(--a); }

/* 404 */
.notfound { max-width: 640px; margin: 0 auto; padding: 80px 24px 96px; text-align: center; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; letter-spacing: -.02em; }
.notfound .lede { margin: 16px auto 0; }
.notfound .cta { justify-content: center; }

/* entrance: one short rise */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* motion: one orchestrated hero moment, then reveals that follow the scroll.
   Scroll-driven animation needs no JS and is skipped where unsupported (content stays visible). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero h1.rise { animation-delay: .05s; }
  .hero .lede.rise { animation-delay: .15s; }
  .hero .cta.rise { animation-delay: .25s; }
  .hero .hero-note.rise { animation-delay: .35s; }
  .hero figure.rise { animation-delay: .2s; }
  /* the lens drifts over the encrypted bytes, as if scanning them */
  .hero-fig .handle, .hero-fig .ring, .hero-fig > circle, .hero-fig > g[clip-path] { animation: scan 9s ease-in-out 1.2s infinite alternate; }
  @keyframes scan { from { transform: translate(-30px, -18px); } to { transform: translate(26px, 14px); } }
  .btn { transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stamp-row > div, .closing p, .closing .cta,
    .steps li, .n-d, .n-c, .n-k {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    .steps li:nth-child(2) { animation-range: entry 8% entry 63%; }
    .steps li:nth-child(3) { animation-range: entry 16% entry 71%; }
    .grid li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .grid li:nth-child(4n+2) { animation-range: entry 6% entry 86%; }
    .grid li:nth-child(4n+3) { animation-range: entry 12% entry 92%; }
    .grid li:nth-child(4n) { animation-range: entry 18% entry 98%; }
    .stamp { animation: stamp linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    @keyframes stamp { from { opacity: 0; transform: rotate(-24deg) scale(1.7); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active { transform: none; }
}

/* tablet */
@media (max-width: 1000px) {
  .hero .wrap, .sec-head, .page-head .wrap, .priv-row, .faq, .ev, .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding: 40px 0 56px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand, .foot .fine { grid-column: 1 / -1; }
  .toc { position: static; }
  .two { grid-template-columns: 1fr; }
  .page-head .stamp-row { justify-content: flex-start; }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .hero-fig { max-width: 440px; margin: 0 auto; }
  .hero figure { justify-self: center; }
  .ev .player-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ev .player-wrap > .graph-mini { grid-column: 1; }
}

/* phone: a shorter page; the heavy illustrations get a compact form */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .only-m { display: block; }
  .links-row { margin-top: 12px; }
  .only-d { display: none; }
  .bar { gap: 8px; min-height: 54px; }
  .top .brand > span { display: none; }
  .top .brand { flex: none; min-width: 44px; justify-content: center; }
  .top nav { flex: 1 1 auto; justify-content: center; gap: 8px; }
  .top nav a { flex: 0 1 auto; padding: 0 4px; font-size: 13px; }
  .hero { padding: 20px 0 32px; }
  .hero .wrap { gap: 24px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 17px; margin-top: 16px; }
  .cta { margin-top: 24px; gap: 12px; }
  .btn { flex: 1 1 auto; }
  .hero-note { margin-top: 14px; }
  .hero-fig { max-width: 290px; margin: 0 auto; }
  .hero figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ruler ul { padding: 0; }
  .ruler li, .ruler li:first-child { flex: 1 1 auto; min-width: 0; padding: 8px 10px; font-size: 13px; text-align: center; }
  .ruler li:first-child { flex-basis: 100%; text-align: center; padding-bottom: 0; }
  .ruler li:not(:first-child)::before { display: none; }
  .sec { padding: 32px 0; }
  .sec h2 { font-size: 28px; }
  .kicker { margin-bottom: 12px; }
  .sec-head { gap: 12px; margin-bottom: 24px; }
  .sec-head p { font-size: 17px; }
  .chips { margin-top: 14px; }
  .facts, .steps { grid-template-columns: 1fr; }
  .facts { margin-top: 24px; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--bd2); }
  .facts div:last-child { border-bottom: 0; }
  .more > summary { display: flex; }
  .more:not([open]) .facts, .more:not([open]) .notes { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .win-bar .path { display: none; }
  .win-bar { gap: 8px; padding: 0 10px; }
  .win-bar .sw span { padding: 5px 7px; font-size: 13px; }
  .win .main { padding: 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .grid li:nth-child(n+7) { display: none; }
  .tmeta { justify-content: flex-start; }
  .tmeta .fsz { display: none; }
  .mtools .go { margin-left: 0; }
  .steps { gap: 12px; }
  .steps li { padding: 14px 16px 14px 68px; }
  .steps li::before { top: 14px; left: 14px; }
  .steps p { margin-top: 4px; }
  .priv-row { gap: 24px; margin-top: 40px; }
  .stamp { width: 120px; }
  .stamp .st-t2 { display: none; }
  .stamp-row { flex-wrap: nowrap; gap: 16px; }
  .more .steps { margin-top: 16px; }
  .night .more > summary { background: transparent; color: var(--on-night); border-color: var(--on-night); }
  .sec-head p { font-size: 16px; }
  .notes li { padding: 12px 0; }
  details.q summary { font-size: 17px; }
  .closing { padding: 32px 0 36px; }
  .closing p { margin-top: 8px; }
  .foot { padding: 28px 0 20px; }
  .foot-brand p { margin-top: 8px; }
  .foot h2 { margin-bottom: 4px; }

  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
  .toc ul { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 36px 0 32px; }
  .doc { padding: 32px 16px 56px; gap: 24px; }
  .doc-body section { padding-bottom: 28px; margin-bottom: 28px; }
  .notfound { padding: 48px 16px 64px; }
}

/* Desktop: each landing section fits one window under the pinned header (checked at 1280x800
   and 1440x900). The text sits in a left column and the illustration on the right; the
   wrappers below become display: contents so their parts can be placed on one grid. Tablet
   and phone keep the stacked layout above. */
.toc { top: 72px; }
@media (min-width: 1001px) {
  .hero { padding: 48px 0 56px; }
  .sec { padding: 48px 0; }
  .sec h2 { font-size: clamp(32px, 3.2vw, 44px); }
  .sec-head p { font-size: 17px; }
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .split > .sec-head, .split > .ev, .split .player-wrap, .split > .priv-row { display: contents; }
  .split .sec-head > div:first-child { grid-area: h; }
  .split .sec-head > div:last-child { grid-area: p; margin-top: 16px; }
  .split > .links-row { grid-area: l; margin-top: 20px; }

  #assets .split { grid-template-areas: "h f" "p f" "l f" "m m"; grid-template-rows: auto auto 1fr auto; }
  #assets .split > figure { grid-area: f; }
  #assets .split > .more { grid-area: m; }
  #assets .facts { margin-top: 32px; }
  .side { padding: 12px; }
  .win-body { grid-template-columns: 156px minmax(0, 1fr); }
  .side li { height: 30px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

  #events .split { grid-template-areas: "h g" "p g" "pl g" "pl n" "pl l"; grid-template-rows: auto auto 1fr auto auto; }
  #events .ev > figure { grid-area: g; }
  #events .graph-mini { grid-area: pl; margin-top: 20px; width: 100%; max-width: 400px; }
  #events .player-wrap > .more { grid-area: n; }
  #events .notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 12px; }
  #events .split > .links-row { margin-top: 12px; }
  #events .notes li { border-bottom: 0; padding: 12px 0 0; font-size: 15px; }
  #events .notes b { font-size: 16px; }

  #private .split { grid-template-areas: "h f" "p f" "p s" "m m"; grid-template-rows: auto auto 1fr auto; }
  #private .priv-row > figure { grid-area: f; }
  #private .stamp-row { grid-area: s; margin-top: 24px; }
  #private .stamp { width: 132px; }
  #private .split > .more { grid-area: m; margin-top: 48px; }
  .steps li { padding: 28px 22px 20px; }
}

/* Scroll reveals, part by part: each element animates on its own view() timeline, so a
   section unfolds piece by piece as it scrolls in (label, title, text, illustration, then the
   cards one after another). Browsers without scroll-driven animations show everything at once. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .top { animation: top-lift linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
    @keyframes top-lift { from { box-shadow: 0 0 0 var(--shadow); } to { box-shadow: 0 4px 0 var(--shadow); } }
  }
  @supports (animation-timeline: view()) {
    .sec .kicker, .closing h2 { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .sec h2 { animation: from-left linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .sec-head p, .links-row, .faq-list details { animation: reveal linear both; animation-timeline: view(); animation-range: entry 15% entry 80%; }
    .win, .scene-fig, .priv-row figure { animation: wipe linear both; animation-timeline: view(); animation-range: entry 5% entry 65%; }
    .graph-mini { animation: from-right linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .facts > div, .notes li, .chips li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .facts > div:nth-child(2), .notes li:nth-child(2), .chips li:nth-child(2), .faq-list details:nth-child(2) { animation-range: entry 20% entry 80%; }
    .facts > div:nth-child(3), .notes li:nth-child(3), .chips li:nth-child(3), .faq-list details:nth-child(3) { animation-range: entry 30% entry 90%; }
    .faq-list details:nth-child(n+4) { animation-range: entry 35% entry 95%; }
    .ruler li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
    @keyframes from-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
    @keyframes from-right { from { opacity: 0; transform: translateX(48px) rotate(2deg); } to { opacity: 1; transform: none; } }
    @keyframes wipe { from { opacity: .2; clip-path: inset(0 100% 0 0); transform: translateY(24px); } to { opacity: 1; clip-path: inset(-16px); transform: none; } }
  }
}

/* Phone: shorter sections. One row of thumbnails, captions for screen readers only (the
   figures carry their own labels), and the scene player only on wider screens (the graph
   above it already shows the same line). The graph keeps its size so its text stays >= 12px. */
@media (max-width: 640px) {
  .grid li:nth-child(n+4) { display: none; }
  .sec figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #events .graph-mini { display: none; }
  .ev .player-wrap { gap: 0; }
  .priv-row { margin-top: 24px; }
}

/* narrow phones (< 375px): three links fit with 8px between them; Legal (Privacy on the Legal
   page) stays reachable from the footer */
@media (max-width: 374px) {
  .top nav a[href="/legal.html"]:not([aria-current]) { display: none; }
  .top nav:has(a[href="/legal.html"][aria-current]) a[href="/privacy.html"] { display: none; }
}
