/* ===========================================================================
   Counsel of AI — public website
   Generated against design_tokens_v2_0.yaml. Where this file and the token
   file disagree, the token file is correct (A65).

   Canvas decision: navy chrome, light content surfaces.
   No gradients, drop shadows or glow effects (DS v2.0 §10).
   No text below 13px in any register (DS v2.0 §5.1).
   No colour-only state signalling — every state carries an icon and a label.
   =========================================================================== */

:root {
  /* surfaces */
  --chrome:      #001F3F;   /* nav, footer, telemetry. 16.56:1 with white     */
  --content:     #F7F5F1;   /* every long-form reading surface                */
  --card:        #FFFFFF;
  --code-bg:     #F0F3F6;

  /* brand — computed, not estimated */
  --navy:        #001F3F;
  --teal:        #066B77;   /* darkened from #0A7E8C: 4.41:1 on content       */
  --gold:        #8F6A22;   /* darkened from #C9973A: was 2.63:1 on white     */

  /* semantic — DARK variants, light surfaces only */
  --unanimous:   #1A5F3A;   /* 7.03:1  */
  --divergent:   #92400E;   /* 5.74:1  — see note below */
  --blocked:     #B91C1C;   /* 5.94:1  */
  --dissent:     #6D28D9;   /* 6.52:1  */
  --unverified:  #B45309;   /* 4.61:1  */
  --methodology: #312E81;   /* 10.49:1 */
  --grounding:   #1E293B;   /* 13.43:1 */
  --meta:        #556475;   /* 5.56:1  — darkened from #6C7A8D */

  /* semantic — LIGHT variants, navy chrome only */
  --unanimous-l: #4ADE80;
  --divergent-l: #FDBA74;
  --blocked-l:   #F87171;
  --dissent-l:   #C4B5FD;
  --unverified-l:#FBBF24;
  --methodology-l:#A5B4FC;
  --grounding-l: #CBD5E1;
  --meta-l:      #94A3B8;

  --line:        #D8DEE6;
  --line-chrome: #1C4368;

  /* type registers */
  --sans:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --legal:   "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body:    Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1120px;
  --gut: 24px;
}

/* --- NOTE ON --divergent -------------------------------------------------
   design_tokens_v2_0.yaml maps `divergent` and `needs_verification` to the
   same hex (#B45309). Two distinct states sharing one colour is a defect the
   non-colour channel merely survives. `divergent` is set here to #92400E
   (5.74:1 on the content canvas) so the two are separable. Raise back into
   the token file at the next revision — this file must not become the second
   source of truth.
   ------------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--content);
  color: var(--grounding);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------------------------------------------------------------- skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--chrome); color: #fff; padding: 12px 18px;
  font-family: var(--sans); font-size: 15px;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------------- chrome */
header.chrome {
  background: var(--chrome); color: #fff;
  border-bottom: 1px solid var(--line-chrome);
  position: sticky; top: 0; z-index: 50;
}
.bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand svg { width: 30px; height: 30px; color: var(--unanimous-l); }
.brand .mark { font-family: var(--display); font-size: 21px; letter-spacing: .2px; }
.brand .mark .ai { color: #5EEAD4; font-weight: 700; }  /* light-variant teal on chrome */
nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.main a {
  color: #C9D3DE; text-decoration: none;
  font-family: var(--sans); font-size: 15px;
}
nav.main a:hover, nav.main a:focus { color: #fff; text-decoration: underline; }
.btn {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border: 1px solid var(--teal); background: var(--teal); color: #fff;
  padding: 10px 18px; border-radius: 3px; cursor: pointer; text-decoration: none;
  display: inline-block;
}
.btn:hover, .btn:focus { background: #05555F; border-color: #05555F; color: #fff; }
.btn.ghost { background: transparent; border-color: #4C6A88; color: #fff; }
.btn.ghost:hover { border-color: #fff; background: transparent; }
.btn[disabled], .btn.is-disabled {
  background: #E4E9EF; border-color: var(--line); color: var(--meta); cursor: not-allowed;
}

/* --------------------------------------------------------------------- hero */
.hero { background: var(--chrome); color: #fff; padding: 76px 0 68px; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.08; margin: 0 0 18px;
}
.hero .lede { font-size: 20px; color: #C9D3DE; max-width: 62ch; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .status {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-chrome);
  font-family: var(--mono); font-size: 13px; color: var(--meta-l);
}

/* ------------------------------------------------------------------ sections */
section { padding: 62px 0; border-top: 1px solid var(--line); }
section.chrome-band { background: var(--chrome); color: #fff; border-top-color: var(--line-chrome); }
section.chrome-band p { color: #C9D3DE; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 10px;
  color: var(--navy);
}
section.chrome-band h2 { color: #fff; }
.sub { font-style: italic; color: #4A5A6A; margin: 0 0 32px; font-size: 18px; }
section.chrome-band .sub { color: #9FB2C4; }
h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--navy); }
section.chrome-band h3 { color: #fff; }
p { margin: 0 0 16px; }
.narrow { max-width: 68ch; }

/* ---------------------------------------------------------------------- grid */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); padding: 22px;
}
section.chrome-band .card {
  background: #062A4A; border-color: var(--line-chrome); color: #C9D3DE;
}
.card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ state pills */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: #fff; padding: 5px 11px; border-radius: 3px; white-space: nowrap;
}
.pill .ico { font-size: 13px; line-height: 1; }
.pill.unanimous  { background: var(--unanimous); }
.pill.divergent  { background: var(--divergent); }
.pill.blocked    { background: var(--blocked); }
.pill.dissent    { background: var(--dissent); }
.pill.unverified { background: var(--unverified); }
.pill.methodology{ background: var(--methodology); }
/* on chrome, light variants with navy text */
section.chrome-band .pill { color: var(--navy); }
section.chrome-band .pill.unanimous  { background: var(--unanimous-l); }
section.chrome-band .pill.divergent  { background: var(--divergent-l); }
section.chrome-band .pill.blocked    { background: var(--blocked-l); }
section.chrome-band .pill.dissent    { background: var(--dissent-l); }
section.chrome-band .pill.unverified { background: var(--unverified-l); }
section.chrome-band .pill.methodology{ background: var(--methodology-l); }

/* ----------------------------------------------------------------- seat rail */
.seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .seats { grid-template-columns: repeat(2, 1fr); } }
.seat {
  background: #062A4A; border: 1px solid var(--line-chrome); padding: 13px;
}
.seat.ten { border-color: var(--dissent-l); border-width: 2px; }
.seat .n { font-family: var(--mono); font-size: 13px; color: var(--meta-l); }
.seat.ten .n { color: var(--dissent-l); }
.seat .nm { font-family: var(--sans); font-size: 14px; font-weight: 700; color: #fff; margin: 4px 0 2px; }
.seat .pv { font-family: var(--mono); font-size: 13px; color: #8FA6BC; }

/* --------------------------------------------------------------------- table */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th {
  background: var(--navy); color: #fff; text-align: left; padding: 11px 13px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
}
td { padding: 11px 13px; border: 1px solid var(--line); background: var(--card); }
tr.hi td { background: #E7F0EA; }
tr.hi td:last-child { color: var(--unanimous); font-weight: 700; }
caption { caption-side: bottom; padding-top: 12px; font-size: 14px; color: var(--meta); text-align: left; }

/* --------------------------------------------------------------- DAP listing */
ol.dap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; }
@media (max-width: 860px) { ol.dap { grid-template-columns: 1fr; } }
ol.dap li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
ol.dap .num { font-family: var(--mono); font-size: 13px; color: var(--teal); min-width: 24px; }
ol.dap .nm { font-family: var(--sans); font-weight: 600; min-width: 175px; }
ol.dap .ds { color: #4A5A6A; }

/* --------------------------------------------------------------------- notes */
.note {
  background: var(--code-bg); border-left: 3px solid var(--meta);
  padding: 16px 18px; font-size: 16px;
}
.note.caution { background: #FBF2E4; border-left-color: var(--unverified); }
.note.stop    { background: #F6E7E6; border-left-color: var(--blocked); }
.note.ok      { background: #E7F0EA; border-left-color: var(--unanimous); }
.note strong { font-family: var(--sans); }

/* -------------------------------------------------------------------- pricing */
.tier { background: var(--card); border: 1px solid var(--line); padding: 24px; }
.tier.mid { border-color: var(--teal); border-width: 2px; }
.tier .nm { font-family: var(--display); font-size: 22px; color: var(--navy); }
.tier .pr { font-family: var(--display); font-size: 38px; color: var(--teal); margin: 6px 0 0; }
.tier .ex { font-family: var(--mono); font-size: 13px; color: var(--meta); margin-bottom: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 15px; }
.tier li { padding: 6px 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------- forms */
form.reg { max-width: 640px; }
.field { margin-bottom: 18px; }
label { display: block; font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
label .req { color: var(--blocked); }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px; font-family: var(--sans); font-size: 16px;
  border: 1px solid #9AA7B4; background: var(--card); color: var(--grounding); border-radius: 3px;
}
input:focus, select:focus, textarea:focus, a:focus, button:focus {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
.hint { font-size: 14px; color: var(--meta); margin-top: 5px; font-family: var(--sans); }
fieldset { border: 1px solid var(--line); padding: 18px; margin: 0 0 18px; background: var(--card); }
legend { font-family: var(--sans); font-size: 15px; font-weight: 700; padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-family: var(--sans); font-size: 15px; }
.check input { margin-top: 4px; }

/* ------------------------------------------------------------------ footer */
footer.chrome {
  background: var(--chrome); color: #9FB2C4; padding: 46px 0 34px;
  border-top: 1px solid var(--line-chrome);
}
footer.chrome a { color: #C9D3DE; }
footer .corp { font-family: var(--mono); font-size: 13px; line-height: 1.9; }
footer .disclaimer {
  font-family: var(--legal); font-size: 15px; color: #B6C4D2;
  border-top: 1px solid var(--line-chrome); margin-top: 26px; padding-top: 22px; max-width: 82ch;
}
.footnav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-size: 15px; margin-bottom: 24px; }

/* -------------------------------------------------------------------- routes */
[data-route] { display: none; }
[data-route].active { display: block; }

/* ---------------------------------------------------------------------------
   Progressive fallbacks.
   Flex `gap` and CSS grid are well supported in current browsers, but a board
   audience runs older corporate SOEs and locked-down managed browsers more
   often than the general population. These feature queries apply ONLY where
   the modern property is absent, so no double spacing occurs where it works.
   --------------------------------------------------------------------------- */
@supports not (gap: 1rem) {
  nav.main a, .footnav a { margin-left: 22px; }
  nav.main a:first-child, .footnav a:first-child { margin-left: 0; }
  .hero .cta .btn { margin-right: 14px; }
  .pill .ico { margin-right: 7px; }
}
@supports not (display: grid) {
  .grid > * { display: inline-block; vertical-align: top; width: 100%; margin-bottom: 18px; }
  .g2 > * { width: 48%; margin-right: 1.5%; }
  .g3 > * { width: 31.5%; margin-right: 1.5%; }
  .seats > * { display: inline-block; width: 18.5%; margin-right: 1%; vertical-align: top; }
  ol.dap { display: block; }
}

/* Print: the pricing and climate tables are the two things a director prints. */
@media print {
  header.chrome, nav.main, .hero .cta, .skip { display: none; }
  body { background: #fff; font-size: 12pt; }
  section { padding: 18pt 0; break-inside: avoid; }
  .card, .tier, table { break-inside: avoid; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  footer.chrome { background: #fff; color: #000; border-top: 1pt solid #000; }
  footer .disclaimer { color: #000; }
}
