/* ES Schémas website, drawn like a blueprint: the header, the hero, the page heads, the origin
   and the footer are navy bands with light-blue line-work (the .bp scope below), and the
   sections between them white prints ruled in navy. Square corners, condensed titles and mono
   annotations; the studio's blue (lib/app/app_theme.dart) is the accent. Every section, circuit
   and legend line is numbered by a CSS counter, so the numbers need no translation. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-sans-400.3b646991d3.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-sans-400-italic.6de912e531.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex-sans-500.0717336fb3.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-sans-600.8960851d69.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex-sans-700.42e7b0c143.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-condensed-600.3d72a0923c.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex-condensed-700.4768878c10.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-mono-400.08949f728d.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex-mono-500.01d2854474.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-sunken: #eef1f5;
  --surface: #ffffff;
  --ink: #0d1b2e;
  --text: #0d1b2e;
  --text-2: #45526a;
  --text-3: #66738a;
  --line: #e1e6ee;
  --line-strong: #c8d1de;
  --rule: #0c2340;          /* the drawing's frame lines */
  --signal: #1f63de;        /* the studio's accent blue */
  --signal-ink: #1a55c2;
  --on-signal: #ffffff;
  --accent: #1f63de;
  --accent-hover: #1a55c2;
  --accent-ink: #0e3a8a;
  --accent-soft: #eaf1fd;
  --on-accent: #ffffff;
  --slate: #2c3a4b;
  --band: #0c2340;          /* blueprint navy: origin, footer, featured cells */
  --on-band: #ffffff;
  --on-band-2: #9db2cf;
  --logo-fill: #ffffff;
  --logo-circuit: #257ce5;
  --warning: #b45309;
  --warning-soft: #fef5e7;
  --danger: #d1242f;
  --danger-soft: #fdedee;
  --success: #16803c;
  --success-soft: #e8f5ec;
  --grid-minor: rgba(31, 99, 222, 0.035);
  --grid-major: rgba(31, 99, 222, 0.07);
  --paper-shadow: 6px 6px 0 #dfe7f2;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --wrap: 1240px;
  --gutter: 28px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101d;
    --bg-soft: #0a1626;
    --bg-sunken: #0f1d31;
    --surface: #0c192b;
    --ink: #e8ebef;
    --text: #e8ebef;
    --text-2: #b5bcc7;
    --text-3: #8f98a5;
    --line: #1b2c44;
    --line-strong: #2a4062;
    --rule: #7f9cc4;
    --signal: #5b92ff;
    --signal-ink: #7aa7ff;
    --on-signal: #07142c;
    --accent: #5b92ff;
    --accent-hover: #7aa7ff;
    --accent-ink: #b8d0ff;
    --accent-soft: #15233d;
    --on-accent: #07142c;
    --slate: #d5dde8;
    --band: #0c2340;
    --on-band: #ffffff;
    --on-band-2: #9db2cf;
    --logo-fill: transparent;
    --logo-circuit: #5b9bff;
    --warning: #f0a44b;
    --warning-soft: #2c2213;
    --danger: #ff6b73;
    --danger-soft: #2e1618;
    --success: #4fcf7f;
    --success-soft: #11261a;
    --grid-minor: rgba(120, 160, 255, 0.03);
    --grid-major: rgba(120, 160, 255, 0.06);
    --paper-shadow: 6px 6px 0 #030810;
  }
}

/* Blueprint bands: the same tokens, redefined in navy and light blue, so every component
   inside them (buttons, frames, rules, logo) is drawn as on a blueprint. */
.bp, .site-header, .hero, .page-head, .origin-band, .site-footer {
  --bg: #0c2340;
  --bg-soft: #0f2a4c;
  --bg-sunken: #133159;
  --surface: #0f2a4c;
  --ink: #ffffff;
  --text: #ffffff;
  --text-2: #c3d2e7;
  --text-3: #8fa7c7;
  --line: #22426c;
  --line-strong: #32598b;
  --rule: #9cc4ff;
  --signal: #7fb2ff;
  --signal-ink: #a9cbff;
  --on-signal: #0c2340;
  --accent: #7fb2ff;
  --accent-soft: #133159;
  --slate: #ffffff;
  --logo-fill: transparent;
  --logo-circuit: #7fb2ff;
  --success: #7fd6a0;
  --grid-minor: rgba(156, 196, 255, 0.06);
  --grid-major: rgba(156, 196, 255, 0.13);
  --paper-shadow: 6px 6px 0 #081a31;
  background-color: var(--bg);
  color: var(--text);
}
.bp .button-primary, .site-header .button-primary, .hero .button-primary, .page-head .button-primary { background: #ffffff; border-color: #ffffff; color: #0c2340; }
.bp .button-primary:hover, .site-header .button-primary:hover, .hero .button-primary:hover, .page-head .button-primary:hover { background: #dce9ff; border-color: #dce9ff; color: #0c2340; }
.bp .button-secondary, .hero .button-secondary { border-color: #7fb2ff; }
.bp .button-secondary:hover, .hero .button-secondary:hover { background: #ffffff; border-color: #ffffff; color: #0c2340; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  counter-reset: sheet;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; }
h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: 0.25em 0; }
strong { font-weight: 600; color: var(--text); }
sup { font-size: 0.65em; line-height: 0; }
code, kbd { font: 500 0.86em/1 var(--mono); background: var(--bg-sunken); border: 1px solid var(--line); padding: 0.15em 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--signal); color: var(--on-signal); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--signal); color: var(--on-signal); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-signal); }
.icon { flex: none; vertical-align: middle; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--signal); }
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--text-2); line-height: 1.5; max-width: 40em; }
.muted { color: var(--text-3); }
.small { font-size: 0.88rem; }
.mono { font-family: var(--mono); font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and badges */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0 1.3em; border: 2px solid var(--rule); border-radius: 0;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}
.button-primary { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.button-primary:hover { color: var(--on-signal); background: var(--signal-ink); border-color: var(--signal-ink); }
.button-secondary { background: transparent; color: var(--text); }
.button-secondary:hover { background: var(--ink); color: var(--bg); }
.button-small { min-height: 40px; padding: 0 1em; font-size: 0.92rem; border-width: 1.5px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.35em; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5em 0.65em; background: var(--ink); color: var(--bg); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-neutral { background: var(--bg-sunken); color: var(--text-2); }

/* Header: the title strip of the sheet */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.header-row { display: flex; align-items: stretch; gap: 0; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0; }
.site-header .brand { padding-right: 24px; border-right: 1px solid var(--line-strong); margin-right: 8px; }
.brand:hover { color: var(--text); }
.logo-mark .logo-house { fill: var(--logo-fill); stroke: var(--slate); }
.logo-mark .logo-circuit { stroke: var(--logo-circuit); }
.nav-desktop { display: flex; align-items: stretch; margin-left: auto; }
.nav-desktop a { display: flex; align-items: center; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0 16px; position: relative; }
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1.5px; height: 4px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.18s; }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--text); }
.nav-cta { align-self: center; margin-left: 12px; }
.nav-cta[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-mobile { display: none; position: relative; margin-left: auto; align-self: center; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close, .nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; display: grid; background: var(--surface); border: 1.5px solid var(--rule); box-shadow: var(--paper-shadow); }
.nav-mobile nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nav-mobile nav a:last-child { border-bottom: 0; background: var(--signal); color: var(--on-signal); font-weight: 600; }
.nav-mobile nav a:hover { background: var(--bg-sunken); }
/* Language switcher: FR · NL · EN, the same page in each language. */
.lang-switch { display: flex; align-items: center; gap: 0; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.lang-switch a { color: var(--text-3); text-decoration: none; font: 500 0.76rem/1 var(--mono); letter-spacing: 0.06em; padding: 7px 6px; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--signal); }
@media (max-width: 1020px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-mobile { display: block; margin-left: 12px; }
  .lang-switch { margin-left: auto; }
}

/* Sections: each one a numbered sheet, its head under a full ink rule */
.section { padding: clamp(64px, 6vw + 24px, 128px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { position: relative; max-width: none; margin-bottom: clamp(36px, 3vw + 20px, 64px); padding-top: 18px; border-top: 1.5px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); }
.section-head > * { max-width: 820px; }
.section-head::after {
  counter-increment: sheet; content: counter(sheet, decimal-leading-zero);
  position: absolute; right: 0; top: 14px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.1em; color: var(--text-3);
  padding-left: 8px;
}
.section-head.center { text-align: left; }
.section-head .lead { margin-bottom: 0; }
.section-head h2 { margin-bottom: 0.35em; }

/* Drafting grid: minor lines every 8 px, a major line every 40 */
.blueprint, .hero, .page-head {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}

/* Hero */
.hero { position: relative; padding: clamp(36px, 4vw + 8px, 72px) 0 0; overflow: hidden; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line-strong); }
.hero-top .eyebrow { margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-main { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .lead { margin-bottom: 1.8rem; }
.hero-drawing { width: 100%; height: auto; overflow: visible; }
.hero-drawing path, .hero-drawing rect, .hero-drawing circle, .hero-drawing ellipse { fill: none; stroke: var(--rule); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-drawing .bp-bus { stroke-width: 4; stroke: #ffffff; }
.hero-drawing text { font: 400 11px var(--mono); fill: var(--text-3); }
.hero-drawing .bp-ref { font-weight: 500; fill: var(--signal); }
.hero-drawing .bp-end { text-anchor: end; }
.hero-drawing .bp-fill { fill: var(--rule); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-drawing path, .hero-drawing rect, .hero-drawing circle, .hero-drawing ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease-out forwards; }
  .hero-drawing text, .hero-drawing .bp-fill { opacity: 0; animation: label 0.5s ease-out forwards; }
  .hero-drawing .bp-supply * { animation-delay: 0.1s; }
  .hero-drawing .bp-bus { animation-delay: 0.6s; }
  .hero-drawing .bp-c1 * { animation-delay: 1s; }
  .hero-drawing .bp-c2 * { animation-delay: 1.15s; }
  .hero-drawing .bp-c3 * { animation-delay: 1.3s; }
  .hero-drawing .bp-c4 * { animation-delay: 1.45s; }
  .hero-drawing .bp-c5 * { animation-delay: 1.6s; }
  .hero-drawing .bp-title * { animation-delay: 2s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes label { to { opacity: 1; } }
@media (max-width: 900px) {
  .hero-main { grid-template-columns: minmax(0, 1fr); }
  .hero-drawing { max-width: 520px; }
}
.hero-note { margin: 0; font: 400 0.8rem/1.4 var(--mono); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--success); }
.hero-visual { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) 70px minmax(0, 4fr); align-items: center; margin-top: clamp(40px, 5vw, 72px); margin-bottom: clamp(48px, 5vw, 80px); }
.hero-visual .window { grid-column: 1; }
.hero-wire { grid-column: 2; width: 100%; height: 40px; overflow: visible; }
.hero-wire path { fill: none; stroke: var(--rule); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero-wire path:first-child { stroke-dasharray: 6 5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-wire path:first-child { animation: current 0.9s linear infinite; }
}
@keyframes current { to { stroke-dashoffset: -22; } }
.hero-sheet { grid-column: 3; margin: 0; }
@media (max-width: 900px) {
      .hero-visual { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-visual .window, .hero-sheet { grid-column: 1; }
  .hero-wire { grid-column: 1; height: 56px; width: 40px; justify-self: center; transform: rotate(90deg); }
  .hero-sheet { width: 78%; justify-self: end; }
}

/* App window and sheet frames: flat, framed in ink, laid on the paper like a print */
.window { background: var(--surface); border: 1.5px solid var(--rule); box-shadow: var(--paper-shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-bottom: 1.5px solid var(--rule); background: var(--surface); }
.window-bar i { display: none; }
.window-bar span { font: 500 0.7rem/1 var(--mono); color: var(--text-2); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-bar span::before { content: "▸ "; color: var(--signal); }
.window img { width: 100%; }
.sheet { position: relative; background: #fff; border: 1.5px solid var(--rule); box-shadow: var(--paper-shadow); padding: 1.6%; }
.sheet img { width: 100%; }
.sheet-label { position: absolute; top: -13px; left: 14px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--signal); color: var(--on-signal); padding: 6px 8px; }
.tablet { background: #1b1c1f; border-radius: 22px; padding: 14px; border: 1.5px solid var(--rule); box-shadow: var(--paper-shadow); }
.tablet img { border-radius: 8px; width: 100%; }

/* Workflow steps (tabs, enhanced by site.js) */
.steps-tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--rule); }
.step-tab {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%; text-align: left;
  padding: 18px 16px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent;
  font: inherit; color: inherit; cursor: pointer; transition: background-color 0.15s;
}
.step-tab:hover { background: var(--bg-sunken); }
.step-tab[aria-selected="true"] { background: var(--surface); box-shadow: inset 4px 0 0 var(--signal); }
.step-num { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--text); font: 500 0.88rem/1 var(--mono); margin-top: 1px; }
.step-tab[aria-selected="true"] .step-num { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.step-title { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.step-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.5; }
.step-panels { position: relative; }
.step-panel figure { margin: 0; }
.step-panel figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--text-3); }
.js .step-panel[hidden] { display: none; }
.no-js .step-panel + .step-panel { margin-top: 40px; }
@media (max-width: 900px) {
  .steps-tabs { grid-template-columns: minmax(0, 1fr); }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-tab { grid-template-columns: auto 1fr; padding: 12px 14px; align-items: center; }
  .step-text { display: none; }
  .step-num { grid-row: auto; }
}
@media (max-width: 460px) { .steps-list { grid-template-columns: minmax(0, 1fr); } }
.steps-note { margin-top: 40px; }
.step-details { margin-top: 22px; color: var(--text-2); font-size: 0.97rem; }
.step-details ul { margin: 0; }

/* Cards: ruled cells of a table rather than floating tiles */
.cards { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1.5px solid var(--rule); border-left: 1px solid var(--line-strong); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 28px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { color: var(--text-2); font-size: 0.96rem; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--rule); background: var(--bg); color: var(--text); margin-bottom: 20px; }
.card-icon.warning { background: var(--warning-soft); color: var(--warning); }
.card-icon.success { background: var(--success-soft); color: var(--success); }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.3em; margin-top: 4px; }
.card-link .icon { transition: transform 0.15s; }
.card-link:hover { color: var(--text); }
.card-link:hover .icon { transform: translateX(4px); }

/* Feature split: text beside a figure */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
}
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.checklist li .icon { color: var(--success); margin-top: 3px; }
.checklist strong { color: var(--text); }

/* Dossier sheets */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.sheets figure { margin: 0; }
.sheets figcaption { margin-top: 16px; font-size: 0.92rem; color: var(--text-3); }
@media (max-width: 760px) { .sheets { grid-template-columns: minmax(0, 1fr); } }
.sheets-note { margin: 24px 0 0; }
.sheet-list { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.sheet-list li { margin: 0; font: 400 0.82rem/1.3 var(--mono); padding: 10px 14px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface); }

/* Callouts: a margin note */
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-strong); border-left: 4px solid var(--rule); background: var(--surface); margin: 1.4em 0; }
.callout > .icon { margin-top: 2px; color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--signal); background: var(--warning-soft); }
.callout-warning > .icon { color: var(--signal-ink); }
.callout-tip { border-left-color: var(--signal); background: var(--accent-soft); }
.callout-tip > .icon { color: var(--signal); }

/* Final call to action: the blue band */
.cta-band { position: relative; overflow: hidden; background: #1f63de; color: #fff; padding: clamp(40px, 5vw, 80px); }
section.cta-band { padding: clamp(72px, 8vw, 136px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 14em; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem); }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 36em; font-size: 1.12rem; }
.cta-band .button { border-color: #fff; }
.cta-band .button-primary { background: #fff; color: #0e3a8a; }
.cta-band .button-primary:hover { background: #eaf1fd; border-color: #eaf1fd; color: #0e3a8a; }
.cta-band .button-secondary { color: #fff; }
.cta-band .button-secondary:hover { background: #fff; color: #0e3a8a; }
.cta-band :focus-visible { outline-color: #fff; }
@media (prefers-color-scheme: dark) { .cta-band { background: #173f8f; } }

/* Text pages */
.page-head { padding: clamp(48px, 5vw + 16px, 96px) 0 clamp(32px, 3vw, 52px); }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); }
.page-head .lead { margin-bottom: 0; }
.page-updated { margin: 1.2rem 0 0; font: 400 0.8rem/1.4 var(--mono); color: var(--text-3); }
.page-head + .section { padding-top: clamp(40px, 4vw, 72px); }
.page-body { padding-top: clamp(36px, 4vw, 64px); padding-bottom: clamp(56px, 6vw, 96px); }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.95rem; border-top: 1.5px solid var(--rule); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.prose th { color: var(--text); font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.contact-card { display: grid; gap: 4px; padding: 20px 22px; border: 1.5px solid var(--rule); background: var(--surface); box-shadow: var(--paper-shadow); margin: 1.4em 0; }
.contact-card p { margin: 0; }

/* Trust strip under the hero: the title block (cartouche) of the drawing */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; border-right: 1px solid var(--line-strong); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item > .icon { color: var(--signal); margin-top: 3px; }
.trust-item b { display: block; font: 700 1.25rem/1.15 var(--display); }
.trust-item span { display: block; margin-top: 4px; font: 400 0.8rem/1.4 var(--mono); color: var(--text-3); }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { padding-left: 0; }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-item { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
}

/* Differentiators: text beside a visual, alternating */
.feature-rows { display: grid; gap: clamp(72px, 9vw, 136px); }
.feature-row h3 { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.02 var(--display); letter-spacing: -0.015em; margin-bottom: 0.5em; }
.feature-row p:not(.eyebrow):not(.small) { color: var(--text-2); font-size: 1.06rem; }
/* On the home page, the rows hang from a busbar like the circuits of a board: C1, C2… */
.circuits { position: relative; counter-reset: circuit; padding-left: 72px; }
.circuits::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; background: var(--rule); }
.circuits .feature-row { position: relative; }
.circuits .feature-row::before {
  counter-increment: circuit; content: "C" counter(circuit);
  position: absolute; left: -72px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 45px; height: 45px;
  border: 1.5px solid var(--rule); background: var(--bg); font: 500 0.82rem/1 var(--mono); color: var(--text);
}
.circuits .feature-row::after { content: ""; position: absolute; left: -27px; top: 50%; width: 22px; height: 1.5px; background: var(--rule); }
.circuits .feature-row:hover::before { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
@media (max-width: 900px) {
  .circuits { padding-left: 0; }
  .circuits::before, .circuits .feature-row::after { display: none; }
  .circuits .feature-row { padding-top: 64px; }
  .circuits .feature-row::before { left: 0; top: 0; transform: none; }
}
.sheet-stack { position: relative; padding: 0 8% 20% 0; }
.sheet-stack .sheet + .sheet { position: absolute; width: 68%; right: 0; bottom: 0; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--rule); border-left: 1px solid var(--line-strong); }
.device-grid > div { display: grid; justify-items: start; gap: 12px; padding: 26px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.device-grid .icon { color: var(--text); }
.device-grid b { font: 700 1.3rem/1 var(--display); }
.device-grid span { font: 400 0.8rem/1.4 var(--mono); color: var(--text-3); }
.device-grid .device-wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 4px; background: var(--band); color: var(--on-band); }
.device-grid .device-wide .icon { grid-row: span 2; color: var(--signal); }
.device-grid .device-wide b { color: var(--on-band); }
.device-grid .device-wide span { color: var(--on-band-2); }
.card-compact h3 { font-size: 1.1rem; }
.section-more { margin: 32px 0 0; }
.section-more.center { text-align: left; }
.section-tight { padding: clamp(40px, 4vw, 72px) 0; }

/* Video on the home page */
.video-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.video-intro h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.video-intro p:not(.eyebrow) { color: var(--text-2); }
.video-frame video { display: block; width: 100%; height: auto; background: #0f151d; }
@media (max-width: 900px) { .video-block { grid-template-columns: minmax(0, 1fr); } }

/* Origin: made by an electrician, set large on an ink band */
.origin-band {
  background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 40px 40px; padding: clamp(64px, 7vw, 120px) 0; position: relative; }
.origin { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1080px; }
.origin-mark { display: grid; place-items: center; width: 64px; height: 64px; border: 1.5px solid var(--rule); color: var(--signal); }
.origin h2 { color: var(--on-band); font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); margin-bottom: 0.35em; }
.origin p { color: var(--on-band); opacity: 0.86; margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.5; max-width: 38em; }
.section-tight .origin { margin: 0 auto; padding: 32px; border: 1.5px solid var(--rule); background: var(--surface); }
.section-tight .origin h2, .section-tight .origin p { color: var(--text); }
@media (max-width: 560px) { .origin { grid-template-columns: minmax(0, 1fr); } }

/* The deliverables, as the legend of a drawing: numbered lines in a ruled table */
.legend { list-style: none; margin: 0; padding: 0; counter-reset: legend; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--rule); border-left: 1px solid var(--line-strong); }
.legend li {
  counter-increment: legend; position: relative; margin: 0; padding: 26px 24px 28px;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-content: start;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface);
  transition: background-color 0.15s;
}
.legend li::before { content: counter(legend, decimal-leading-zero); position: absolute; right: 16px; top: 14px; font: 500 0.74rem/1 var(--mono); color: var(--text-3); }
.legend li:hover { background: var(--bg); }
.legend-symbol { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--rule); color: var(--text); }
.legend li:hover .legend-symbol { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.legend h3 { font-size: 1.08rem; margin: 2px 0 0.35em; padding-right: 24px; }
.legend p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 1000px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .legend { grid-template-columns: minmax(0, 1fr); } }

/* How it works: four terminals on one conductor */
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.step-cards::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: var(--rule); }
.step-cards li { position: relative; margin: 0; padding: 0 28px 0 0; }
.step-cards .step-num { position: relative; width: 48px; height: 48px; font-size: 1rem; background: var(--bg-soft); border-width: 2px; margin-bottom: 22px; }
.step-cards li:last-child .step-num { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.step-cards h3 { font: 700 1.5rem/1.1 var(--display); margin-bottom: 0.4em; }
.step-cards p { color: var(--text-2); font-size: 0.97rem; margin: 0; }
@media (max-width: 900px) {
  .step-cards { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 72px; }
  .step-cards::before { left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .step-cards li { padding: 0; }
  .step-cards .step-num { position: absolute; left: -72px; top: -4px; }
}

/* Pricing: a quote, ruled */
.pricing-provisional { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; width: fit-content; max-width: 100%; padding: 8px 14px; border: 1.5px dashed var(--warning); background: var(--warning-soft); color: var(--warning); font: 500 0.82rem/1.4 var(--mono); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; border: 1.5px solid var(--rule); background: var(--surface); }
@media (max-width: 900px) { .price-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 36px 30px 30px; border-right: 1px solid var(--line-strong); }
.price-card:last-child { border-right: 0; }
@media (max-width: 900px) { .price-card { border-right: 0; border-bottom: 1px solid var(--line-strong); } .price-card:last-child { border-bottom: 0; } }
.price-card.is-featured { background: var(--band); color: var(--on-band); outline: 1.5px solid var(--rule); margin: -10px 0; box-shadow: var(--paper-shadow); z-index: 1; }
.price-card.is-featured h3, .price-card.is-featured .price b { color: var(--on-band); }
.price-card.is-featured .price-summary, .price-card.is-featured .price span, .price-card.is-featured .price-billing, .price-card.is-featured .price s { color: var(--on-band-2); }
.price-badge { position: absolute; top: -13px; left: 30px; background: var(--signal); color: var(--on-signal); }
.price-card h3 { font: 700 1.6rem/1.1 var(--display); margin-bottom: 0.3em; }
.price-summary { color: var(--text-2); font-size: 0.96rem; min-height: 3em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.price b { font: 700 3rem/1 var(--display); letter-spacing: -0.02em; }
.price span { color: var(--text-3); font: 400 0.82rem/1.4 var(--mono); }
.price s { color: var(--text-3); font: 600 1.3rem/1 var(--display); text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.price-badge .icon { margin-right: 2px; }
.price-billing { color: var(--text-3); font-size: 0.9rem; margin-bottom: 26px; }
.price-card .button { margin-top: auto; width: 100%; }
.price-included { margin: 32px 0 0; padding: 26px 0 0; border-top: 1.5px solid var(--rule); }
.price-included-title { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.price-included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.price-included li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.price-included li .icon { color: var(--success); margin-top: 3px; }
.price-trial { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 18px 0 0; padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--signal); color: var(--text); }
.price-trial .icon { color: var(--signal-ink); margin-top: 3px; }
@media (max-width: 640px) { .price-included ul { grid-template-columns: minmax(0, 1fr); } }
.price-students { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 24px 0 0; padding: 24px 28px; border: 1.5px solid var(--rule); background: var(--surface); }
.price-students-mark { display: grid; place-items: center; width: 56px; height: 56px; background: var(--band); color: var(--on-band); }
.price-students h3 { font: 700 1.4rem/1.1 var(--display); margin: 0 0 4px; }
.price-students p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 720px) { .price-students { grid-template-columns: minmax(0, 1fr); } }

/* Download: platforms and store buttons */
.platform-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--rule); border-left: 1px solid var(--line-strong); }
.platform-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 1000px) { .platform-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platform-cards, .platform-cards-2 { grid-template-columns: minmax(0, 1fr); } }
.platform-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.platform-card h2, .platform-card h3 { font: 700 1.6rem/1.1 var(--display); margin: 14px 0 0; }
.platform-card p { color: var(--text-3); font-size: 0.92rem; margin: 0 0 16px; }
.platform-card .store-button { margin-top: auto; }
.download-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--rule); color: var(--text); }
.store-button { display: inline-grid; gap: 2px; min-width: 180px; padding: 10px 16px; background: var(--ink); color: var(--bg); border: 1.5px solid var(--rule); text-decoration: none; line-height: 1.2; }
.store-button small { font: 400 0.68rem/1.2 var(--mono); letter-spacing: 0.04em; opacity: 0.8; }
.store-button b { font-size: 1.02rem; font-weight: 600; color: inherit; }
a.store-button:hover { color: var(--bg); background: var(--signal-ink); }
.store-button.is-soon { background: transparent; color: var(--text-3); border: 1.5px dashed var(--line-strong); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mobile-band { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 32px; padding: 26px; border: 1.5px solid var(--rule); background: var(--surface); box-shadow: var(--paper-shadow); }
.mobile-band h2 { font-size: 1.6rem; margin: 0 0 4px; }
.mobile-band p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
@media (max-width: 820px) { .mobile-band { grid-template-columns: minmax(0, 1fr); } }

/* Showcase page */
.showcase-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--rule); background: var(--surface); }
.showcase-facts > div { display: grid; gap: 4px; padding: 20px 22px; border-right: 1px solid var(--line-strong); }
.showcase-facts > div:last-child { border-right: 0; }
.showcase-facts b { font: 700 2.4rem/1 var(--display); letter-spacing: -0.02em; }
.showcase-facts span { color: var(--text-3); font: 400 0.8rem/1.4 var(--mono); }
@media (max-width: 900px) { .showcase-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .showcase-facts > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .showcase-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.showcase-downloads { margin-top: 28px; }
.showcase-link { margin: 18px 0 0; }
.sheet-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 900px) { .sheet-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheet-gallery { grid-template-columns: minmax(0, 1fr); } }
.sheet-gallery li { margin: 0; }
.sheet-gallery a { display: grid; gap: 14px; color: var(--text-2); text-decoration: none; }
.sheet-gallery a .sheet { display: block; transition: transform 0.15s, box-shadow 0.15s; }
.sheet-gallery a:hover .sheet { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--signal); }
.sheet-gallery a:hover { color: var(--text); }
.sheet-caption { display: flex; gap: 10px; align-items: baseline; font-size: 0.93rem; }
.sheet-caption .mono { color: var(--signal-ink); font-size: 0.8rem; }
.split.checks-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split.checks-demo { grid-template-columns: minmax(0, 1fr); } }
.check-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border: 1.5px solid var(--rule); background: var(--surface); }
.check-score > div { display: grid; gap: 4px; padding: 14px 16px; border-right: 1px solid var(--line-strong); }
.check-score > div:last-child { border-right: 0; }
.check-score b { font: 700 2rem/1 var(--display); }
.check-score span { font: 400 0.78rem/1.4 var(--mono); color: var(--text-3); }
.check-score-bad > div:first-child { background: var(--danger-soft); }
.check-score-bad > div:first-child b { color: var(--danger); }
.check-score-good > div:first-child { background: var(--success-soft); }
.check-score-good > div:first-child b { color: var(--success); }
.checks-demo-side { display: grid; gap: 24px; }
.check-result { padding: 24px; border: 1.5px solid var(--rule); background: var(--surface); box-shadow: var(--paper-shadow); }
.check-result h3 { margin-bottom: 0.3em; }
.check-result p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1.5px solid var(--rule); }
.finding { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line-strong); border-left: 4px solid var(--danger); font-size: 0.93rem; }
.finding > .icon { margin-top: 2px; color: var(--danger); }
.finding b { display: block; font-weight: 600; color: var(--text); }
.finding span { display: block; color: var(--text-2); margin: 2px 0 4px; }
.finding small { font: 400 0.76rem/1.4 var(--mono); color: var(--text-3); }
.finding small em { font-style: normal; font-family: var(--font); font-weight: 600; color: var(--danger); }

/* User guide */
.guide-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 96px); }
.guide-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: 0.92rem; padding-right: 8px; }
.guide-toc h2 { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 1.6em 0 0.5em; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.guide-toc h2:first-child { margin-top: 0; }
.guide-toc ul { list-style: none; padding: 0; margin: 0; }
.guide-toc li { margin: 0; }
.guide-toc a { display: block; padding: 5px 10px; color: var(--text-2); text-decoration: none; border-left: 3px solid transparent; }
.guide-toc a:hover { color: var(--text); background: var(--bg-sunken); }
.guide-toc a.is-current { color: var(--text); border-left-color: var(--signal); background: var(--surface); }
.guide-toc-mobile { display: none; margin-bottom: 28px; border: 1.5px solid var(--rule); background: var(--surface); }
.guide-toc-mobile summary { padding: 14px 16px; font-weight: 600; cursor: pointer; }
.guide-toc-mobile .guide-toc { position: static; max-height: none; padding: 0 12px 14px; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-layout > .guide-toc { display: none; }
  .guide-toc-mobile { display: block; }
}
.guide h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); margin: 2em 0 0.4em; padding-top: 14px; border-top: 1.5px solid var(--rule); }
.guide h2.group-label { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink); margin: 3.6em 0 0; border-top: 0; padding-top: 0; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font-size: 1.45rem; margin: 2.2em 0 0.3em; }
.guide h2.group-label + h3 { margin-top: 0.35em; font: 700 clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--display); padding-top: 14px; border-top: 1.5px solid var(--rule); }
.guide h4 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.guide p, .guide li { color: var(--text-2); }
.guide p.summary { font-size: 1.1rem; color: var(--text-3); margin-bottom: 1.2em; }
.guide p.summary em { font-style: normal; }
.guide .faq-group h3 { font-size: 1.15rem; margin: 1.8em 0 0.6em; }
.guide .callout p { color: var(--text); }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--rule); background: var(--surface); margin: 1.2em 0 1.6em; }
.faq-search:focus-within { box-shadow: 4px 4px 0 var(--signal); }
.faq-search .icon { color: var(--text-3); }
.faq-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.faq-empty { color: var(--text-3); }
/* Questions: ruled lines, numbered on the home page */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-layout .section-head::after { content: none; }
.faq-list { counter-reset: question; border-top: 1.5px solid var(--rule); }
.faq-list .faq-item { counter-increment: question; }
.faq-list .faq-item summary::before { content: "Q" counter(question, decimal-leading-zero); flex: none; width: 3.2em; font: 500 0.8rem/1.9 var(--mono); color: var(--text-3); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout .section-head { position: static; } }
.faq-item { border-bottom: 1px solid var(--line-strong); margin: 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line-strong); }
.faq-list .faq-item:first-of-type { border-top: 0; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.faq-item summary > span { flex: 1; }
.faq-item summary:hover { color: var(--signal-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--text); transition: transform 0.2s; margin-top: 3px; }
.faq-item[open] summary .icon { transform: rotate(90deg); color: var(--signal-ink); }
.faq-item .faq-answer { padding: 0 4px 12px; }
.faq-list .faq-item .faq-answer { padding-left: calc(3.2em * 0.8 / 1.05 + 20px); }
.faq-item .faq-answer p { color: var(--text-2); }
.faq-group[hidden], .faq-item[hidden] { display: none; }

/* Footer: ink, with the brand set very large */
.site-footer { position: relative; background: var(--band); color: var(--on-band); padding: 64px 0 28px; font-size: 0.93rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.site-footer .brand { color: var(--on-band); }
.site-footer .logo-mark .logo-house { fill: transparent; stroke: var(--on-band); }
.footer-brand p { color: var(--on-band); opacity: 0.78; max-width: 30em; margin: 16px 0 0; }
.footer-made { font: 400 0.8rem/1.5 var(--mono); }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav h2 { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-band); opacity: 0.6; margin: 0 0 8px; }
.site-footer nav a { color: var(--on-band); opacity: 0.86; text-decoration: none; }
.site-footer nav a:hover { opacity: 1; color: var(--on-band); text-decoration: underline; text-decoration-color: var(--signal); }
.footer-wordmark { margin: 48px auto -0.18em; font: 700 clamp(4rem, 1rem + 15vw, 15rem)/0.8 var(--display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--on-band) 20%, transparent); white-space: nowrap; user-select: none; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-band) 25%, transparent); color: var(--on-band); opacity: 0.7; font: 400 0.76rem/1.5 var(--mono); }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--on-band); }

/* Consent banner (audience measurement) */
.consent { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--surface); border-top: 1.5px solid var(--rule); padding: 16px 0; }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.consent p { margin: 0; flex: 1 1 32em; color: var(--text-2); font-size: 0.93rem; }
.footer-consent { font: inherit; color: var(--on-band); background: none; border: 0; padding: 0; margin-right: 16px; text-decoration: underline; cursor: pointer; }
.footer-consent:hover { color: var(--signal); }

/* Not found */
.not-found { padding: clamp(80px, 12vw, 160px) 0; }
.not-found .code { font: 700 clamp(5rem, 3rem + 10vw, 12rem)/0.9 var(--display); letter-spacing: -0.04em; color: var(--signal); margin-bottom: 0.2em; }
.not-found .button-row { margin-top: 32px; }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .card { padding: 22px; }
  .button-row .button { flex: 1 1 auto; }
  .site-header .brand { padding-right: 14px; }
}
@media print {
  .site-header, .site-footer, .consent, .guide-toc, .guide-toc-mobile, .faq-search { display: none !important; }
  .faq-item { break-inside: avoid; }
  /* Every answer and every feature step on paper: site.js opens the answers before printing, and
     ::details-content shows them where the browser supports it, even without the script. */
  .faq-item::details-content { content-visibility: visible; display: block; }
  .js .step-panel[hidden] { display: block; }
  .js .step-panel + .step-panel { margin-top: 40px; }
}
