/* GeneratedWave. Tokens first; everything below uses them. No inline styles anywhere (the CSP allows none). */
:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  /* neutrals: cool graphite, light */
  --bg: #f7f8f9;
  --surface: #ffffff;
  --raised: #eef0f2;
  --line: rgb(17 20 24 / 10%);
  --line-strong: rgb(17 20 24 / 18%);
  --ink: #111418;
  --ink-2: #454c55;
  --ink-3: #5f6670;
  /* brand orange: marks what GeneratedWave produced; the -ink step is for text on light */
  --accent: #ff6900;
  --accent-ink: #a84300;
  --button: #111418;
  --button-ink: #ffffff;
  --die: #16181c; /* the renderer's background: a die always sits on it, in both themes */
  --die-ink: #e9ebee;
  --die-ink-2: #a3a9b2;
  --met: #1a7f4b;
  --miss: #b42318;
  --series-1: #c2410c; /* ours: the model; lines and shapes in the brand's hue at 5.2:1 on white (palette validator: pass) */
  --accent-line: #c2410c; /* the brand orange as a line or shape: --accent itself is 2.9:1 on white */
  --series-2: #2f6db5; /* the reference: openEMS, a second plane */
  --band: rgb(17 20 24 / 10%);

  /* type: system faces only; Han, kana and hangul fall to each platform's own */
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", "Noto Sans CJK SC", sans-serif;
  --display: ui-sans-serif, -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --t-12: 0.75rem; --t-14: 0.875rem; --t-15: 0.9375rem; --t-17: 1.0625rem; --t-20: 1.25rem; --t-24: 1.5rem;
  --t-32: clamp(1.625rem, 1.2rem + 1.6vw, 2rem);
  --t-56: clamp(2.375rem, 1.5rem + 3.4vw, 3.5rem);

  /* space on a 4 px grid */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --gutter: clamp(16px, 4vw, 40px);
  --page: 1200px;

  /* radii: control 8, card 12, panel 16; nested = outer - padding */
  --r-1: 6px; --r-2: 8px; --r-3: 12px; --r-4: 16px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --d-press: 120ms; --d-hover: 160ms; --d-menu: 200ms; --d-reveal: 480ms; --d-sweep: 900ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1113; --surface: #16181c; --raised: #1e2126; --line: rgb(236 238 241 / 9%); --line-strong: rgb(236 238 241 / 16%);
    --ink: #eceef1; --ink-2: #aab1ba; --ink-3: #8f97a1; --accent-ink: #ff8f45; --button: #eceef1; --button-ink: #0f1113;
    --met: #4cc38a; --miss: #f0716b; --series-1: #e06e1c; --accent-line: #e06e1c; --series-2: #4a82d4; --band: rgb(236 238 241 / 10%);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1113; --surface: #16181c; --raised: #1e2126; --line: rgb(236 238 241 / 9%); --line-strong: rgb(236 238 241 / 16%);
  --ink: #eceef1; --ink-2: #aab1ba; --ink-3: #8f97a1; --accent-ink: #ff8f45; --button: #eceef1; --button-ink: #0f1113;
  --met: #4cc38a; --miss: #f0716b; --series-1: #e06e1c; --accent-line: #e06e1c; --series-2: #4a82d4; --band: rgb(236 238 241 / 10%);
}
:root:lang(zh-Hant) { --sans: ui-sans-serif, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
:root:lang(ja) { --sans: ui-sans-serif, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", sans-serif; }
:root:lang(ko) { --sans: ui-sans-serif, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { overflow-wrap: break-word; margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-17)/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; hyphens: auto; }
h1 { font-size: var(--t-56); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--t-32); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--t-20); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: var(--r-1); }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 20; padding: var(--s-2) var(--s-4); border-radius: var(--r-2); background: var(--button); color: var(--button-ink); }
.skip:focus { top: var(--s-4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-14); line-height: 1.5; }
.lead { max-width: 40rem; color: var(--ink-2); font-size: var(--t-20); line-height: 1.5; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; white-space: nowrap; padding: 0 var(--s-5); border: 1px solid transparent;
  border-radius: var(--r-2); font: 500 var(--t-15)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--d-hover) ease, border-color var(--d-hover) ease, transform var(--d-press) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--button); color: var(--button-ink); }
.btn-quiet { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-small { min-height: 36px; padding: 0 var(--s-4); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--button) 86%, var(--bg)); }
  .btn-quiet:hover { border-color: var(--ink-3); }
}

/* header */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.top .wrap { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); font: 600 var(--t-17)/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-right: auto; }
.nav > a, .nav summary, .lang summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-2);
  color: var(--ink-2); font-size: var(--t-15); text-decoration: none; cursor: pointer; transition: color var(--d-hover) ease, background-color var(--d-hover) ease; }
.nav > a[aria-current], .nav summary[aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav > a:hover, .nav summary:hover, .lang summary:hover { color: var(--ink); background: var(--raised); } }
.top-end { display: flex; align-items: center; gap: var(--s-2); }

/* menus: <details> with a panel under the summary */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.caret { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--d-menu) var(--ease-out); }
.menu[open] .caret { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + var(--s-2)); left: 0; z-index: 12; min-width: 15rem; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-3);
  background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 6%); transform-origin: top left; }
.lang .menu-panel { right: 0; left: auto; min-width: 11rem; transform-origin: top right; }
.menu[open] .menu-panel { animation: menu-in var(--d-menu) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu-panel a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-1); color: var(--ink); font-size: var(--t-15); line-height: 1.4; text-decoration: none; }
.menu-panel a small { display: block; color: var(--ink-3); font-size: var(--t-14); }
.menu-panel a[aria-current] { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .menu-panel a:hover { background: var(--raised); } }
.product-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--s-2); width: min(36rem, calc(100vw - 2 * var(--gutter))); }
.mobile-menu { display: none; }

/* sections */
section { padding-block: var(--s-24); }
section + section { border-top: 1px solid var(--line); }
.head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: var(--s-12); }
.head p { color: var(--ink-2); }

/* hero */
.hero { padding-block: var(--s-12) var(--s-24); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-16); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: var(--s-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero .honest { margin-top: var(--s-6); color: var(--ink-3); font-size: var(--t-14); }

/* the run: requirement, die, results. The page's one rich object. */
.run { overflow: hidden; border-radius: var(--r-4); background: var(--die); color: var(--die-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 24px 48px -24px rgb(0 0 0 / 35%); }
.run-ask { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-6); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.run-ask span { color: var(--die-ink-2); font-size: var(--t-14); }
.run-ask p { font-size: var(--t-17); line-height: 1.45; }
.run-die { margin: 0; padding: var(--s-4) var(--s-4) 0; }
.run-die img { width: 100%; height: auto; border-radius: var(--r-2); }
.run-die figcaption { padding: var(--s-2) var(--s-2) 0; color: var(--die-ink-2); font-size: var(--t-14); }
.run table { width: 100%; border-collapse: collapse; font-size: var(--t-15); }
.run caption { padding: var(--s-4) var(--s-6) var(--s-2); color: var(--die-ink-2); font-size: var(--t-14); text-align: left; }
.run th, .run td { padding: 8px var(--s-3); border-top: 1px solid rgb(255 255 255 / 8%); text-align: left; font-weight: 400; }
.run th:first-child { padding-left: var(--s-6); }
.run td:last-child { padding-right: var(--s-6); }
.run thead th { border-top: 0; padding-block: 0 var(--s-2); color: var(--die-ink-2); font-size: var(--t-14); }
.run td.num { color: var(--die-ink); font-weight: 600; white-space: nowrap; }
.run .asked { color: var(--die-ink-2); }

/* signature: a result beside its limit, met or not met. Dot plus word, never colour alone */
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-14); white-space: nowrap; }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--met); }
.verdict.no::before { background: var(--miss); }
.run .verdict { color: var(--die-ink-2); }
.run .verdict::before { background: #4cc38a; }

/* hero sequence: requirement, then die, then results. JS adds .is-in once the die has loaded */
.js .run [data-step] { opacity: 0; }
.js .run [data-step="2"] { transform: translateY(6px); }
.run.is-in [data-step] { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.run.is-in [data-step="2"] { transition-delay: 220ms; }
.run.is-in [data-step="3"] { transition-delay: 560ms; }
.run.is-in tbody tr[data-step]:nth-child(1) { transition-delay: 620ms; }
.run.is-in tbody tr[data-step]:nth-child(2) { transition-delay: 680ms; }
.run.is-in tbody tr[data-step]:nth-child(3) { transition-delay: 740ms; }
.run.is-in tbody tr[data-step]:nth-child(4) { transition-delay: 800ms; }
.run.is-in tbody tr[data-step]:nth-child(5) { transition-delay: 860ms; }

/* facts under a heading */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin: 0 0 var(--s-12); padding: 0; list-style: none; }
.facts li { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.facts b { font: 600 var(--t-24)/1.2 var(--display); letter-spacing: -0.01em; }
.facts span { color: var(--ink-2); font-size: var(--t-15); line-height: 1.45; }

/* charts: data stretched in one SVG, text at CSS size in another over it */
.chart { margin: 0; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-6); margin-bottom: var(--s-4); }
.chart-title { font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--t-14); }
.legend li { display: inline-flex; align-items: center; gap: var(--s-2); }
.key { width: 16px; height: 2px; border-radius: 1px; background: var(--series-1); }
.key.s2 { background: repeating-linear-gradient(90deg, var(--series-2) 0 2px, transparent 2px 5px); }
.key.thick { height: 3px; background: var(--ink-3); }
.key.thin { height: 1px; background: var(--ink-3); }
.plot { position: relative; aspect-ratio: 5 / 2; margin: 0 0 var(--s-12) var(--s-10); touch-action: pan-y; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot-data .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot-data .band { fill: var(--band); stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.plot-data path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plot-data .s1 { stroke: var(--series-1); }
.plot-data .s2 { stroke: var(--series-2); stroke-dasharray: 1 3.5; } /* the reference dotted: model and openEMS differ without colour */
.plot-data .thin { stroke-width: 1.25; }
.plot-text text { fill: var(--ink-3); font: 400 var(--t-12)/1 var(--sans); }
.plot-text .y { text-anchor: end; dominant-baseline: middle; }
.plot-text .x { text-anchor: middle; }
.plot-text .x:last-of-type { text-anchor: end; } /* the last tick stays inside the plot */
.plot-text .direct { fill: var(--ink-2); font-size: var(--t-12); dominant-baseline: middle; }
.axis-unit { position: absolute; color: var(--ink-3); font-size: var(--t-12); }
.axis-unit.y { top: -22px; left: calc(-1 * var(--s-10)); }
.axis-unit.x { right: 0; bottom: -40px; }
.chart-note { max-width: 46rem; color: var(--ink-3); font-size: var(--t-14); line-height: 1.5; }
.chart-table { margin-top: var(--s-3); font-size: var(--t-14); }
.chart-table summary { color: var(--ink-2); cursor: pointer; }
.chart-table table { margin-top: var(--s-2); }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); pointer-events: none; }
.tip { position: absolute; top: 0; z-index: 2; min-width: 9rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 8%); font-size: var(--t-14); line-height: 1.5; pointer-events: none; white-space: nowrap; }
.tip b { font-weight: 600; }
.tip i { display: inline-block; width: 8px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--series-1); }
.tip i.s2 { background: repeating-linear-gradient(90deg, var(--series-2) 0 2px, transparent 2px 4px); }

/* a chart draws once: the data sweeps in left to right, like a trace on an analyser */
.js .chart[data-chart] .plot-data { clip-path: inset(0 100% 0 0); }
.js .chart.is-in[data-chart] .plot-data { clip-path: inset(0 0 0 0); transition: clip-path var(--d-sweep) var(--ease-in-out); }

/* the thirteen chips */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; }
.chips-table { width: 100%; min-width: 640px; font-size: var(--t-15); }
.chips-table th, .chips-table td { padding: 10px var(--s-3) 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap; }
.chips-table thead th { border-top: 0; color: var(--ink-3); font-size: var(--t-14); }
.chips-table tbody th { color: var(--ink-2); }
.chips-table td:not(.track) { font-weight: 500; }
.chips-table .track { width: 42%; min-width: 220px; }
.band-bar { width: 100%; height: 10px; }
.band-bar rect { fill: var(--series-1); }
.miss .band-bar rect { fill: none; stroke: var(--miss); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.miss td:last-child { color: var(--miss); }
.band-axis { width: 100%; height: 16px; overflow: visible; }
.band-axis text { fill: var(--ink-3); font: 400 var(--t-12)/1 var(--sans); dominant-baseline: middle; }
.band-bar line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* the bars run once, top row first */
.js .chips .band-bar { clip-path: inset(0 100% 0 0); }
.chips.is-in .band-bar { clip-path: inset(0 0 0 0); transition: clip-path 640ms var(--ease-out); }
.chips.is-in tr:nth-child(2) .band-bar { transition-delay: 40ms; } .chips.is-in tr:nth-child(3) .band-bar { transition-delay: 80ms; }
.chips.is-in tr:nth-child(4) .band-bar { transition-delay: 120ms; } .chips.is-in tr:nth-child(5) .band-bar { transition-delay: 160ms; }
.chips.is-in tr:nth-child(6) .band-bar { transition-delay: 200ms; } .chips.is-in tr:nth-child(7) .band-bar { transition-delay: 240ms; }
.chips.is-in tr:nth-child(8) .band-bar { transition-delay: 280ms; } .chips.is-in tr:nth-child(9) .band-bar { transition-delay: 320ms; }
.chips.is-in tr:nth-child(10) .band-bar { transition-delay: 360ms; } .chips.is-in tr:nth-child(11) .band-bar { transition-delay: 400ms; }
.chips.is-in tr:nth-child(12) .band-bar { transition-delay: 440ms; } .chips.is-in tr:nth-child(13) .band-bar { transition-delay: 520ms; }

/* screenshots and drawings */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--raised); }
.shot figcaption, .drawing figcaption, .illustration figcaption, .die figcaption { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--t-14); line-height: 1.5; }
.drawing { margin: 0; }
.drawing:has(.combiner) { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.combiner { max-height: 420px; margin-inline: auto; }
.combiner .lines polyline { fill: none; stroke: var(--accent-line); stroke-linejoin: miter; }
.combiner .resistors rect { fill: var(--ink-3); }
.wafer .disc { fill: var(--raised); stroke: var(--line-strong); stroke-width: 0.3; }
.wafer .keep { fill: none; stroke: var(--ink-3); stroke-width: 0.25; stroke-dasharray: 1.2 1.2; }
.wafer .dies rect { fill: url(#die); }
.wafer pattern rect { fill: var(--accent-line); }
.wafer { max-width: 520px; margin-inline: auto; }
.illustration { margin: 0; }
.illustration { display: flex; align-items: center; gap: var(--s-3); }
.illustration figcaption { margin: 0; }
.inductor { width: 56px; height: 56px; flex: none; }
.inductor polyline { fill: none; stroke: var(--accent-line); stroke-width: 5; stroke-linejoin: miter; }
.inductor .under { stroke: var(--ink-3); stroke-width: 4; stroke-dasharray: 2 3; }
.die { margin: 0; }
.die img { width: 100%; height: auto; border-radius: var(--r-3); background: var(--die); }

/* scroll reveal: figures only, once, 8 px */
.js [data-reveal] { opacity: 0; transform: translateY(8px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }

/* what you can design: one tile per tool, the real output on top */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tile { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); overflow: hidden; }
.tile-visual { display: grid; align-items: center; aspect-ratio: 4 / 3; padding: var(--s-6) var(--s-6) var(--s-4); background: var(--raised); border-bottom: 1px solid var(--line); }
.tile-visual > * { width: 100%; }
.tile-visual figcaption:not(.chart-head), .tile-visual .chart-title, .tile-visual .chart-note, .tile-visual .chart-table { display: none; } /* the product page carries the notes */
.tile-visual .chart-head { justify-content: flex-end; margin-bottom: var(--s-3); }
.tile-visual .plot { aspect-ratio: 5 / 2; margin-left: var(--s-8); }
.tile-visual .drawing:has(.combiner) { padding: 0; border: 0; background: none; }
.tile-visual .combiner, .tile-visual .wafer { display: block; max-height: 200px; margin-inline: auto; }
.tile-visual .illustration { justify-content: center; }
.tile-visual .illustration figcaption { display: block; }
.tile-visual .inductor { width: 120px; height: 120px; }
.tile-text { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6); }
.tile-text h3 { font-size: var(--t-17); }
.tile-text p { color: var(--ink-2); font-size: var(--t-15); line-height: 1.5; }
.tile-text .more { margin-top: var(--s-2); }
.also { margin-top: var(--s-8); color: var(--ink-2); font-size: var(--t-15); }
.more { color: var(--accent-ink); font-size: var(--t-15); font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }
.facts:has(+ .more) { margin-bottom: var(--s-8); }
.loop + .more { display: inline-block; margin-top: var(--s-6); }
.split .more { display: inline-block; margin-top: var(--s-4); }

/* the chip run, as a sequence that loops */
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li { position: relative; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6) var(--s-4) 0 0; border-top: 2px solid var(--line-strong); counter-increment: step; }
.flow li::before { content: counter(step); position: absolute; top: -13px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 2px var(--line-strong) inset; color: var(--ink-2); font-size: var(--t-12); font-weight: 600; }
.flow li:last-child::before { background: var(--ink); box-shadow: none; color: var(--bg); }
.flow b { font-weight: 600; font-size: var(--t-15); }
.flow span { color: var(--ink-2); font-size: var(--t-14); line-height: 1.5; }
.loop { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-8); color: var(--ink-2); font-size: var(--t-15); }
.loop svg { width: 28px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.5; }

/* trust */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); }
.split h3 { margin-bottom: var(--s-3); }
.split h2 { margin-bottom: var(--s-4); }
.split p + p { margin-top: var(--s-3); }
.split p { color: var(--ink-2); }

/* plans */
.plans { width: 100%; border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: var(--t-15); }
.plans th, .plans td { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.plans thead th { border-top: 0; padding-block: var(--s-6) var(--s-4); }
.plans thead th b { display: block; font: 600 var(--t-20)/1.3 var(--display); }
.plans thead th span { color: var(--ink-3); font-size: var(--t-14); }
.plans tbody th { width: 26%; color: var(--ink-3); }
.plans td { width: 37%; }
.plans .no { color: var(--ink-3); }
.plans-note { margin-top: var(--s-4); color: var(--ink-3); font-size: var(--t-14); }

/* questions */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .caret { width: 12px; height: 12px; color: var(--ink-3); }
.faq details[open] summary .caret { transform: rotate(180deg); }
.faq details p { padding-bottom: var(--s-5); max-width: 42rem; color: var(--ink-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* closing band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.cta p { max-width: 36rem; margin-top: var(--s-3); color: var(--ink-2); }

/* footer */
.foot { padding-block: var(--s-16) var(--s-12); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-14); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s-8); }
.foot h2 { margin-bottom: var(--s-3); color: var(--ink); font: 600 var(--t-14)/1.4 var(--sans); letter-spacing: 0; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li a { display: inline-block; padding-block: 6px; color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { display: grid; gap: var(--s-2); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--ink-3); }

/* topic page */
.crumbs { margin-bottom: var(--s-6); color: var(--ink-3); font-size: var(--t-14); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.topic-hero { padding-block: var(--s-16) var(--s-12); }
.topic-hero h1 { max-width: 22ch; }
.topic-hero .lead { margin-top: var(--s-6); max-width: 44rem; }
.topic { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-16); padding-bottom: var(--s-24); }
.toc { position: sticky; top: 96px; align-self: start; font-size: var(--t-14); }
.toc p { margin-bottom: var(--s-2); color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 6px var(--s-3); border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; transition: color var(--d-hover) ease, border-color var(--d-hover) ease; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--ink); color: var(--ink); }
.topic-body > section { padding-block: 0; border-top: 0; }
.topic-body > section + section { margin-top: var(--s-24); }
.topic-body h2 { margin-bottom: var(--s-4); }
.topic-body h3 { margin: var(--s-8) 0 var(--s-3); font-size: var(--t-17); }
.topic-body p { max-width: 44rem; color: var(--ink-2); }
.topic-body p + p { margin-top: var(--s-4); }
.topic-body .die, .topic-body .chart { margin-block: var(--s-8); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); margin-top: var(--s-6); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: var(--s-2) 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.spec { width: 100%; margin-top: var(--s-6); font-size: var(--t-15); }
.spec caption { padding-bottom: var(--s-3); color: var(--ink-3); font-size: var(--t-14); text-align: left; }
.spec th, .spec td { padding: 10px var(--s-4) 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; font-weight: 400; }
.spec thead th { border-top: 0; color: var(--ink-3); font-size: var(--t-14); }
.spec tbody th { color: var(--ink-2); }
.spec td.num { font-weight: 600; white-space: nowrap; }
.spec td:last-child { padding-right: 0; }
.note { margin-top: var(--s-4); color: var(--ink-3) !important; font-size: var(--t-14); }
.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); margin: 0; padding: 0; list-style: none; }
.next a { display: flex; justify-content: space-between; padding: var(--s-4) 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.next a:hover { color: var(--accent-ink); }

/* 1024 and down */
@media (max-width: 64rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
  .hero h1 { max-width: 14ch; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s-10); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
/* header collapses before the links crowd */
@media (max-width: 56rem) {
  .nav, .top-end .lang { display: none; }
  .top .wrap { justify-content: space-between; }
  .mobile-menu { display: block; }
  .mobile-menu .menu-panel { position: fixed; top: 64px; left: var(--gutter); right: var(--gutter); min-width: 0; transform-origin: top right; }
  .mobile-menu .menu-panel hr { margin: var(--s-2) 0; border: 0; border-top: 1px solid var(--line); }
  .mobile-menu summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-2); font-size: var(--t-15); cursor: pointer; }
  .mobile-menu .langs { display: flex; flex-wrap: wrap; }
}
/* phones */
@media (max-width: 40rem) {
  section { padding-block: var(--s-16); }
  .hero { padding-block: var(--s-10) var(--s-16); }
  .head { margin-bottom: var(--s-8); }
  .actions .btn { flex: 1 1 auto; }
  .run th:first-child { padding-left: var(--s-4); }
  .run td:last-child { padding-right: var(--s-4); }
  .run .hide-s { display: none; }
  .run-ask { padding: var(--s-4); }
  .plot { aspect-ratio: 4 / 3; margin-left: var(--s-8); }
  .flow { grid-template-columns: 1fr; row-gap: 0; border-left: 2px solid var(--line-strong); margin-left: 11px; }
  .flow li { padding: 0 0 var(--s-6) var(--s-6); border-top: 0; }
  .flow li::before { top: 0; left: -13px; }
  .facts, .tiles, .split, .cols, .next, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .split { gap: var(--s-10); }
  .plans, .plans thead, .plans tbody { display: block; }
  .plans tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .plans thead tr { border-top: 0; }
  .plans thead td { display: none; }
  .plans th, .plans td { width: auto !important; padding: var(--s-3) var(--s-4); border-top: 0; }
  .plans tbody th { grid-column: 1 / -1; padding-bottom: 0; }
  .features { gap: var(--s-16); }
  /* the chips table becomes one block per chip: name, its band across the full width, then its figures */
  .chips-table { min-width: 0; }
  .chips-table thead tr, .chips-table tbody tr { display: grid; grid-template-columns: max-content max-content 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); } /* every row as wide as the table: one scale for every band, the axis included */
  .chips-table thead tr { border-top: 0; padding-bottom: 0; }
  .chips-table thead th:not(.track) { display: none; }
  .chips-table th, .chips-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .chips-table th[scope="row"], .chips-table .track { grid-column: 1 / -1; width: auto; min-width: 0; }
  .chips-table td[data-label]:not([data-label=""])::before { content: attr(data-label) " "; color: var(--ink-3); font-weight: 400; }
}

/* reduced motion: no movement, no sweeps; opacity only, short */
@media (prefers-reduced-motion: reduce) {
  .js .run [data-step], .js [data-reveal] { transform: none !important; }
  .run.is-in [data-step], [data-reveal].is-in { transition: opacity 200ms ease !important; transition-delay: 0ms !important; }
  .js .chart[data-chart] .plot-data, .js .chips .band-bar { clip-path: none !important; }
  .btn:active { transform: none; }
  .menu[open] .menu-panel { animation: none; }
  .faq details::details-content { transition: none; }
  .caret { transition: none; }
}
@media (forced-colors: active) {
  .plot-data .s1, .plot-data .s2 { stroke: CanvasText; }
  .verdict::before { forced-color-adjust: none; }
}

/* header: the secondary button, the language menu's place */
.top .wrap { gap: var(--s-4); }
.top-end .lang summary { white-space: nowrap; }
.langs { gap: 2px var(--s-1); }
.langs a { padding: var(--s-2) var(--s-3); }
@media (max-width: 56rem) {
  .top-end .early { display: none; }
  .mobile-menu .menu-panel { max-height: calc(100dvh - 80px); overflow-y: auto; }
}
@media (max-width: 24rem) { /* the narrowest phones: logo, Try free and Menu stay on one line in every language */
  .top .wrap { gap: var(--s-2); }
  .top-end { gap: var(--s-1); }
  .brand { gap: 6px; font-size: var(--t-15); }
  .brand img { width: 20px; height: 20px; }
  .top-end .btn-small, .mobile-menu summary { padding: 0 var(--s-2); font-size: var(--t-14); }
}
@media (max-width: 21.25rem) { /* 340 px and under: a smaller logo text and buttons, so the logo never runs under Try free */
  .top .wrap { gap: 6px; }
  .top-end { gap: 4px; flex: none; }
  .brand { min-width: 0; gap: 5px; font-size: 13.5px; letter-spacing: -0.02em; white-space: nowrap; }
  .brand img { width: 18px; height: 18px; }
  .top-end .btn-small, .mobile-menu summary { min-height: 34px; padding: 0 7px; font-size: 13px; }
}

/* topic pages: what the earlier pages carried over */
.topic-body section > p + .scroll, .topic-body section > .cols + p, .topic-body .list + p { margin-top: var(--s-4); }
.topic-body .cols p + p { margin-top: var(--s-4); }
.topic-body .cols h3 { margin-top: 0; }
.topic-body .faq { margin-top: var(--s-2); }
.topic-body .next { margin-top: var(--s-2); }
.topic-body ol.steps { margin: var(--s-6) 0 0; padding-left: var(--s-6); max-width: 46rem; color: var(--ink-2); }
ol.steps li { padding: var(--s-2) 0 var(--s-2) var(--s-1); border-top: 1px solid var(--line); }
ol.steps li::marker { color: var(--ink-3); font-weight: 600; }
ol.steps strong { color: var(--ink); font-weight: 600; }
dl.rows { margin: var(--s-6) 0 0; max-width: 46rem; }
dl.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
dl.rows dt { color: var(--ink-3); }
dl.rows dd { margin: 0; min-width: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 40rem) { dl.rows div { display: block; } dl.rows dd { text-align: left; } }
.topic-body + * { margin-top: 0; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.spec td { color: var(--ink); }
.spec td.asked, .spec td:not(.num) { color: var(--ink-2); }
.topic-body .spec tbody th { min-width: 9rem; }
.legal-page .topic-body p { max-width: 44rem; }
.governs { margin-top: var(--s-4); }

/* the earlier figures (drawn in SVG with fixed colours): the tokens instead, so they hold in dark mode */
.fig { margin: var(--s-8) 0; max-width: 46rem; }
.fig.narrow { max-width: 24rem; }
.fig svg { width: 100%; height: auto; }
.fig svg text { fill: var(--ink-3); font: 400 13px var(--sans); }
.fig svg .ink { fill: var(--ink); font-weight: 600; }
.fig [stroke="#eee3db"], .fig [stroke="#e6dad1"] { stroke: var(--line-strong); }
.fig [stroke="#282828"] { stroke: var(--ink); }
.fig [fill="#282828"] { fill: var(--ink-3); }
.fig [stroke="#fff"] { stroke: var(--bg); }
.fig [fill="#fff4ec"] { fill: var(--raised); }
.fig [stroke="#e05a00"], .fig [stroke="#ff6900"] { stroke: var(--accent-line); }
.fig [fill="#ff6900"] { fill: var(--accent-line); }
.fig figcaption { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--t-14); line-height: 1.5; }
@media (max-width: 40rem) { .fig svg text { font-size: 17px; } }

/* home: the desktop row's picture is a list of what crosses the wire */
.wire { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.wire-list { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.wire-list li { display: grid; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-2); background: var(--raised); }
.wire-list li:nth-child(2), .wire-list li:nth-child(3) { margin-left: var(--s-8); }
.wire-list b { font-weight: 600; }
.wire-list span { color: var(--ink-2); font-size: var(--t-15); line-height: 1.5; }
.wire-list li:nth-child(2) b::after { content: " →"; color: var(--accent-ink); }
.wire-list li:nth-child(3) b::after { content: " ←"; color: var(--accent-ink); }
.cta .actions { margin-top: 0; }

/* desktop: the disabled download */
.btn[disabled] { cursor: not-allowed; opacity: 1; background: var(--raised); color: var(--ink-3); border-color: var(--line-strong); }
.btn[disabled]:active { transform: none; }
.soon { margin-left: var(--s-2); padding: 2px var(--s-2); border-radius: var(--r-1); background: var(--surface); color: var(--ink-2); font-size: var(--t-12); }

/* forms: the free tools and the early-access request */
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); padding-bottom: var(--s-24); }
section.tool { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
section.tool + section.tool { border-top: 1px solid var(--line); }
.tool h2 { margin-bottom: var(--s-5); font-size: var(--t-24); }
.tool h3 { margin: var(--s-6) 0 var(--s-2); font-size: var(--t-17); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s-4); align-items: end; }
.fields label > span { display: block; margin-bottom: var(--s-1); color: var(--ink-2); font-size: var(--t-14); line-height: 1.3; }
.fields .wide { grid-column: 1 / -1; }
input[type=number], input[type=text], input[type=email], select, textarea { width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  background: var(--bg); color: var(--ink); font: 400 var(--t-17)/1.3 var(--sans); font-variant-numeric: tabular-nums; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder { color: var(--ink-3); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
.check { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; grid-column: 1 / -1; }
.fields .check span { margin: 0; color: var(--ink); font-size: var(--t-15); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.go { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); }
.tool button:not(.btn) { min-height: 44px; padding: 0 var(--s-6); border: 0; border-radius: var(--r-2); background: var(--button); color: var(--button-ink); font: 500 var(--t-15)/1 var(--sans); cursor: pointer;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-hover) ease; }
.tool button:not(.btn):active { transform: scale(0.97); }
.tool button[aria-disabled=true] { cursor: progress; background: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .tool button:not(.btn):not([aria-disabled=true]):hover { background: color-mix(in srgb, var(--button) 86%, var(--bg)); } }
.left { color: var(--ink-3); font-size: var(--t-14); }
.error { margin: var(--s-4) 0 0; color: var(--miss); font-weight: 500; }
.error:empty { display: none; }
.field-error { grid-column: 1 / -1; margin: calc(-1 * var(--s-2)) 0 0; color: var(--miss); font-size: var(--t-14); font-weight: 500; }
[aria-invalid=true] { border: 2px solid var(--miss); }
.tool > .note { margin-top: var(--s-4); }
.result:not(:empty) { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s-4); margin: 0; }
.values div { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.values dt { color: var(--ink-3); font-size: var(--t-14); line-height: 1.3; }
.values dd { margin: var(--s-1) 0 0; font-weight: 600; overflow-wrap: anywhere; }
.values .main dd { font: 600 var(--t-24)/1.2 var(--display); letter-spacing: -0.01em; }
.beside { display: grid; gap: var(--s-6); }
.result svg { width: 100%; max-width: 30rem; height: auto; }
.result svg text { fill: var(--ink-3); font: 400 15px var(--sans); }
.result [fill="#fff4ec"] { fill: var(--raised); }
.result [stroke="#94877f"] { stroke: var(--line-strong); }
.result [fill="#ffdfca"] { fill: var(--band); opacity: 1; }
.result [stroke="#e6dad1"] { stroke: var(--line); }
.result [stroke="#ff6900"] { stroke: var(--accent-line); }
.result table { width: 100%; font-size: var(--t-15); }
.result th, .result td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.result thead th { border-top: 0; color: var(--ink-3); font-size: var(--t-14); }
.result td { font-weight: 500; }
.try-plans { border-top: 1px solid var(--line); }
section.ea { max-width: 44rem; margin-bottom: var(--s-24); }
.thanks h2 { margin-bottom: var(--s-3); }
.thanks p { color: var(--ink-2); }
.thanks:focus { outline: none; }

/* 404: the languages and the pages */
.lang-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); }
.not-found { max-width: 46rem; padding-bottom: var(--s-24); }

@media (max-width: 64rem) { .tools-grid { grid-template-columns: 1fr; } }
@media (max-width: 40rem) {
  section.tool { padding: var(--s-4); }
  .fields, .values { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .wire-list li:nth-child(2), .wire-list li:nth-child(3) { margin-left: var(--s-4); }
  .topic-hero { padding-block: var(--s-10) var(--s-8); }
  .spec { font-size: var(--t-14); }
  .spec th, .spec td { padding-right: var(--s-2); hyphens: auto; }
  .spec td.num { white-space: normal; }
  .topic-body .spec tbody th { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tool button:not(.btn) { transition: none; }
  .tool button:not(.btn):active { transform: none; }
  html { scroll-behavior: auto; }
}
