:root {
  --primary: #6657D9;
  --primary-ink: #ffffff;
  --accent: #B31A63;
  --background: #F8F6FF;
  --surface: #FFFFFF;
  --surface-2: #ECE8FF;
  --surface-3: #E3DCF8;
  --text: #24203D;
  --muted: #534D68;
  --border: #D8D0FA;
  --line: #C9BFF3;
  --ink: #1A1630;
  --good: #1F6B4A;
  --warn: #8A4B12;
  --focus: #3D2EB8;
  --shadow: 0 10px 28px rgba(36, 32, 61, 0.08);
  --radius: 4px;
  --radius-card: 4px;
  --header-h: 72px;
  --sticky-cta-h: 76px;
  --max: 1180px;
  --font: "Roboto", "Roboto Fallback", system-ui, sans-serif;
  --mono: "Roboto", ui-monospace, monospace;
}

@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Roboto"), local("Roboto-Regular");
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Roboto Bold"), local("Roboto-Bold");
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
}

img, video, svg { max-width: 100%; display: block; height: auto; }
img { width: 100%; object-fit: cover; }
table { width: 100%; border-collapse: collapse; }
button, input, textarea { font: inherit; }

a { color: var(--primary); text-underline-offset: 2px; }
.prose a { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 400;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(248, 246, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  min-height: var(--header-h);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-left { display: flex; align-items: center; gap: 18px; min-width: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  white-space: nowrap;
}

.main-nav a[aria-current="page"],
.main-nav a.is-active {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-ghost,
.header-cta-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.header-cta { background: var(--primary); color: #fff; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  z-index: 300;
  padding: 0;
}

.hamburger-bars,
.hamburger-bars::before,
.hamburger-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.hamburger-bars::before,
.hamburger-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger-bars::before { top: -6px; }
.hamburger-bars::after { top: 6px; }

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 400;
  padding: 140px 20px 32px;
  overflow: auto;
  transform: translateX(110%);
  transition: transform 0.2s ease, visibility 0s 0.2s;
  visibility: hidden;
  pointer-events: none;
}

body.nav-open .mobile-drawer,
html.is-drawer-open .mobile-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.2s ease, visibility 0s 0s;
}
body.nav-open,
html.is-drawer-open,
html.is-drawer-open body { overflow: hidden; }

.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 8px;
  border-bottom: 1px solid var(--surface-2);
}
.drawer-close {
  position: absolute;
  top: 80px;
  left: 16px;
  right: auto;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  pointer-events: auto;
  touch-action: manipulation;
}

.band { padding: 56px 0; }
.band-paper { background: var(--surface); }
.band-warm { background: var(--surface-2); }
.band-ink { background: var(--ink); color: #f4f1ff; }
.band-ink a { color: #d7ceff; }
.band-ink .btn-primary { color: #fff; }
.band-ink .btn-ghost { color: #f4f1ff; border-color: #d7ceff; }
.band-ink .eyebrow,
.band-ink .label,
.band-ink .feed-kicker { color: #F4B6D0; }
.band-warm a { color: #4E3FBA; }
.band-warm .btn-primary { color: #fff; }
.band-tight { padding: 18px 0; }

.section-head { margin-bottom: 22px; max-width: 68ch; }
.eyebrow, .label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 22px; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }

.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }

.compliance {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.feed-rail {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.feed-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feed-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-weight: 700;
}
.feed-list span { color: var(--muted); font-weight: 400; white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0 20px;
}

.hero-copy { min-width: 0; }
.hero-media { min-width: 0; }
.hero-media img,
.page-hero img,
.photo-plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.hero-cta, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.score-tile, .stat-tile, .data-card, .card, .loose-card, .hub-card, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 14px;
  min-width: 0;
}

.score-tile b, .stat-tile b, .data-card b {
  display: block;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.score-tile span, .stat-tile span, .data-card span {
  color: var(--muted);
  font-size: 13px;
}

.decision-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
}

.tablist {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tablist [role="tab"] {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
  font-weight: 700;
}

.tablist [role="tab"][aria-selected="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
}

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

.step-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.masonry > * { min-width: 0; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.photo-essay {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 18px;
}

.caption-rail {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 18px;
}

.data-table-wrap { overflow-x: auto; }
.data-table th, .data-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}
.data-table th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.digest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.digest-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.digest-list time { color: var(--muted); font-size: 13px; }

.limit-grid, .grid-2, .grid-3, .faq-grid, .card-grid {
  display: grid;
  gap: 14px;
}
.grid-2, .faq-grid, .proof-panel, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}
.inline-image-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
}

.faq details, .q-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 14px;
}
.faq summary { cursor: pointer; font-weight: 700; }

.colophon {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 22px;
}

.page-hero { padding: 28px 0 8px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 22px;
  align-items: end;
}

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; }
.prose h2, .prose h3 { margin-top: 28px; }

.figure, figure { margin: 24px 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.site-footer {
  background: #1A1630;
  color: #d8d3ea;
  padding: 48px 0 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer a { color: #efeaff; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer h2 { color: #fff; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-note { margin-top: 24px; font-size: 13px; color: #b7b1cc; max-width: 80ch; }

.mobile-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 22, 48, 0.96);
}

.mobile-sticky-cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.disclaimer { font-size: 14px; color: var(--muted); }

.data-card, .step-card, .step-num, .loose-card, .band, .faq-grid, .card {
  /* V9 FSL11 class aliases used by coverage checks */
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-cta-ghost { display: none; }
  .hamburger { display: inline-grid; place-items: center; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  html.is-drawer-open .site-header { z-index: 550; }
}

@media (max-width: 899px) {
  .hero,
  .feed-rail,
  .decision-rail,
  .photo-essay,
  .proof-panel,
  .split,
  .colophon,
  .page-hero-grid,
  .inline-image-row,
  .grid-2,
  .faq-grid,
  .digest-list li {
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper, .grid-3, .limit-grid, .score-strip, .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .masonry { grid-template-columns: minmax(0, 1fr); }
  .span-7, .span-5, .span-8, .span-4, .span-6, .span-12 { grid-column: auto; }
  .hero { min-height: 480px; max-height: 720px; padding: 24px 0; }
  .hero-media img { height: 220px; }
  h1 { font-size: 32px; line-height: 1.1; }
  .hero-lede { font-size: 16px; line-height: 1.5; }
  .mobile-sticky { display: block; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 28px; }
}

@media (max-width: 430px) {
  .stepper, .score-strip, .footer-grid, .grid-3, .limit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-cta { display: none; }
}

section[id] { scroll-margin-top: 84px; }
