/* Workforce Intelligence landing page (PRO-109).

   Follows docs/design-system/README.md: Newsreader display and Work Sans body, one accent per
   section (all light sections share the base-200 background) varied down the page, the 64px section rhythm, at most two teal spotlights (the hero and
   the closing call to action), exactly one primary (yellow) button. Tokens are copied from
   web/src/tokens.css like the portal stylesheet (portal/static/portal.css), which is the
   drift-tested mirror; kb.css is not used. Only the design-system breakpoints appear: 599, 839
   and 1199.

   CSP: no external resources, no inline style. The fonts are the portal's self-hosted files,
   served under /site-assets/fonts. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/site-assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/site-assets/fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-yellow: #f3b840;
  --ink: #3d3836;
  --paper: #ffffff;
  --black: #000000;
  --figure-coral: #e15d6f;
  --figure-mint: #63b698;
  --lavender: #7c607b;
  --site-blue: #39bddf;
  --link-blue: #006e99;
  --od-teal: #00344f;
  --cool-600: #5f6673;

  --primary: var(--brand-yellow);
  --primary-content: var(--black);
  --base-200: #fafafa;
  --base-300: #d5d9df;
  --success-text: #36735d;
  --hover-layer: rgba(61,56,54,0.08);
  --press-layer: rgba(61,56,54,0.12);
  --focus-ring: color-mix(in srgb, var(--od-teal) 80%, transparent);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-ui: "Work Sans", system-ui, sans-serif;

  --space-half: 4px;
  --space-1: 8px; --space-1h: 12px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --maxw: 1120px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3, p, li, a, figcaption { overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }
svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
@media (forced-colors: active) { :focus-visible { outline: 2px solid CanvasText; } }

.skip { position: absolute; left: -999px; top: 0; z-index: 200; padding: var(--space-1) var(--space-2); background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); }
.skip:focus { left: var(--space-1); top: var(--space-1); }

a { color: var(--link-blue); text-underline-offset: 3px; transition: text-decoration-color 150ms ease-out; }
a:hover { text-decoration-color: var(--brand-yellow); text-decoration-thickness: 2px; }

/* ---- Buttons (same names and sizes as the app's .wi-btn) ---- */
.wi-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--space-3); border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-image 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.wi-btn-primary { background: var(--primary); color: var(--primary-content); }
.wi-btn-primary:hover { color: var(--primary-content); }
.wi-btn-on-dark { background: transparent; color: var(--paper); border-color: var(--paper); --hover-layer: rgba(255,255,255,0.12); }
.wi-btn-on-dark:hover { color: var(--paper); }
.wi-btn:hover { background-image: linear-gradient(var(--hover-layer), var(--hover-layer)); }
.wi-btn:active { background-image: linear-gradient(var(--press-layer), var(--press-layer)); }
.wi-btn-on-dark:focus-visible { outline-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }

/* ---- Header ---- */
.topbar { position: relative; background: var(--paper); border-bottom: 1px solid var(--base-300); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); min-height: 64px; }
.wordmark { display: flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); text-decoration: none; }
.nav { margin-left: auto; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1); }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-1h); border-radius: var(--radius-sm); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-link:hover { background-image: linear-gradient(var(--hover-layer), var(--hover-layer)); }
.menu-button { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -8px; padding: 0; background: none; border: 0; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }
.menu-button:hover { background-image: linear-gradient(var(--hover-layer), var(--hover-layer)); }
.icon { width: 24px; height: 24px; }
.icon-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---- Type ---- */
h1, h2, h3, .wordmark, .foot-name { font-family: var(--font-display); }
h1 { font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
em { font-style: normal; }
.eyebrow { display: flex; align-items: center; gap: var(--space-1h); margin-bottom: var(--space-2); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 4px; border-radius: var(--radius-full); background: var(--acc, var(--brand-yellow)); flex: none; }
.num { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: 0; color: var(--acc); }
.lede { margin-top: var(--space-3); font-size: 20px; line-height: 1.5; max-width: 56ch; }
.intro { margin-top: var(--space-2); font-size: 18px; max-width: 64ch; }

/* ---- Bands: one accent each, 64px rhythm ---- */
.band { padding: var(--space-8) 0; background: var(--base-200); }
.band-coral { --acc: var(--figure-coral); }
.band-blue { --acc: var(--link-blue); }
.band-mint { --acc: var(--figure-mint); }
.band-lavender { --acc: var(--lavender); }
.band .num { color: var(--acc); }
.band-mint .num { color: var(--success-text); }
.band h2 { margin-bottom: var(--space-4); }
.band .intro + * { margin-top: var(--space-4); }
.band h2 + .intro { margin-top: calc(-1 * var(--space-2)); }

.cols { display: grid; gap: var(--space-4); align-items: start; }
.prose { display: grid; gap: var(--space-2); max-width: 62ch; font-size: 18px; }
.prose h3 { margin-top: 0; }
.prose p { max-width: 62ch; }

.tiles { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
.tile { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3); background: var(--paper); border: 1px solid var(--base-300); border-top: 4px solid var(--acc); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.tile strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.tile span { font-size: 15px; }

.ticks { display: grid; gap: var(--space-2); align-content: start; font-size: 18px; }
.ticks li { position: relative; padding-left: var(--space-4); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 4px; border-radius: var(--radius-full); background: var(--acc); }

.steps { display: grid; gap: var(--space-2); counter-reset: step; }
.steps li { position: relative; padding: var(--space-3) var(--space-3) var(--space-3) 72px; background: var(--paper); border: 1px solid var(--base-300); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); font-size: 17px; counter-increment: step; }
.steps strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.steps li::before { content: counter(step); position: absolute; left: var(--space-3); top: var(--space-2); font-family: var(--font-display); font-size: 40px; line-height: 1.2; color: var(--acc); }

.grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stages .card { padding-top: var(--space-2); }
.stage-num { font-family: var(--font-display); font-size: 40px; line-height: 1.2; color: var(--acc); }
.group-title { margin-top: var(--space-4); margin-bottom: var(--space-2); }
.card { display: grid; gap: var(--space-1h); align-content: start; padding: var(--space-3); background: var(--paper); border: 1px solid var(--base-300); border-top: 4px solid var(--acc); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.card p { font-size: 16px; }
.quote { font-size: 17px; }
.more { margin-top: var(--space-3); }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Figure ---- */
.figure { display: grid; gap: var(--space-1h); justify-items: center; }
.figure figcaption { font-size: 14px; color: var(--cool-600); text-align: center; max-width: 40ch; }
.diagram { width: 100%; max-width: 420px; }
.d-box { fill: var(--paper); stroke: var(--base-300); stroke-width: 2; }
.d-label { font-family: var(--font-ui); font-size: 18px; font-weight: 600; fill: var(--ink); }
.d-bar { fill: var(--figure-mint); }
.d-bar-2 { opacity: .75; }
.d-bar-3 { opacity: .5; }
.d-flow { fill: none; stroke: var(--success-text); stroke-width: 3; stroke-dasharray: 6 6; stroke-linecap: round; }
.d-head { fill: none; stroke: var(--success-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-flow-label { font-family: var(--font-ui); font-size: 18px; font-weight: 600; fill: var(--success-text); }
.d-tile { fill: var(--paper); stroke: var(--figure-mint); stroke-width: 3; }
.d-tile-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; fill: var(--ink); }

/* ---- Hero and closing: the two teal spotlights ---- */
.hero, .closing { background: var(--od-teal); color: var(--paper); }
.hero { padding: var(--space-8) 0; }
.hero .eyebrow::before { background: var(--brand-yellow); }
.hero h1 em { color: var(--brand-yellow); }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero-art { width: 100%; max-width: 280px; justify-self: center; }
.orbit { fill: none; stroke: var(--site-blue); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .7; }
.orbit-b { opacity: .5; }
.orbit-c { opacity: .35; }
.dot-person { fill: var(--paper); }
.dot-coworker { fill: var(--figure-mint); }
.dot-core { fill: var(--brand-yellow); }
.closing { padding: var(--space-8) 0; }
.closing h2 { margin-bottom: 0; }
.closing .lede { margin-top: var(--space-2); }
.closing-email { margin-top: var(--space-2); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.closing-email a { color: var(--paper); text-decoration: underline; text-decoration-color: currentColor; }
.closing-email a:hover { color: var(--paper); text-decoration-color: var(--brand-yellow); }
.closing-email a:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* ---- Footer ---- */
.foot { padding: var(--space-6) 0 var(--space-4); background: var(--base-200); border-top: 1px solid var(--base-300); font-size: 15px; }
.foot-grid { display: grid; gap: var(--space-3); padding-bottom: var(--space-3); }
.foot-name { font-size: 22px; font-weight: 600; }
.foot-entity { margin-top: var(--space-1); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-legal { padding-top: var(--space-2); border-top: 1px solid var(--base-300); color: var(--cool-600); }

/* ---- Wide screens ---- */
@media (min-width: 840px) {
  .cols { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  .foot-links a { min-height: 32px; }
  .more a { min-height: 32px; }
  .wi-btn { min-height: 40px; }
  .nav-link { min-height: 40px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 64px; }
}

/* ---- Under 840px: header links collapse into the menu button (when the script runs) ---- */
@media (max-width: 839px) {
  .topbar-inner { padding: 0 var(--space-2); }
  .js .menu-button { display: inline-flex; }
  .js .nav { display: none; margin: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--base-300); box-shadow: var(--shadow-xl); padding: var(--space-1) var(--space-2) var(--space-2); }
  .js .nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-half); }
  .js .nav-list .wi-btn { width: 100%; }
  .nav { flex: 1 1 100%; margin-left: 0; }
  .nav-list { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}
@media (max-width: 599px) {
  .wrap { padding: 0 var(--space-2); }
  .hero, .band, .closing { padding: var(--space-8) 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .lede { font-size: 18px; }
  .grid, .grid-2, .tiles { grid-template-columns: 1fr; }
  .btn-row .wi-btn { width: 100%; }
  .steps li { padding-left: 64px; }
}
