/* ============================================================
   HydroDCS - site styles, v3

   One palette, dark, on :root. Every colour is a token, so the
   SVG diagrams follow it too. The .on-dark bands (home hero,
   closing band, footer) re-point the same tokens at the --od-*
   set, a lighter navy, to give the page its rhythm. A print
   block at the end swaps in a light palette so a printed page
   is black on white.

   ASCII only.
   ============================================================ */

/* ---- fonts: self-hosted, latin subset. Licenses in assets/fonts/. -- */
@font-face{font-family:'Archivo';font-style:normal;font-weight:600 800;font-display:swap;
  src:url(fonts/archivo.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;
  src:url(fonts/plex-sans.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url(fonts/plex-mono-400.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;
  src:url(fonts/plex-mono-500.woff2) format('woff2')}

:root{
  --bg:#0f2237;
  --surface:#142a42;
  --surface-2:#1a3550;
  --line:#2a4d6c;
  --line-soft:#1f3d59;
  --text:#e9f2f8;
  --muted:#9ab3c6;
  --muted-2:#95aec1;
  --accent:#2bb8ef;
  --accent-soft:rgba(43,184,239,.10);
  --accent-ink:#04121c;
  --wire:#5a84a3;
  --steel:#54a6e2;
  --ok:#3dd68c;
  --warn:#f2b544;
  --crit:#f2665a;
  --glow-1:rgba(23,173,232,.16);
  --glow-2:rgba(28,113,184,.13);

  /* .on-dark bands: their ground, and the palette inside them */
  --deep-bg:#163a59;
  --deep-glow:rgba(60,192,242,.16);
  --od-surface:#1a4264;
  --od-surface-2:#1e4a6f;
  --od-line:#3a6a90;
  --od-line-soft:#2c5578;
  --od-text:#f0f6fb;
  --od-muted:#b8ccdb;
  --od-muted-2:#a8bfd0;
  --od-accent:#5ccdf5;
  --od-accent-soft:rgba(92,205,245,.14);
  --od-accent-ink:#04121c;
  --od-steel:#8cc4ef;
  --od-wire:#7aa6c6;

  --display:'Archivo','Helvetica Neue',Helvetica,Arial,sans-serif;
  --body:'IBM Plex Sans','Segoe UI',system-ui,-apple-system,sans-serif;
  --mono:'IBM Plex Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;

  --maxw:1680px;
  --gut:clamp(16px,2.4vw,32px);

  color-scheme:dark;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:900px){body{font-size:18px}}

img{max-width:100%}
[hidden]{display:none!important}

.ground{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(820px 560px at 82% -10%, var(--glow-1), transparent 70%),
    radial-gradient(660px 500px at 6% 8%, var(--glow-2), transparent 72%);
}
.page{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column}
.page > main{flex:1 0 auto;display:flex;flex-direction:column}
/* the last section takes up any spare height, so on a tall window the dark
   closing band runs down to the dark footer instead of leaving a light gap */
.page > main > section:last-of-type{flex-grow:1}

/* --- one alignment grid. Everything sits inside .wrap. --------------- */
.wrap{
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gut);
}

/* ---- type ---------------------------------------------------------- */
h1,h2,h3{
  font-family:var(--display);
  font-weight:700;
  letter-spacing:-.028em;
  text-wrap:balance;
  margin:0;
  line-height:1.06;
  color:var(--text);
}
h1{font-size:clamp(2.4rem,4.4vw,4.2rem);font-weight:800;letter-spacing:-.038em}
h2{font-size:clamp(2rem,3.9vw,3rem)}
h3{font-size:clamp(1.2rem,1.7vw,1.4rem);letter-spacing:-.018em}
p{margin:0}

.lede{
  font-size:clamp(1.15rem,1.75vw,1.45rem);
  color:var(--muted);
  max-width:34ch;
  line-height:1.5;
}
.lede.wide{max-width:52ch}
.prose{color:var(--muted);max-width:60ch;font-size:1.05rem}

.eyebrow{
  font-family:var(--mono);
  font-size:.76rem;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:50;
  background:var(--accent);color:var(--accent-ink);padding:12px 18px;
  font-family:var(--mono);font-size:.85rem;
}
.skip:focus{left:16px;top:16px}

/* ---- header -------------------------------------------------------- */
.topbar{
  position:sticky;top:env(safe-area-inset-top,0px);z-index:20;
  background:var(--bg);
  border-bottom:1px solid var(--line-soft);
}
.topbar .wrap{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding-block:16px;
}
.brand{display:flex;align-items:center;gap:11px;color:var(--text)}
.brand:hover{text-decoration:none}
.brand .name{font-family:var(--display);font-weight:800;font-size:1.3rem;letter-spacing:-.03em}
.brand .name b{color:var(--accent);font-weight:800}

.nav{display:flex;align-items:center;gap:30px}
.nav a{
  font-family:var(--body);font-size:.98rem;font-weight:500;color:var(--muted);padding-block:4px;
}
.nav a:hover{color:var(--text);text-decoration:none}
.nav a[aria-current="page"]{color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}

.tools{display:flex;align-items:center;gap:12px}

@media (max-width:1040px){.nav{gap:22px}.nav a{font-size:.92rem}}
@media (max-width:820px){
  .topbar .wrap{flex-wrap:wrap;row-gap:12px}
  .brand{order:1}
  .tools{order:2}
  .nav{order:3;width:100%;gap:24px;overflow-x:auto;scrollbar-width:none;
       border-top:1px solid var(--line-soft);padding-top:12px}
  .nav::-webkit-scrollbar{display:none}
  .nav a{white-space:nowrap;flex:none}
}

/* ---- buttons ------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--body);font-size:1rem;font-weight:500;
  padding:15px 26px;border-radius:3px;border:1px solid transparent;cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn-primary:hover{filter:brightness(1.1)}
.btn-ghost{color:var(--text);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}

/* ---- sections ------------------------------------------------------ */
.band{border-top:1px solid var(--line-soft)}
.band > .wrap{padding-block:clamp(48px,5.4vw,88px)}
.band.tint{background:var(--surface-2)}
.band.first{border-top:0}

.head{display:flex;flex-direction:column;gap:16px}
.head h1,.head h2{max-width:24ch}
.head.wide h1,.head.wide h2{max-width:30ch}
.head > p:not(.eyebrow):not(.lede):not(.prose){max-width:60ch}
.band .head + *{margin-top:clamp(32px,3.4vw,48px)}

/* ---- hero: the diagram leads --------------------------------------- */
.hero > .wrap{padding-block:clamp(32px,3.6vw,56px)}
.hero-top{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:clamp(24px,3vw,60px);
  align-items:end;
  margin-bottom:clamp(26px,2.8vw,40px);
}
@media (max-width:900px){.hero-top{grid-template-columns:1fr}}
.hero-top .words{display:flex;flex-direction:column;gap:18px;min-width:0}
.hero-top .words h1{max-width:20ch}
.hero-top .words h1 em{font-style:normal;color:var(--accent)}

.stage{
  border:1px solid var(--line-soft);
  border-radius:5px;
  background:var(--surface);
  padding:clamp(14px,2.2vw,30px);
}
.stage svg{display:block;width:100%;height:auto;max-width:100%}
/* keep the diagram commanding but not absurd on a very large monitor */
@media (min-width:1900px){.stage{max-width:1560px;margin-inline:auto}}
.stagecap{
  display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:space-between;
  margin-top:clamp(14px,2vw,22px);padding-top:16px;border-top:1px solid var(--line-soft);
  font-family:var(--mono);font-size:.8rem;color:var(--muted-2);
}

/* ---- diagram tokens: the SVG follows the palette -------------------- */
.d-node{fill:var(--surface-2);stroke:var(--wire)}
.d-core{fill:var(--surface-2);stroke:var(--accent)}
.d-link{fill:none;stroke:var(--wire);stroke-width:1.6}
.d-label{fill:var(--text);font-family:'IBM Plex Mono',monospace}
.d-sub{fill:var(--muted-2);font-family:'IBM Plex Mono',monospace}
.d-name{fill:var(--text);font-family:'Archivo',sans-serif}
.d-sat{fill:var(--steel)}
.d-panel{fill:var(--accent);opacity:.75}
.d-chip{fill:none;stroke:var(--wire)}
.d-broken{fill:none;stroke:var(--crit);stroke-width:1.8;stroke-dasharray:6 8}
.d-x{fill:none;stroke:var(--crit);stroke-width:3;stroke-linecap:round}
.d-ok{fill:var(--ok);font-family:'IBM Plex Mono',monospace}
.flow.down{stroke:var(--steel)}

.d-arrow{fill:var(--muted-2)}

/* each diagram has a phone-sized version, so labels stay readable */
.stage svg.narrow{display:none}
@media (max-width:640px){
  .stage svg.wide{display:none}
  .stage svg.narrow{display:block;max-width:440px;margin-inline:auto}
}

/* legend marks in a .stagecap */
.key{display:inline-block;vertical-align:-2px;margin-right:9px;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* beat .stage svg{width:100%}, which is meant for the diagram itself */
.stagecap .key{display:inline-block;width:auto;height:auto;max-width:none}
.k-up{stroke:var(--accent)}
.k-down{stroke:var(--steel)}
.k-cut{stroke:var(--crit);stroke-dasharray:3 3}

.arc{fill:none;stroke:var(--accent);stroke-linecap:round;stroke-width:3}
.arc-1{animation:pulse 3.4s ease-in-out infinite}
.arc-2{animation:pulse 3.4s ease-in-out .28s infinite}
.arc-3{animation:pulse 3.4s ease-in-out .56s infinite}
@keyframes pulse{0%,100%{opacity:.45}45%{opacity:1}}

.flow{
  fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;
  stroke-dasharray:16 170;animation:travel 3.6s linear infinite;
}
.flow.d2{animation-delay:.9s}
.flow.d3{animation-delay:1.8s}
.flow.d4{animation-delay:2.4s}
@keyframes travel{from{stroke-dashoffset:186}to{stroke-dashoffset:0}}

.corepulse{animation:core 3.4s ease-in-out infinite}
@keyframes core{0%,100%{opacity:.45}50%{opacity:1}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .arc-1,.arc-2,.arc-3,.flow,.corepulse{animation:none}
  .arc{opacity:.9}
  .flow{stroke-dasharray:none;opacity:.45}
  *{transition:none!important}
}

/* ---- three-up / two-up cards --------------------------------------- */
.trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,30px)}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,30px)}
@media (max-width:900px){.trio{grid-template-columns:1fr}.duo{grid-template-columns:1fr}}

.card{
  border:1px solid var(--line-soft);border-radius:4px;background:var(--surface);
  padding:clamp(24px,2.8vw,34px);display:flex;flex-direction:column;gap:14px;
}
.card.lead{border-color:var(--accent);background:var(--accent-soft)}
.card p{color:var(--muted);font-size:1.02rem}
.card .hint{
  margin-top:auto;padding-top:16px;border-top:1px solid var(--line-soft);
  font-family:var(--mono);font-size:.82rem;color:var(--ok);
}
.card .hint.warn{color:var(--warn)}

/* ---- simple lists -------------------------------------------------- */
.tick{margin:0;padding:0;list-style:none;display:grid;gap:13px}
.tick li{position:relative;padding-left:30px;color:var(--muted);font-size:1.02rem;line-height:1.5}
.tick li::before{
  content:"";position:absolute;left:2px;top:.4em;width:14px;height:8px;
  border-left:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);
  transform:rotate(-45deg);
}
.tick li b{color:var(--text);font-weight:600}

/* ---- big numbers --------------------------------------------------- */
.figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,30px)}
@media (max-width:820px){.figures{grid-template-columns:1fr}}
.figures > div{border-top:2px solid var(--accent);padding-top:20px}
.figures .n{
  font-family:var(--display);font-weight:800;font-size:clamp(3rem,6vw,4.4rem);
  line-height:.95;letter-spacing:-.04em;color:var(--text);
}
.figures .t{margin-top:12px;color:var(--muted);font-size:1.02rem;max-width:26ch}

/* ---- screenshots --------------------------------------------------- */
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,28px)}
@media (max-width:820px){.shots{grid-template-columns:1fr}}
.shot{
  margin:0;border:1px solid var(--line-soft);border-radius:4px;background:var(--surface);
  overflow:hidden;display:flex;flex-direction:column;
}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{
  padding:16px 20px;border-top:1px solid var(--line-soft);
  font-size:.98rem;color:var(--muted);
}
.shot figcaption b{display:block;color:var(--text);font-weight:600;margin-bottom:3px}
.shot .slot{
  display:none;aspect-ratio:16/10;max-width:100%;place-items:center;text-align:center;padding:24px;
  background:repeating-linear-gradient(135deg,var(--line-soft) 0 10px,transparent 10px 20px);
}
.shot-empty .slot{display:grid}
.shot .slot code{
  font-family:var(--mono);font-size:.82rem;color:var(--accent);
  background:var(--accent-soft);border:1px solid var(--line);padding:7px 11px;border-radius:3px;
  word-break:break-all;
}

/* ---- table --------------------------------------------------------- */
.tablewrap{overflow-x:auto;border:1px solid var(--line-soft);border-radius:4px;background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:540px;font-size:1rem}
th,td{text-align:left;padding:17px 22px;border-bottom:1px solid var(--line-soft);vertical-align:top}
thead th{
  font-family:var(--mono);font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted-2);background:var(--surface-2);font-weight:500;
}
tbody tr:last-child td{border-bottom:0}
td{color:var(--muted)}
td.label{color:var(--text);font-weight:600;white-space:nowrap}
table.compare td:nth-child(2){color:var(--text);font-weight:500}
table.compare thead th:nth-child(2){color:var(--accent)}
/* on a phone, tables wrap instead of scrolling sideways with a column hidden */
@media (max-width:640px){
  table{min-width:0;font-size:.92rem}
  th,td{padding:13px 10px}
  td.label{white-space:normal}
}

/* ---- failure matrix: which paths survive which fault --------------- */
table.matrix{min-width:620px}
table.matrix tbody th{color:var(--text);font-weight:600;white-space:nowrap}
table.matrix thead th:not(:first-child),table.matrix td{text-align:center;vertical-align:middle}
/* running = filled circle with a check, down = ring with a cross. Shape as
   well as color, so it still reads for red-green color blindness. */
.dot{position:relative;display:inline-block;width:24px;height:24px;border-radius:50%;vertical-align:middle;box-sizing:border-box}
.dot.on{background:var(--ok)}
.dot.on::after{
  content:"";position:absolute;left:8.5px;top:5px;width:5px;height:10px;
  border:solid var(--surface);border-width:0 2.6px 2.6px 0;transform:rotate(45deg);
}
.dot.off{border:2px solid var(--crit)}
.dot.off::before,.dot.off::after{
  content:"";position:absolute;left:50%;top:50%;width:11px;height:2.4px;border-radius:2px;
  background:var(--crit);transform:translate(-50%,-50%) rotate(45deg);
}
.dot.off::after{transform:translate(-50%,-50%) rotate(-45deg)}
table.matrix tr.total th,table.matrix tr.total td{background:var(--accent-soft);border-bottom:0}
table.matrix tr.total td{color:var(--ok);font-family:var(--mono);font-size:.9rem;font-weight:500}
table.matrix tr.total .dot{display:none}
@media (max-width:640px){
  table.matrix{min-width:0;font-size:.9rem}
  table.matrix th,table.matrix td{padding:13px 6px}
  table.matrix th:first-child{padding-left:14px}
  table.matrix thead th{font-size:.6rem;letter-spacing:.06em;line-height:1.35}
  table.matrix tbody th{white-space:normal;line-height:1.3}
  .dot{width:22px;height:22px}
  .dot.on::after{left:7.5px;top:4.5px}
  /* "Complete" does not fit four across a phone: show a check, keep the word for screen readers */
  table.matrix tr.total .dot{display:inline-block}
  table.matrix tr.total .word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* ---- data-type chips ----------------------------------------------- */
.chips{display:flex;flex-wrap:wrap;gap:12px}
.chips span{
  font-family:var(--mono);font-size:.92rem;padding:10px 16px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);color:var(--text);
}
.chips span.lead{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.chips-out{margin-top:22px;color:var(--muted);max-width:60ch;font-size:1.05rem}

/* ---- contact: form beside what happens next ------------------------ */
.contact-grid{display:grid;grid-template-columns:minmax(0,640px) minmax(0,420px);gap:clamp(32px,5vw,80px);align-items:start}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
.nextsteps{margin:0;padding-left:1.25em;display:grid;gap:12px;color:var(--muted);font-size:1.02rem;line-height:1.5}
.nextsteps b{color:var(--text);font-weight:600}
.nextsteps li::marker{color:var(--accent);font-family:var(--mono)}

/* ---- steps --------------------------------------------------------- */
.steps{counter-reset:step;display:grid;gap:0}
.step{
  counter-increment:step;display:grid;grid-template-columns:auto minmax(0,1fr);
  gap:clamp(20px,2.8vw,34px);padding-block:clamp(26px,3vw,36px);
  border-top:1px solid var(--line-soft);
}
.step:first-child{border-top:0;padding-top:0}
.step .dot{
  width:50px;height:50px;border-radius:50%;
  border:1px solid var(--accent);background:var(--accent-soft);
  display:grid;place-items:center;
  font-family:var(--mono);font-size:1rem;font-weight:600;color:var(--accent);
}
.step .dot::before{content:counter(step)}
.step .sb{display:flex;flex-direction:column;gap:10px}
.step .sb p{color:var(--muted);max-width:62ch}
@media (max-width:620px){.step{grid-template-columns:1fr;gap:14px}}

/* ---- FAQ ----------------------------------------------------------- */
.faq{display:grid;border-top:1px solid var(--line-soft)}
.faq details{border-bottom:1px solid var(--line-soft)}
.faq summary{
  cursor:pointer;list-style:none;display:flex;align-items:flex-start;gap:16px;
  padding:24px 0;font-family:var(--display);font-weight:600;
  font-size:clamp(1.1rem,1.6vw,1.3rem);letter-spacing:-.018em;color:var(--text);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{
  content:"+";font-family:var(--mono);font-weight:400;font-size:1.4rem;line-height:1;
  color:var(--accent);flex:none;width:20px;
}
.faq details[open] summary::before{content:"\2212"}
.faq summary:hover{color:var(--accent)}
.faq .answer{padding:0 0 26px 36px;color:var(--muted);max-width:66ch;display:grid;gap:14px}

/* ---- CTA band ------------------------------------------------------ */
.ctaband{border-top:1px solid var(--line-soft);background:var(--surface-2)}
.ctaband > .wrap{
  padding-block:clamp(48px,5vw,76px);
  display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;justify-content:space-between;
}
.ctaband h2{max-width:20ch}

/* ---- form ---------------------------------------------------------- */
.form{display:grid;gap:20px;max-width:640px}
.field{display:grid;gap:8px}
.field label{font-size:.95rem;font-weight:500;color:var(--text)}
.field label .req{color:var(--accent)}
.field input,.field textarea,.field select{
  font-family:var(--body);font-size:1rem;color:var(--text);
  background:var(--surface);border:1px solid var(--line);border-radius:3px;
  padding:14px 16px;width:100%;
}
.field textarea{min-height:150px;resize:vertical;line-height:1.55}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-2)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);
}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media (max-width:620px){.field-row{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-note{font-size:.92rem;color:var(--muted-2)}
.form-status{display:none;border-radius:3px;padding:16px 18px;font-size:1rem;border:1px solid var(--line)}
.form-status.show{display:block}
.form-status.ok{border-color:var(--ok);color:var(--ok);background:var(--surface)}
.form-status.err{border-color:var(--crit);color:var(--crit);background:var(--surface)}

/* ---- download ------------------------------------------------------ */
.dl{
  display:inline-flex;align-items:center;gap:14px;
  border:1px solid var(--line);border-radius:3px;padding:16px 22px;background:var(--surface);
}
.dl:hover{border-color:var(--accent);text-decoration:none}
.dl svg{flex:none;color:var(--accent)}
.dl b{color:var(--text);font-weight:600;font-size:1rem}

/* ---- info rows ----------------------------------------------------- */
.rows{display:grid;gap:0;border-top:1px solid var(--line-soft)}
.rows > div{
  display:flex;flex-wrap:wrap;gap:6px 32px;justify-content:space-between;
  padding:18px 0;border-bottom:1px solid var(--line-soft);
}
.rows .k{color:var(--muted-2);font-size:1rem}
.rows .v{color:var(--text);font-weight:500;font-size:1rem;text-align:right}

/* ---- 404 ----------------------------------------------------------- */
.nf > .wrap{min-height:52vh;display:flex;flex-direction:column;justify-content:center;gap:22px}

/* ---- footer -------------------------------------------------------- */
footer{border-top:1px solid var(--line-soft);background:var(--surface-2)}
footer .wrap{
  padding-block:34px;display:flex;flex-wrap:wrap;gap:28px;
  justify-content:space-between;align-items:flex-start;
}
footer .fine{font-size:.95rem;color:var(--muted-2);line-height:1.8}
footer .fine a{color:var(--muted)}
.footnav{display:flex;flex-wrap:wrap;gap:22px}
.footnav a{font-size:.95rem;color:var(--muted)}

/* ============================================================
   Brand logo and product imagery
   ============================================================ */

/* Header carries the wordmark alone: horizontal, so it fits a slim bar.
   The footer has vertical room, so it gets the full stacked lockup. */
.brand img{display:block;height:32px;width:auto}
footer .brand img{height:56px}
@media (max-width:620px){.brand img{height:27px}}

/* Two-column feature row: image one side, a few words the other */
.feature{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(24px,4vw,64px);
  align-items:center;
}
.feature.flip .unitframe{order:2}
@media (max-width:900px){
  .feature{grid-template-columns:1fr}
  .feature.flip .unitframe{order:0}
}
.feature .copy{display:flex;flex-direction:column;gap:16px}
.feature .copy .dl{align-self:flex-start}

/* The unit is a black object, so it needs a lit surface behind it to read
   against the dark page. */
.unitframe{
  display:grid;place-items:center;
  border:1px solid var(--line-soft);
  border-radius:5px;
  background:
    radial-gradient(62% 62% at 50% 46%, var(--accent-soft), transparent 72%),
    var(--surface);
  padding:clamp(16px,3vw,40px);
}
/* Capped at 460px so the 963px source lands just over 2x density. A smaller
   sharp photo reads better than a large soft one. */
.unitframe img{
  display:block;width:100%;height:auto;max-width:460px;
  filter:drop-shadow(0 20px 26px rgba(0,0,0,.32));
}
.unitframe.compact img{max-width:380px}

/* ---- dark bands: home hero, closing call-to-action, footer ------------
   Re-points the palette tokens at the --od-* set, so everything inside -
   text, buttons, cards, the diagram - turns dark with no rules of its own.
   Last in the file so its background wins over .ctaband and footer. */
.on-dark{
  --surface:var(--od-surface);
  --surface-2:var(--od-surface-2);
  --line:var(--od-line);
  --line-soft:var(--od-line-soft);
  --text:var(--od-text);
  --muted:var(--od-muted);
  --muted-2:var(--od-muted-2);
  --accent:var(--od-accent);
  --accent-soft:var(--od-accent-soft);
  --accent-ink:var(--od-accent-ink);
  --steel:var(--od-steel);
  --wire:var(--od-wire);
  color:var(--text);
  background:radial-gradient(ellipse 70% 120% at 85% 0%,var(--deep-glow),transparent 60%),var(--deep-bg);
}
.ctaband.on-dark{border-top:0}
footer.on-dark{background:var(--deep-bg);border-top:1px solid var(--line-soft)}

/* ---- print: black on white, no navigation, no motion ---------------- */
@media print{
  :root{
    --bg:#ffffff;
    --surface:#ffffff;
    --surface-2:#f2f5f8;
    --line:#b9c7d2;
    --line-soft:#d6e0e8;
    --text:#0c1d2b;
    --muted:#33495a;
    --muted-2:#4a6072;
    --accent:#07729f;
    --accent-soft:rgba(7,114,159,.08);
    --accent-ink:#ffffff;
    --wire:#6d8799;
    --steel:#1c71b8;
    --ok:#0e8f5a;
    --crit:#c0392f;
    --deep-bg:#ffffff;
    --deep-glow:rgba(0,0,0,0);
    --od-surface:#ffffff;
    --od-surface-2:#f2f5f8;
    --od-line:#b9c7d2;
    --od-line-soft:#d6e0e8;
    --od-text:#0c1d2b;
    --od-muted:#33495a;
    --od-muted-2:#4a6072;
    --od-accent:#07729f;
    --od-accent-soft:rgba(7,114,159,.08);
    --od-accent-ink:#ffffff;
    --od-steel:#1c71b8;
    --od-wire:#6d8799;
    --glow-1:rgba(0,0,0,0);
    --glow-2:rgba(0,0,0,0);
    color-scheme:light;
  }
  .ground,.nav,.tools,.skip,.btn-row,.footnav{display:none!important}
  .arc,.flow,.corepulse{animation:none!important}
  .flow{display:none}
  .band > .wrap,.hero > .wrap{padding-block:18px}
  section,.card,.stage,.tablewrap,figure{break-inside:avoid}
}
