@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
}

/* Colours, radii, spacing and fonts come from tokens.css, generated from
   src/shared/themes/strataDesignSystem.ts (run `npm run tokens`). Only layout and
   the two variables below are defined here; do not add colour literals. */
:root {
  --site-wrap: 1440px;
  --eyebrow: var(--text-tertiary);
}
.site-header, .hero, .band, .cta-band, .trust, .site-footer, .panel, .dark-card, [data-theme="dark"] {
  --eyebrow: var(--accent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin-bottom: 0.6rem;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.4rem; }
.wrap { width: min(var(--site-wrap), calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { max-width: 46rem; }
.narrow-left { max-width: 44rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cta);
  color: var(--on-cta);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 0.8rem;
}
.paper .eyebrow, .note-card .eyebrow { color: var(--text-tertiary); }
.tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.lede { font-size: 1.12rem; max-width: 38rem; color: var(--text-secondary); }
.lede-on-dark { color: var(--text-secondary); }
.muted { color: var(--text-tertiary); font-size: 0.92rem; }
.fine { color: var(--text-tertiary); font-size: 0.92rem; }
.role { color: var(--tag-accent-text); font-weight: 600; margin-top: -0.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-amber { background: var(--cta); color: var(--on-cta); }
.btn-amber:hover { background: var(--cta-hover); }
.btn-amber:active { background: var(--cta-active); }
.btn-ink {
  background: var(--surface-base);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-ink:hover { background: var(--surface-tertiary); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { height: 32px; padding: 0 12px; font-size: 12px; }
button.btn:disabled { opacity: 0.6; cursor: progress; }

.site-header {
  background: var(--surface-canvas);
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.2rem;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.wordmark span { color: var(--accent); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; font-size: 0.72rem; }
.wordmark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-primary); }
.site-nav a.btn { color: var(--on-cta); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35rem; }
.nav-signin { opacity: 0.85; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-default);
  width: 2.6rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  height: 2px;
  width: 1.1rem;
  background: var(--text-primary);
  position: relative;
}
.nav-toggle-bars { margin: 0 auto; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.hero { background: var(--surface-canvas); color: var(--text-primary); padding: 4.5rem 0 3.5rem; }
.hero-short { padding: 3.5rem 0 2.8rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.figure-scroll { margin: 0 auto 2.5rem; overflow-x: auto; }
.figure-scroll img { display: block; width: 100%; min-width: 720px; max-width: none; height: auto; border-radius: var(--radius-lg); }
.panel {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 0.8rem;
  margin: 0;
  overflow-x: auto;
}
.panel-head, .panel-foot, .panel-sub { font-size: 0.78rem; color: var(--text-tertiary); }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.panel-tag {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.panel table { width: 100%; min-width: 0; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.86rem; }
.panel th { text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.panel td, .panel th { padding: 0.45rem 0.35rem 0.45rem 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.panel td:nth-child(n+2), .panel th:nth-child(n+2) { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-feature-settings: "tnum", "lnum"; }
.panel-legend { font-size: 0.78rem; color: var(--text-tertiary); margin: 0 0 0.4rem; }

.trust { background: var(--surface-base); color: var(--text-secondary); border-top: 1px solid var(--border-subtle); }
.trust-row { padding: 2.2rem 0; text-align: center; }
.trust-mark { color: var(--accent); font-weight: 700; }
.trust .trust-mark { margin: 0; }

.paper { padding: 4rem 0; }
.paper-tight { padding-top: 0; }
.page-top { padding-top: 3rem; }
.paper h2 em { font-style: normal; color: var(--tag-accent-text); }
.columns-3, .columns-2 {
  display: grid;
  gap: 1.5rem;
}
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.columns-2 { grid-template-columns: 1fr 1fr; }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.problem-split { align-items: center; }
.problem-split h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 0.8rem; }
.problem-split p:not(.eyebrow) { color: var(--text-secondary); }
.problem-split img { display: block; width: 100%; border-radius: var(--radius-lg); }
.note-card, .person, .card-form {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  padding: 1.25rem 1.3rem;
}
.band { background: var(--surface-base); color: var(--text-primary); padding: 4rem 0; }
.band-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.band-head a { color: var(--accent); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.steps li { border-top: 2px solid var(--border-default); padding-top: 0.8rem; }
.steps li:first-child { border-top-color: var(--accent); }
.steps span, .dark-card .eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.steps p, .dark-card li { color: var(--text-secondary); }
.steps-long { display: grid; gap: 2.5rem; }
.step-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; border-bottom: 1px solid var(--border-subtle); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--tag-accent-text); }
.dark-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
}
.dark-card ul { margin: 0; padding-left: 1.1rem; }
.dark-card li { margin: 0.4rem 0; }

.cta-band { background: var(--surface-canvas); color: var(--text-primary); padding: 3.2rem 0; border-top: 1px solid var(--border-subtle); }
.cta-inner, .cta-inline {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.cta-inline { grid-template-columns: 1.4fr auto; }
.lead-form label { display: block; margin-bottom: 0.75rem; }
.lead-form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--text-tertiary);
}
.card-form label span { color: var(--text-tertiary); }
.lead-form input {
  width: 100%;
  height: 36px;
  background: var(--surface-base);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font: inherit;
}
.card-form input { background: var(--surface-base); color: var(--text-primary); border-color: var(--border-default); }
.lead-form input:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--focus-ring); }
.form-note, .form-status { font-size: 0.88rem; color: var(--text-tertiary); }
.form-status a { color: var(--accent); }
.card-form .form-status a { color: var(--text-link); }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--surface-tertiary);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.chips li {
  background: var(--surface-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
}

.site-footer { background: var(--surface-canvas); color: var(--text-tertiary); border-top: 1px solid var(--border-subtle); padding: 1.2rem 0 1.6rem; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.footer-note { margin-top: 0.8rem; max-width: 42rem; }

@media (max-width: 900px) {
  .hero-grid, .columns-3, .columns-2, .split, .steps, .step-block, .cta-inner, .cta-inline {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface-canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: static; }
  .site-header { position: sticky; }
  .hero { padding-top: 2.6rem; }
  .band-head { flex-direction: column; }
  /* Tap targets: at least 44px tall on touch layouts. */
  .site-nav a:not(.btn), .site-footer nav a, .band-head a, .note-card a, .site-footer p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .btn { height: 44px; }
  .nav-toggle { width: 2.75rem; height: 2.75rem; }
  .wordmark { min-height: 44px; }
  .site-nav { gap: 0.2rem; }
  .site-nav .btn { margin-top: 0.5rem; height: 44px; }
}

/* Hero table on phones: one card per option, so TIC, NPC and Delta stay visible. */
@media (max-width: 600px) {
  .panel { overflow-x: visible; }
  .panel table { min-width: 0; }
  .panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .panel tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem 0.6rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .panel td { border: 0; padding: 0; }
  .panel td:first-child { grid-column: 1 / -1; margin-bottom: 0.35rem; }
  .panel td:nth-child(n+2) { text-align: left; font-size: 0.95rem; }
  .panel td:nth-child(n+2)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
}
