/* ES Schémas website. Colours follow the studio (lib/app/app_theme.dart): cool neutrals
   around the accent blue, the app icon's slate, and the status colours of EsColors. */

@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 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: #f6f7f9;
  --bg-sunken: #eef1f5;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-2: #4d5563;
  --text-3: #6b7380;
  --line: #e2e5e9;
  --line-strong: #d3d7dd;
  --accent: #1f63de;
  --accent-hover: #1a55c2;
  --accent-ink: #0e3a8a;
  --accent-soft: #eaf1fd;
  --on-accent: #ffffff;
  --slate: #2c3a4b;
  --logo-fill: #ffffff;
  --logo-circuit: #257ce5;
  --warning: #b45309;
  --warning-soft: #fef5e7;
  --danger: #d1242f;
  --danger-soft: #fdedee;
  --success: #16803c;
  --success-soft: #e8f5ec;
  --grid-line: rgba(31, 99, 222, 0.07);
  --shadow-s: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  --shadow-l: 0 2px 6px rgba(16, 24, 40, 0.06), 0 30px 60px -20px rgba(16, 24, 40, 0.28);
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --bg-soft: #141920;
    --bg-sunken: #1a2028;
    --surface: #161b22;
    --text: #e8ebef;
    --text-2: #b5bcc7;
    --text-3: #8f98a5;
    --line: #262d37;
    --line-strong: #333c48;
    --accent: #5b92ff;
    --accent-hover: #7aa7ff;
    --accent-ink: #b8d0ff;
    --accent-soft: #15233d;
    --on-accent: #07142c;
    --slate: #d5dde8;
    --logo-fill: transparent;
    --logo-circuit: #5b9bff;
    --warning: #f0a44b;
    --warning-soft: #2c2213;
    --danger: #ff6b73;
    --danger-soft: #2e1618;
    --success: #4fcf7f;
    --success-soft: #11261a;
    --grid-line: rgba(120, 160, 255, 0.07);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  }
}

/* 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;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
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.88em/1 var(--mono); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 5px; padding: 0.15em 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-accent); }
.icon { flex: none; vertical-align: middle; }
.eyebrow { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--text-2); line-height: 1.55; max-width: 42em; }
.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 {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 1.2em; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.button-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-s); }
.button-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--text-3); color: var(--text); }
.button-small { min-height: 38px; padding: 0 0.95em; font-size: 0.93rem; border-radius: 9px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.35em; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.45em 0.6em; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.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 */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.015em; }
.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; gap: 4px; margin-left: auto; }
.nav-desktop a, .nav-mobile nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 8px 12px; border-radius: 8px; }
.nav-desktop a:hover, .nav-mobile nav a:hover { color: var(--text); background: var(--bg-sunken); }
.nav-desktop a[aria-current="page"] { color: var(--text); background: var(--bg-sunken); }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-mobile { display: none; position: relative; margin-left: auto; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; 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: 220px; display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); }
.nav-mobile nav a { padding: 12px 14px; font-size: 1rem; }
@media (max-width: 860px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-mobile { display: block; }
}

/* Sections */
.section { padding: clamp(64px, 5vw + 32px, 112px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-bottom: 0; }

/* Blueprint grid, as on the studio's plan */
.blueprint {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* Hero */
.hero { position: relative; padding: clamp(48px, 5vw + 16px, 96px) 0 clamp(56px, 6vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 70% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 75% at 70% 35%, #000 25%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-note { margin: 1.2rem 0 0; font-size: 0.92rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--success); }
.hero-visual { position: relative; }
.hero-visual .window { width: 118%; max-width: none; }
.hero-sheet { position: absolute; left: -8%; bottom: -16%; width: 46%; transform: rotate(-2deg); margin: 0; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 8px; }
  .hero-visual .window { width: 100%; }
  .hero-sheet { left: auto; right: -4%; bottom: -14%; width: 46%; }
}
@media (max-width: 560px) {
  .hero-sheet { display: none; }
}

/* App window and sheet frames */
.window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-l); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 8px; font: 500 0.72rem/1 var(--mono); color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; }
.sheet { position: relative; background: #fff; border-radius: 4px; box-shadow: var(--shadow-l); padding: 1.4%; }
.sheet img { width: 100%; }
.sheet-label { position: absolute; top: -12px; left: 16px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--slate); color: var(--bg); padding: 6px 8px; border-radius: 5px; }
.tablet { background: #1b1f26; border-radius: 26px; padding: 16px; box-shadow: var(--shadow-l); }
.tablet img { border-radius: 10px; width: 100%; }
@media (prefers-color-scheme: dark) { .tablet { background: #2a303a; } }

/* 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: 10px; margin: 0; padding: 0; list-style: none; }
.step-tab {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%; text-align: left;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font: inherit; color: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.step-tab:hover { border-color: var(--line-strong); }
.step-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-num { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-sunken); color: var(--text-2); font: 600 0.9rem/1 var(--mono); margin-top: 1px; }
.step-tab[aria-selected="true"] .step-num { background: var(--accent); color: var(--on-accent); }
.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; }
  .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: 18px; color: var(--text-2); font-size: 0.97rem; }
.step-details ul { margin: 0; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.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: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-s); }
.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: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.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: 6px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.card-link:hover { text-decoration: underline; }

/* Feature split: text beside a figure */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); 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: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 0; 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(20px, 3vw, 40px); }
.sheets figure { margin: 0; }
.sheets figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--text-3); }
@media (max-width: 760px) { .sheets { grid-template-columns: minmax(0, 1fr); } }
.sheets-note { text-align: center; margin: 20px 0 0; }
.sheet-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; justify-content: center; }
.sheet-list li { margin: 0; font-size: 0.9rem; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }

/* Callouts */
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); margin: 1.4em 0; }
.callout > .icon { margin-top: 2px; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.callout-warning > .icon { color: var(--warning); }
.callout-tip { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }

/* Final call to action */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(40px, 5vw, 72px); background: var(--slate); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 18em; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 38em; }
.cta-band .button-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .button-secondary:hover { border-color: #fff; }
@media (prefers-color-scheme: dark) {
  .cta-band { background: #1b2433; border: 1px solid var(--line-strong); }
  .cta-band .button-primary { color: var(--on-accent); }
}

/* Text pages */
.page-head { padding: clamp(48px, 5vw + 16px, 88px) 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.page-head .lead { margin-bottom: 0; }
.page-updated { margin: 1.2rem 0 0; font-size: 0.88rem; color: var(--text-3); }
.page-head + .section { padding-top: clamp(40px, 4vw, 64px); }
.page-body { padding-top: clamp(36px, 4vw, 64px); padding-bottom: clamp(56px, 6vw, 96px); }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.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 table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-soft); }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.contact-card { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin: 1.2em 0; }
.contact-card p { margin: 0; }

/* Trust strip under the hero */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item > .icon { color: var(--accent); margin-top: 3px; }
.trust-item b { display: block; font-size: 1rem; }
.trust-item span { display: block; font-size: 0.9rem; color: var(--text-3); line-height: 1.4; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Differentiators: text beside a visual, alternating */
.feature-rows { display: grid; gap: clamp(64px, 8vw, 120px); }
.feature-row h3 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 0.5em; }
.feature-row p:not(.eyebrow):not(.small) { color: var(--text-2); font-size: 1.06rem; }
.sheet-stack { position: relative; padding: 0 6% 18% 0; }
.sheet-stack .sheet + .sheet { position: absolute; width: 70%; right: 0; bottom: 0; transform: rotate(-1.5deg); }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.device-grid > div { display: grid; justify-items: start; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-s); }
.device-grid .icon { color: var(--accent); }
.device-grid b { font-size: 1.08rem; }
.device-grid span { font-size: 0.9rem; color: var(--text-3); }
.device-grid .device-wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 0; }
.device-grid .device-wide .icon { grid-row: span 2; }
.card-compact h3 { font-size: 1.1rem; }
.section-more { margin: 28px 0 0; }
.section-more.center { text-align: center; }
.section-tight { padding: clamp(40px, 4vw, 64px) 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.5rem, 1.2rem + 1vw, 2rem); }
.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 */
.origin { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; max-width: 880px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-l); background: var(--surface); }
.origin-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.origin h2 { font-size: 1.45rem; margin-bottom: 0.4em; }
.origin p { color: var(--text-2); margin: 0; }
@media (max-width: 560px) { .origin { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* How it works */
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-cards li { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.step-cards .step-num { background: var(--accent); color: var(--on-accent); margin-bottom: 16px; }
.step-cards h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.step-cards p { color: var(--text-2); font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .step-cards { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.pricing-provisional { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 28px; width: fit-content; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: 0.9rem; font-weight: 500; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price-cards { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-s); }
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.price-badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--on-accent); }
.price-card h3 { font-size: 1.25rem; 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: 8px 0 4px; }
.price b { font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1; }
.price span { color: var(--text-3); font-size: 0.95rem; }
.price s { color: var(--text-3); font-size: 1.15rem; font-weight: 500; text-decoration-thickness: 2px; }
.price-badge .icon { margin-right: 2px; }
.price-billing { color: var(--text-3); font-size: 0.9rem; margin-bottom: 24px; }
.price-card .button { margin-top: auto; width: 100%; }
.price-included { margin: 28px auto 0; max-width: 980px; padding: 26px 28px; border-radius: var(--radius-l); border: 1px dashed var(--line-strong); }
.price-included-title { font-weight: 600; color: var(--text); margin-bottom: 12px; }
.price-included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.price-included li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; color: var(--text-2); }
.price-included li .icon { color: var(--success); margin-top: 3px; }
.price-trial { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); }
.price-trial .icon { color: var(--accent); 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: 20px; align-items: center; margin: 20px auto 0; max-width: 980px; padding: 24px 28px; border-radius: var(--radius-l); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.price-students-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); color: var(--success); }
.price-students h3 { font-size: 1.15rem; 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: 20px; }
.platform-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@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: 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-s); }
.platform-card h2, .platform-card h3 { font-size: 1.2rem; margin: 12px 0 0; }
.platform-card p { color: var(--text-3); font-size: 0.92rem; margin: 0 0 14px; }
.platform-card .store-button { margin-top: auto; }
.download-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.store-button { display: inline-grid; gap: 1px; min-width: 170px; padding: 9px 16px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.2; }
.store-button small { font-size: 0.72rem; opacity: 0.8; }
.store-button b { font-size: 1.02rem; font-weight: 600; color: inherit; }
a.store-button:hover { color: var(--bg); opacity: 0.88; }
.store-button.is-soon { background: var(--bg-sunken); color: var(--text-3); border: 1px 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: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-soft); }
.mobile-band h2 { font-size: 1.2rem; 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: 12px; }
.showcase-facts > div { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.showcase-facts b { font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; }
.showcase-facts span { color: var(--text-3); font-size: 0.92rem; }
@media (max-width: 900px) { .showcase-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .showcase-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.showcase-downloads { margin-top: 24px; }
.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: 28px 24px; }
@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: 12px; color: var(--text-2); text-decoration: none; }
.sheet-gallery a .sheet { display: block; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.sheet-gallery a:hover .sheet { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.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(--accent); 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: 10px; margin-bottom: 18px; }
.check-score > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.check-score b { font-size: 1.6rem; line-height: 1.1; }
.check-score span { font-size: 0.88rem; color: var(--text-3); }
.check-score-bad > div:first-child { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-soft); }
.check-score-bad > div:first-child b { color: var(--danger); }
.check-score-good > div:first-child { border-color: color-mix(in srgb, var(--success) 35%, transparent); 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-radius: var(--radius-l); border: 1px solid var(--line); background: var(--bg-soft); }
.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: 10px; }
.finding { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); 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: 500 0.78rem/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: 260px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); 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.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 1.4em 0 0.5em; }
.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; border-radius: 7px; color: var(--text-2); text-decoration: none; border-left: 2px solid transparent; }
.guide-toc a:hover { color: var(--text); background: var(--bg-sunken); }
.guide-toc a.is-current { color: var(--accent-ink); background: var(--accent-soft); }
.guide-toc-mobile { display: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.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: 1.9rem; margin: 2.4em 0 0.4em; }
.guide h2.group-label { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 3.6em 0 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; }
.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: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); margin: 1.2em 0 1.6em; }
.faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.faq-search .icon { color: var(--text-3); }
.faq-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.faq-empty { color: var(--text-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 10px 0; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 600; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--text-3); transition: transform 0.2s; margin-top: 3px; }
.faq-item[open] summary .icon { transform: rotate(90deg); }
.faq-item .faq-answer { padding: 0 18px 4px; }
.faq-group[hidden], .faq-item[hidden] { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 32px; font-size: 0.93rem; }
.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; } }
.footer-brand p { color: var(--text-2); max-width: 30em; margin: 14px 0 0; }
.footer-made { font-size: 0.86rem; color: var(--text-3); }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav h2 { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.84rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--text-3); }

/* Not found */
.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found .code { font: 500 0.9rem/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .button-row { justify-content: center; margin-top: 28px; }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .card { padding: 22px; }
  .button-row .button { flex: 1 1 auto; }
}
@media print {
  .site-header, .site-footer, .guide-toc, .guide-toc-mobile, .faq-search { display: none !important; }
  .faq-item { break-inside: avoid; }
}
