/* ==========================================================================
   global.css — tokens, reset, typography, header, footer, shared components
   Palette sampled from images/reference.png (pale-mint ground, deep forest,
   bright lime). Lime is reserved for the verified state; rust is the one hue
   added outside the reference because the content needs a second semantic
   state that green cannot express.
   ========================================================================== */

/* ---------- fonts (self-hosted latin subset, no CDN) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/plex-sans-var-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper:      #d9f2b8;
  --paper-lift: #e4f7c9;
  --paper-alt:  #ededeb;
  --night:      #0a1a08;
  --forest:     #1b4a16;
  --ink:        #0e2a0c;
  --ink-soft:   #3a5233;
  --signal:     #58c42a;
  --flag:       #a03a16;
  --rule:       rgba(14, 42, 12, .18);
  --rule-soft:  rgba(14, 42, 12, .09);
  --rule-dark:  rgba(217, 242, 184, .2);

  --display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --body: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

  --wrap: 1160px;
  --gut: 1.5rem;
  --radius: 3px;

  /* spacing scale — used everywhere, no ad-hoc values */
  --s1: .375rem;
  --s2: .75rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background-color: var(--paper);
  /* diagonal sheen from the reference. Not background-attachment: fixed —
     that repaints the whole viewport on every scroll frame. */
  background-image: linear-gradient(148deg, var(--paper-lift) 0%, var(--paper) 46%, #cfeda8 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .92;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-stretch: 78%; letter-spacing: -.02em; line-height: 1.05; }
h4 {
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: .1em;
  line-height: 1.4;
}
p { margin: 0 0 var(--s3); max-width: 68ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(14, 42, 12, .35);
}
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 1px;
}

/* eyebrow — uppercase italic, from the reference's INNOVATE / GROW / TRANSFORM */
.eyebrow {
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink-soft);
  margin: 0 0 var(--s2);
  display: block;
}
.eyebrow--light { color: rgba(217, 242, 184, .72); }

.lede { font-size: 1.125rem; line-height: 1.62; max-width: 62ch; }
.small { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: -.01em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 760px; }
.section { padding: var(--s6) 0; }
.section + .section { padding-top: 0; }
.section--band { background: var(--paper-alt); padding: var(--s6) 0; }
.section + .section--band { padding-top: var(--s6); }
.section--dark { background: var(--night); color: var(--paper); padding: var(--s6) 0; }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark a { color: var(--paper); text-decoration-color: rgba(217, 242, 184, .45); }
.section--dark a:hover { text-decoration-color: var(--signal); }
.section--dark .muted { color: rgba(217, 242, 184, .7); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s4) 0; }
.section-head { margin-bottom: var(--s4); }
.section-head > h2 { margin-bottom: var(--s3); }
.section-head--split { display: grid; gap: var(--s3); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: end; }
  .section-head--split > h2 { margin-bottom: 0; }
}

.skip-link {
  position: absolute;
  left: var(--gut);
  top: -100px;
  background: var(--signal);
  color: var(--ink);
  padding: var(--s2) var(--s3);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus { top: var(--s2); }

/* ---------- header ---------- */
.site-header { background: var(--night); color: var(--paper); border-bottom: 1px solid rgba(217, 242, 184, .14); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 68px; position: relative; }
.site-logo {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1;
  font-size: 1.125rem;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.site-logo:hover { text-decoration: none; }
.site-logo b { color: var(--signal); font-weight: 800; }
.site-logo span {
  font-family: var(--mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(217, 242, 184, .6);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid rgba(217, 242, 184, .35);
  color: var(--paper);
  font: 600 .75rem/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem .8rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle:hover { border-color: var(--signal); color: var(--signal); }
.nav-toggle svg { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: rgba(217, 242, 184, .86);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  display: block;
  padding: .55rem 0;
}
.site-nav a:hover { color: var(--signal); }
.site-nav a[aria-current="page"] { color: var(--signal); font-weight: 600; }

/* mobile: nav collapses. JS only toggles it; every link stays reachable via
   the footer, so the page remains fully navigable with JS off. */
@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--night);
    border-bottom: 1px solid rgba(217, 242, 184, .14);
    padding: var(--s2) 0 var(--s3);
    z-index: 100;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { padding: 0 var(--gut); }
  .site-nav li + li { border-top: 1px solid rgba(217, 242, 184, .1); }
  .site-nav a { padding: .8rem 0; font-size: .9375rem; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: var(--s3); align-items: center; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(217, 242, 184, .78); padding: var(--s5) 0 var(--s4); font-size: .875rem; }
.site-footer h2 { font-size: 1rem; color: var(--paper); margin-bottom: var(--s2); font-stretch: 78%; }
.site-footer a { color: rgba(217, 242, 184, .84); }
.site-footer a:hover { color: var(--signal); }
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .2rem 0; }
.footer-base {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(217, 242, 184, .16);
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(217, 242, 184, .62);
}
.footer-base p { max-width: 90ch; }

/* ---------- shared components ---------- */

/* evidence chip — the signature element.
   Registry status + listed expiry + the date we checked. */
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.chip--verified { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.chip--flagged { background: transparent; color: var(--flag); border-color: var(--flag); border-style: dashed; }
.chip--neutral { background: transparent; color: var(--ink-soft); border-color: var(--rule); }
.chip b { font-weight: 500; }
.chip .chip-date { opacity: .78; letter-spacing: 0; text-transform: none; }
.section--dark .chip--flagged { color: #f0916d; border-color: #f0916d; }
.section--dark .chip--neutral { color: rgba(217, 242, 184, .8); border-color: var(--rule-dark); }

/* callout */
.callout {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  background: rgba(255, 255, 255, .42);
  padding: var(--s3);
  border-radius: var(--radius);
}
.callout > svg { flex: 0 0 auto; color: var(--forest); margin-top: .18rem; }
.callout h3 { font-size: 1rem; font-stretch: 78%; margin-bottom: var(--s1); }
.callout p { font-size: .9375rem; }
.callout--flag { border-left-color: var(--flag); }
.callout--flag > svg { color: var(--flag); }
.section--dark .callout { background: rgba(217, 242, 184, .07); border-color: var(--rule-dark); border-left-color: var(--signal); }
.section--dark .callout > svg { color: var(--signal); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checklist li {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule-soft);
}
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.checklist svg { flex: 0 0 auto; color: var(--forest); margin-top: .34rem; }
.section--dark .checklist svg { color: var(--signal); }
.section--dark .checklist li { border-bottom-color: var(--rule-dark); }

/* numbered steps — a real sequence, so the numbering carries information */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s2);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: .04em;
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) {
  .steps > li { grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s3); align-items: start; }
}
.steps h3 { font-size: 1.1875rem; font-stretch: 78%; margin-bottom: var(--s2); }

/* data table — the wrapper handles overflow, the table stays semantic */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .44);
}
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .875rem; }
.table-scroll caption {
  text-align: left;
  padding: var(--s3) var(--s3) 0;
  font-size: .8125rem;
  color: var(--ink-soft);
  caption-side: top;
}
.table-scroll th, .table-scroll td {
  text-align: left;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.5;
}
.table-scroll thead th {
  font-family: var(--body);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  background: rgba(255, 255, 255, .3);
}
.table-scroll tbody tr:last-child th, .table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody th { font-weight: 600; font-size: .9375rem; }
.table-scroll td p { margin: 0; max-width: 42ch; }

/* two-column comparison table */
.compare table { min-width: 560px; }
.compare th:first-child { width: 24%; }

/* FAQ — works with JS off */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: var(--s3) 2.5rem var(--s3) 0;
  position: relative;
  list-style: none;
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; font-stretch: 80%; letter-spacing: -.01em; }
.faq summary::after {
  content: '';
  position: absolute;
  right: .5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(45deg);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq-body { padding: 0 0 var(--s3); }
.faq .faq-body p { font-size: .9375rem; }

/* prose blocks on supporting pages.
   The full h2 scale is tuned to a 1160px measure; in a 760px prose column it
   wraps mid-phrase, so it is stepped down here rather than everywhere. */
.prose h2 { margin: var(--s5) 0 var(--s3); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.prose h3 { margin: var(--s4) 0 var(--s2); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: 1.35rem; max-width: 68ch; }
.prose li { margin-bottom: var(--s1); }
.prose .table-scroll { margin: 0 0 var(--s3); }
.prose dl { margin: 0 0 var(--s3); max-width: 68ch; }
.prose dt { font-weight: 600; margin-top: var(--s2); }
.prose dd { margin: 0 0 var(--s2); }
.prose .callout, .prose .checklist, .prose .steps { margin-bottom: var(--s3); }

/* page hero for supporting pages */
.page-hero { background: var(--night); color: var(--paper); padding: var(--s5) 0; }
.page-hero h1 { color: var(--paper); font-size: clamp(2.25rem, 6.5vw, 4.25rem); }
.page-hero .lede { color: rgba(217, 242, 184, .86); margin-top: var(--s3); }
.page-hero .meta { margin-top: var(--s3); }

/* breadcrumbs */
.crumbs { font-size: .75rem; color: rgba(217, 242, 184, .66); margin-bottom: var(--s3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }
.crumbs a { color: rgba(217, 242, 184, .82); }

/* meta line (dates, scope) */
.meta {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .01em;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin: 0;
}
.page-hero .meta,
.section--dark .meta,
.hero .meta { color: rgba(217, 242, 184, .68); }

/* utility */
.stack > * + * { margin-top: var(--s3); }
.grid-3 { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.grid-2 { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); } }

/* hairline-separated feature row, from the reference's three-up block */
.hairline-row { display: grid; gap: var(--s3); }
.hairline-row > div { border-top: 1px solid var(--ink); padding-top: var(--s2); }
.hairline-row h3 { font-size: 1.0625rem; font-stretch: 80%; margin-bottom: var(--s2); }
.hairline-row p { font-size: .9375rem; margin: 0; }
@media (min-width: 760px) {
  .hairline-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .hairline-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.section--dark .hairline-row > div { border-top-color: var(--signal); }

/* screen-reader-only text (used for a table's empty corner header) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* spacing utility */
.mt-4 { margin-top: var(--s4); }

/* A leading callout is an alert, not a section: styled like .callout h3 but
   kept out of the document outline so the heading order never skips a level. */
.callout .callout-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 var(--s1);
}
