/* ============================================================
   INBO website — shared design system  (v85, static Cloudflare Pages)
   Light-primary editorial system, deep-navy feature bands,
   INBO amber accent. Native font stack (fast, no external CDN,
   no tracking). Theme-stable: the marketing site commits to a
   light look with dark bands, by design.
   ============================================================ */

/* ---- reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---- tokens ------------------------------------------------ */
:root {
  --navy-900: #0a1524;
  --navy-800: #0b1929;
  --navy-700: #12233a;
  --navy-600: #17304d;
  --navy-line: #24344c;

  --ink:      #16233b;   /* primary text on light */
  --ink-soft: #45566f;   /* secondary text on light */
  --ink-faint:#6b7d97;   /* tertiary / captions */

  --paper:    #ffffff;
  --paper-2:  #f7f8fb;   /* warm-cool off-white */
  --paper-3:  #eef1f6;   /* section wash */
  --line:     #e4e8ef;
  --line-2:   #d5dbe6;

  --amber:      #e5940a;   /* key accent (AA-friendly on white for large text/icons) */
  --amber-ink:  #b46f00;   /* amber for small text on light (AA) */
  --amber-bri:  #f0a500;   /* brand amber, on dark */
  --amber-soft: #fff4dd;
  --amber-line: #f3d79b;

  --teal:   #0f9d8e;       /* limited data-status positive */
  --teal-soft: #e2f6f2;
  --red:    #d33d43;       /* clinical-alert examples only */
  --red-soft: #fce8e8;

  --on-dark:       #eaf0f8;
  --on-dark-soft:  #a8bad6;
  --on-dark-faint: #7f93b4;

  --shadow-sm: 0 1px 2px rgba(16,32,58,.06), 0 1px 3px rgba(16,32,58,.05);
  --shadow-md: 0 6px 24px -8px rgba(13,28,54,.18), 0 2px 8px -3px rgba(13,28,54,.10);
  --shadow-lg: 0 26px 60px -22px rgba(9,22,45,.42), 0 8px 22px -12px rgba(9,22,45,.24);

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---- base -------------------------------------------------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.01em; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 650; }

/* eyebrow / section kicker */
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--amber-ink);
}
.kicker.on-dark { color: var(--amber-bri); }

/* ---- layout ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.25rem); }
.wrap-narrow { max-width: 780px; }
section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.band-light  { background: var(--paper); }
.band-wash   { background: var(--paper-2); }
.band-wash-2 { background: var(--paper-3); }
.band-dark   { background: var(--navy-800); color: var(--on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: var(--on-dark-soft); }
.band-dark strong { color: #fff; }
.band-gradient {
  background: radial-gradient(1200px 620px at 72% -10%, #16304f 0%, rgba(22,48,79,0) 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--on-dark);
}
/* gradient bands share the dark-band treatment for all typography/components */
.band-gradient h1, .band-gradient h2, .band-gradient h3, .band-gradient h4 { color: #fff; }
.band-gradient p { color: var(--on-dark-soft); }
.band-gradient strong { color: #fff; }
.band-gradient .kicker { color: var(--amber-bri); }
.band-gradient .lead { color: var(--on-dark-soft); }
.band-gradient .caption { color: var(--on-dark-faint); }
.band-gradient .principle { color: #fff; }
.band-gradient .principle .amp { color: var(--amber-bri); }
.band-gradient .pill-now { background: rgba(15,157,142,.16); color: #4fd6c4; }
.band-gradient .pill-dev { background: rgba(240,165,0,.16); color: var(--amber-bri); }
.band-gradient .flow-step { background: var(--navy-700); border-color: var(--navy-line); }
.band-gradient .flow-step .s-role { color: var(--amber-bri); }
.band-gradient .flow-step .s-body { color: var(--on-dark-soft); }
.band-gradient .flow-step .s-body strong { color: #fff; }
.band-gradient .flow-arrow { color: var(--on-dark-faint); }
.band-gradient .checks li { color: var(--on-dark-soft); }
.band-gradient .checks li strong { color: #fff; }
.band-gradient .note { background: rgba(240,165,0,.09); border-color: rgba(240,165,0,.4); color: var(--on-dark-soft); }
.band-gradient .note strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .kicker { margin-bottom: .8rem; }
.section-head p { font-size: 1.08rem; margin-top: .85rem; }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

/* ---- buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; font-size: .98rem; line-height: 1;
  padding: .82rem 1.35rem; border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #241500; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #cf850a; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-600); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--paper-2); }
.btn-on-dark { background: #fff; color: var(--navy-800); }
.btn-on-dark:hover { background: #eef2f8; }
.btn-ghost-on-dark { border-color: var(--navy-line); color: #fff; }
.btn-ghost-on-dark:hover { border-color: #3a4f6f; background: rgba(255,255,255,.05); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- nav --------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.22rem; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a { font-size: .93rem; font-weight: 550; color: var(--ink-soft); padding: .5rem .7rem; border-radius: 8px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.cta { margin-left: .5rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { background: var(--paper-2); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .7rem clamp(1.15rem, 4vw, 2.25rem) 1.1rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .4rem; font-size: 1rem; }
  .nav-links a.cta { margin-left: 0; margin-top: .4rem; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

/* ---- hero -------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.16rem; max-width: 34ch; }
.hero .btn-row { margin-top: 1.7rem; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--on-dark-soft);
  border: 1px solid var(--navy-line); border-radius: 999px; padding: .4rem .85rem; margin-bottom: 1.3rem;
}
.eyebrow-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-bri); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .eyebrow-chip { margin-inline: auto; }
  .hero-visual { margin-top: .5rem; }
}

/* ---- cards & grids ----------------------------------------- */
.grid { display: grid; gap: 1.15rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card.hoverable:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-2); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); margin-bottom: 1rem; }
.card .ico svg { width: 22px; height: 22px; }
.card.on-dark { background: var(--navy-700); border-color: var(--navy-line); box-shadow: none; }
.card.on-dark .ico { background: rgba(240,165,0,.14); color: var(--amber-bri); }
.card.on-dark h3 { color: #fff; }
.card.on-dark p { color: var(--on-dark-soft); }

/* small labelled stat */
.stat { text-align: left; }
.stat .n { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stat.on-dark .n { color: #fff; }
.stat .l { font-size: .9rem; color: var(--ink-faint); margin-top: .2rem; }
.stat.on-dark .l { color: var(--on-dark-faint); }

/* ---- pills / status labels --------------------------------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.pill-now   { background: var(--teal-soft); color: #0a6b60; }
.pill-dev   { background: var(--amber-soft); color: var(--amber-ink); }
.pill-neutral { background: var(--paper-3); color: var(--ink-soft); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.band-dark .pill-now { background: rgba(15,157,142,.16); color: #4fd6c4; }
.band-dark .pill-dev { background: rgba(240,165,0,.16); color: var(--amber-bri); }

/* ---- feature list (checks) --------------------------------- */
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b46f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.8rem no-repeat;
}
.checks li strong { color: var(--ink); }
.band-dark .checks li { color: var(--on-dark-soft); }
.band-dark .checks li strong { color: #fff; }

/* ---- device frame (phone screenshot) ----------------------- */
.device {
  position: relative; margin-inline: auto; width: 100%; max-width: 300px;
  border-radius: 2.6rem; padding: .55rem; background: linear-gradient(160deg,#1c2c45,#0c1a2c);
  box-shadow: var(--shadow-lg);
}
.device::before { content:""; position:absolute; top:.85rem; left:50%; transform:translateX(-50%); width:34%; height:1.5rem; background:#0a1524; border-radius:0 0 .9rem .9rem; z-index:2; }
.device img { width: 100%; border-radius: 2.1rem; display:block; }
.device-sm { max-width: 240px; }

/* generic bordered screenshot / browser frame */
.shot { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper); }
.shot img { width: 100%; display: block; }
.shot.on-dark { border-color: var(--navy-line); }
.browser { border-radius: var(--r-md); overflow:hidden; box-shadow: var(--shadow-lg); border:1px solid rgba(255,255,255,.08); }
.browser-bar { display:flex; align-items:center; gap:.45rem; padding:.6rem .9rem; background:#0f2036; border-bottom:1px solid var(--navy-line); }
.browser-bar .d { width:.62rem; height:.62rem; border-radius:50%; background:#33475f; }
.browser-bar .u { margin-left:.6rem; font-size:.76rem; color:var(--on-dark-faint); font-family:var(--mono); }
.browser img { width:100%; display:block; }
.caption { font-size: .82rem; color: var(--ink-faint); margin-top: .75rem; text-align: center; }
.band-dark .caption { color: var(--on-dark-faint); }

/* ---- flow / diagram ---------------------------------------- */
.flow { display: grid; gap: .8rem; }
.flow-row { display: flex; align-items: stretch; gap: .8rem; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 0; min-width: 160px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.05rem 1.15rem; box-shadow: var(--shadow-sm);
}
.flow-step .s-role { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); }
.flow-step .s-body { font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }
.flow-step .s-body strong { color: var(--ink); }
.flow-arrow { align-self: center; color: var(--ink-faint); flex: 0 0 auto; display: grid; place-items: center; }
.flow-arrow svg { width: 22px; height: 22px; }
.band-dark .flow-step { background: var(--navy-700); border-color: var(--navy-line); }
.band-dark .flow-step .s-role { color: var(--amber-bri); }
.band-dark .flow-step .s-body { color: var(--on-dark-soft); }
.band-dark .flow-step .s-body strong { color: #fff; }
.band-dark .flow-arrow { color: var(--on-dark-faint); }
@media (max-width: 760px) {
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); margin: -.2rem auto; }
}

/* three-party care triangle */
.triad { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.triad .node { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.3rem; text-align: center; box-shadow: var(--shadow-sm); min-width: 130px; }
.triad .node .t { font-weight: 700; color: var(--ink); }
.triad .node .d { font-size: .82rem; color: var(--ink-faint); margin-top: .15rem; }
.triad .link { color: var(--amber); font-weight: 700; }

/* pull quote / principle line */
.principle { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.band-dark .principle { color: #fff; }
.principle .amp { color: var(--amber); }
.band-dark .principle .amp { color: var(--amber-bri); }

/* callout note */
.note { border-left: 3px solid var(--amber-line); background: var(--amber-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .9rem 1.1rem; font-size: .92rem; color: #6b4c05; }
.note strong { color: #4a3400; }
.band-dark .note { background: rgba(240,165,0,.09); border-color: rgba(240,165,0,.4); color: var(--on-dark-soft); }
.band-dark .note strong { color: #fff; }

/* ---- footer ------------------------------------------------ */
.site-footer { background: var(--navy-900); color: var(--on-dark-soft); padding-block: 3.2rem 2.2rem; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid .brand { color: #fff; margin-bottom: .8rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: .8rem; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { font-size: .93rem; }
.footer-note { font-size: .85rem; color: var(--on-dark-faint); }
.footer-bottom { border-top: 1px solid var(--navy-line); margin-top: 2.4rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .85rem; color: var(--on-dark-faint); }
.footer-bottom a { font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- focus / a11y ------------------------------------------ */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---- misc utilities ---------------------------------------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.band-dark .lead { color: var(--on-dark-soft); }
.divider { height: 1px; background: var(--line); border: 0; }
.maxw-60 { max-width: 60ch; } .maxw-52 { max-width: 52ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px){ .two-col { grid-template-columns: 1fr; } }
.eyebrow-legend { display:flex; flex-wrap:wrap; gap:.6rem 1.1rem; margin-top:1rem; }
.eyebrow-legend span { display:inline-flex; align-items:center; gap:.45rem; font-size:.85rem; color:var(--ink-faint); }
.band-dark .eyebrow-legend span { color: var(--on-dark-faint); }

/* v85.1 — narrative sections: one voice, breathing room (Ryan, Aug 11) */
.story p { font-size: 1.12rem; color: var(--ink-soft); }
.story p + p { margin-top: 1.05em; }
