/* Ommnii public site — BP-099.
 * Tokens copied by value from apps/web/src/app/globals.css (main @ 28bcffa),
 * Case File language per ADR-048 and Amendments 001–003. A token change in the
 * app is a change here too. No inline styles anywhere: the CSP is style-src 'self'.
 */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Case File core */
  --ink: #1B1D21;
  --ink-strong: #121417;
  --ink-2: #3E4248;
  --ink-3: #4A4E55;
  --paper: #EEEFEC;
  --grid: #E0E2DD;
  --surface: #F7F7F5;
  --white: #FFFFFF;
  --panel: #26282D;
  --panel-text-dim: #C9CCC6;
  --shadow: 6px 8px 0 rgba(20, 22, 26, .07);
  --shadow-lg: 8px 10px 0 rgba(20, 22, 26, .07);

  /* Next step (R48-3) */
  --next: #0F7A52;
  --next-tint: #E3F4EB;
  --next-text: #0B5E3F;

  /* Market context chip */
  --context: #DCEBF7;

  /* Section colours (A2-1) */
  --section-skills: #34C3B0;
  --section-experience: #FF9F5A;
  --section-credentials: #6FA8FF;
  --section-aspirations: #C9A8FF;
  --section-privacy: #B9C4D0;
  --section-pathways: #FFC94A;
  --section-market: #FF8FB1;

  /* Demand colours (A3-1) */
  --demand-low: #DDE2E8;
  --demand-medium: #A9D8FF;
  --demand-high: #FFC46B;
  --demand-very-high: #FF9A5C;

  /* Pop palette (A1-3) — the sample's Core Three and Type */
  --pop-recognition: #FFB020;
  --pop-autonomy: #F2A2FF;
  --pop-learning: #7FE3E8;
  --pop-type-ascent: #FF8A3D;
  --pop-conf-moderate: #7CC8FF;

  /* Passport marks (A3-2…A3-4) */
  --grade-gold: #FFD23F;
  --star-gold: #C48600;
  --coverage-ring: #0E9483;

  /* X-ray */
  --xray: #15284A;
  --xray-line: #9BDCFF;
  --xray-text: #E6F0FA;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  line-height: 1.5;
}

[id] { scroll-margin-top: 84px; }
a { color: var(--ink-strong); }
a:hover { color: var(--next); }
:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; font-weight: 700; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 599px) { .wrap { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-strong); }
/* BP-100 (ADR-048 Amendment 004): the Core Three wordmark, outlined — no font needed. */
.brand__mark { display: block; height: 28px; width: auto; }
.brand__mark--foot { height: 24px; }
.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; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); color: var(--ink-strong); }
.nav .btn { margin-left: 8px; }

.menu { display: none; position: relative; }
.menu > summary { list-style: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.menu__panel a { font-weight: 600; text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.menu__panel a:hover { background: var(--white); }
.menu__panel .btn { margin-top: 8px; justify-content: center; }

.signin-sm { display: none; font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 8px; }

@media (max-width: 899px) {
  .nav { display: none; }
  .menu { display: block; }
  .bar__tools { display: flex; align-items: center; gap: 6px; }
  .signin-sm { display: inline-block; }
}
@media (min-width: 900px) { .bar__tools { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink-strong); font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn--lg { padding: 16px 26px; font-size: 17px; }
.btn--ink { background: var(--ink-strong); color: var(--white); }
.btn--ink:hover { background: #2A2D33; color: var(--white); }
.btn--paper { background: var(--white); color: var(--ink-strong); }
.btn--paper:hover { background: var(--surface); color: var(--ink-strong); }
.btn--next { background: var(--next); color: var(--white); border-color: var(--ink); }
.btn--next:hover { background: var(--next-text); color: var(--white); }
.btn--light { background: var(--surface); color: var(--ink-strong); border-color: var(--surface); }
.btn--light:hover { background: var(--white); color: var(--ink-strong); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
@media (max-width: 599px) { .btn--block-sm { display: flex; width: 100%; } }

/* ── Type helpers ───────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.eyebrow { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--white); color: var(--ink); }
.label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-weight: 800; font-size: clamp(42px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.body { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.note { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

/* ── Colour fills (each pair ≥ 4.5:1 with ink — pinned) ─────────────── */
.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-skills { background: var(--section-skills); }
.bg-experience { background: var(--section-experience); }
.bg-credentials { background: var(--section-credentials); }
.bg-aspirations { background: var(--section-aspirations); }
.bg-privacy { background: var(--section-privacy); }
.bg-pathways { background: var(--section-pathways); }
.bg-market { background: var(--section-market); }
.bg-demand-low { background: var(--demand-low); }
.bg-demand-medium { background: var(--demand-medium); }
.bg-demand-high { background: var(--demand-high); }
.bg-demand-very-high { background: var(--demand-very-high); }
.bg-recognition { background: var(--pop-recognition); }
.bg-autonomy { background: var(--pop-autonomy); }
.bg-learning { background: var(--pop-learning); }
.bg-type { background: var(--pop-type-ascent); }
.bg-conf { background: var(--pop-conf-moderate); }
.bg-context { background: var(--context); }
.bg-next-tint { background: var(--next-tint); }
.tint-skills { background: #E6F7F5; }
.tint-market { background: #FFF1F5; }

/* ── Chips ──────────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; white-space: nowrap; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; color: var(--ink); }
.chip--soft { font-weight: 600; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.card--white { background: var(--white); }
.card--flat { box-shadow: var(--shadow); }
.card__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--ink); }
.card__head--dark { background: var(--panel); color: var(--white); border-bottom-color: var(--panel); font-weight: 400; }
.card__head--dark .dim { color: var(--panel-text-dim); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 599px) { .card__head { padding: 11px 14px; font-size: 11px; } .card__body { padding: 16px; } }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tight-top { padding-top: 24px; }
.band { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
@media (max-width: 599px) { .section { padding: 48px 0; } .section--tight-top { padding-top: 8px; } }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--lg { gap: 26px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.split--end { align-items: end; gap: 40px; }
.split--start { align-items: start; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--6 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 599px) { .split { gap: 32px; } .section-head { gap: 24px; } }

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

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 88px; }
@media (max-width: 599px) { .hero { padding: 32px 0 40px; } }
.hero__visual { display: flex; flex-direction: column; gap: 20px; }
.hero__offset { margin-left: clamp(0px, 4vw, 48px); }
.free { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.core3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.core3 span { padding: 18px 6px; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); }
.core3 span + span { border-left: 2px solid var(--ink); }
@media (max-width: 599px) { .core3 span { padding: 14px 4px; font-size: 14px; } }

.type-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.type-name--lg { font-size: 32px; }
@media (max-width: 599px) { .type-name--lg { font-size: 26px; } }

/* ── Question cards ─────────────────────────────────────────────────── */
.q { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.q__num { padding: 10px 16px; border-bottom: 2px solid var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); }
.q__body { padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 8px; }

/* ── Me ─────────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; margin-top: -1px; }
.type-badge { flex: none; width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.type-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quote { font-size: 17px; line-height: 1.55; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 16px; margin: 0; }

/* ── Passport ───────────────────────────────────────────────────────── */
.skill { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
.skill__name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.skill__meta { display: flex; align-items: center; gap: 8px; }
.grade { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.grader { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.grader li { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.grader li.is-picked { background: var(--grade-gold); }
@media (max-width: 599px) { .grader li { width: 44px; height: 38px; } }
.coverage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.coverage strong { color: var(--ink); }

/* ── Market ─────────────────────────────────────────────────────────── */
.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; margin: 0; list-style: none; }
.states li { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--ink); }
.states li span { font-size: 13px; font-weight: 600; }
.paybar { position: relative; height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, #F0F1EE, #C9CCC6); }
.paybar__you { position: absolute; left: 58%; top: -8px; width: 4px; height: 30px; background: var(--ink-strong); border-radius: 2px; }
.paybar__legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ring-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ring-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

/* ── What's next ────────────────────────────────────────────────────── */
.route { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.route strong { font-family: var(--font-display); font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.route .chip { align-self: flex-start; }
.next { background: var(--next-tint); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.next__label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--next-text); }
.next__line { font-family: var(--font-display); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; max-width: 760px; }
@media (max-width: 599px) { .next { padding: 18px; } .next__line { font-size: 21px; } .next .btn { width: 100%; } }

/* ── X-ray ──────────────────────────────────────────────────────────── */
.xray-band { background-color: var(--xray); background-image: linear-gradient(rgba(155,220,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(155,220,255,.09) 1px, transparent 1px); background-size: 40px 40px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); color: var(--white); }
.xray-band .lead { color: #D7E6F5; }
.xray-band a:focus-visible, .xray-band summary:focus-visible { outline-color: var(--xray-line); }
.eyebrow--xray { background: transparent; border-color: var(--xray-line); color: var(--xray-line); }
.claim { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.claim__line { font-family: var(--font-display); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.xray { margin-top: 16px; }
.xray > summary { list-style: none; display: inline-flex; }
.xray > summary::-webkit-details-marker { display: none; }
.xray .when-open { display: none; }
.xray[open] .when-open { display: inline; }
.xray[open] .when-closed { display: none; }
.xray__panel { margin-top: 16px; border: 2px solid var(--xray-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 0 24px rgba(155,220,255,.25); background: rgba(21,40,74,.85); color: var(--white); }
.xray__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--xray-line); }
.xray__path { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 13px; }
.xray__path li { border: 1.5px solid var(--xray-line); border-radius: 8px; padding: 6px 10px; }
.xray__path .arrow { border: 0; padding: 0 0 0 12px; color: var(--xray-line); }
.xray__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.xray__facts div { display: flex; flex-direction: column; gap: 4px; }
.xray__facts dd { margin: 0; font-size: 15px; color: var(--xray-text); }
.xray__limit { border-top: 1.5px dashed rgba(155,220,255,.5); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--xray-text); }
@media (max-width: 599px) { .xray__panel { padding: 16px; } .xray > summary { width: 100%; } }

/* ── Privacy + companies ────────────────────────────────────────────── */
.pcard { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.ccard { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ccard__head { background: var(--panel); color: var(--white); padding: 10px 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.ccard p { padding: 18px 16px 22px; }
.promise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 22px 24px; }
.promise p { font-size: 17px; line-height: 1.5; max-width: 760px; }
@media (max-width: 599px) { .promise { padding: 18px; } .promise .btn { width: 100%; } }

/* ── Closing band ───────────────────────────────────────────────────── */
.closing { background: var(--panel); color: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(26px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.closing .label { color: var(--panel-text-dim); }
.closing .h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; max-width: 880px; }
.closing p { font-size: 19px; line-height: 1.55; color: #D9DBDE; max-width: 640px; }
@media (max-width: 599px) { .closing .actions { width: 100%; } .closing .btn { width: 100%; } .closing p { font-size: 16px; } }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { border-top: 2px solid var(--ink); background: var(--paper); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px; }
.foot nav a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 12px; }
