:root {
  --navy: #001c64;
  --blue: #003087;
  --bright: #0070e0;
  --sky: #d9efff;
  --ink: #071634;
  --muted: #53627a;
  --line: #d9e5f3;
  --paper: #ffffff;
  --wash: #eef5ff;
  --green: #047857;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: #eef6ff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  padding: 0.12rem 0.35rem;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 78px;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.account,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.72rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 4px;
  padding: 5px;
}

.nav-links a {
  border-radius: 999px;
  color: #30425f;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px 14px;
}

.nav-links a:hover {
  background: white;
  color: var(--blue);
}

.account {
  color: #45546d;
  font-size: 0.84rem;
  gap: 14px;
  justify-content: flex-end;
}

.button {
  align-items: center;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: #00246d;
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.18);
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--blue);
}

.button-secondary:hover {
  background: #f6fbff;
}

.button-small {
  font-size: 0.82rem;
  min-height: 38px;
  padding: 0 16px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  margin: 34px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.hero-content,
.hero-proof,
.demo-panel,
.split-section,
.lab-section,
.article,
.page-hero,
.notes-section,
.why-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 48, 135, 0.08);
}

.hero-content {
  padding: clamp(42px, 6vw, 78px);
}

.eyebrow {
  color: var(--bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #bfe5ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--blue);
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 880px;
}

h2 {
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  font-size: 1.25rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.proof-label,
.equation-label,
.reading-number {
  color: var(--bright);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof ol {
  counter-reset: proof;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.hero-proof li {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--blue);
  display: flex;
  font-size: 1.08rem;
  font-weight: 900;
  gap: 12px;
  padding: 16px 0;
}

.hero-proof li::before {
  align-items: center;
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  content: counter(proof);
  counter-increment: proof;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
}

.demo-panel {
  margin: 24px auto 0;
  max-width: 1180px;
  padding: clamp(30px, 4vw, 48px);
}

.demo-copy {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.55fr);
  margin-bottom: 30px;
}

.demo-copy p:not(.eyebrow) {
  font-size: 1.05rem;
}

.reading-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reading-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
  padding: 18px;
}

.reading-card h3 {
  color: var(--blue);
  font-size: 1.08rem;
  margin-top: 6px;
}

.reading-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

audio {
  width: 100%;
}

.split-section,
.lab-section,
.blue-band,
.notes-section,
.why-section {
  margin: 24px auto 0;
  max-width: 1180px;
  padding: clamp(32px, 5vw, 58px);
}

.split-section {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
}

.equation-card {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.equation-card.wide {
  margin-top: 24px;
}

.equation {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 10px 0 12px;
}

.equation strong {
  background: var(--blue);
  border-radius: 8px;
  color: white;
  display: inline-block;
  padding: 0 0.25em;
}

.slot-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.slot-row span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 900;
  padding: 14px 6px;
  text-align: center;
}

.small-copy {
  font-size: 0.88rem;
  margin: 12px 0 0;
}

.blue-band {
  background: var(--blue);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
}

.blue-band.single {
  display: block;
}

.blue-band h2,
.blue-band p {
  color: white;
}

.blue-band p {
  color: #d9e9ff;
}

.why-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-grid article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
}

.why-grid h3 {
  color: white;
}

.why-grid p {
  color: #d8e8ff;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.light-grid article {
  background: #f8fbff;
  border-color: var(--line);
}

.light-grid h3 {
  color: var(--blue);
}

.light-grid p {
  color: var(--muted);
}

.lab-section > p {
  font-size: 1.12rem;
  max-width: 860px;
}

.link-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 28px;
}

.link-cards a {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 22px;
}

.link-cards strong {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.link-cards span {
  color: var(--muted);
  line-height: 1.45;
}

.page-hero,
.article {
  margin: 34px auto 0;
  max-width: 980px;
  padding: clamp(36px, 6vw, 70px);
}

.page-hero.compact h1,
.article-header h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.article {
  box-shadow: 0 24px 60px rgba(0, 48, 135, 0.08);
}

.article-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
  padding-bottom: 34px;
}

.article-header p,
.page-hero p {
  font-size: 1.18rem;
}

.article-section {
  margin: 0 0 42px;
}

.article-section p {
  font-size: 1.03rem;
}

table {
  border-collapse: collapse;
  margin-top: 22px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 10px;
  text-align: left;
}

th {
  color: #33435f;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td:first-child {
  color: var(--blue);
  font-weight: 900;
}

tr.highlight {
  background: #e9f5ff;
}

tr.highlight td {
  color: var(--blue);
  font-weight: 900;
}

.cascade {
  background: #f3f8ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 42px;
  padding: 30px;
}

.cascade ol {
  margin: 20px 0 0;
  padding-left: 22px;
}

.cascade li {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0;
}

.codec-strip,
.pipeline-section,
.layers-section,
.codec-demo-shell,
.a12-reading-section,
.evidence-graphics,
.definition-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 48, 135, 0.08);
  margin: 24px auto 0;
  max-width: 1180px;
  padding: clamp(32px, 5vw, 58px);
}

.definition-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
}

.definition-callout {
  color: var(--blue);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 20px;
}

.definition-card {
  align-self: start;
  background: linear-gradient(135deg, #f7fbff, #e8f4ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.definition-card strong {
  color: var(--blue);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.25;
  margin: 14px 0;
}

.definition-facts {
  margin-top: 30px;
}

.definition-facts.three {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.definition-facts.three article {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.definition-facts.three h3 {
  color: var(--blue);
}

.definition-facts.three p {
  margin-bottom: 0;
}

.codec-strip {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
}

.mini-layer-stack {
  display: grid;
  gap: 10px;
}

.mini-layer-stack div,
.layer-ribbon div {
  align-items: center;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 13px 14px;
}

.mini-layer-stack span,
.layer-ribbon span,
.layer-code {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mini-layer-stack strong,
.layer-ribbon strong {
  color: var(--blue);
  font-size: 1rem;
}

.mini-layer-stack small {
  color: var(--muted);
  grid-column: 2;
}

.codec-hero {
  max-width: 1180px;
}

.codec-definition {
  align-items: stretch;
}

.codec-equation {
  align-items: center;
  background: linear-gradient(135deg, #f7fbff, #e8f4ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 30px;
}

.codec-equation strong {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.codec-equation span:not(.equation-label) {
  color: var(--bright);
  font-size: 2.2rem;
  font-weight: 900;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 820px;
}

.pipeline-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pipeline-grid article {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 250px;
  padding: 22px;
}

.pipeline-grid span {
  color: var(--bright);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.pipeline-grid h3,
.layer-table h3 {
  color: var(--blue);
  margin-top: 16px;
}

.pipeline-grid p,
.layer-table p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

.layer-table {
  display: grid;
  gap: 12px;
}

.layer-table article {
  align-items: start;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(0, 1fr) minmax(240px, 0.5fr);
  padding: 20px;
}

.layer-table article > div:last-child {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.layer-table article > div:last-child strong,
.layer-table article > div:last-child span {
  display: block;
}

.layer-table article > div:last-child strong {
  color: var(--blue);
  margin-bottom: 6px;
}

.layer-table article > div:last-child span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.codec-demo-intro {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  margin-bottom: 26px;
}

.syllable-banner {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.syllable-banner span,
.syllable-chips span {
  background: #eef7ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 900;
  padding: 14px 10px;
  text-align: center;
}

.layer-ribbon {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.layer-ribbon div {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 118px;
  text-align: center;
}

.a12-reading-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a12-reading-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.reading-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-pill {
  background: #e8f4ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.a12-reading-card h3 {
  color: var(--blue);
  font-size: 1.28rem;
}

.flat-vs-layered {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.flat-vs-layered div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 96px;
  padding: 14px;
}

.flat-vs-layered span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.flat-vs-layered strong {
  color: var(--blue);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.syllable-chips {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.syllable-chips span {
  padding: 10px 6px;
}

.signal-note {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.compact-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graphic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.graphic-grid figure {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.graphic-grid img {
  background: white;
  display: block;
  height: 260px;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.graphic-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 14px;
}

.notes-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notes-grid article {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.notes-grid span {
  color: var(--bright);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.notes-grid h3 {
  color: var(--blue);
  margin-top: 8px;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 1180px;
  padding: 36px 24px 52px;
}

.site-footer p {
  font-size: 0.92rem;
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--blue);
  font-weight: 900;
}

/* ───────────────── Tone showcase (proof / coverage / fsi) ───────────────── */
.show-section { background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 48, 135, 0.08); margin: 24px auto 0; max-width: 1180px; padding: clamp(28px, 4vw, 48px); }
.value-engine { background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 48, 135, 0.08); margin: 24px auto 0; max-width: 1180px; padding: clamp(28px, 4vw, 48px); }
.value-engine .ve-head { text-align: center; max-width: 760px; margin: 0 auto; }
.value-engine .ve-head h2 { color: var(--blue); margin: 6px 0 0; }
.ve-engine { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 30px; }
.ve-consent { display: inline-flex; align-items: center; gap: 8px; background: var(--sky); color: var(--blue);
  border: 1px solid #bfe0ff; border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; font-weight: 800; }
.ve-wave { display: flex; align-items: center; gap: 8px; }
.ve-wave-svg { width: clamp(220px, 42vw, 340px); height: auto; display: block; }
.ve-brace { color: #9fb3d4; font-size: 3rem; font-weight: 400; line-height: 1; }
.ve-wlabels { display: flex; gap: 16px; align-items: center; font-size: 0.72rem; font-weight: 800;
  font-family: ui-monospace, Consolas, monospace; }
.ve-wlabels .b { color: var(--blue); } .ve-wlabels .e { color: var(--green); } .ve-wlabels .sw { color: var(--bright); }
.ve-cap { color: var(--muted); font-size: 0.8rem; margin: 0; }
.ve-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ve-grid article { background: #f8fbff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.ve-grid .ve-ic { display: block; height: 42px; margin-bottom: 12px; }
.ve-grid .ve-ic svg { height: 42px; width: auto; overflow: visible; }
.ve-grid h3 { color: var(--blue); margin: 0 0 6px; font-size: 1.05rem; }
.ve-grid p { color: var(--muted); font-size: 0.9rem; margin: 0; font-weight: 600; }
.ve-grid p a { color: var(--bright); font-weight: 800; white-space: nowrap; }
@media (max-width: 900px) { .ve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ve-grid { grid-template-columns: 1fr; } }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.lang-tab { background: #f4f9ff; border: 1px solid var(--line); border-radius: 999px; color: #30425f;
  font-weight: 800; font-size: 0.9rem; padding: 9px 16px; }
.lang-tab:hover { background: white; color: var(--blue); }
.lang-tab.on { background: var(--blue); color: white; border-color: var(--blue); }
.lang-tab .n { opacity: .7; font-weight: 600; margin-left: 6px; }

.stat-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 8px 0 6px; }
.stat { background: linear-gradient(135deg, #f7fbff, #e8f4ff); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.stat b { color: var(--blue); display: block; font-size: 2.4rem; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.85rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

.homograph-card { background: #f8fbff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; padding: 22px 24px; }
.homograph-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.homograph-word { color: var(--blue); font-size: 1.9rem; font-weight: 900; }
.homograph-tag { background: #e8f4ff; border: 1px solid var(--line); border-radius: 999px; color: var(--blue);
  font-size: 0.72rem; font-weight: 900; padding: 5px 11px; text-transform: uppercase; }
.fsi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.fsi-chips span { background: #eef7ff; border: 1px solid var(--line); border-radius: 7px; color: var(--blue);
  font-family: ui-monospace, Consolas, monospace; font-weight: 900; padding: 6px 11px; }
.fsi-chips .arrow { background: none; border: none; color: var(--muted); padding: 6px 2px; }
.homograph-sub { color: var(--muted); font-size: 0.9rem; margin: 2px 0 14px; }

.sense-row { background: white; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; padding: 16px 18px; }
.sense-label { color: var(--green); font-size: 0.74rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }

.sp-take { display: block; }
.sp-lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.sp-bantu { color: var(--blue); font-size: 1.5rem; font-weight: 900; }
.sp-eng { color: #9aa4b6; font-size: 1.05rem; font-style: italic; font-weight: 600; }
.sp-bar { position: relative; height: 12px; border-radius: 7px; overflow: hidden; background: #eef2f8; margin: 6px 0; }
.sp-seg { position: absolute; top: 0; bottom: 0; }
.sp-seg-b { background: rgba(0, 48, 135, .55); }
.sp-seg-e { background: rgba(4, 120, 87, .50); }
.sp-bound { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #0b1b3a; }
.sp-head { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bright); }
.sp-times { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sp-tag { font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; font-weight: 800; }
.sp-tag-b { color: var(--blue); }
.sp-tag-e { color: var(--green); }
.sp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.sp-btns button, .sp-json-toggle { background: white; border: 1px solid var(--line); border-radius: 8px; color: #33435f;
  cursor: pointer; font-size: 0.8rem; font-weight: 800; padding: 7px 12px; }
.sp-btns button:hover { border-color: var(--blue); color: var(--blue); }
.sp-json-toggle { font-family: ui-monospace, Consolas, monospace; margin-top: 4px; }
.sp-json { background: #0b1b3a; border-radius: 8px; color: #cfe2ff; font-size: 0.74rem; line-height: 1.5;
  margin: 8px 0 0; overflow-x: auto; padding: 14px; white-space: pre; }
.pron-note { color: var(--muted); font-size: 0.82rem; margin: 6px 0 0; }
.consent-line { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }

.use-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.use-grid article { background: #f8fbff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.use-grid .u-num { color: var(--bright); font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; font-weight: 900; }
.use-grid h3 { color: var(--blue); margin-top: 10px; }
.cov-table td:first-child { color: var(--blue); }
.minimal-pair { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }

/* ── ASR accent benchmark ── */
.asr-example { background: #f8fbff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; padding: 18px 20px; }
.asr-ex-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.asr-ex-term { color: var(--blue); font-size: 1.15rem; font-weight: 900; }
.asr-badge { border-radius: 999px; font-size: 0.68rem; font-weight: 900; letter-spacing: .04em; padding: 4px 10px; text-transform: uppercase; }
.asr-badge-means_misheard { background: #fdecec; color: #c0392b; }
.asr-badge-not_english { background: #f0e9fb; color: #7a4fc4; }
.asr-badge-content_review { background: #fdf3e3; color: #b9772a; }
.asr-badge-clean { background: #e6f4ec; color: #2e9e5b; }
.asr-cmp { display: grid; gap: 8px; margin: 8px 0; }
.asr-line { background: white; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; grid-template-columns: 92px minmax(0,1fr); padding: 10px 12px; }
.asr-line .lbl { font-size: 0.68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; align-self: center; }
.asr-line .val { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; line-height: 1.4; }
.asr-ref .lbl { color: var(--green); } .asr-ref .val { color: #0b1b3a; }
.asr-hyp .lbl { color: #c0392b; } .asr-hyp .val { color: #7a2018; }
.asr-hyp.ok .lbl { color: var(--green); } .asr-hyp.ok .val { color: #0b1b3a; }
.asr-metrics { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.78rem; gap: 14px; margin-top: 6px; }
.asr-metrics b { color: var(--blue); }
.asr-table td:first-child { color: var(--blue); }

@media (max-width: 980px) {
  .use-grid, .minimal-pair { grid-template-columns: 1fr; }
  .asr-line { grid-template-columns: 1fr; }
  .site-header {
    grid-template-columns: 1fr;
    padding: 18px 22px;
  }

  .account,
  .brand,
  .nav-links {
    justify-content: center;
  }

  .hero,
  .demo-copy,
  .split-section,
  .blue-band,
  .codec-strip,
  .codec-demo-intro,
  .definition-layout {
    grid-template-columns: 1fr;
  }

  .reading-grid,
  .why-grid,
  .link-cards,
  .notes-grid,
  .pipeline-grid,
  .a12-reading-grid,
  .compact-links,
  .graphic-grid,
  .definition-facts.three {
    grid-template-columns: 1fr;
  }

  .layer-table article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .layer-table article > div:last-child {
    grid-column: 1 / -1;
  }

  .layer-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-links {
    border-radius: 8px;
    flex-wrap: wrap;
  }

  .account {
    flex-direction: column;
  }

  .hero,
  .demo-panel,
  .split-section,
  .blue-band,
  .lab-section,
  .page-hero,
  .article,
  .notes-section,
  .why-section,
  .codec-strip,
  .pipeline-section,
  .layers-section,
  .codec-demo-shell,
  .a12-reading-section,
  .evidence-graphics,
  .definition-section {
    margin-top: 14px;
  }

  .reading-card {
    grid-template-columns: 1fr;
  }

  .slot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .flat-vs-layered,
  .layer-ribbon,
  .syllable-banner {
    grid-template-columns: 1fr;
  }

  .syllable-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
