/* Open Levels ? dark workstation design. Static, accessible foundations with progressive motion. */

:root {
  color-scheme: dark;

  --paper: #080F1C;
  --sheet: #101C2C;
  --ink: #EDF4FC;
  --muted: #AEBDCF;
  --line: #304258;
  --bronze: #7DE7EF;
  --green: #91DDC2;
  --red: #FFAEA6;

  --stage: #0B1423;
  --stage-raised: #132237;
  --stage-line: #354960;
  --on-stage: #EDF4FC;
  --on-stage-muted: #AEBDCF;
  --bronze-light: #7DE7EF;

  /* Read by results.js and simulator.js through getComputedStyle. */
  --bg: var(--paper);
  --fg: var(--ink);
  --surface: var(--sheet);
  --surface-2: #17283C;
  --border: var(--line);
  --fg-muted: var(--muted);
  --link: var(--ink);
  --chart-line: #7DE7EF;
  --chart-zero: #CBD9EA;
  --chart-drawdown: rgba(255, 130, 120, .28);
  --heat-gain: 43, 110, 85;
  --heat-loss: 163, 58, 44;
  --banner-bg: #242418;
  --banner-fg: #F3DDAF;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4.4vw, 64px);
  --maxw: 1360px;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --radius: 10px;
  --settle: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
a:hover { text-decoration-color: var(--bronze); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.026em; margin-top: 1.5em; }
h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.008em; margin-top: 2.2em; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
small, .small { font-size: 0.9rem; }
.muted { color: var(--fg-muted); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 52ch; color: var(--muted); }
.measure { max-width: 68ch; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section > .wrap > h2:first-child, .section-head h2 { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-head { display: grid; gap: 12px 48px; grid-template-columns: 1fr; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 5fr 7fr; } }
.section-head > :last-child > :last-child { margin-bottom: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand .wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; font-size: 0.86rem; }
.brand .mark { width: 28px; height: 24px; flex: none; color: var(--ink); }
.site-nav details { position: relative; }
.site-nav summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 0.95rem; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius); min-height: 44px; display: flex; align-items: center; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--radius); min-width: 240px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 12px 18px; text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--ink); }
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  /* site.js keeps the details open at this width. Without JavaScript the menu stays a working dropdown. */
  .js .site-nav summary { display: none; }
  .js .site-nav details > ul { position: static; display: flex; flex-direction: row; gap: 4px; background: transparent; border: 0; padding: 0; min-width: 0; }
  .js .site-nav a { padding: 8px 12px; color: var(--muted); transition: color 150ms ease; }
  .js .site-nav a:hover { background: transparent; color: var(--ink); }
  .js .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
}

/* Banners */
.banner { background: var(--banner-bg); color: var(--banner-fg); border-bottom: 1px solid #5C5032; font-size: 0.95rem; line-height: 1.5; }
.banner .wrap { padding-top: 12px; padding-bottom: 12px; }
.banner strong { font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.status-pill::before { content: ""; width: 28px; height: 2px; background: var(--bronze); flex: none; }

/* Page heroes */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero h1 { max-width: 19ch; }
.hero .lead { margin-top: 1.25rem; }
[data-loading] { display: none; }
.js [data-loading] { display: block; margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero + .section { border-top: 1px solid var(--border); }

/* Status panel illustration. Colours, layout and Arial match product/ea/OLPanel.mqh. */
.ol-panel { width: min(340px, 100%); background: #12151C; border: 1px solid #3A465A; font-family: Arial, Helvetica, sans-serif; color: #E6EBF1; }
.ol-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 12px; background: #1A1F29; border-bottom: 1px solid #3A465A; font-size: 0.8rem; }
.ol-panel-head span:last-child { color: #B0BDCE; font-size: 0.72rem; }
.ol-panel-state { padding: 11px 12px 3px; font-size: 0.95rem; }
.ol-panel-note { padding: 0 12px 11px; min-height: 2em; color: #FFBD42; font-size: 0.74rem; }
.panel-figure { display: grid; gap: 12px; justify-items: start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 500; padding: 13px 22px; min-height: 48px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn:hover { background: #000; border-color: #000; color: var(--paper); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Grids and blocks */
.grid { display: grid; gap: 40px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { border-top: 1px solid var(--ink); padding-top: 18px; }
.duties, .fit { margin-top: clamp(40px, 5vw, 72px); }
.card h3 { margin-top: 0; }
.callout { border-left: 2px solid var(--ink); background: var(--sheet); padding: 20px 24px; margin: 1.5rem 0; }
.callout.neg { border-left-color: var(--red); }
.callout.info { border-left-color: var(--line); }
.callout p { max-width: 78ch; }
.callout p:last-child { margin-bottom: 0; }

/* Market register */
.register { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--ink); }
.register li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; transition: transform 1500ms var(--settle); }
.register li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 32px; padding: 20px 0; margin: 0; position: relative; }
.register .sym { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.register .name { font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.026em; line-height: 1.12; }
.register .desc { color: var(--muted); }
@media (min-width: 760px) {
  .register li { grid-template-columns: 2fr 5fr 5fr; align-items: baseline; padding: 24px 0; }
  .register .desc { text-align: right; }
}
.register li:nth-child(2)::before { transition-delay: 90ms; }
.register li:nth-child(3)::before { transition-delay: 180ms; }
.register li:nth-child(4)::before { transition-delay: 270ms; }
.register.will-settle li::before { transform: scaleX(0); }

/* What runs where */
.map { padding: clamp(20px, 3.4vw, 48px); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .map { grid-template-columns: 7fr 5fr; column-gap: 72px; } .map figcaption { grid-column: 1 / -1; } }
.map-label { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-stage-muted); margin-bottom: 12px; }
.map-box { border: 1px solid var(--stage-line); padding: clamp(16px, 2vw, 24px); }
.map-terminal { background: var(--stage-raised); padding: clamp(16px, 2vw, 24px); }
.map-terminal strong { font-weight: 500; display: block; margin-bottom: 14px; }
.map-charts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .map-charts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.map-charts li { margin: 0; padding: 10px; border: 1px solid var(--stage-line); font-family: var(--font-mono); font-size: 0.82rem; text-align: center; }
.map-terminal p { margin: 0; font-size: 0.92rem; color: var(--on-stage-muted); }
.map-side { display: grid; gap: 24px; align-content: space-between; }
.map-node { position: relative; border-top: 1px solid var(--on-stage); padding-top: 14px; }
.map-node.quiet { border-top-color: var(--stage-line); }
.map-node p { margin: 0; }
@media (min-width: 900px) {
  .map-node::before { content: ""; position: absolute; top: -1px; right: 100%; width: 72px; height: 1px; background: var(--on-stage); }
  .map-node.quiet::before { background: var(--stage-line); }
}

.map-node::before { transform-origin: left; transition: transform 1000ms var(--settle) 200ms; }
.map.will-settle .map-node::before { transform: scaleX(0); }

/* Spec rows and link lists */
.spec { margin: 0; border-bottom: 1px solid var(--border); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 32px; padding: 16px 0; border-top: 1px solid var(--border); }
@media (min-width: 720px) { .spec > div { grid-template-columns: 3fr 9fr; } }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; max-width: 72ch; }
.linklist { list-style: none; padding: 0; margin: 1.5rem 0 0; border-bottom: 1px solid var(--border); max-width: 68ch; }
.linklist li { margin: 0; border-top: 1px solid var(--border); }
.linklist a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 500; }
.linklist a::after { content: "→"; color: var(--muted); transition: transform 160ms ease; }
.linklist a:hover::after { transform: translateX(4px); }

/* Stats. Lead figures carry equal weight and no celebratory colour. */
.stats { display: grid; gap: 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.stat { border-top: 1px solid var(--border); padding: 12px 0 16px; min-width: 0; }
.stat .label { font-size: 0.86rem; line-height: 1.35; color: var(--fg-muted); display: block; }
.stat .value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.2rem; font-weight: 500; display: block; margin-top: 4px; overflow-wrap: anywhere; }
.stats.lead-figures { gap: 0 48px; margin-bottom: 0; }
.stats.lead-figures .stat { border-top-color: var(--ink); }
.stats.lead-figures .value { font-size: clamp(1.7rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.stat .value.pos, .stat .value.neg { color: inherit; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats.lead-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-weight: 600; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; padding-right: 0; }
tr.group th { padding-top: 22px; color: var(--ink); font-size: 0.86rem; white-space: normal; }
td.pos { color: var(--green); }
td.neg { color: var(--red); }
tr.total td { font-weight: 600; }
.partial { font-size: 0.75rem; color: var(--fg-muted); font-family: var(--font-mono); }

/* Below 640 px each row becomes a labelled block, so no table needs sideways scrolling. Labels come from site.js. */
@media (max-width: 639px) {
  .table-stack { overflow: visible; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .table-stack td::before { content: attr(data-label); font-family: var(--font-body); font-size: 0.82rem; color: var(--fg-muted); text-align: left; flex: none; }
  .table-stack td:first-child { display: block; text-align: left; font-weight: 600; margin-bottom: 4px; font-family: var(--font-body); }
  .table-stack td:first-child::before { content: none; }
  .table-stack.compact tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
  .table-stack.compact td { display: block; text-align: left; padding: 0; }
  .table-stack.compact td:first-child { grid-column: 1 / -1; }
  .table-stack.compact td::before { display: block; }
  .table-stack.prose td { display: block; text-align: left; }
  .table-stack.prose td::before { content: none; }
  .table-stack.prose td:first-child { font-family: var(--font-mono); font-weight: 500; }
}

/* Monthly grid */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.mcell { border: 1px solid transparent; border-radius: 2px; padding: 8px 4px; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.86rem; color: var(--ink); min-height: 60px; display: flex; flex-direction: column; justify-content: center; }
.mcell .m { font-size: 0.72rem; opacity: 1; display: block; }
.mcell .v { font-weight: 500; display: block; }
.mcell.partial-cell { border: 1px dashed var(--ink); }
.mcell.neutral { background: var(--sheet); border-color: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; color: var(--fg-muted); margin-top: 12px; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.legend .sw.green { background: var(--green); }
.legend .sw.red { background: var(--red); }

/* Charts */
.chart-box { background: var(--sheet); padding: clamp(10px, 1.6vw, 20px); margin-bottom: 1em; }
.chart-box canvas { width: 100% !important; height: 380px !important; }
@media (max-width: 560px) { .chart-box canvas { height: 260px !important; } }
.chart-caption { font-size: 0.86rem; color: var(--fg-muted); margin: 6px 0 0; max-width: 90ch; }

/* Methodology */
.method dl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-bottom: 1px solid var(--border); }
.method h3 { margin-top: 0; }
.method dt { font-weight: 600; padding-top: 14px; border-top: 1px solid var(--border); }
.method dd { margin: 0; padding: 2px 0 14px; max-width: 76ch; }
@media (min-width: 760px) {
  .method dl { grid-template-columns: 3fr 9fr; }
  .method dt { padding: 14px 24px 14px 0; }
  .method dd { padding: 14px 0; border-top: 1px solid var(--border); }
}
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px; margin: 2rem 0 0; }
.labels > span { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.45; padding: 10px 0; border-top: 1px solid var(--ink); color: var(--muted); }

/* Forms */
form.stack { display: grid; gap: 18px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label .hint { display: block; font-weight: 400; color: var(--fg-muted); font-size: 0.85rem; }
input[type="email"], input[type="text"], input[type="number"], input[type="date"], select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--sheet); color: var(--fg); font: inherit; font-family: var(--font-mono);
}
input[aria-invalid="true"] { border-color: var(--red); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.form-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.inline-form { display: grid; gap: 8px 10px; grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-top: 1.5rem; }
.inline-form label { margin: 0; }
@media (min-width: 560px) { .inline-form { grid-template-columns: minmax(0, 1fr) auto; } .inline-form label { grid-column: 1 / -1; } }
.form-note { font-size: 0.86rem; color: var(--fg-muted); max-width: 68ch; margin-top: 12px; }
.form-status { margin: 12px 0 0; font-size: 0.92rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red); }
.error { color: var(--red); font-size: 0.9rem; }

/* Simulator worksheet. The label stays first in reading order; on desktop inputs sit left of the explanation and result. */
.worksheet { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "note" "inputs" "output"; }
.worksheet-note { grid-area: note; }
.worksheet-note .callout { margin: 0; }
.worksheet-inputs { grid-area: inputs; }
.worksheet-output { grid-area: output; min-width: 0; }
.worksheet-output h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 0; }
.worksheet-output .stats.lead-figures .value { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
@media (min-width: 980px) {
  .worksheet { grid-template-columns: 4fr 8fr; grid-template-areas: "inputs note" "inputs output"; column-gap: 72px; align-items: start; }
  .worksheet-inputs { position: sticky; top: 96px; }
}

/* Pricing */
.price-card { background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.price-card h2 { margin-top: 1rem; }
.price { font-family: var(--font-mono); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; margin: 0.5rem 0 1.25rem; }
.price small { font-size: 1rem; letter-spacing: 0; color: var(--fg-muted); font-family: var(--font-body); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.7em; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 1px; background: var(--ink); }
.checklist.no li::before { background: var(--red); }

/* FAQ */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 1.1rem; list-style: none; display: flex; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 1.1em; color: var(--muted); font-family: var(--font-mono); font-weight: 400; }
.faq details[open] summary::before { content: "–"; }
.faq .answer { padding: 0 0 20px 2.1em; max-width: 76ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Panel state picker (how it works) */
.state-stage { padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; justify-items: start; }
.state-stage figcaption { max-width: 44ch; }
.state-picker { display: none; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.js .state-picker { display: flex; }
.state-picker button { font: inherit; font-size: 0.86rem; min-height: 40px; padding: 7px 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.state-picker button:hover { border-color: var(--ink); }
.state-picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }


/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--border); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 2px 8px; padding: 22px 0; margin: 0; border-top: 1px solid var(--border); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.86rem; color: var(--muted); padding-top: 3px; grid-row: 1 / span 2; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; }
@media (min-width: 900px) {
  .steps li { grid-template-columns: 4rem 3fr 7fr; padding: 28px 0; }
  .steps li::before { grid-row: auto; }
}

/* Footer */
.site-footer { background: var(--stage); color: var(--on-stage-muted); padding: clamp(40px, 5vw, 72px) 0 32px; font-size: 0.92rem; }
.site-footer strong { color: var(--on-stage); font-weight: 600; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--on-stage); }
.disclaimer { border-top: 1px solid var(--stage-line); margin-top: 2rem; padding-top: 1.25rem; max-width: 86ch; color: var(--on-stage); font-size: 0.95rem; }

/* Legal */
.legal-banner { background: var(--banner-bg); color: var(--banner-fg); padding: 12px 16px; margin: 1.25rem 0 1.75rem; font-weight: 500; }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.legal h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 2.2em; }
.legal .measure { max-width: 76ch; }

/* 404 */
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.big-num { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 8rem); letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print keeps every disclosure; only navigation and controls go. */
@media print {
  .site-nav, .btn, .actions, .state-picker, .rules { display: none; }
  body { background: #fff; color: #000; }
  .site-header { position: static; }
  .banner { background: none; color: #000; border: 1px solid #000; }
  .stage { background: none; color: #000; border: 1px solid #000; }
  .stage figcaption, .map-label, .map-terminal p { color: #000; }
  .map-terminal { background: none; }
  .site-footer { background: none; color: #000; padding: 16px 0 0; }
  .site-footer strong, .site-footer a, .disclaimer { color: #000; }
  .footer-cols { display: none; }
}
