/* ==========================================================================
   State of Service, Seventh Edition — Interactive Report
   Design system: Salesforce navy / magenta-pink / cloud-blue, Inter type
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #081527;
  --navy-900: #0b1f3d;
  --navy-800: #13294b;
  --navy-700: #1c3a63;
  --blue-600: #0176d3;
  --blue-500: #1b96ff;
  --blue-100: #eaf4fd;
  --pink-700: #8a0e46;
  --pink-600: #c41862;
  --pink-500: #e0266e;
  --pink-300: #f28fb3;
  --pink-100: #fce8f0;
  --maroon-900: #4a0e2e;
  --ink-900: #12182a;
  --ink-700: #333c50;
  --ink-500: #5b6472;
  --ink-300: #8b93a3;
  --line: #e3e8f0;
  --paper: #ffffff;
  --paper-dim: #f5f8fc;
  --paper-blue: #eef5fd;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --nav-w: 280px;
  --max-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-500), var(--blue-500));
  z-index: 1000;
  transition: width 80ms linear;
}

/* ---------- Layout shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-600);
}

/* ---------- Top mobile bar ---------- */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
}
.mobile-bar .brand { font-weight: 800; font-size: 0.95rem; color: var(--navy-900); }
.mobile-bar .brand span { color: var(--pink-500); }
.nav-toggle {
  background: var(--navy-900);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 980px) {
  .mobile-bar { display: flex; }
}

/* ---------- Sticky sidebar nav ---------- */
.sidenav {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}
.sidenav .brand {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.sidenav .brand span { color: var(--pink-500); }
.sidenav .brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.sidenav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidenav-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-500);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.sidenav-list a .num { font-size: 0.72rem; color: var(--ink-300); font-weight: 700; }
.sidenav-list a:hover { background: var(--paper-blue); color: var(--navy-900); }
.sidenav-list a.active {
  color: var(--pink-600);
  background: var(--pink-100);
  border-left-color: var(--pink-500);
}
.sidenav-list a.active .num { color: var(--pink-500); }

.sidenav-foot {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--ink-300);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .sidenav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 99;
    background: #fff;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 260ms var(--ease);
    padding-top: 84px;
  }
  .sidenav.open { transform: translateX(0); }
}

main { min-width: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding: 96px 0 64px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 82% 8%, rgba(224,38,110,0.55), transparent 60%),
    radial-gradient(700px 520px at 15% 95%, rgba(27,150,255,0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%);
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-300);
  background: rgba(224,38,110,0.14);
  border: 1px solid rgba(224,38,110,0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink-300), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--pink-500), var(--pink-600));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(224,38,110,0.6);
}
.btn-primary:hover { box-shadow: 0 16px 34px -8px rgba(224,38,110,0.72); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-outline:hover { background: var(--paper-blue); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  backdrop-filter: blur(6px);
}
.hero-stat .val { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stat .val .unit { font-size: 1.1rem; }
.hero-stat .lab { font-size: 0.76rem; color: rgba(255,255,255,0.65); margin-top: 4px; line-height: 1.3; }

/* Hero visual: agent conversation card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.convo-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--ink-900);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
  transform: rotate(2deg);
}
.convo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.convo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink-500); }
.convo-bubble {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
  margin-bottom: 10px;
  line-height: 1.42;
}
.convo-bubble.user { background: var(--paper-blue); color: var(--navy-900); border-top-right-radius: 4px; margin-left: 24px; }
.convo-bubble.agent { background: var(--navy-900); color: #fff; border-top-left-radius: 4px; margin-right: 12px; }
.convo-bubble .badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-300);
  margin-bottom: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue .stick {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
  animation: cue-move 1.8s ease-in-out infinite;
}
@keyframes cue-move {
  0% { transform: scaleY(0.3); opacity: 0.2; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.3); opacity: 0.2; transform-origin: bottom; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  color: var(--navy-900);
}
.section-head p { color: var(--ink-500); font-size: 1.04rem; margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Executive summary cards ---------- */
.exec-summary { background: var(--paper-blue); }
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.exec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -20px rgba(11,31,61,0.25);
  border-color: transparent;
}
.exec-card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-100);
  color: var(--pink-600);
}
.exec-card .pct { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.exec-card h3 { font-size: 1.02rem; margin: 0; color: var(--navy-900); }
.exec-card p { margin: 0; color: var(--ink-500); font-size: 0.9rem; }
.exec-card .goto { font-size: 0.78rem; font-weight: 700; color: var(--pink-600); display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* ---------- Chapter cover ---------- */
.chapter-cover {
  background: var(--navy-900);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.chapter-cover::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,38,110,0.4), transparent 70%);
}
.chapter-cover .num {
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.chapter-cover h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0;
}
.chapter-cover .sub { color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 50ch; font-size: 1.02rem; }

/* ---------- Chapter body layout ---------- */
.topic {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.topic:last-of-type { border-bottom: none; }
@media (max-width: 900px) {
  .topic { grid-template-columns: 1fr; gap: 32px; }
}
.topic-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-600);
  margin-bottom: 14px;
}
.topic h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; color: var(--navy-900); margin: 0 0 16px; letter-spacing: -0.01em; }
.topic .body-copy p { color: var(--ink-700); font-size: 1rem; margin: 0 0 14px; }
.topic .body-copy strong { color: var(--navy-900); }
.topic .callout-stat {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}
.topic .callout-stat .big { color: var(--pink-300); }
.topic .footnote { font-size: 0.76rem; color: var(--ink-300); margin-top: 14px; }

.chart-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 18px;
}
.chart-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy-900); }
.chart-card .chart-sub { font-size: 0.82rem; color: var(--ink-500); margin: 0 0 18px; }
.chart-card canvas { max-height: 300px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: var(--ink-500); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Stacked mini bars (top-lists) */
.ranked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ranked-list li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--ink-700); }
.ranked-list .rank {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pink-500);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ranked-list li:nth-child(2) .rank { background: var(--pink-600); }
.ranked-list li:nth-child(3) .rank { background: var(--maroon-900); }
.ranked-list li:nth-child(n+4) .rank { background: var(--ink-300); }

/* Counter stat mini-grid */
.stat-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 14px; margin-top: 8px; }
.stat-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.stat-mini .num { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.stat-mini .lab { font-size: 0.72rem; color: var(--ink-500); margin-top: 2px; }

/* Bar rows (custom animated horizontal bars) */
.barlist { display: flex; flex-direction: column; gap: 16px; }
.barrow .barrow-top { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--ink-700); margin-bottom: 6px; }
.barrow .barrow-top b { color: var(--navy-900); }
.bartrack { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.barfill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--pink-600), var(--pink-400,var(--pink-500))); transition: width 1.1s var(--ease); }

/* ---------- Insight cards (expandable) ---------- */
.insights { background: var(--paper-blue); }
.insight-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.insight-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.insight-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
}
.insight-toggle .plus {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 260ms var(--ease), background 260ms var(--ease);
}
.insight-card[open] .insight-toggle .plus { transform: rotate(45deg); background: var(--pink-500); color: #fff; }
.insight-toggle::-webkit-details-marker { display: none; }
.insight-body { padding: 0 24px 24px; color: var(--ink-700); font-size: 0.95rem; }
.insight-body p { margin: 0 0 10px; }
.insight-body ul { margin: 0; padding-left: 20px; }
.insight-body li { margin-bottom: 6px; }

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 4px solid var(--pink-500);
  padding: 6px 0 6px 26px;
  margin: 48px 0;
}
.quote-block p {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin: 0 0 16px;
}
.quote-block cite { font-style: normal; font-size: 0.9rem; color: var(--ink-500); }
.quote-block cite b { color: var(--navy-900); display: block; font-size: 0.96rem; }

/* ---------- Case study cards ---------- */
.case-study {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) { .case-study { grid-template-columns: 1fr; } }
.case-study .cs-copy { padding: 44px 40px; }
.case-study .cs-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-300); margin-bottom: 16px; }
.case-study blockquote { font-size: 1.3rem; font-weight: 700; margin: 0 0 20px; line-height: 1.32; letter-spacing: -0.01em; }
.case-study .cs-person { font-size: 0.86rem; color: rgba(255,255,255,0.7); margin-bottom: 26px; }
.case-study .cs-person b { color: #fff; display: block; }
.case-study .cs-desc { font-size: 0.92rem; color: rgba(255,255,255,0.72); margin-bottom: 22px; line-height: 1.55; }
.cs-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.12); }
.cs-stat { background: var(--navy-800); padding: 26px 18px; text-align: center; }
.cs-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--pink-300); }
.cs-stat .lab { font-size: 0.74rem; color: rgba(255,255,255,0.65); margin-top: 6px; line-height: 1.3; }

/* ---------- Maturity model timeline ---------- */
.maturity { background: var(--paper-blue); }
.maturity-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
@media (max-width: 800px) { .maturity-track { grid-template-columns: 1fr; } }
.maturity-track::before {
  content: "";
  position: absolute;
  top: 46px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-300) 0 8px, transparent 8px 14px);
  z-index: 0;
}
@media (max-width: 800px) { .maturity-track::before { display: none; } }
.level-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  cursor: pointer;
}
.level-card .lvl-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.level-card:nth-child(1) .lvl-num { background: var(--maroon-900); }
.level-card:nth-child(2) .lvl-num { background: var(--pink-600); }
.level-card:nth-child(3) .lvl-num { background: var(--pink-500); }
.level-card h4 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy-900); }
.level-card .tag { font-size: 0.78rem; color: var(--ink-500); margin-bottom: 14px; }
.level-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease);
  font-size: 0.88rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.level-card.open .level-detail { max-height: 220px; margin-top: 8px; }
.level-card .expand-hint { font-size: 0.78rem; font-weight: 700; color: var(--pink-600); display: flex; align-items: center; gap: 6px; }

.maturity-quote { max-width: 760px; margin: 64px auto 0; text-align: center; }
.maturity-quote p { font-size: 1.35rem; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.maturity-quote cite { font-style: normal; color: var(--ink-500); font-size: 0.9rem; }

/* ---------- Related content ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px rgba(11,31,61,0.3); }
.related-kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-600); }
.related-card h4 { margin: 0; font-size: 1.02rem; color: var(--navy-900); }
.related-card p { margin: 0; font-size: 0.86rem; color: var(--ink-500); }
.related-card .related-cta { font-size: 0.82rem; font-weight: 700; color: var(--navy-900); margin-top: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- Sticky floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--navy-900);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px -14px rgba(11,31,61,0.5);
  text-decoration: none;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 340ms var(--ease), opacity 340ms var(--ease);
}
.floating-cta.show { transform: translateY(0); opacity: 1; }
.floating-cta .fc-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pink-500);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.floating-cta .fc-text { font-size: 0.86rem; font-weight: 700; line-height: 1.2; }
.floating-cta .fc-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.floating-cta .fc-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  flex: none;
}
@media (max-width: 640px) {
  .floating-cta { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
}

/* ---------- Next chapter nav ---------- */
.next-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.next-chapter:hover { background: var(--paper-blue); transform: translateX(4px); }
.next-chapter .nc-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 6px; }
.next-chapter .nc-title { font-size: 1.2rem; font-weight: 800; color: var(--navy-900); }
.next-chapter .nc-arrow {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 220ms var(--ease);
}
.next-chapter:hover .nc-arrow { transform: translateX(6px); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-brand .brand span { color: var(--pink-400, var(--pink-300)); }
.footer-brand p { font-size: 0.86rem; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-share { display: flex; gap: 10px; }
.footer-share button, .footer-share a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms var(--ease);
}
.footer-share button:hover, .footer-share a:hover { background: rgba(255,255,255,0.2); }

/* ---------- Sample details table (footer of report) ---------- */
.sample-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sample-table th, .sample-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sample-table th { color: var(--navy-900); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Utility ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 14px;
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
