/* Dream Come app — Factory LIGHT_007 Slate Utility + LAYOUT_118 Blue Trust */
:root {
  --primary: #2457A7;
  --primary-ink: #163a73;
  --accent: #A044C5;
  --accent-soft: rgba(160, 68, 197, 0.12);
  --background: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #E9EEF7;
  --text: #1B2638;
  --muted: #5A6B80;
  --border: #CDD8E8;
  --success: #0F7A4B;
  --warning: #9A5B00;
  --danger: #A12622;
  --focus: #2457A7;
  --shadow: 0 10px 30px rgba(27, 38, 56, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --sticky-cta-h: 64px;
  --max: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hi: "Noto Sans Devanagari", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-ink); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
}
.prose a { text-decoration: underline; }
.hi { font-family: var(--font-hi); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(27, 38, 56, 0.06);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), #3d74c9 55%, var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.desktop-nav > a,
.mega-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.desktop-nav > a:hover,
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] {
  background: var(--surface-2);
  color: var(--primary-ink);
}
.mega { position: relative; }
.mega-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: min(720px, 80vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  z-index: 260;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.mega-grid a {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  min-width: 0;
}
.mega-grid a:hover { background: var(--surface-2); }
.mega-grid strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mega-grid span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary,
.header-cta {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(36, 87, 167, 0.28);
}
.btn-primary:hover,
.header-cta:hover {
  background: var(--primary-ink);
  color: #fff !important;
}
.btn-secondary,
.header-cta-ghost {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-secondary:hover,
.header-cta-ghost:hover {
  background: var(--surface-2);
}
.btn-accent {
  background: var(--accent);
  color: #fff !important;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 300;
}
.menu-toggle-lines {
  display: grid;
  gap: 5px;
  width: 18px;
}
.menu-toggle-lines i {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.header-cta-desktop { display: none; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 38, 56, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 270;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 280;
  overflow: auto;
  padding: 5.5rem 1.1rem 2rem;
}
.mobile-drawer.is-open { transform: translateX(0); }
body.nav-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.drawer-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.45rem;
}
.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.drawer-nav a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
  background: var(--background);
}
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-cta {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

/* Chapter break signature */
.chapter-break {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
  margin: 0 0 1rem;
  border-top: 0;
}
.chapter-break .chapter-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.chapter-break .chapter-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 800;
}
.chapter-num {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--border);
}
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border) 40%, transparent);
  margin: 0 0 1.5rem;
}

/* Hero cinematic cover */
.hero-cover {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f1724;
  color: #fff;
}
.hero-cover-media {
  position: absolute;
  inset: 0;
}
.hero-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 36, 0.92) 0%, rgba(15, 23, 36, 0.72) 42%, rgba(15, 23, 36, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 23, 36, 0.75), transparent 48%);
}
.hero-cover-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3rem;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d7e6ff;
  margin-bottom: 0.85rem;
}
.hero-cover h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 16ch;
}
.hero-lede {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: #e7eefc;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.35rem;
  color: #c9d7f0;
  font-size: 0.9rem;
  font-weight: 600;
}
.compliance-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.compliance-strip strong { color: var(--text); }

/* Story rail */
.story-rail-wrap {
  padding: 2.5rem 0 1rem;
}
.rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.rail-controls { display: flex; gap: 0.45rem; }
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}
.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  outline: none;
}
.story-rail:focus-visible { outline: 3px solid var(--focus); }
.story-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: 160px auto;
}
.story-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.story-card-body { padding: 1rem 1rem 1.15rem; }
.story-card .ch {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.story-card h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Dense takeaways */
.takeaways {
  padding: 1rem 0 2.5rem;
}
.takeaway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.takeaway-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.takeaway-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.takeaway-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.takeaway-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Alternating analysis */
.analysis-band {
  padding: 2rem 0;
}
.analysis-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.analysis-grid img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-2);
}
.analysis-copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.analysis-copy p { margin: 0 0 0.9rem; color: var(--muted); }
.analysis-copy ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}
.analysis-copy li { margin: 0.35rem 0; }

/* Expert voices */
.voices {
  padding: 2rem 0 2.5rem;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.voice {
  max-width: 820px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.voice:last-child { border-bottom: 0; }
.voice blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.voice cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Toolkit shelf */
.toolkit {
  padding: 2.5rem 0;
}
.shelf {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}
.tool-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}
.tool-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.tool-card a { font-weight: 800; text-decoration: none; }

/* News freshness */
.news-fresh {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--surface-2), var(--background));
}
.news-layout {
  display: grid;
  gap: 1rem;
}
.news-lead,
.news-side article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.news-lead {
  display: grid;
}
.news-lead img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.news-lead-body,
.news-side article {
  padding: 1.1rem 1.15rem 1.25rem;
}
.news-side {
  display: grid;
  gap: 1rem;
}
.news-side article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
}
.news-side img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}
.news-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.news-fresh h3,
.news-fresh h2 {
  margin: 0.3rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.news-fresh p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.news-fresh a { color: inherit; text-decoration: none; }
.news-fresh a:hover h2,
.news-fresh a:hover h3 { color: var(--primary); }

/* Standards */
.standards {
  padding: 2.5rem 0 3rem;
}
.standards-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  display: grid;
  gap: 1rem;
}
.standards-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}
.standards-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Generic page shell */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 18ch;
}
.page-hero .lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}
.page-hero-media {
  margin-top: 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.page-hero-media img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  min-height: 220px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { color: var(--primary); }

.section {
  padding: 1.75rem 0;
}
.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.section p { margin: 0 0 0.9rem; color: var(--text); }
.section .muted { color: var(--muted); }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card, .loose-card, .data-card, .step-card {
  background: var(--surface);
  border: 1px solid rgba(36, 87, 167, 0.14);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.2rem;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(27, 38, 56, 0.04);
}
.loose-card {
  background: linear-gradient(135deg, rgba(36, 87, 167, 0.06) 0%, rgba(160, 68, 197, 0.04) 100%);
  border: 2px solid rgba(36, 87, 167, 0.18);
}
.data-card strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--primary-ink);
}
.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.inline-image-row {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  align-items: center;
}
.inline-image-row figure {
  margin: 0;
  min-width: 0;
}
.inline-image-row img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-2);
}
.inline-image-row figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.95rem;
}
table.data-table th,
table.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.data-table th {
  background: var(--surface-2);
  font-weight: 800;
  font-size: 0.86rem;
}
.faq-grid {
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}
.faq-item p { margin: 0; color: var(--muted); }
.cta-band {
  margin: 1.5rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #1c3f7a, #2457A7 55%, #5b2f86);
  color: #fff;
  display: grid;
  gap: 0.85rem;
}
.cta-band p { margin: 0; color: #dce8ff; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-ink) !important;
  width: fit-content;
}
.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.related-links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
}
.related-links a:hover { border-color: var(--primary); color: var(--primary); }

/* Footer */
.site-footer {
  background: #121a27;
  color: #d7e0ef;
  padding: 3rem 0 7rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.site-footer a {
  color: #d7e0ef;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p {
  color: #9eacc4;
  font-size: 0.95rem;
  max-width: 36ch;
}
.footer-col h2 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eacc4;
  font-weight: 800;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-col a { font-weight: 650; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #8b9bb4;
  font-size: 0.88rem;
  display: grid;
  gap: 0.45rem;
}

/* Sticky mobile CTA */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(27,38,56,0.1);
  display: block;
}
.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
body { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom)); }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.band-surface { background: var(--surface); border-block: 1px solid var(--border); }
.band-tint { background: var(--surface-2); }
.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; font-weight: 700; }
section[id] { scroll-margin-top: 90px; }

/* Desktop */
@media (min-width: 768px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inline-image-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .inline-image-row.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .inline-image-row.reverse figure { order: 2; }
  .analysis-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .analysis-grid.flip {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .analysis-grid.flip .analysis-copy { order: 2; }
  .analysis-grid > * { min-width: 0; }
  .shelf {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .shelf .tool-card:nth-child(1) { grid-column: span 3; }
  .shelf .tool-card:nth-child(2) { grid-column: span 3; }
  .shelf .tool-card:nth-child(3) { grid-column: span 2; }
  .shelf .tool-card:nth-child(4) { grid-column: span 2; }
  .shelf .tool-card:nth-child(5) { grid-column: span 2; }
  .news-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .page-hero-media img { min-height: 320px; }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .header-cta-desktop { display: inline-flex; }
  .mobile-sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 3rem; }
  .hero-cover-inner { padding: 7rem 0 4rem; }
}
@media (max-width: 899px) {
  .hero-cover {
    min-height: 480px;
    max-height: 720px;
  }
  .hero-cover h1 { font-size: 32px; line-height: 1.1; max-width: none; }
  .hero-lede { font-size: 16px; line-height: 1.5; }
  .hero-actions .btn { flex: 1 1 auto; }
}
/* prevent grid media blowout */
.analysis-grid, .inline-image-row, .news-layout, .shelf, .card-grid {
  min-width: 0;
}
.analysis-grid > *, .inline-image-row > *, .news-layout > *, .shelf > *, .card-grid > * {
  min-width: 0;
}


/* Quote stack */
.quote-stack { display: grid; gap: 1rem; }
.pull-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow);
}
.pull-quote p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
.pull-quote footer {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
/* News layout pieces */
.news-lead, .news-side { min-width: 0; }
.news-lead a, .news-side a {
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}
.news-lead img, .news-side img { width: 100%; height: 200px; object-fit: cover; }
.news-lead a > div, .news-side a > div { padding: 0 1rem 1rem; }
.news-lead h3, .news-side h3 { margin: 0.25rem 0; letter-spacing: -0.03em; }
.news-lead p, .news-side p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-grid.cols-3 { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 800px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .news-lead img { height: 280px; }
}
.tool-card {
  display: grid;
  grid-template-rows: 140px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.tool-card img { width: 100%; height: 140px; object-fit: cover; }
.tool-card div { padding: 0.9rem 1rem 1.1rem; }
.tool-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.8rem 1.15rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer; font-family: inherit;
}
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .card-grid.cols-2, .card-grid:not(.cols-3) { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; flex: 0 0 auto;
}
.step-card {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem;
}
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.related-links ul { padding-left: 1.1rem; }
.related-links li { margin: 0.35rem 0; }
.section { padding: 1.25rem 0 2rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.1rem;
}
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--muted); }
.faq-grid { display: grid; gap: 0.75rem; }
@media (min-width: 800px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
body { padding-bottom: calc(var(--sticky-cta-h) + 12px); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
