/* NOMIC Ramp website. Same brand as the app (app/app.css): warm charcoal greys lead, brick red only for the wordmark and the one next action.
   Layout: a grey signage-style bar, one reading column, wide sections where a page needs a grid. */
:root {
  --bg: #eeeceb; --surface: #ffffff; --surface-2: #e2dfdd; --ink: #23211f; --muted: #625d58; --line: #cdc8c3;
  --steel: #3a3735; --steel-ink: #ffffff; --accent: #a3322b; --accent-ink: #ffffff; --navy: var(--steel);
  --help: #186b42; --help-bg: #e1f1e8; --hinder: #934509; --hinder-bg: #fbeadb; --adjust: #3d5a80; --adjust-bg: #e2e9f3;
  --prof: #0f6e6a; --prof-bg: #dcefee; --uos: #8e1f5c; --uos-bg: #f5e0eb; --focus: #0b63ce;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #181716; --surface: #222120; --surface-2: #2e2c2a; --ink: #ece9e6; --muted: #aaa39c; --line: #403c39;
  --steel: #121110; --steel-ink: #ece9e6; --accent: #c8463d; --accent-ink: #ffffff; --navy: #d9d4cf;
  --help: #6fd19f; --help-bg: #1b3328; --hinder: #f0a060; --hinder-bg: #3a2717; --adjust: #9db8de; --adjust-bg: #222e3e;
  --prof: #6fd3cc; --prof-bg: #163533; --uos: #ef8fc1; --uos-bg: #3b1d2d; --focus: #6aa8ff; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #181716; --surface: #222120; --surface-2: #2e2c2a; --ink: #ece9e6; --muted: #aaa39c; --line: #403c39;
  --steel: #121110; --steel-ink: #ece9e6; --accent: #c8463d; --accent-ink: #ffffff; --navy: #d9d4cf;
  --help: #6fd19f; --help-bg: #1b3328; --hinder: #f0a060; --hinder-bg: #3a2717; --adjust: #9db8de; --adjust-bg: #222e3e;
  --prof: #6fd3cc; --prof-bg: #163533; --uos: #ef8fc1; --uos-bg: #3b1d2d; --focus: #6aa8ff; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body) }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0 }
h1 { font-size: 2.6rem } h2 { font-size: 1.7rem } h3 { font-size: 1.25rem; letter-spacing: .01em }
p { margin: 0 } a { color: var(--navy) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px }
.mono { font-family: var(--font-mono); font-size: .86em; font-variant-numeric: tabular-nums }
.label { font: 600 .74rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.lede { color: var(--muted); max-width: 64ch }

.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--steel); color: var(--steel-ink); border-bottom: 4px solid var(--accent) }
.bar-in { max-width: 1320px; margin: 0 auto; padding-inline: 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap }
.wordmark { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); color: var(--steel-ink); text-decoration: none }
.wordmark b { font-size: 1.45rem; font-weight: 700; letter-spacing: .08em; background: var(--accent); color: var(--accent-ink); padding: 2px 8px 0; border-radius: 3px }
.wordmark span { font-size: 1.15rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none }
.nav a { color: color-mix(in srgb, var(--steel-ink) 78%, transparent); text-decoration: none; padding: 16px 10px 12px; border-bottom: 4px solid transparent; white-space: nowrap; font-weight: 500 }
.nav a[aria-current="page"] { color: var(--steel-ink); border-bottom-color: var(--accent) }
.draft { background: var(--surface-2); color: var(--muted); font-size: .88rem }
.draft .in { max-width: 1080px; margin: 0 auto; padding: 8px 16px }

main { max-width: 1080px; margin: 0 auto; padding-inline: 16px; padding-block: 32px 72px; display: grid; gap: 40px }
.prose { max-width: 70ch; display: grid; gap: 14px }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px }
.prose h2 { margin-top: 18px }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0 }
.panel > *, .prose > * { min-width: 0 }   /* wide tables scroll inside their box instead of widening the page */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; font-weight: 600; text-decoration: none; color: var(--ink) }
.btn:hover { background: var(--surface-2) }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 1.1rem; padding: 16px 26px }
.btn.primary:hover { filter: brightness(1.08) }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }

.hero { display: grid; gap: 18px; max-width: 760px; padding-block: 16px }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem) }
.hero .lede { font-size: 1.15rem }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px }
.fact { border-top: 4px solid var(--steel); padding-top: 10px; display: grid; gap: 4px }
.fact b { font: 600 2rem/1 var(--font-mono); font-variant-numeric: tabular-nums }
.fact span { color: var(--muted) }

/* the cycle on How it works: a real sequence, so it's numbered */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step }
.cycle li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line) }
.cycle li::before { content: counter(step); grid-row: span 2; font: 700 1.8rem/1 var(--font-display); color: var(--accent) }
/* How it works: an icon per step, the number as a small badge */
.cycle.icons li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative }
.cycle.icons li .step-ic { grid-row: span 2; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent) }
.cycle.icons li .step-ic svg { width: 1.6rem; height: 1.6rem }
.cycle.icons li::before { content: counter(step); position: absolute; top: 12px; left: 2.35rem; min-width: 1.35rem; height: 1.35rem; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 .8rem/1.35rem var(--font-display); text-align: center }
.cycle.icons li h2, .cycle.icons li p { grid-column: 2 }
.cycle li h2 { align-self: end; font-size: 1.25rem; letter-spacing: .01em }

.chip { font-family: var(--font-mono); font-size: .78rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap }
.chip.condition_hindering { background: var(--hinder-bg); color: var(--hinder) }
.chip.condition_helping { background: var(--help-bg); color: var(--help) }
.chip.adjustment { background: var(--adjust-bg); color: var(--adjust) }
.chip.proficiency { background: var(--prof-bg); color: var(--prof) }
.chip.undesired_state { background: var(--uos-bg); color: var(--uos) }
table { border-collapse: collapse; width: 100% }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font: 600 .74rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.tablewrap { overflow-x: auto }
input[type=search], input[type=text], input[type=email], input[type=number], select, textarea { font: inherit; color: inherit; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 12px }
.note { border-left: 4px solid var(--help); background: var(--help-bg); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0 }
.warn { border-left: 4px solid var(--hinder); background: var(--hinder-bg); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0 }

footer { background: var(--surface-2); color: var(--muted); font-size: .9rem }
footer .in { max-width: 1080px; margin: 0 auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px }

@media print { .bar, .draft, footer, .noprint { display: none !important } body { background: #fff; color: #000 } main { padding: 0 } .panel { border: 0; padding: 0 } }

/* resource library */
.library { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 }
.library li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.library li:last-child { border-bottom: 0 }
.library a { font-weight: 600 }
.library span { color: var(--muted) }

/* observer course */
.course .quote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); font-style: italic }
details.check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px }
details.check summary { cursor: pointer; font-weight: 700 }
details.check ol { margin: 12px 0 0; display: grid; gap: 10px }
details.check li span { display: block; color: var(--muted) }
details.check li span::before { content: "Answer: "; font-weight: 600 }
.cardsort { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px }
.card .btn { padding: 6px 10px; font-size: .88rem }
.card.ok { border-color: var(--help); background: var(--help-bg) }
.card.no { border-color: var(--hinder); background: var(--hinder-bg) }
.longquote { display: grid; gap: 10px; font-style: normal }
.badge { display: inline-block; font: 600 .68rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; vertical-align: middle }
.badge.orig { background: var(--adjust-bg); color: var(--adjust) }
.badge.s2 { background: var(--help-bg); color: var(--help) }

/* photos: one strong photo on the home page; people and vehicles at work on other pages.
   Free-licence photos (Pexels), no airline names, registrations or recognisable faces. */
.hero.photo { max-width: none; color: #fff; border-radius: var(--r); padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px); min-height: min(78vh, 620px); align-content: end;
  background: linear-gradient(90deg, rgba(14,12,12,.88) 0%, rgba(14,12,12,.62) 42%, rgba(14,12,12,.08) 78%), url(img/hero-dusk.jpg) 62% 40% / cover no-repeat, #1b1918 }
.hero.photo > * { max-width: 640px }
.hero.photo .label { color: #f1d9d6 }
.hero.photo .lede { color: #ece7e3 }
.hero.photo .btn:not(.primary) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45) }
.hero.photo .btn:not(.primary):hover { background: rgba(255,255,255,.2) }
@media (max-width: 700px) { .hero.photo { background: linear-gradient(180deg, rgba(27,25,24,0) 0, rgba(27,25,24,0) 58vw, #1b1918 68vw), url(img/hero-dusk.jpg) 50% 0 / 100% auto no-repeat, #1b1918; min-height: 0; padding-top: calc(62vw + 8px) } }   /* the photo as a band across the top, words underneath */
figure.photo { margin: 0; display: grid; gap: 6px }
figure.photo img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r); display: block }
figure.photo figcaption { color: var(--muted); font-size: .9rem }

/* diagrams drawn for the site: colours from the theme, so they read in light and dark */
figure.diagram { margin: 0; display: grid; gap: 8px; justify-items: center }
figure.diagram svg { width: 100%; max-width: 560px; height: auto; font-family: var(--font-body) }
figure.diagram figcaption { color: var(--muted); font-size: .92rem; max-width: 60ch; text-align: center }
.diagram .arc { fill: none; stroke: var(--muted); stroke-width: 2.5 }
.diagram .arc.back { stroke: var(--accent); stroke-dasharray: 6 5 }
.diagram .head { fill: var(--muted) } .diagram .head.back { fill: var(--accent) }
.diagram .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5 }
.diagram .node.last rect { stroke: var(--accent); stroke-width: 2 }
.diagram .node text { fill: var(--ink); font-size: 16.5px; font-weight: 600 }
.diagram .node text.num { fill: var(--accent); font-family: var(--font-display); font-size: 20px; text-anchor: middle }
.diagram .centre { fill: var(--ink); font-family: var(--font-display); font-size: 30px; font-weight: 700 }
.diagram text.small { fill: var(--muted); font-size: 16.5px }
.diagram text.centre.small { font-family: var(--font-body); font-size: 14px; font-weight: 400 }
.diagram .wai { fill: var(--adjust-bg); stroke: var(--adjust); stroke-width: 2; fill-opacity: .85 }
.diagram .wad { fill: var(--help-bg); stroke: var(--help); stroke-width: 2; fill-opacity: .7 }
.diagram text.title { fill: var(--ink); font-family: var(--font-display); font-size: 25px; font-weight: 700 }
.diagram text.strong { fill: var(--ink); font-weight: 700 }
.diagram text.note { font-size: 16px; font-weight: 700 }
.diagram text.hinder { fill: var(--hinder) } .diagram text.adjust { fill: var(--adjust) }

/* home page: what the observer's phone and the results look like (drawn in HTML, not screenshots, so they stay sharp in both themes) */
.showcase { display: grid; gap: 18px }
.showcase-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start }
@media (max-width: 760px) { .showcase-row { grid-template-columns: minmax(0, 1fr); justify-items: center } }
.device { margin: 0; display: grid; gap: 8px; width: 100%; min-width: 0 }
.device figcaption { color: var(--muted); font-size: .9rem; text-align: center }
.device > .dv-bar, .device > .dv-body { font-size: 13px; line-height: 1.35 }
.device.phone { max-width: 300px }
.device.phone > .dv-bar { border-radius: 26px 26px 0 0; padding-top: 18px }
.device.phone > .dv-body { border-radius: 0 0 26px 26px; padding-bottom: 22px }
.device.phone > .dv-bar, .device.phone > .dv-body { border-inline: 8px solid #2a2725 }
.device.phone > .dv-bar { border-top: 8px solid #2a2725 }
.device.phone > .dv-body { border-bottom: 8px solid #2a2725 }
.device.screen > .dv-bar { border-radius: 10px 10px 0 0 }
.device.screen > .dv-body { border-radius: 0 0 10px 10px; border: 1px solid var(--line); border-top: 0 }
.dv-bar { background: var(--steel); color: var(--steel-ink); padding: 8px 12px; border-bottom: 3px solid var(--accent); font-weight: 600; letter-spacing: .12em; display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.dv-bar b { background: var(--accent); color: var(--accent-ink); padding: 1px 5px; border-radius: 2px; letter-spacing: .06em }
.dv-tabs { margin-left: auto; display: flex; gap: 10px; letter-spacing: 0; font-weight: 500; opacity: .85 }
.dv-tabs .on { border-bottom: 2px solid var(--accent); opacity: 1 }
.dv-body { background: var(--bg); padding: 12px; display: grid; gap: 9px; color: var(--ink) }
.dv-steps, .dv-label, .dv-sub { color: var(--muted); font-size: 11.5px }
.dv-label, .dv-sub { text-transform: uppercase; letter-spacing: .06em; font-weight: 600 }
.dv-h { font-family: var(--font-display); font-weight: 700; font-size: 20px }
.dv-seg { display: flex; flex-wrap: wrap; gap: 4px }
.dv-seg span { border: 1px solid var(--line); background: var(--surface); padding: 3px 7px; border-radius: 5px; font-size: 11.5px }
.dv-seg .on { background: var(--steel); color: var(--steel-ink); border-color: var(--steel) }
.dv-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-height: 64px }
.caret { display: inline-block; width: 1px; height: 14px; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: dvblink 1.1s steps(1) infinite }
@keyframes dvblink { 50% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none } }
.dv-row { display: flex; gap: 8px; align-items: center }
.dv-time { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 5px 8px; font-family: var(--font-mono); font-size: 12px }
.dv-btn { flex: 1; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 8px; font-weight: 700 }
.dv-taps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px }
.dv-taps .t { text-align: center; border: 2px solid currentColor; border-radius: 6px; padding: 8px 2px; font-weight: 700; font-size: 11.5px; background: var(--surface) }
.t.m, .chip.m { color: var(--help) } .t.mm { color: var(--adjust) } .t.um { color: var(--muted) }
.dv-notes { display: grid; gap: 6px }
.dv-note { display: grid; grid-template-columns: 38px 1fr; gap: 6px; border-top: 1px dashed var(--line); padding-top: 6px }
.dv-note i { font-style: normal; font-family: var(--font-mono); color: var(--muted); font-size: 11.5px }
.dv-note small { display: block; font-size: 10px; font-weight: 700; color: var(--navy); letter-spacing: .05em }
.dv-note .chip { font-style: normal; font-size: 10.5px; font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; display: inline-block; margin-top: 3px }
.dv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); gap: 8px }
.dv-tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: grid }
.dv-tiles b { font-family: var(--font-display); font-size: 24px; line-height: 1.1 }
.dv-tiles span { color: var(--muted); font-size: 11.5px }
.dv-bars { display: grid; gap: 7px }
.dv-bars div { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 8px; align-items: center }
.dv-bars span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.dv-bars i { position: relative; height: 12px; background: var(--surface-2); border-radius: 6px; display: block }
.dv-bars i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--us); background: var(--hinder); border-radius: 6px }
.dv-bars i::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--ref); width: 3px; background: var(--ink); border-radius: 2px }
.dv-key { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center }
.dv-key .k { display: inline-block; width: 12px; height: 10px; border-radius: 3px } .dv-key .k.us { background: var(--hinder) } .dv-key .k.ref { width: 3px; background: var(--ink); margin-left: 8px }
.dv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px }
.dv-two div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px }
.dv-two b { display: block; font-family: var(--font-display); font-size: 15px }

/* dashboard (copied from the app for the public sample dashboard) */
.dash { display: grid; gap: 18px }
.dtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); gap: 12px }
.dtile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; align-content: start }
.dtile b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.05 }
.dtile small { color: var(--muted) } .dtile small.up { color: var(--help) } .dtile small.down { color: var(--hinder) }
.drow { display: grid; grid-template-columns: minmax(0, 1.2fr) 3.5rem minmax(0, 2fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line) }
.dname { display: grid } .dname small { color: var(--muted); font-size: .82rem }
.dval { font-family: var(--font-mono); font-weight: 600; text-align: right }
.dscale { position: relative; height: 14px; background: var(--surface-2); border-radius: 7px }
.dscale i { position: absolute; top: 0; bottom: 0 }
.dscale .band { background: color-mix(in srgb, var(--adjust) 30%, transparent); border-radius: 7px }
.dscale .med { width: 2px; background: var(--adjust); margin-left: -1px }
.dscale .ref { width: 3px; top: -4px; bottom: -4px; background: var(--ink); margin-left: -1px; border-radius: 2px }
.dscale .you { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin-left: -7px; box-shadow: 0 0 0 2px var(--surface) }
.dkey { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.dkey .k { display: inline-block; width: 12px; height: 12px; margin-left: 6px } .dkey .k.you { background: var(--accent); border-radius: 50% }
.dkey .k.band { background: color-mix(in srgb, var(--adjust) 30%, transparent); border-radius: 3px } .dkey .k.med { width: 2px; background: var(--adjust) } .dkey .k.ref { width: 3px; background: var(--ink) }
@media (max-width: 560px) { .drow { grid-template-columns: minmax(0, 1fr) 3rem; } .drow .dscale { grid-column: 1 / -1 } }

.sample-dash { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0 }
.sample-dash > .dv-bar { border-radius: 0 }
.sd-body { background: var(--bg); padding: clamp(12px, 3vw, 22px); display: grid; gap: 16px; min-width: 0 }

.refs { color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); padding-top: 10px; margin: 0 }

.nomic-is { display: grid; gap: 14px }
.nomic-is .grid3 > div { min-width: 0 }
.nomic-is h3 { margin: 0 0 4px }
.nomic-is .grid3 p { margin: 0 }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r); border: 2px solid var(--focus) }
.skip:focus { top: 8px }

/* the dashboard board: a dark, chart-led board in its own colours, the same in light and dark mode */
.board { --b-bg: #141a24; --b-card: #1d2533; --b-line: #2e394b; --b-ink: #eef1f6; --b-mute: #a3adbd;
  --c-help: #4fc28a; --c-hinder: #f0904a; --c-adjust: #6aa6f0; --c-uos: #e8638a; --c-prof: #4fd1c5; --c-accent: #e35d52;
  background: var(--b-bg); color: var(--b-ink); border-radius: 12px; padding: clamp(10px, 2.4vw, 20px); display: grid; gap: 14px; min-width: 0 }
.board .lede, .board small, .board .label { color: var(--b-mute) }
.board a { color: var(--b-ink) }
.board-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.board .seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.board .seg .label { margin-right: 4px }
.board .seg button, .board .chipbtn { background: transparent; color: var(--b-ink); border: 1px solid var(--b-line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 36px }
.board .seg button[aria-pressed="true"], .board .chipbtn[aria-pressed="true"] { background: var(--b-ink); color: var(--b-bg); border-color: var(--b-ink); font-weight: 600 }
.board .chips { display: flex; flex-wrap: wrap; gap: 6px }
.board-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px }
.bcard { background: var(--b-card); border: 1px solid var(--b-line); border-radius: 10px; padding: 16px; min-width: 0; display: grid; gap: 10px; align-content: start }
.bcard h2 { font-size: 1.1rem; letter-spacing: .02em; color: var(--b-ink); margin: 0 }
.b-ring, .b-hinder, .b-resp { grid-column: span 4 }
.b-kpis { grid-column: span 3; grid-row: span 2 } .b-trend { grid-column: span 9 }
.b-late { grid-column: span 3 } .b-cats { grid-column: span 6 } .b-links { grid-column: span 3 } .b-sit { grid-column: span 12 }
@media (max-width: 1100px) { .b-ring, .b-hinder, .b-resp { grid-column: span 6 } .b-kpis { grid-column: span 6; grid-row: auto } .b-trend { grid-column: span 12 } .b-late, .b-links { grid-column: span 6 } .b-cats { grid-column: span 12 } }
@media (max-width: 700px) { .board-grid > * { grid-column: 1 / -1 !important } }
.c-help { --c: var(--c-help) } .c-hinder { --c: var(--c-hinder) } .c-adjust { --c: var(--c-adjust) } .c-uos { --c: var(--c-uos) }
/* ring */
.ring { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center }
.ring svg { max-width: 170px; justify-self: center }
.ring svg { width: 100%; height: auto }
.ring circle { fill: none; stroke-width: 26 } .ring .track { stroke: var(--b-line) } .ring circle[class^="c-"] { stroke: var(--c) }
.ring .hole { fill: var(--b-card); stroke: none }
.ring-big { font: 700 34px var(--font-display); fill: var(--b-ink) } .ring-sub { font: 500 13px var(--font-body); fill: var(--b-mute) }
.ring-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem }
.ring-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center }
.ring-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--c) } .ring-key b { font-family: var(--font-mono) }
@media (max-width: 420px) { .ring { grid-template-columns: 1fr } .ring svg { max-width: 180px; margin: 0 auto } }
/* bars */
.hbars { display: grid; gap: 9px }
.hb { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 3rem; gap: 10px; align-items: center; font-size: .88rem }
.hb-l { overflow-wrap: anywhere } .hb-t { height: 14px; background: var(--b-bg); border-radius: 3px; overflow: hidden }
.hb-t i { display: block; height: 100%; background: var(--c); border-radius: 3px } .hb b { font-family: var(--font-mono); text-align: right }
@media (max-width: 420px) { .hb { grid-template-columns: minmax(0, 1fr) 3rem } .hb-t { grid-column: 1 / -1; grid-row: 2 } }
.howtop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem } .howtop li { display: flex; justify-content: space-between; gap: 10px } .howtop b { font-family: var(--font-mono) }
/* numbered key figures */
.kpis { display: grid; gap: 10px }
.kpi { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 10px; align-items: center; background: var(--b-bg); border-radius: 8px; padding: 10px 12px; border-left: 4px solid var(--c) }
.kpi-n { font: 700 .95rem var(--font-mono); color: var(--b-bg); background: var(--c); border-radius: 6px; text-align: center; padding: 6px 0 }
.kpi b { display: block; font: 700 1.9rem/1.05 var(--font-display) } .kpi div > span { display: block; font-size: .9rem } .kpi small { display: block; font-size: .8rem }
.k-ink { --c: var(--b-ink) } .k-help { --c: var(--c-help) } .k-adjust { --c: var(--c-adjust) } .k-prof { --c: var(--c-prof) } .k-accent { --c: var(--c-accent) }
.board .up { color: var(--c-help) } .board .down { color: var(--c-uos) } .board .same { color: var(--b-mute) }
/* progress chart */
.trend-head { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline }
.trend-wrap { overflow-x: auto } .trend { width: 100%; min-width: 420px; height: auto; display: block }
.trend .grid { stroke: var(--b-line); stroke-width: 1 } .trend .ax { fill: var(--b-mute); font: 12px var(--font-body) } .trend .ax.sel { fill: var(--b-ink); font-weight: 700 } .trend .ax.sub { font-size: 11px }
.trend .band { fill: color-mix(in srgb, var(--c-adjust) 22%, transparent) } .trend .med { stroke: var(--c-adjust); stroke-dasharray: 4 4 } .trend .ref { stroke: var(--b-ink); stroke-dasharray: 2 4; stroke-width: 1.5 }
.trend .area { fill: color-mix(in srgb, var(--c-accent) 16%, transparent) } .trend .ln { fill: none; stroke: var(--c-accent); stroke-width: 3; stroke-linejoin: round }
.trend .pt { fill: var(--b-card); stroke: var(--c-accent); stroke-width: 3 } .trend .pt.sel { fill: var(--c-accent) } .trend .val { fill: var(--b-ink); font: 600 13px var(--font-mono) }
.trend .act { stroke: var(--c-hinder); stroke-dasharray: 3 3 } .trend .actdot { fill: var(--c-hinder) } .trend .actnum { fill: var(--b-bg); font: 700 11px var(--font-mono) }
.actlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem } .actlist li { display: flex; gap: 8px; align-items: baseline }
.actnum-badge { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-hinder); color: var(--b-bg); font: 700 11px/20px var(--font-mono); text-align: center }
.board details summary { cursor: pointer; color: var(--b-mute) } .board table { color: var(--b-ink) } .board th, .board td { border-color: var(--b-line) }
.board .dkey { color: var(--b-mute) } .board .dkey .k.line { width: 14px; height: 3px; background: var(--c-accent) } .board .dkey .k.act { width: 10px; height: 10px; border-radius: 50%; background: var(--c-hinder) }
.board .dkey .k.band { background: color-mix(in srgb, var(--c-adjust) 30%, transparent) } .board .dkey .k.med { background: var(--c-adjust) } .board .dkey .k.ref { background: var(--b-ink) } .board .dkey .k.you { background: var(--c-accent) }
/* category table */
.cat-table { width: 100%; border-collapse: collapse; font-size: .88rem } .cat-table td, .cat-table th { padding: 6px 8px; border-bottom: 1px solid var(--b-line); text-align: left; background: transparent }
.cat-table tr.grp th { color: var(--b-mute); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 12px }
.spark { display: block } .spark polyline { fill: none; stroke: var(--b-mute); stroke-width: 1.8 } .spark circle { fill: var(--c-accent) }
.board .arr { font-size: .8em }
/* where you sit, on the board */
.board .drow { border-top-color: var(--b-line) } .board .dscale { background: var(--b-bg) }
.board .dscale .band { background: color-mix(in srgb, var(--c-adjust) 35%, transparent) } .board .dscale .med { background: var(--c-adjust) }
.board .dscale .ref { background: var(--b-ink) } .board .dscale .you { background: var(--c-accent); box-shadow: 0 0 0 2px var(--b-card) }
.board button[disabled] { cursor: default; opacity: 1 }
.board .chips { display: flex; flex-wrap: wrap; gap: 6px }
.board ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px }
.board .ring-key, .board .howtop, .board .actlist { padding-left: 0 }

/* the dashboard mock-up on the home page: a small version of the board */
.board.mini { border-radius: 0; padding: 12px; gap: 10px }
.board.mini .mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px }
.board.mini .kpi { padding: 8px 10px } .board.mini .kpi b { font-size: 1.5rem }
.board.mini .bcard { padding: 12px; gap: 8px } .board.mini .bcard h2 { font-size: .95rem }
.board.mini .trend { min-width: 0 }
.device.screen > .board { border-radius: 0 0 10px 10px; font-size: 13px; line-height: 1.35 }

/* breadcrumb with a back link on every page but Home */
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .92rem; color: var(--muted) }
.crumbs a { color: var(--ink) } .crumbs .back { font-weight: 600; text-decoration: none } .crumbs .back:hover { text-decoration: underline }
.crumbs .trail a { color: var(--muted) }
@media (max-width: 560px) { .crumbs .trail { display: none } }
/* phones: one Menu button instead of a bar that scrolls sideways */
.menu { display: none; position: relative; margin-left: auto }
.menu summary { list-style: none; cursor: pointer; color: var(--steel-ink); font-weight: 600; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--steel-ink) 40%, transparent); border-radius: 8px; min-height: 44px; display: flex; align-items: center; gap: 8px }
.menu summary::-webkit-details-marker { display: none }
.menu summary::before { content: "☰"; font-size: 1.1rem }
.menu[open] summary::before { content: "✕" }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); padding: 8px; display: grid; min-width: 240px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 90px); overflow-y: auto }
.menu nav a { color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 6px; font-weight: 500 }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--surface-2) }
.menu nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent) }
.menu nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0 }
@media (max-width: 1300px) { .nav { display: none } .menu { display: block } }
.bcard { grid-template-columns: minmax(0, 1fr) }
.bcard > * { min-width: 0 }

.hero-note { font-size: .88rem; opacity: .85 }


/* pricing: three levels */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; align-items: stretch }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0 }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgb(0 0 0 / .08) }
.plan h2 { margin: 0 }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.plan .price b { font: 700 2.4rem/1 var(--font-display) } .plan .price span { color: var(--muted) }
.plan ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px }
.plan .btn { justify-self: start; margin-top: auto }

/* about: the short history, as a numbered line */
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: h }
.history li { counter-increment: h; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.history li:last-child { border-bottom: 0 }
.history li::before { content: counter(h); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--steel); color: var(--steel-ink); display: grid; place-items: center; font: 700 1rem var(--font-display) }
.history li:last-child::before { background: var(--accent) }
.history b { font-size: 1.05rem } .history span { color: var(--muted) }

figure.diagram.nom-model { overflow-x: auto; justify-items: stretch }
figure.diagram.nom-model svg { max-width: 760px; min-width: 520px; justify-self: center; border-radius: 18px }

/* home: what the research found */
.finds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px }
.finds div { border-top: 4px solid var(--accent); padding-top: 8px; display: grid; gap: 4px; min-width: 0 }
.finds b { font: 700 2.6rem/1 var(--font-display); color: var(--accent) }
.found { display: grid; gap: 12px }

/* See the app: real phone screens */
.tour { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 24px 18px; align-items: start }
.shot { margin: 0; display: grid; gap: 10px; justify-items: center; min-width: 0 }
.shot img { width: 100%; max-width: 260px; height: auto; border: 8px solid #2a2725; border-radius: 26px; box-shadow: 0 10px 28px rgb(0 0 0 / .18); background: #2a2725 }
.shot figcaption { color: var(--muted); font-size: .95rem; max-width: 30ch; display: grid; gap: 4px }
.shot figcaption b { color: var(--ink) }

/* pricing FAQ and the "taste" on what's-inside pages */
.faq details { border-top: 1px solid var(--line); padding: 12px 0 }
.faq details:last-child { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; font-weight: 600 }
.faq details p { margin-top: 8px }
blockquote.taste { margin: 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--ink) }
/* at-a-glance: one printable page */
.glance { display: grid; gap: 18px; max-width: 900px }
.g-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--accent); padding-bottom: 12px }
.g-head h1 { margin: 4px 0 } .g-head > div:first-child { min-width: 0 }
.g-mark { display: grid; text-align: right; line-height: 1.1 } .g-mark b { font-size: 1.6rem; letter-spacing: .04em } .g-mark span { color: var(--muted) }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px } .g-row > div { min-width: 0 }
.glance h2 { font-size: 1.1rem; margin: 0 0 6px } .glance ul, .glance ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px }
.g-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.g-levels > div { display: grid; gap: 4px; align-content: start; border: 1px solid var(--line); border-radius: 8px; padding: 12px } .g-levels b { font-size: 1.3rem }
.g-small { font-size: .85rem; color: var(--muted); margin: 0 } .g-foot { border-top: 1px solid var(--line); padding-top: 10px } .g-print { margin-top: 16px }
@media (max-width: 640px) { .g-row, .g-levels { grid-template-columns: 1fr } .g-mark { display: none } }
@media print { .glance { font-size: 10.5pt; gap: 10px; max-width: none } .g-row { grid-template-columns: 1fr 1fr } .g-levels { grid-template-columns: repeat(3, 1fr) } .crumbs, nav, .menu { display: none !important } @page { margin: 12mm } }

/* links to a section land below the sticky header */
[id] { scroll-margin-top: 72px }

/* icons: a line icon in a soft circle, above or beside a short heading */
.ic { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); flex: none }
.ic svg { width: 1.4rem; height: 1.4rem }
.icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px }
.icards > div { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0 }
.icards > div .ic { background: var(--bg) }
.icards h3 { margin: 0; font-size: 1.1rem }
.icards p { margin: 0 }
.icards .big { font: 700 1.9rem/1 var(--font-display); color: var(--accent) }
.icards .src { font-size: .8rem; color: var(--muted) }
.icards .src a { color: inherit }

/* sample report: top categories as bars, in the NOM model's colours */
.bars { display: grid; gap: 10px }
.bars .rbar { display: grid; grid-template-columns: minmax(0, 15rem) 1fr 3rem; gap: 12px; align-items: center }
.bars .name { min-width: 0 } .bars .name small { color: var(--muted) }
.bars .track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden }
.bars .track span { display: block; height: 100%; border-radius: 7px }
.bars b { font-variant-numeric: tabular-nums; text-align: right }
.k-H .track span, .legend .k-H { background: #e0b520 } .k-A .track span, .legend .k-A { background: #4a8fd0 } .k-U .track span, .legend .k-U { background: #f0a030 }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .88rem; color: var(--muted) }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px }
@media (max-width: 560px) { .bars .rbar { grid-template-columns: 1fr 3rem } .bars .track { grid-column: 1 / -1; grid-row: 2 } }
.icards.five { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)) }

/* hero: the inline link reads on the photo */
.hero.photo p a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,.6) }
/* Home: how managing threats makes the ramp safer, in the NOM model's colours */
.flow { display: grid; gap: 10px; margin: 6px 0 4px; overflow-x: auto }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.fb { padding: 8px 12px; border-radius: 6px; border: 1.5px solid; font-weight: 600; color: #23211f; white-space: nowrap }
.fb-threat { background: #f7dd5a; border-color: #b39410 } .fb-ok { background: #b9e3c6; border-color: #2f9b5e }
.fb-bad { background: #f6b0a6; border-color: #c4493a } .fb-uos { background: #f6b443; border-color: #b9771c } .fb-boom { background: #e23b2e; border-color: #8f1d14; color: #fff }
.fa { color: var(--muted); font-weight: 700 }
