:root {
  --primary: #6657D9;
  --primary-ink: #3F3399;
  --accent: #D94F8A;
  --accent-ink: #8E2458;
  --background: #F8F6FF;
  --bg: #F8F6FF;
  --bg-2: #ECE8FF;
  --surface: #FFFFFF;
  --surface-2: #ECE8FF;
  --ink: #24203D;
  --text: #24203D;
  --muted: #534E68;
  --border: #D8D0FA;
  --soft-border: #D8D0FA;
  --primary-border: #6657D9;
  --rule: #24203D;
  --paper: #FFFBFF;
  --band-alt: #EFEAFC;
  --focus: #3F3399;
  --ok: #1F6B4A;
  --warn: #8E2458;
  --shadow: 0 1px 0 rgba(36, 32, 61, 0.08);
  --shadow-card: 0 8px 24px rgba(36, 32, 61, 0.06);
  --radius: 2px;
  --header-h: 72px;
  --max: 1180px;
  --font-display: "Nunito Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Nunito Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --sticky-cta-h: 84px;
}

@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 99%;
  descent-override: 27%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-devanagari-400.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--font-body), "Nunito Sans Fallback", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100%;
}
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-underline-offset: 2px; }
.prose a { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 400;
  background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip-link:focus { top: 12px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
section[id] { scroll-margin-top: 88px; }
main { overflow-x: clip; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 320;
  background: rgba(248, 246, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; background: var(--primary);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; letter-spacing: 0.04em; font-size: 16px;
}
.brand-name { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.brand-tag { display: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 13px; padding: 10px 16px; white-space: nowrap; border: 1px solid var(--accent-ink);
}
.header-cta:hover { background: var(--accent-ink); }
.hamburger {
  display: none;
  position: fixed; top: 12px; right: 12px; z-index: 500;
  width: 44px; height: 44px; border: 1px solid var(--ink);
  background: #fff; padding: 0; margin-left: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--ink);
}
.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: var(--paper); padding: 88px 24px 32px;
  overflow: auto; overflow-x: clip;
}
.mobile-drawer.is-open,
.mobile-drawer.open { display: block; }
.drawer-close {
  position: fixed; top: 12px; left: 12px; z-index: 510;
  width: 44px; height: 44px; border: 1px solid var(--ink); background: #fff;
  font-size: 22px; pointer-events: auto; touch-action: manipulation;
}
html.is-drawer-open,
html.is-drawer-open body { overflow: hidden; }
html.is-drawer-open .site-header {
  position: static;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.is-drawer-open .mobile-sticky { visibility: hidden; pointer-events: none; }
.mobile-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.drawer-cta {
  display: block; margin-top: 24px; text-align: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 800; letter-spacing: 0.08em; padding: 14px;
  text-transform: uppercase;
}

/* Feed + chapter */
.headline-feed {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.feed-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 16px; align-items: center; padding: 10px 0; font-size: 14px;
  min-width: 0; max-width: 100%;
}
.feed-kicker {
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); white-space: nowrap;
}
.feed-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow: auto; min-width: 0; max-width: 100%; }
.feed-list a { color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600; }
.chapter-break {
  background: var(--ink); color: #fff; padding: 28px 0;
}
.chapter-break .num {
  font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
}
.chapter-break .kicker {
  display: block; margin-top: 6px; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 12px; font-weight: 700;
}
.chapter-break.light { background: var(--surface-2); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Cover hero */
.cover {
  position: relative; background: var(--ink); color: #fff;
  min-height: 520px;
}
.cover-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 560px;
}
.cover-copy {
  padding: 48px 0 48px 0; display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 520px;
}
.cover-frame {
  min-width: 0; border-left: 1px solid rgba(255,255,255,0.2);
}
.cover-frame img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
}
.eyebrow {
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px;
  font-weight: 800; color: var(--accent);
}
.cover h1, .page-hero h1, #hero-h {
  font-family: var(--font-display), "Nunito Sans Fallback", sans-serif;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08;
  letter-spacing: -0.03em; margin: 10px 0 14px; font-weight: 800;
}
.lede, .cover-lede { font-size: 18px; max-width: 46ch; color: #ECE8FF; }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; font-size: 13px;
  border: 1px solid currentColor; white-space: nowrap;
}
.btn-primary, .btn-play {
  background: var(--accent); color: #fff; border-color: var(--accent-ink);
}
.btn-ghost { background: transparent; color: inherit; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }

/* Bands */
.band { padding: 56px 0; }
.band-paper { background: var(--paper); }
.band-warm, .band-lilac { background: var(--band-alt); }
.band-ink { background: var(--ink); color: #fff; }
.band-rule { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: 24px; max-width: 62ch; }
.section-head h2, .band h2, .chapter-body h2 {
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 8px 0 10px;
}

/* Proof strip */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule); background: #fff;
  min-width: 0;
}
.proof-item { padding: 18px 16px; border-right: 1px solid var(--border); min-width: 0; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.proof-item span { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Split */
.split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px; align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split > * { min-width: 0; }
.frame {
  border: 1px solid var(--rule); background: #fff;
}
.frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.frame figcaption, .caption {
  padding: 10px 12px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Stepper */
.stepper {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border: 1px solid var(--rule); background: #fff;
}
.step, .step-card {
  padding: 20px; border-right: 1px solid var(--border); min-width: 0;
}
.step:last-child, .step-card:last-child { border-right: 0; }
.step-num {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3, .step-card h3 { margin: 0 0 8px; font-size: 18px; }

/* Matrix */
.matrix {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px;
}
.matrix-lead { border: 1px solid var(--rule); background: #fff; padding: 0; min-width: 0; }
.matrix-lead img { aspect-ratio: 16 / 9; object-fit: cover; }
.matrix-lead .pad { padding: 20px; }
.matrix-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.matrix-link {
  display: block; padding: 14px 16px; background: #fff;
  border: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.matrix-link:hover, .matrix-link:focus { background: var(--surface-2); }
.matrix-link strong { display: block; }

/* Ledger / tables */
.data-table-wrap, .table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); background: #fff; }
.data-table, table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.data-card, .loose-card, .card, .hub-card, .feature-card, .comparison-card, .pricing-card, .testimonial-card, .cta-card {
  border: 1px solid var(--rule); background: #fff; padding: 20px; border-radius: var(--radius);
}
.card-grid, .hub-grid, .faq-grid, .grid-2, .grid-3 {
  display: grid; gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Photo essay */
.essay {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
}
.essay .stack { display: grid; gap: 12px; min-width: 0; }

/* Methodology */
.chapter {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px; align-items: start;
}
.chapter-body { min-width: 0; }
.chapter-rail {
  border: 1px solid var(--rule); background: #fff; padding: 18px; min-width: 0;
}
.definition-list dt { font-weight: 800; margin-top: 12px; }
.definition-list dd { margin: 4px 0 0; color: var(--muted); }

/* Evidence tiles */
.evidence-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.evidence {
  border: 1px solid var(--rule); background: #fff; padding: 18px; min-width: 0;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.evidence:hover, .evidence:focus-within {
  border-color: var(--primary); box-shadow: inset 4px 0 0 var(--accent);
}
.evidence .more { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Digest */
.digest { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.digest li { border-bottom: 1px solid var(--border); }
.digest a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px; padding: 16px 0; text-decoration: none; color: inherit;
}
.digest time { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }

/* Checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.check-mark { width: 22px; height: 22px; border: 1px solid var(--primary); display: grid; place-items: center; font-size: 12px; }

/* FAQ */
.community, .faq { border-top: 1px solid var(--rule); }
.q-item, details.faq-item {
  border-bottom: 1px solid var(--border); background: #fff;
}
.q-item summary, details.faq-item summary {
  cursor: pointer; padding: 16px 8px; font-weight: 800; list-style: none;
}
.q-item summary::-webkit-details-marker { display: none; }
.q-tag {
  display: inline-block; margin-right: 8px; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-ink);
}
.q-body, details.faq-item p { padding: 0 8px 16px; }

/* Page hero */
.page-hero { padding: 36px 0 0; }
.page-hero-img { border: 1px solid var(--rule); margin: 20px 0 0; }
.page-hero-img img { aspect-ratio: 16 / 7; object-fit: cover; max-height: 420px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); }

.inline-image-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px; align-items: center; margin: 28px 0;
}
.inline-image-row img {
  width: 100%; height: auto; aspect-ratio: 16/10;
  object-fit: cover; border: 1px solid var(--rule);
}
.article-body p { max-width: 70ch; }
.article-body h2 { margin-top: 1.6em; }
.prose p { max-width: 70ch; }

/* Footer */
.site-footer {
  background: var(--ink); color: #ECE8FF; padding: 48px 0 28px;
  margin-bottom: 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.site-footer a { color: #ECE8FF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-note { margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; font-size: 13px; color: #C9C3E0; }
.disclaimer { font-size: 14px; color: var(--muted); }

/* Sticky CTA */
.mobile-sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); border-top: 1px solid #fff;
}
.mobile-sticky .btn-play {
  display: flex; width: 100%; padding: 14px 16px;
}

/* Utility aliases required by verify */
.band-elev-1, .band-elev-2 { }
.data-card, .step-card, .step-num, .loose-card, .band, .faq-grid { }
.stat-tile, .mini-card, .rule-row { }
.cta-banner { border: 1px solid var(--rule); padding: 28px; background: #fff; }
.news-item { }

@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .cover-grid, .split, .split.reverse, .matrix, .chapter, .essay, .inline-image-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-strip, .stepper, .evidence-grid, .hub-grid, .grid-3, .grid-2, .faq-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .cover { min-height: 480px; max-height: 720px; overflow: hidden; }
  .cover-grid { min-height: 0; }
  .cover-frame img { min-height: 220px; max-height: 280px; }
  .cover-copy { padding: 28px 0 32px; }
  #hero-h, .cover h1 { font-size: 32px; line-height: 1.1; }
  .cover-lede { font-size: 16px; line-height: 1.5; }
}

@media (max-width: 639px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .proof-strip, .stepper, .evidence-grid, .hub-grid, .grid-3, .grid-2, .faq-grid, .footer-grid, .digest a {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-row { grid-template-columns: minmax(0, 1fr); }
  .mobile-sticky { display: block; }
  body { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .evidence { transition: none; }
}


/* pagespeed-mobile-001 */
.eyebrow { color: var(--accent-ink); }
.cover .eyebrow,
.band-ink .eyebrow { color: #FFB3D0; }
.btn-primary, .btn-play, .header-cta, .drawer-cta, .mobile-sticky .btn-play {
  background: #C73870;
  color: #fff;
  border-color: var(--accent-ink);
}
.header-cta:hover, .btn-play:hover, .btn-primary:hover, .drawer-cta:hover {
  background: var(--accent-ink);
  color: #fff;
}
p a:not(.btn):not(.header-cta):not(.drawer-cta),
.disclaimer a,
.more a,
.prose a,
.site-footer .footer-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
