/* Beacon resources family stylesheet — hub, glossary index, glossary term pages.
   Base: beacon/comparison.css (reset, nav, footer, dark CTA band, sticky mobile CTA,
   table treatment). Adds the reading-page and card-grid pieces from design-spec.md.
   design-spec.md in this folder is layout law (it folds in the retired
   beacon.design.md contract). */

:root {
  --plum: #3F2C3C;
  --lavender: #94629F;
  --mauve: #C29DB5;
  --sand: #D4C8CF;
  --mist: #ECE9F0;
  --paper: #F6F6FE;
  --beacon-50: var(--paper);
  --beacon-100: var(--mist);
  --beacon-200: var(--sand);
  --beacon-300: var(--mauve);
  --beacon-400: var(--mauve);
  --beacon-500: var(--lavender);
  --beacon-600: var(--lavender);
  --beacon-700: var(--plum);
  --beacon-800: var(--plum);
  --beacon-900: var(--plum);
  --surface: #FFFFFF;
  --border: var(--sand);
  --muted: color-mix(in srgb, var(--plum) 72%, var(--paper));
  --lavender-dark: #76467f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--beacon-50);
  color: var(--beacon-900);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

/* Accessibility floor: visible focus state on every interactive element,
   even where a component also defines its own :hover/:focus-visible treatment. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Shell + reading column ---------- */

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.narrow { width: min(100% - 32px, 920px); }

/* Reading pages do not use one wide wrapper. Each block picks its own
   centered width: 720px for prose, 960px for anything that breaks out
   (tables). Both stay inside the 1280px shell by construction. */
.res-col { width: min(100% - 32px, 720px); margin-inline: auto; }
.res-col-wide { width: min(100% - 32px, 960px); margin-inline: auto; }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid rgba(63, 44, 60, 0.11);
  background: rgba(250, 249, 247, 0.78);
  backdrop-filter: blur(20px) saturate(150%);
}

.nav-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav .container { width: min(100% - 48px, 1220px); }

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

.brand-lockup { gap: 10px; }
.brand-parent, .brand-product { display: flex; align-items: center; text-decoration: none; }
.brand-parent { opacity: 0.72; transition: opacity 160ms ease; }
.brand-parent:hover, .brand-parent:focus-visible { opacity: 1; }
.brand-parent img, .brand-product img { display: block; width: auto; }
.brand-parent img { height: 18px; }
.brand-product img { height: 24px; }
.brand-divider { color: rgba(63, 44, 60, 0.3); font-size: 12px; }

.nav-links { gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--plum); }

.nav-actions .button {
  min-height: 46px;
  margin-left: 4px;
  padding-inline: 18px;
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--plum);
  padding: 0 22px;
  color: #fff;
  background: var(--plum);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.button:hover { background: #5c3a59; box-shadow: 0 8px 24px rgba(63, 44, 60, 0.16); transform: translateY(-1px); }
.button:active { transform: scale(0.97); }
.button-light { border-color: var(--beacon-300); background: white; color: var(--beacon-800); }
.button-light:hover { background: white; border-color: var(--beacon-500); color: var(--beacon-600); box-shadow: none; }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(63, 44, 60, 0.24);
  background: white;
  color: var(--plum);
  cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }
.menu-button .menu-icon-close { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-close { display: block; }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid rgba(63, 44, 60, 0.24);
  background: rgba(250, 249, 247, 0.98);
  box-shadow: 0 20px 42px rgba(39, 27, 37, 0.14);
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner { display: grid; gap: 4px; padding-block: 18px 24px; }
.mobile-menu-label { margin: 8px 0 3px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.mobile-menu a:not(.button) { display: flex; min-height: 46px; align-items: center; padding-inline: 12px; color: var(--plum); font-size: 15px; font-weight: 600; text-decoration: none; }
.mobile-menu .button { width: 100%; margin-top: 8px; }

/* ---------- Eyebrow chip ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--beacon-600);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--beacon-500);
  content: "";
}

/* ---------- Breadcrumb ---------- */

.res-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}
.res-breadcrumb a { color: var(--muted); text-decoration: none; }
.res-breadcrumb a:hover, .res-breadcrumb a:focus-visible { color: var(--lavender); text-decoration: underline; }
.res-crumb-current { color: var(--plum); font-weight: 600; }
.res-crumb-sep { color: var(--sand); }

/* ---------- Reading-page hero (breadcrumb + H1 + quick answer) ---------- */

.res-hero { padding: 140px 0 8px; }
.res-hero h1 {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(40px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--plum);
}
.res-hero h1 em {
  color: var(--lavender-dark);
  font-style: italic;
}

.res-quick-answer {
  border: 1px solid var(--sand);
  border-left: 4px solid var(--lavender);
  background: #fff;
  padding: 22px 26px;
}
.res-quick-answer p {
  margin: 0;
  color: var(--plum);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Hub as-of stat row (JetBrains Mono dataset facts) ---------- */

.res-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sand);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.res-stat-row strong { color: var(--plum); font-weight: 600; }

/* ---------- Body sections ---------- */

.res-section { margin-top: 56px; }
@media (min-width: 641px) {
  .res-section { margin-top: 64px; }
}
.res-section h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--plum);
}
.res-section p { margin: 0 0 16px; color: var(--beacon-900); }
.res-section p:last-child { margin-bottom: 0; }
.res-section p + h2 { margin-top: 0; }

/* "How Beacon uses this" sits on its own tinted band, visually separated
   from the neutral definition content above it. */
.res-beacon-block { background: var(--mist); padding-block: 48px; }
.res-beacon-block p { color: var(--beacon-900); }

/* ---------- Inline text links inside body copy ---------- */

.res-section p a,
.res-beacon-block p a,
.res-capability-list a {
  color: var(--lavender);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.res-section p a:hover, .res-section p a:focus-visible,
.res-beacon-block p a:hover, .res-beacon-block p a:focus-visible,
.res-capability-list a:hover, .res-capability-list a:focus-visible {
  color: var(--beacon-700);
}

/* ---------- Capability list ("What Beacon covers") ---------- */

.res-capability-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.res-capability-list li {
  position: relative;
  padding-left: 22px;
  color: var(--beacon-900);
}
.res-capability-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--lavender);
  content: "";
}

/* ---------- Tables (comparison-family treatment) ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--beacon-200); background: white; }
.comparison-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { border-bottom: 1px solid var(--beacon-200); border-right: 1px solid var(--beacon-200); padding: 18px 20px; text-align: left; vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table thead th { background: var(--mist); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.comparison-table thead th:last-child { background: var(--beacon-800); color: white; }
.comparison-table tbody td:first-child { width: 22%; color: var(--beacon-800); font-size: 13px; font-weight: 700; }
.comparison-table tbody td { color: var(--muted); font-size: 14px; line-height: 1.6; }
.comparison-table tbody td:last-child { background: var(--beacon-50); color: var(--beacon-900); }
.comparison-table .num { font-family: "JetBrains Mono", monospace; }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.source-note a { color: var(--beacon-700); }

/* ---------- Numbered steps (reading-page ordered lists) ---------- */

.res-section ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: res-step;
}
.res-section ol li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 40px;
  color: var(--beacon-900);
}
.res-section ol li:last-child { margin-bottom: 0; }
.res-section ol li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lavender);
  counter-increment: res-step;
  content: counter(res-step) ".";
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Card grid (hub, glossary index, related terms) ---------- */

.res-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--sand);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease;
}
.res-card:focus-visible { transform: translateY(-2px); border-color: var(--mauve); }
.res-card-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid var(--sand);
  color: var(--lavender);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.res-card-title { margin: 0; font-size: 20px; line-height: 1.3; color: var(--plum); }
.res-card-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.res-card-link { margin-top: auto; padding-top: 4px; color: var(--lavender); font-size: 14px; font-weight: 700; }
.res-card:focus-visible .res-card-link { text-decoration: underline; }

@media (hover: hover) and (pointer: fine) {
  .res-card:hover { transform: translateY(-2px); border-color: var(--mauve); }
  .res-card:hover .res-card-link { text-decoration: underline; }
}

/* ---------- Resources hub layout ---------- */

.hub-shell {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.resources-hub main {
  background: var(--paper);
}

.resources-hub .hub-hero {
  padding: 152px 0 96px;
  border-bottom: 1px solid var(--sand);
}

.resources-hub .hub-hero .res-breadcrumb {
  margin-bottom: 32px;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 88px;
  align-items: start;
}

.resources-hub .hub-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--plum);
  font-size: clamp(50px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hub-hero-context {
  padding-bottom: 4px;
}

.resources-hub .res-quick-answer {
  padding: 28px 30px;
  border-left-width: 3px;
  box-shadow: 0 18px 50px rgba(63, 44, 60, 0.06);
}

.resources-hub .res-quick-answer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.resources-hub .res-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  line-height: 1.55;
}

.resources-hub .res-stat-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--plum);
  font-size: 13px;
}

.hub-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--sand);
}

.hub-section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.hub-section-index {
  margin: 0 0 20px;
  color: var(--lavender-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hub-section-intro h2,
.hub-proof-heading h2 {
  margin: 0 0 18px;
  color: var(--plum);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hub-section-intro > p:not(.eyebrow):not(.hub-section-index) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.resources-hub .res-card-grid {
  gap: 16px;
}

.resources-hub .res-card {
  min-height: 224px;
  gap: 12px;
  padding: 30px;
  border-color: color-mix(in srgb, var(--sand) 84%, white);
  box-shadow: 0 1px 0 rgba(63, 44, 60, 0.02);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}

.resources-hub .res-card:active {
  transform: scale(0.985);
}

.resources-hub .res-card-title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.resources-hub .res-card-desc {
  font-size: 14px;
  line-height: 1.65;
}

.resources-hub .res-card-link {
  transition: transform 180ms var(--ease-out), color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .resources-hub .res-card:hover {
    border-color: var(--mauve);
    box-shadow: 0 18px 44px rgba(63, 44, 60, 0.08);
  }

  .resources-hub .res-card:hover .res-card-link {
    transform: translateX(3px);
  }
}

.hub-proof {
  padding: 0;
  border-bottom: 1px solid var(--sand);
  background: var(--plum);
}

.hub-proof-panel {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 80px;
  padding: 64px 0;
  background: transparent;
  color: white;
}

.hub-proof-heading .hub-section-index {
  color: var(--mauve);
}

.hub-proof-heading h2 {
  margin-bottom: 0;
  color: white;
}

.hub-proof-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.65;
}

.hub-text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
  transition: transform 180ms var(--ease-out);
}

.hub-text-link:active {
  transform: scale(0.98);
}

.resources-hub .res-capability-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sand);
  border-left: 1px solid var(--sand);
}

.resources-hub .res-capability-list li {
  min-height: 76px;
  padding: 23px 24px 20px 48px;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  background: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  line-height: 1.55;
}

.resources-hub .res-capability-list li::before {
  top: 31px;
  left: 24px;
  width: 7px;
  height: 7px;
}

.hub-faq {
  border-bottom: 0;
  background: white;
}

.hub-faq .eyebrow {
  margin-bottom: 22px;
}

.hub-faq .faq-list {
  align-self: start;
}

.hub-faq .faq-list summary {
  padding-block: 26px;
  font-size: 19px;
}

.hub-faq .faq-list summary::after {
  top: 24px;
}

.hub-faq .faq-answer {
  padding-bottom: 26px;
}

.resources-hub .cta-section {
  padding: 96px 0;
}

.resources-hub .cta-section h2 {
  font-size: clamp(38px, 4vw, 48px);
  letter-spacing: -0.025em;
}

.resources-hub .cta-secondary {
  margin-top: 22px;
  margin-bottom: 0;
}

.resources-hub .cta-secondary a {
  color: var(--beacon-100);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- FAQ (comparison-family pattern) ---------- */

.section-heading { max-width: 720px; margin: 0 auto 40px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(30px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.015em; color: var(--plum); }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.faq-list { border-top: 1px solid var(--beacon-300); }
.faq-list details { border-bottom: 1px solid var(--beacon-300); }
.faq-list summary { position: relative; padding: 22px 50px 22px 0; cursor: pointer; font-family: "Playfair Display", serif; font-size: 20px; font-weight: 500; line-height: 1.35; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 4px; content: "+"; color: var(--beacon-600); font-family: "JetBrains Mono", monospace; font-size: 20px; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-answer { max-width: 720px; padding: 0 54px 22px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Section surfaces + dark CTA band ---------- */

.section { padding: 72px 0; }
.section-white { border-block: 1px solid var(--beacon-200); background: white; }
.section-dark { position: relative; overflow: hidden; background: var(--beacon-900); color: white; }
.section-dark::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(194, 157, 181, 0.14) 1px, transparent 1px); background-size: 26px 26px; content: ""; }
.section-dark > .container, .section-dark > .res-col, .section-dark > .hub-shell { position: relative; z-index: 1; }
.section-dark .eyebrow { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: var(--beacon-300); }

.cta-section { padding: 76px 0; text-align: center; }
.cta-section h2 { max-width: 640px; margin: 0 auto 18px; font-size: clamp(30px, 3.4vw, 36px); line-height: 1.1; }
.cta-section p { max-width: 560px; margin: 0 auto 30px; color: var(--beacon-100); font-size: 16px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--beacon-200); padding: 60px 0 34px; background: var(--beacon-50); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { max-width: 300px; margin: 18px 0 0; color: var(--muted); }
.footer-social { display: inline-flex; margin-top: 16px; color: var(--muted); }
.footer-social:hover { color: var(--beacon-600); }
.footer-social svg { width: 18px; height: 18px; }
.footer-heading { margin: 0 0 16px; color: var(--beacon-500); font-family: "Inter", sans-serif; font-size: 10px; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--beacon-600); }
.footer-product-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-product-link img { height: 14px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--beacon-200); padding-top: 26px; color: var(--muted); font-size: 12px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-bottom-links a { text-decoration: none; }
.footer-bottom-links a:hover { color: var(--beacon-600); }

.sticky-mobile-cta { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .res-card-grid { grid-template-columns: 1fr; }
  .hub-hero-grid,
  .hub-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .resources-hub .res-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-section-intro { max-width: 560px; }
  .hub-proof-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-row { min-height: 68px; }
  .nav-links, .nav-actions { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-menu { max-height: calc(100dvh - 68px); }
  .brand-parent img { height: 16px; }
  .brand-product img { height: 21px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .mobile-menu-inner { padding-bottom: 92px; }
  .res-hero { padding: 112px 0 4px; }
  .hub-shell {
    width: min(100% - 32px, 1120px);
  }
  .resources-hub .hub-hero { padding: 108px 0 64px; }
  .resources-hub .hub-hero .res-breadcrumb { margin-bottom: 32px; }
  .hub-hero-grid { gap: 36px; }
  .resources-hub .hub-hero h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.04;
  }
  .resources-hub .res-quick-answer { padding: 22px 22px 22px 24px; }
  .resources-hub .res-stat-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hub-section { padding: 60px 0; }
  .hub-section-grid { gap: 32px; }
  .hub-section-intro h2,
  .hub-proof-heading h2 { font-size: 32px; }
  .resources-hub .res-card-grid { grid-template-columns: 1fr; }
  .resources-hub .res-card {
    min-height: 0;
    padding: 24px;
  }
  .hub-proof { padding: 0; }
  .hub-proof-panel {
    gap: 24px;
    padding: 44px 0;
  }
  .hub-proof-copy p { font-size: 16px; }
  .resources-hub .res-capability-list { grid-template-columns: 1fr; }
  .hub-faq .faq-list summary { padding-block: 22px; }
  .hub-faq .faq-list summary::after { top: 20px; }
  .resources-hub .cta-section { padding: 72px 0; }
  .res-section { margin-top: 48px; }
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 28px; }
  .res-beacon-block { padding-block: 36px; }
  .faq-list summary { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sticky-mobile-cta { position: fixed; inset: auto 0 0; z-index: 60; display: block; border-top: 1px solid var(--beacon-200); padding: 10px 16px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); }
  .sticky-mobile-cta .button { min-height: 48px; width: 100%; }
}

@media (max-width: 620px) {
  .site-nav .container { width: min(100% - 32px, 1220px); }
  .brand-parent img { height: 14px; }
  .brand-product img { height: 19px; }
  .brand-lockup { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav,
  .sticky-mobile-cta {
    background: var(--paper);
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .site-nav,
  .sticky-mobile-cta {
    border-color: var(--plum);
    background: var(--paper);
  }

  .res-card,
  .res-quick-answer,
  .res-capability-list,
  .res-capability-list li {
    border-color: var(--plum);
  }
}

/* ---------- Reveal classes (applied by /beacon/v2-reveal.js — never in markup) ---------- */

.beacon-pre-hidden {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), filter 360ms var(--ease-out);
  will-change: opacity, transform, filter;
}
.beacon-pre-hidden.beacon-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .beacon-pre-hidden { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
