/* src/assets/css/site.css
   Framework Systems design system. Tokens first, then base, layout, chrome, components.
   Every color is a token. Breakpoints used: 560px, 720px, 960px, 1200px. */

:root {
  --navy-950: #011C32; --navy-900: #012441; --blue-800: #024073; --blue-600: #1672A7;
  --blue-500: #2B86BD; --blue-300: #8FC3E3; --blue-100: #D9EAF5;
  --slate-600: #456792; --slate-500: #566E8F; --gray-100: #ECF0F3; --gray-50: #F9FAFB;
  --sand-300: #C5C1B9; --white: #FFFFFF;
  --text: #0B1F33; --text-muted: #456792; --border: #D5DDE5; --border-dark: rgba(255,255,255,.14);
  --font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 12px; --radius-sm: 8px;
  --container: 1200px; --gutter: clamp(16px, 3vw, 24px);
  --section-y: clamp(3rem, 8vw, 6rem);
  --shadow: 0 10px 30px rgba(1, 36, 65, .10);
  --shadow-deep: 0 20px 50px rgba(1, 28, 50, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .75em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1.25em; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--blue-800); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: .9em; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--slate-600); max-width: 60ch; }
.prose { max-width: 65ch; }
.accent { color: var(--blue-600); }
.eyebrow { font: 500 .8rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin: 0 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--gray-100); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--deep { background: var(--blue-800); color: #fff; }
/* Pairs with .hero--tight to close the gap between a hero and the section under it. */
.section--tight-top { padding-top: clamp(1.5rem, 4vw, 3rem); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--dark a:not(.btn), .section--deep a:not(.btn) { color: var(--blue-300); }
.section--dark .accent, .section--deep .accent { color: var(--blue-300); }
.section--dark .lead, .section--deep .lead, .section--dark .prose, .section--deep .prose { color: rgba(255,255,255,.82); }
.section--dark .eyebrow { color: var(--blue-300); }
/* Dot texture: the mark's grid, faint, on dark grounds */
.section--dark, .hero--dark { position: relative; isolation: isolate; }
.section--dark::before, .hero--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.5px); background-size: 28px 28px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--navy-950); color: rgba(255,255,255,.85); font-size: .875rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .55rem; }
.utility-bar p { margin: 0; }
.utility-bar__left { flex: 1 1 auto; min-width: 0; }
.utility-bar a { color: #fff; font-weight: 500; }
.utility-bar strong { color: var(--blue-300); font-weight: 600; }
.utility-bar__right a + a { margin-left: 1.25rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy-900); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { font: 700 .78rem/1.05 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.brand__logo { height: 27px; width: auto; flex: none; }
.brand--light { color: #fff; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--navy-900); cursor: pointer; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 0; font: 500 .95rem/1 var(--font-body); color: var(--navy-900); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav__list > li > a:hover, .nav__toggle:hover { color: var(--blue-600); }
.nav__list > li > a[data-active="true"], .nav__toggle[data-active="true"] { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__toggle .icon { transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__menu { display: none; position: absolute; top: calc(100% + .5rem); left: -.75rem; min-width: 300px; margin: 0; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
.nav__menu a { display: block; padding: .65rem .9rem; border-radius: var(--radius-sm); color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.nav__menu a span { display: block; margin-top: .15rem; font-weight: 400; font-size: .85rem; color: var(--text-muted); }
.nav__menu a:hover { background: var(--gray-50); color: var(--blue-600); }
.nav__cta { margin-left: .5rem; }
.nav__cta .btn[data-active="true"] { background: var(--blue-800); text-decoration: none; }
@media (hover: hover) and (min-width: 960px) {
  .has-menu:hover .nav__menu, .has-menu:focus-within .nav__menu { display: block; }
}
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1.5rem; max-height: calc(100vh - 76px); overflow-y: auto; }
  body[data-nav-open] .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-top: 1px solid var(--border); }
  .nav__list > li:first-child { border-top: 0; }
  .nav__list > li > a, .nav__toggle { display: flex; width: 100%; justify-content: space-between; padding: .95rem 0; font-size: 1.05rem; }
  .nav__list > li > a[data-active="true"], .nav__toggle[data-active="true"] { text-decoration: none; }
  .nav__menu { position: static; min-width: 0; padding: 0 0 .75rem; border: 0; box-shadow: none; }
  .nav__menu a { padding: .6rem .75rem; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--secondary { background: #fff; color: var(--navy-900); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: inherit; border-color: rgba(255,255,255,.7); }
.btn--sm { padding: .55rem .95rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero--tight { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { margin-bottom: 1rem; }
.hero--split .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero--dark { background: linear-gradient(135deg, var(--navy-950), var(--blue-800)); color: #fff; }
.hero--dark h1 { color: #fff; }
.hero--dark .lead { color: rgba(255,255,255,.82); }
.hero--dark p:not(.lead) { color: rgba(255,255,255,.9); }
.hero--dark .accent, .hero--dark .eyebrow { color: var(--blue-300); }
.hero__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.band-img { width: 100%; margin-top: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
@media (max-width: 959px) {
  .hero--split .container { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Badge strip ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; list-style: none; margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--navy-900); }
.badge .icon { color: var(--blue-600); }

/* ---------- Product panels ---------- */
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.panel { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.panel h3 { margin: 0; font-size: 1.5rem; }
.panel .lead { margin: 0; font-size: 1.125rem; }
.panel p:last-child { margin: auto 0 0; }
.panel--dark { background: var(--navy-900); color: #fff; border-color: transparent; }
.panel--dark h3 { color: #fff; }
.panel--dark .lead { color: rgba(255,255,255,.8); }
.panel__img { width: 100%; border-radius: var(--radius-sm); }
.list-check { display: grid; gap: .6rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.list-check li { display: flex; align-items: flex-start; gap: .6rem; }
.list-check .icon { color: var(--blue-600); margin-top: .2em; }
.panel--dark .list-check .icon { color: var(--blue-300); }

/* ---------- Definition columns and pull quote ---------- */
.def-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin: 2rem 0; }
.def-columns > div { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--gray-50); }
.section--tint .def-columns > div { background: #fff; }
.def-columns h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.def-columns .icon { color: var(--blue-600); }
.def-columns ul { margin: 0; padding-left: 1.2rem; }
.def-columns li + li { margin-top: .4rem; }
.def-columns p:last-child { margin: 0; }
.pull-quote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; font: 600 1.25rem/1.4 var(--font-display); color: var(--navy-900); }
.section--dark .pull-quote, .hero--dark .pull-quote { background: rgba(255,255,255,.06); border-color: var(--blue-300); color: #fff; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 160px; }
.compare thead th { font-family: var(--font-display); font-weight: 600; vertical-align: bottom; }
.compare th[scope="row"] { font-weight: 600; }
.compare .is-us { background: rgba(22,114,167,.12); }
.section--dark .compare th, .section--dark .compare td { border-color: var(--border-dark); }
.section--dark .compare .is-us { background: rgba(143,195,227,.16); }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.5rem; }
.spec th, .spec td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec th[scope="row"] { width: 30%; font-weight: 600; color: var(--navy-900); }
.spec thead th { background: var(--gray-100); font-family: var(--font-display); font-weight: 600; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin: 0; }
.numbers > div { padding-top: 1rem; border-top: 3px solid var(--blue-600); }
.numbers dt strong { display: block; font: 700 clamp(2.5rem, 5vw, 3.75rem)/1 var(--font-display); color: var(--blue-600); letter-spacing: -0.02em; }
.numbers dd { margin: .5rem 0 0; font-size: .95rem; color: var(--text-muted); }

/* ---------- Feature rows ---------- */
.feature-rows .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 2.5rem; border-top: 1px solid var(--border); }
.feature-rows .feature:first-child { border-top: 0; padding-top: 0; }
.feature-rows .feature:last-child { padding-bottom: 0; }
.feature-rows .feature:nth-child(even) .feature__media { order: -1; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__cover { max-width: min(420px, 100%); margin-inline: auto; }

/* ---------- Capability cards ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.cap { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.cap h3 { font-size: 1.2rem; }
.cap p { margin: 0; color: var(--text-muted); }
.icon-badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 10px; background: var(--blue-100); color: var(--blue-600); }
.icon-badge .icon { width: 1.4rem; height: 1.4rem; }

/* ---------- Steps, guardrails, ladder, promises ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.steps > li > div { min-width: 0; }
.steps > li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: #fff; font: 700 1.5rem/1 var(--font-display); }
.steps :is(h2, h3) { font-size: 1.375rem; font-weight: 600; margin: .5rem 0 .4em; }
.steps p:last-child { margin: 0; }
.guardrails { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); list-style: none; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border); }
.guardrails li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; }
.guardrails .icon { color: var(--blue-600); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.ladder > div { padding: 1.75rem; border-top: 4px solid var(--blue-600); border-radius: 0 0 var(--radius) var(--radius); background: #fff; box-shadow: var(--shadow); }
.ladder h3 { font-size: 1.5rem; }
.ladder p:last-child { margin: 0; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.promises > div { padding: 1.75rem 0; border-top: 1px solid var(--border-dark); }
.promises .icon { width: 1.75rem; height: 1.75rem; margin-bottom: .75rem; color: var(--blue-300); }
.promises h3 { color: #fff; }
.promises p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; list-style: none; cursor: pointer; font: 600 1.125rem/1.3 var(--font-display); color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-600); transition: transform .2s var(--ease); }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq p { max-width: 65ch; padding-bottom: 1.25rem; color: var(--text-muted); }

/* ---------- Chips and resource cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { padding: .45rem .95rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--navy-900); font: 500 .9rem/1.2 var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h2 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; color: var(--text-muted); }
.card__type { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.card__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: .5rem; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-bottom: 1.5rem; }
.person { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.person h3 { margin-bottom: .25rem; }
.person p { margin: 0; color: var(--text-muted); }
.person__mono { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%; background: var(--blue-100); color: var(--navy-900); font: 700 1.25rem/1 var(--font-display); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); background: var(--blue-800); color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 260px; height: 260px; border: 16px solid rgba(255,255,255,.08); border-radius: 36px; pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); position: relative; }
.cta-band .hero__actions { margin: 0; position: relative; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__field { display: grid; gap: .4rem; }
.form label { font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; }
.form :is(input, select, textarea):focus { border-color: var(--blue-600); outline: 3px solid var(--blue-300); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form__help, .form__status { margin: 0; font-size: .875rem; color: var(--text-muted); }
.form__status { min-height: 0; }
.form button { justify-self: start; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.contact-aside { padding: 2rem; border-radius: var(--radius); background: var(--gray-100); }
.contact-aside h2 { font-size: 1.375rem; }
.contact-aside h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.contact-aside .icon { display: inline-block; vertical-align: -0.25em; margin-right: .25rem; color: var(--blue-600); }
.contact-aside ul { padding-left: 1.2rem; }
.contact-aside p:last-child { margin: 0; }

/* ---------- Article (long documents) ---------- */
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .9rem; }
.toc h2 { font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 1rem; }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--blue-600); border-color: var(--blue-600); }
.article { max-width: 72ch; }
.article h2 { margin-top: 3rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.article h3 { margin-top: 2rem; }
.article table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; }
.article th, .article td { padding: .75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.article thead th { background: var(--gray-100); }
.article ul, .article ol:not(.steps) { padding-left: 1.4rem; }
.article pre { margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--gray-50); overflow-x: auto; font: 400 .9rem/1.5 var(--font-mono); }
.article pre code { font-size: 1em; }
.callout { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--gray-50); font: 600 1.125rem/1.45 var(--font-display); color: var(--navy-900); }
.callout p { margin: 0; }
.callout p + p { margin-top: .5rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1rem 0; font-size: .9rem; color: var(--text-muted); }
.doc-meta strong { margin-right: .35rem; color: var(--navy-900); }
.section--dark .doc-meta { color: rgba(255,255,255,.75); }
.section--dark .doc-meta strong { color: #fff; }

/* ---------- Figures, screenshots, diagrams ---------- */
figure { margin: 0; }
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.screens img { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
figcaption { margin-top: .75rem; font-size: .9rem; color: var(--text-muted); }
.section--dark figcaption { color: rgba(255,255,255,.75); }
.diagram { display: block; width: 100%; height: auto; max-width: 1000px; margin: 1.5rem auto; }
.diagram text { font-family: var(--font-body); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3.5rem 2rem; background: var(--navy-950); color: rgba(255,255,255,.85); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { max-width: 34ch; margin: 1.25rem 0 0; color: rgba(255,255,255,.7); }
.site-footer h2 { margin: 0 0 1rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-300); }
.site-footer ul { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-dark); font-size: .85rem; color: var(--sand-300); }
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
.reveal { transform: translateY(16px); transition: transform .6s var(--ease); }
.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Responsive collapse ---------- */
@media (max-width: 959px) {
  .panels, .contact-grid, .feature-rows .feature, .article-layout { grid-template-columns: 1fr; }
  .feature-rows .feature { gap: 2rem; }
  .feature-rows .feature:nth-child(even) .feature__media { order: 0; }
  .caps, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .toc { position: static; }
}
@media (max-width: 719px) {
  .utility-bar__right { display: none; }
  .def-columns, .caps, .cards, .ladder, .people, .promises, .screens, .cta-band { grid-template-columns: 1fr; }
  .numbers, .guardrails { grid-template-columns: repeat(2, 1fr); }
  .compare th, .compare td { min-width: 140px; }
  .spec th[scope="row"] { width: 38%; }
}
@media (max-width: 559px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; }
  .steps > li::before { width: 44px; height: 44px; font-size: 1.2rem; }
  .hero__actions .btn { width: 100%; }
}

/* Long unbreakable strings (paths, codes) wrap instead of widening narrow layouts */
.spec th, .spec td, .article td, .article th, .article :not(pre) > code { overflow-wrap: anywhere; }
.article pre { max-width: 100%; }
