/* Syscraft landing. Tokens from designs/tokens.css (dark set). Lab-notebook look: 2px corners, hairlines, mono data. */
:root {
  color-scheme: dark;
  --page: #0E0F11; --canvas: #141518;
  --surface-1: #18191C; --surface-2: #1F2125; --surface-3: #292C31;
  --border: #2E3137; --control-border: #6B7280;
  --text: #ECEDEF; --secondary: #B1B5BD; --muted: #969BA5;
  --accent: #6CA8FF; --on-accent: #101113;
  --traffic: #5CC8C2; --success: #6CCB98; --warning: #E6B95C; --error: #EF8A8A;
  --front: #202328; --top: #2D3138; --side: #17191D; --grid: #2A2D33; --plate: #FFFFFF;
  --edge-http: var(--accent); --edge-db: var(--traffic); --edge-cache: var(--error); --edge-msg: var(--warning);
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 2px;
  --shadow-overlay: 0 12px 28px rgba(0,0,0,.4);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--secondary); }
code { font: 13px var(--font-mono); color: var(--traffic); background: color-mix(in srgb, var(--traffic) 10%, transparent); padding: 1px 5px; border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
small { font-size: 12px; color: var(--muted); }

/* ---------- controls (ui.css .btn, squared) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 1px solid var(--control-border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: 500 14px var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out; }
.btn:hover { background: var(--surface-3); border-color: var(--secondary); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--secondary); }
.btn.lg { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 52px; padding: 0 24px; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; text-decoration: none; letter-spacing: .01em; }
.mark { display: inline-block; width: 24px; height: 24px; flex: none; background: var(--accent); mask: url("assets/brand/syscraft/logo-mark.svg") center / contain no-repeat; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 10px; color: var(--secondary); font: 500 13px var(--font-mono); text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-end { margin-left: auto; display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; max-width: var(--max); margin: 0 auto; padding: 72px 24px 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); color: var(--traffic); letter-spacing: .04em; }
.eyebrow .dot { width: 6px; height: 6px; background: var(--traffic); box-shadow: 0 0 0 0 var(--traffic); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px transparent; } }
.h1 { margin-top: 20px; font-size: clamp(38px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
.h1 .w { display: inline-block; white-space: pre; }
.lead { margin-top: 22px; max-width: 560px; font-size: 18px; color: var(--secondary); line-height: 1.55; }
.cta { display: flex; gap: 12px; margin-top: 28px; }
.term { margin: 32px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface-1); font: 12.5px/1.75 var(--font-mono); color: var(--secondary); overflow-x: auto; white-space: pre; }
.term .c { color: var(--muted); } .term .k { color: var(--accent); } .term .ok { color: var(--success); } .term .bad { color: var(--error); }
.hero-art { border: 1px solid var(--border); background: var(--canvas); }
.art-chrome { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); font: 11px var(--font-mono); color: var(--muted); }
.art-live { display: inline-flex; align-items: center; gap: 6px; color: var(--error); }
.art-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--error); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { to { opacity: .2; } }
.hero-art .orbit { width: 100%; display: block; overflow: visible; padding: 16px 12px 8px; }
.hn .nm { font: 500 18px var(--font-ui); fill: var(--text); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.hn .ty { font: 15px var(--font-mono); fill: var(--secondary); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.hn { --play: running; --c-led: var(--success); --c-msg: var(--traffic); }
.hw { fill: none; stroke: var(--c, var(--edge-http)); stroke-width: 1.4; opacity: .55; }
.hw.k-cache { --c: var(--edge-cache); } .hw.k-db { --c: var(--edge-db); } .hw.k-msg { --c: var(--edge-msg); }
.hero-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }


.proof { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 24px auto 0; padding: 0 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof li { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-right: 1px solid var(--border); padding-right: 16px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.proof li + li { padding-left: 16px; }
.proof li:last-child { border-right: 0; }
.proof b { font: 600 30px/1 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.proof b.in { font-size: 13px; color: var(--text); }

/* ---------- sections ---------- */
section { max-width: var(--max); margin: 0 auto; padding: 88px 24px 24px; }
.sh { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: baseline; margin-bottom: 36px; padding-top: 16px; border-top: 1px solid var(--border); }
.sn { font: 500 13px var(--font-mono); color: var(--accent); }
.sh p { grid-column: 2; margin-top: 12px; max-width: 720px; color: var(--secondary); font-size: 16px; }
.h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }

/* 01 why */
.truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); }
.truths li { padding: 28px 24px 32px; border-right: 1px solid var(--border); counter-increment: t; }
.truths li:last-child { border-right: 0; }
.truths li::before { content: "0" counter(t) " /"; display: block; margin-bottom: 18px; font: 500 12px var(--font-mono); color: var(--muted); }
.truths h3 { font-size: 19px; letter-spacing: -.01em; }
.truths p { margin-top: 12px; color: var(--secondary); font-size: 14.5px; }

/* 02 verdict */
.score { border: 1px solid var(--border); background: var(--surface-1); }
.score-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font: 12.5px var(--font-mono); color: var(--secondary); }
.score-n { margin-left: auto; color: var(--text); }
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; font: 600 12px var(--font-ui); border: 1px solid; border-radius: var(--radius); }
.chip.bad { color: var(--error); border-color: color-mix(in srgb, var(--error) 50%, transparent); background: color-mix(in srgb, var(--error) 12%, transparent); }
.chip.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 50%, transparent); background: color-mix(in srgb, var(--success) 12%, transparent); }
.rules th, .rules td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.rules th { font: 500 11px var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.rules td:nth-child(2), .rules td:nth-child(3) { font: 13px var(--font-mono); color: var(--secondary); white-space: nowrap; }
.rules td:last-child { width: 32px; text-align: center; color: var(--success); font-weight: 700; }
.rules tr.f td:last-child, .rules tr.f td:nth-child(3) { color: var(--error); }
.rules tr.f td:first-child { color: var(--text); }
.score-foot { padding: 14px 16px; font-size: 14px; color: var(--secondary); }
.score-foot .c { font: 12px var(--font-mono); color: var(--warning); margin-right: 8px; }
.aside { margin-top: 20px; max-width: 760px; color: var(--secondary); font-size: 15px; }
.aside strong { color: var(--success); }

/* 03 syllabus */
.syl th, .syl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 15px; }
.syl thead th { font: 500 11px var(--font-mono); color: var(--muted); letter-spacing: .04em; border-top: 1px solid var(--border); }
.syl td:first-child { font: 500 13px var(--font-mono); color: var(--accent); width: 48px; }
.syl td:nth-child(2) { font-weight: 600; width: 32%; }
.syl td:nth-child(3) small { display: block; margin-top: 4px; line-height: 1.5; }
.syl td:last-child { color: var(--secondary); }
.syl i { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px; border: 1px solid var(--border); font: 11.5px var(--font-mono); color: var(--secondary); font-style: normal; }
.syl i.x { border-color: color-mix(in srgb, var(--warning) 50%, transparent); color: var(--warning); }

/* 04 lab */
/* ---------- demo stage (canvas.css port) ---------- */
.stage { border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); box-shadow: var(--shadow-overlay); overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: var(--surface-1); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--secondary); }
.tb-title { font-weight: 500; color: var(--text); }
.tb-spacer { flex: 1; }
.run-fault-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--warning) 50%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--warning) 10%, var(--surface-1)); color: var(--warning); font-size: 12px; }
.run-fault-tag::before { content: ""; width: 10px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cv { display: block; width: 100%; height: auto; }
.tl { position: relative; height: 4px; background: var(--surface-2); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.tl i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--warning); opacity: .8; }
.tl i.ok { background: var(--success); }
.inst .ic { opacity: 0; }
.cpu-track { fill: var(--surface-3); } .cpu-fill { fill: var(--success); transition: fill 240ms; }
.node.lv-warn .cpu-fill { fill: var(--warning); } .node.lv-crit .cpu-fill { fill: var(--error); }
.node.lv-down .body { opacity: .38; } .node.lv-down { --dash: 6 4; }
.edge[data-load="down"] { opacity: .14; stroke-dasharray: 2 10; }
/* Node shapes: port of web/components/canvas/Canvas.module.css (.node … .nb-*). A node <use>s its shape three times:
   shadow, state ring, body; state only sets the custom properties (--h is the ring colour). */
.node, .hn {
  --h: transparent; --hw: 5; --play: paused; --dash: none;
  --c-top: color-mix(in srgb, var(--acc, var(--top)) 20%, var(--top)); --c-front: var(--front); --c-side: var(--side);
  --c-edge: var(--control-border); --w-edge: .75; --c-line: color-mix(in srgb, var(--control-border) 60%, var(--front));
  --c-cut: var(--canvas); --c-led: color-mix(in srgb, var(--muted) 70%, var(--front));
  --c-msg: color-mix(in srgb, var(--acc, var(--secondary)) 45%, var(--front));
  --f-cyl: url(#nb-g-cyl); --f-tube: url(#nb-g-tube); --f-dome: url(#nb-g-dome);
}
.nb-shape :is(.nb-top, .nb-front, .nb-side, .nb-cyl, .nb-tube, .nb-dome) { stroke: var(--c-edge); stroke-width: var(--w-edge); stroke-linejoin: round; stroke-dasharray: var(--dash); }
.nb-top { fill: var(--c-top); }
.nb-front { fill: var(--c-front); }
.nb-side { fill: var(--c-side); }
.nb-cyl { fill: var(--f-cyl); }
.nb-tube { fill: var(--f-tube); }
.nb-dome { fill: var(--f-dome); }
.nb-line { fill: none; stroke: var(--c-line); stroke-width: 1; stroke-linecap: round; }
.nb-fill { fill: var(--c-line); }
.nb-cut { fill: var(--c-cut); stroke: var(--c-edge); stroke-width: var(--w-edge); }
.nb-wire :is(.nb-top, .nb-front, .nb-side) { fill-opacity: .35; stroke-dasharray: 4 3; }
.nb-led { fill: var(--c-led); animation: nb-blink 1.4s steps(2, jump-none) infinite; animation-play-state: var(--play); }
.nb-led.nb-alt { animation-delay: -.7s; }
.nb-msg { fill: var(--c-msg); animation: nb-flow 1.6s linear infinite; animation-play-state: var(--play); }
.nb-msg.nb-in { animation-name: nb-flow-in; }
.nb-msg.nb-out { animation-name: nb-flow-out; }
.nb-fan { fill: none; stroke: var(--c-msg); stroke-width: 1.5; stroke-dasharray: 5 5; animation: nb-dash .9s linear infinite; animation-play-state: var(--play); }
@keyframes nb-blink { to { opacity: .35; } }
@keyframes nb-flow { to { transform: translateX(26px); } }
@keyframes nb-flow-in { from { opacity: 0; } to { transform: translateX(26px); opacity: 1; } }
@keyframes nb-flow-out { to { transform: translateX(26px); opacity: 0; } }
@keyframes nb-dash { to { stroke-dashoffset: -10; } }
.reduced .nb-led, .reduced .nb-msg, .reduced .nb-fan { animation: none; }
.nb-shade, .nb-halo, .nb-ghost, .nb-glow { pointer-events: none; }
.nb-shade {
  --c-top: #000; --c-front: #000; --c-side: #000; --c-edge: #000; --c-cut: #000;
  --c-line: transparent; --c-led: transparent; --c-msg: transparent; --f-cyl: #000; --f-tube: #000; --f-dome: #000;
  opacity: .3;
}
.nb-halo {
  --c-top: var(--h); --c-front: var(--h); --c-side: var(--h); --c-edge: var(--h); --c-cut: var(--h); --w-edge: var(--hw); --dash: none;
  --c-line: transparent; --c-led: var(--h); --c-msg: var(--h); --f-cyl: var(--h); --f-tube: var(--h); --f-dome: var(--h);
}
.nb-ghost {
  --c-top: var(--surface-1); --c-front: var(--surface-1); --c-side: var(--surface-1); --c-edge: var(--acc, var(--accent)); --c-cut: var(--surface-1); --w-edge: 1;
  --c-line: transparent; --c-led: transparent; --c-msg: transparent; --f-cyl: var(--surface-1); --f-tube: var(--surface-1); --f-dome: var(--surface-1);
  opacity: .65;
}
.nb-glow {
  --c-top: var(--traffic); --c-front: var(--traffic); --c-side: var(--traffic); --c-edge: var(--traffic); --c-cut: var(--traffic); --w-edge: 0;
  --c-line: transparent; --c-led: transparent; --c-msg: transparent; --f-cyl: var(--traffic); --f-tube: var(--traffic); --f-dome: var(--traffic);
  opacity: 0;
}
.stage.running .node { --play: running; --c-led: var(--success); --c-msg: var(--traffic); }
.node .plate { fill: var(--surface-3); stroke: var(--control-border); stroke-width: .75; }
.node .plate-tech { fill: var(--plate); stroke: color-mix(in srgb, var(--control-border) 55%, var(--plate)); stroke-width: 1; }
.n-icon { fill: none; stroke: var(--secondary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.n-name { font: 500 14px var(--font-ui); fill: var(--text); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.n-metric { font: 12px var(--font-mono); font-variant-numeric: tabular-nums; fill: var(--secondary); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.node.lv-warn { --h: var(--warning); --hw: 3.5; }
.node.lv-warn .n-metric { fill: var(--warning); }
.node.lv-crit { --h: var(--error); } .node.lv-crit .nb-halo { animation: crit-pulse 900ms ease-in-out infinite alternate; }
.node.lv-crit .n-metric { fill: var(--error); }
.node.scaled { --h: var(--success); --hw: 3.5; }
.edge.k-msg { --c: var(--edge-msg); } .p.k-msg { --pc: var(--edge-msg); }
@keyframes crit-pulse { from { opacity: 1; } to { opacity: .3; } }
.pool { fill: color-mix(in srgb, var(--success) 6%, transparent); stroke: var(--success); stroke-width: 1; stroke-dasharray: 6 4; }
.pool-l { font: 500 11px var(--font-mono); fill: var(--success); }
.edge { fill: none; stroke: var(--c, var(--edge-http)); stroke-width: 1.5; opacity: .7; transition: stroke-width 300ms, opacity 300ms; }
.edge.k-cache { --c: var(--edge-cache); } .edge.k-db { --c: var(--edge-db); }
.edge[data-load="warn"] { opacity: .9; stroke-width: 3; }
.edge[data-load="bad"] { opacity: 1; stroke-width: 4.5; }
.p { fill: var(--pc, var(--edge-http)); }
.p.k-cache { --pc: var(--edge-cache); } .p.k-db { --pc: var(--edge-db); }
.p.dead { fill: none; stroke: var(--error); stroke-width: 1.5; }

.bottom { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; border-top: 1px solid var(--border); background: var(--surface-1); min-height: 150px; }
.bottom:has(.verdict[hidden]) { grid-template-columns: 220px minmax(0, 1fr); }
.stats { display: grid; grid-template-rows: repeat(4, 1fr); border-right: 1px solid var(--border); }
.stat { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 0 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; }
.stat b { font: 600 14px var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.spark { grid-column: 1 / -1; width: 100%; height: 12px; margin-bottom: 4px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .8; }
.stat b[data-st="bad"] ~ .spark polyline { stroke: var(--error); } .stat b[data-st="warn"] ~ .spark polyline { stroke: var(--warning); }
.score { margin-left: 10px; font: 12px var(--font-mono); color: var(--muted); }
.stat b[data-st="warn"] { color: var(--warning); } .stat b[data-st="bad"] { color: var(--error); } .stat b[data-st="ok"] { color: var(--success); }
.log { padding: 10px 16px; font: 12px/1.9 var(--font-mono); color: var(--secondary); overflow: hidden; }
.log li { opacity: 0; transform: translateX(-6px); }
.log li::before { content: attr(data-t); display: inline-block; width: 52px; color: var(--muted); }
.log .lv-warn { color: var(--warning); } .log .lv-error { color: var(--error); } .log .lv-ok { color: var(--success); }
.verdict { padding: 16px; border-left: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--font-ui); }
.chip.ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.obj { margin-top: 12px; font-size: 13px; color: var(--secondary); }
.obj li { display: flex; gap: 8px; padding: 3px 0; }
.obj i { font-style: normal; color: var(--success); }
.legend { display: flex; gap: 24px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-1); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 8px; border: 2px solid var(--control-border); border-radius: 2px; }
.legend .lv-w { border-color: var(--warning); } .legend .lv-c { border-color: var(--error); } .legend .lv-d { border-style: dashed; border-color: var(--muted); }


/* 05 knobs */
.knob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); }
.knob-grid > div { padding: 14px 16px; background: var(--surface-1); }
.knob-grid dt { font: 500 13px var(--font-mono); color: var(--traffic); }
.knob-grid dd { margin: 6px 0 0; font-size: 13px; color: var(--secondary); line-height: 1.5; }

/* 06 pricing */
.plans th, .plans td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.plans thead th { font-size: 20px; font-weight: 700; border-top: 1px solid var(--border); vertical-align: baseline; }
.plans thead th small { margin-left: 8px; font: 14px var(--font-mono); color: var(--muted); }
.plans th.pro { color: var(--accent); }
.plans td:first-child { color: var(--secondary); width: 42%; }
.plans td:nth-child(2), .plans td:nth-child(3) { font: 14px var(--font-mono); }
.plans td:nth-child(3) { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.plans tfoot td { padding: 20px 16px; border-bottom: 0; }
.plans tfoot .btn { width: 100%; }

/* final / footer */
.final { text-align: center; padding: 120px 24px 96px; }
.final p { margin: 12px 0 28px; color: var(--secondary); font-size: 18px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* reveal (GSAP sets final state; this is the pre-state) */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .term { max-width: 100%; }
  .hero-art { display: none; }
  .truths, .proof { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(2) { border-right: 0; } .proof li:nth-child(3) { padding-left: 0; }
  .knob-grid { grid-template-columns: 1fr 1fr; }
  .bottom { grid-template-columns: 1fr 1fr; }
  .verdict { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 767px) {
  .nav { padding: 0 16px; gap: 12px; } .nav-links { display: none; }
  section { padding: 56px 16px 16px; }
  .sh { grid-template-columns: 1fr; } .sh p { grid-column: 1; }
  .cta { flex-direction: column; }
  .truths, .proof, .knob-grid, .bottom { grid-template-columns: 1fr; }
  .truths li, .proof li { border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0; }
  .syl, .plans { display: block; overflow-x: auto; }
  .score { overflow-x: auto; } .rules { min-width: 560px; }
  .syl td:nth-child(2), .syl td:last-child { width: auto; min-width: 180px; }
  .syl td:nth-child(3) { min-width: 240px; }
  .stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--border); }
  .legend { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow .dot, .art-live i, .node.lv-crit .nb-halo { animation: none; }
}

/* tables and panels sit on a solid surface so the dot grid stays in the gutters */
.truths, .score, .syl, .plans, .knob-grid, .stage, .term, .hero-art { background-color: var(--surface-1); }
.syl, .plans { background-color: var(--page); }

/* legal pages (terms.html, privacy.html, refund.html): one readable column on the page background */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.legal .updated { margin-top: 12px; font: 13px var(--font-mono); color: var(--muted); }
.legal .summary { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface-1); color: var(--secondary); }
.legal h2 { margin-top: 44px; font-size: 20px; font-weight: 600; }
.legal p, .legal ul { margin-top: 14px; color: var(--secondary); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--secondary); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* pricing: a line under each feature says what it is; the trial sits under the Pro price */
.plans td small { display: block; margin-top: 2px; font: 13px/1.4 var(--font-ui); color: var(--muted); }
.plans thead th small.trial { display: block; margin: 4px 0 0; font: 500 12px var(--font-mono); color: var(--success); }
@media (max-width: 767px) { .plans td small { display: none; } }
