/* ==========================================================================
   Pear Care — Competitive Pricing Report
   One stylesheet, no build step. Brand values taken from www.pear.doctor:
   Source Serif Pro display type with a semibold-italic gradient accent,
   green-grey ink (#46544c), cream surfaces (#f8f7f2), 16/24 px radii,
   soft green-grey shadows. Toned down for a professional audience.
   ========================================================================== */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Source Serif Pro";
  src: url("../assets/fonts/SourceSerifPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../assets/fonts/SourceSerifPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../assets/fonts/SourceSerifPro-SemiboldIt.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
/* Size-matched Georgia fallbacks keep line breaks (and layout) steady while the fonts load. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia");
  font-weight: 400;
  size-adjust: 99%;
  ascent-override: 103%;
  descent-override: 33%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 600;
  size-adjust: 88%;
  ascent-override: 103%;
  descent-override: 33%;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  /* ink */
  --ink-strong: #2f3833;
  --ink: #46544c;            /* Pear green-grey: headings, buttons */
  --text: #4f5751;           /* body, 7.5:1 on white */
  --muted: #5a615c;          /* secondary, 6.4:1 on white */
  --link: #3d6b3a;           /* 6.3:1 on white */
  --green: #5e995b;          /* accent gradient end; large text / decoration only */

  /* surfaces */
  --white: #ffffff;
  --cream: #f8f7f2;
  --cream-2: #f2f1ea;
  --sand: #ebe9e0;
  --line: #e5e3da;
  --line-strong: #d2cfc4;
  --field: #85887d;          /* form borders, 3.6:1 */
  --tint-green: #eaf2e3;
  --tint-green-line: #cfdfc2;

  /* data (same meaning as in the report) */
  --neg: #a8443a;            /* below market (brick) */
  --neg-soft: #f7e6e3;
  --pos: #5e995b;            /* above market: Pear green (bars only, 3.4:1) */
  --pos-soft: #e5edf7;
  --range: #8a8c80;          /* near-peer range, 3.4:1 */

  --accent-gradient: radial-gradient(84% 396% at 78.7% 50%, #46544c 0%, #5e995b 100%);
  --pear-gradient: linear-gradient(90deg, #a3ebdf 0%, #c9e08f 55%, #e4d369 100%);

  --serif: "Source Serif Pro", "Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(70, 84, 76, 0.06), 0 2px 4px rgba(70, 84, 76, 0.06);
  --sh-2: 0 2px 4px rgba(70, 84, 76, 0.08), 0 12px 28px rgba(70, 84, 76, 0.08);
  --sh-3: 0 2px 6px rgba(70, 84, 76, 0.08), 0 32px 64px -12px rgba(70, 84, 76, 0.22);

  --wrap: 1200px;
  --gutter: 32px;
  --section: clamp(72px, 9vw, 120px);
  --header-h: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 72px; }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
h4 {
  font: 650 1rem/1.35 var(--sans);
  color: var(--ink-strong);
  letter-spacing: 0;
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong, b { color: var(--ink-strong); font-weight: 650; }
em { font-style: italic; }
small { font-size: 0.86em; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(61, 107, 58, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--ink-strong); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* The brand's italic accent: semibold italic with the green-grey to pear-green gradient.
   Used only in headings 28 px and larger (large-text contrast). */
.accent {
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  padding-right: 0.06em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding: var(--section) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--tight { padding: calc(var(--section) * 0.55) 0; }
.section--flush-top { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--link);
  font: 650 0.75rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--pear-gradient);
}

.lead {
  max-width: 40em;
  color: var(--text);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.6;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- header (floats as a pill once the page scrolls, like pear.doctor) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: 12px;
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 8px 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Glass, as on pear.care: a mostly clear pill with a 20px blur, so the page shows through
   frosted. A thin light rim and a soft top highlight give it an edge; a light fill keeps the
   links readable when a dark panel scrolls underneath. */
.site-header.is-scrolled .nav-shell,
.site-header.is-open .nav-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.2) 100%);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(70, 84, 76, 0.06),
    0 1px 2px rgba(70, 84, 76, 0.06),
    0 12px 32px -8px rgba(70, 84, 76, 0.16);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled .nav-shell,
  .site-header.is-open .nav-shell { background: rgba(255, 255, 255, 0.94); border-color: rgba(70, 84, 76, 0.1); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 160px; height: auto; }
.brand-sub {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block;
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 0.94rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--cream-2); color: var(--ink-strong); }
.site-nav a[aria-current="page"] { color: var(--ink-strong); }
.site-nav a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--pear-gradient);
}
.site-nav .nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: 600 0.92rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .brand-sub { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-shell { padding: 0 8px 0 16px; }
  .brand img { width: 140px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    padding: 10px;
    border: 1px solid rgba(70, 84, 76, 0.1);
    border-radius: var(--r-lg);
    background: var(--white);  /* solid: a blur nested inside the glass pill can't reach the page */
    box-shadow: var(--sh-2);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { display: block; padding: 13px 14px; font-size: 1rem; }
  .site-nav a[aria-current="page"]:not(.btn)::after { left: 14px; right: auto; width: 28px; bottom: 6px; }
  .site-nav .nav-cta { margin: 8px 0 0; }
  .site-nav .nav-cta .btn { display: flex; width: 100%; justify-content: center; }
  .no-js .site-nav { display: block; position: static; margin-top: 8px; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { position: static; height: auto; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 12px 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 0.98rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.btn:not(:has(.btn-arrow)) { padding-right: 26px; }
.btn-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}
.btn-arrow svg { width: 14px; height: 14px; }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }
.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 2px 4px rgba(70, 84, 76, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn--primary .btn-arrow { background: rgba(248, 247, 242, 0.16); }
.btn--primary:hover { background: var(--ink-strong); color: var(--cream); box-shadow: var(--sh-2); }
.btn--secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--secondary .btn-arrow { background: var(--cream-2); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink-strong); }
.btn--light { background: var(--cream); color: var(--ink-strong); }
.btn--light .btn-arrow { background: rgba(70, 84, 76, 0.1); }
.btn--light:hover { background: var(--white); color: var(--ink-strong); }
.btn--sm { min-height: 42px; padding: 9px 20px; border-radius: var(--r-pill); font-size: 0.92rem; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 0.2em; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 48px) 0 0;
  background: var(--cream);
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at 86% 18%, rgba(201, 224, 143, 0.38), transparent 70%),
    radial-gradient(460px 380px at 70% 72%, rgba(163, 235, 223, 0.32), transparent 70%),
    radial-gradient(420px 360px at 100% 60%, rgba(228, 211, 105, 0.22), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #f6f5ef 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-meta svg { flex: none; width: 16px; height: 16px; color: var(--green); }

.hero-visual { position: relative; padding: 8px 0 28px 28px; }
.hero-visual .paper--back {
  position: absolute;
  top: 0; right: -6%;
  width: 78%;
  transform: rotate(3.5deg);
  opacity: 0.96;
}
.hero-visual .paper--front { position: relative; width: 92%; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; padding: 0 0 8px; }
  .hero-visual .paper--back { display: none; }
  .hero-visual .paper--front { width: 100%; }
}

.sources-strip {
  border-top: 1px solid rgba(70, 84, 76, 0.1);
  background: rgba(255, 255, 255, 0.55);
}
.sources-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.sources-label {
  margin: 0;
  color: var(--muted);
  font: 650 0.72rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sources-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 550;
}
.sources-list svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* inner-page intro */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 56px) 0 clamp(48px, 6vw, 80px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero .hero-glow {
  background:
    radial-gradient(520px 320px at 92% 10%, rgba(201, 224, 143, 0.3), transparent 70%),
    radial-gradient(420px 300px at 78% 90%, rgba(163, 235, 223, 0.24), transparent 70%),
    var(--cream);
}
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); max-width: 15em; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }

/* ---------- "Sample" label ---------- */

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--cream-2);
  color: var(--ink);
  font: 650 0.68rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sample-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- the report "paper" (sample pages) ---------- */

.paper {
  position: relative;
  min-width: 0;
  padding: 22px 22px 18px;
  border: 1px solid rgba(70, 84, 76, 0.1);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-3);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.paper-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--muted);
  font: 650 0.64rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.paper-kicker img { width: 14px; height: 14px; }
.paper-title {
  margin: 0;
  color: var(--ink);
  font: 600 1.16rem/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.paper-meta { margin: 3px 0 0; color: var(--muted); font-size: 0.72rem; }
.paper-h {
  margin: 16px 0 8px;
  color: var(--ink);
  font: 600 0.95rem/1.25 var(--serif);
}
.paper p { margin: 0 0 8px; }
.paper-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}
.paper .callout-line {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: var(--tint-green);
  font-size: 0.78rem;
}
.paper .limits-box {
  margin: 0;
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.74rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.stat {
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}
.stat-value {
  color: var(--ink);
  font: 600 1.2rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stat-label { margin-top: 5px; color: var(--muted); font-size: 0.7rem; line-height: 1.3; }
@media (max-width: 480px) {
  .paper { padding: 16px 14px 14px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { display: flex; align-items: baseline; gap: 12px; }
  .stat-value { flex: none; min-width: 6.4em; }
  .stat-label { margin-top: 0; }
}

/* ---------- charts (HTML/CSS, so text stays readable at phone width) ----------
   Each chart has role="img" with a full aria-label, and the full table follows it. */

.chart { margin: 4px 0 2px; }
.chart-rows { display: grid; gap: 9px; }
.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 14.5em) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.chart-label {
  color: var(--ink-strong);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: right;
}
.chart-label small { display: block; color: var(--muted); font-size: 0.72rem; }
.chart-nums { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; }
.chart-track {
  position: relative;
  height: 22px;
}
.bar {
  position: absolute;
  top: 4px;
  left: 0;
  width: var(--w);
  height: 14px;
  border-radius: 0 5px 5px 0;
  background: var(--neg);
  transform-origin: left center;
}
.bar-value {
  position: absolute;
  top: 0;
  left: calc(var(--w) + 8px);
  color: var(--ink-strong);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* diverging carrier chart */
.chart--diverging .chart-row { grid-template-columns: minmax(0, 6.2em) minmax(0, 1fr); }
.chart--diverging .chart-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px; bottom: -5px;
  width: 1px;
  background: var(--range);
}
.chart--diverging .bar--neg { left: auto; right: 50%; border-radius: 5px 0 0 5px; transform-origin: right center; }
.chart--diverging .bar--pos { left: 50%; background: var(--pos); }
.chart--diverging .bar-value--neg { left: auto; right: calc(50% + var(--w) + 6px); }
.chart--diverging .bar-value--pos { left: calc(50% + var(--w) + 6px); }
.chart-axis {
  display: grid;
  grid-template-columns: minmax(0, 6.2em) minmax(0, 1fr);
  gap: 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}
.chart-axis > span:last-child { display: flex; justify-content: space-between; }
.chart-axis span span { white-space: nowrap; }

/* range (negotiation) chart */
.chart--range .chart-rows { gap: 14px; }
.chart--range .chart-track { height: 24px; }
.range-line {
  position: absolute;
  top: 10px;
  left: var(--lo);
  width: calc(var(--hi) - var(--lo));
  height: 4px;
  border-radius: 2px;
  background: var(--range);
}
.range-typ, .range-tq {
  position: absolute;
  border-radius: 1px;
  transform: translateX(-50%);
}
.range-typ { top: 2px; left: var(--typ); width: 4px; height: 20px; background: var(--ink); }
.range-tq { top: 4px; left: var(--tq); width: 3px; height: 16px; background: var(--green); }
.range-you {
  position: absolute;
  top: 6px;
  left: var(--you);
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--neg);
  box-shadow: 0 0 0 1px var(--neg);
  transform: translateX(-50%);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
}
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.key { display: inline-block; flex: none; }
.key--neg { width: 12px; height: 12px; border-radius: 3px; background: var(--neg); }
.key--pos { width: 12px; height: 12px; border-radius: 3px; background: var(--pos); }
.key--range { width: 18px; height: 4px; border-radius: 2px; background: var(--range); }
.key--typ { width: 4px; height: 14px; border-radius: 1px; background: var(--ink); }
.key--tq { width: 3px; height: 12px; border-radius: 1px; background: var(--green); }
.key--you { width: 11px; height: 11px; border: 2px solid var(--white); border-radius: 50%; background: var(--neg); box-shadow: 0 0 0 1px var(--neg); }

@media (max-width: 560px) {
  .chart-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chart-label { text-align: left; }
  .chart-label small { display: inline; }
  .chart--diverging .chart-row { grid-template-columns: minmax(0, 4.6em) minmax(0, 1fr); gap: 8px; }
  .chart--diverging .chart-label { text-align: right; }
  .chart-axis { grid-template-columns: minmax(0, 4.6em) minmax(0, 1fr); gap: 8px; }
  .chart-rows { gap: 11px; }
}
@media (max-width: 360px) {
  .chart--diverging .bar { width: calc(var(--w) * 0.75); }
  .chart--diverging .bar-value--neg { right: calc(50% + var(--w) * 0.75 + 4px); }
  .chart--diverging .bar-value--pos { left: calc(50% + var(--w) * 0.75 + 4px); }
  .chart-axis span span:nth-child(2) { display: none; }
}

/* ---------- figures (sample exhibits on the site) ---------- */

.exhibit {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--cream) 0%, #f4f3ec 100%);
}
.exhibit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.exhibit-head h3, .exhibit-head h4 { margin: 0; font: 600 1.12rem/1.25 var(--serif); color: var(--ink); }
.exhibit-panel {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(70, 84, 76, 0.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--sh-1);
}
.exhibit figcaption, .exhibit .caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.exhibit figcaption strong { color: var(--ink-strong); }

/* ---------- tables ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.table-wrap:focus-visible { outline-offset: 2px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
caption {
  padding: 14px 16px 6px;
  caption-side: top;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}
th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  vertical-align: bottom;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: #fbfaf7; }
tbody th { color: var(--ink-strong); font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.neg { color: var(--neg); font-weight: 600; }
.pos { color: var(--pos); font-weight: 600; }
.paper table { font-size: 0.74rem; }
.paper th, .paper td { padding: 6px 8px; }
.paper thead th { font-size: 0.66rem; }

.howto { margin: 0 0 10px; color: var(--muted); font-size: 0.82rem; }
.howto b { color: var(--text); }
.scroll-hint { display: none; margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }

/* numeric tables keep their columns and scroll sideways inside their own box on phones,
   with the first column pinned */
.table-wrap table.data-wide { min-width: 700px; }
@media (max-width: 760px) {
  .scroll-hint { display: block; }
  .table-wrap table.data-wide tbody th,
  .table-wrap table.data-wide thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 11.5em;
    box-shadow: 1px 0 0 var(--line);
  }
  .table-wrap table.data-wide tbody th { background: var(--white); }
}

/* text tables become labelled blocks on phones (headers kept for screen readers) */
@media (max-width: 640px) {
  .table-stack thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .table-stack, .table-stack tbody, .table-stack tbody tr, .table-stack tbody th, .table-stack tbody td,
  .table-stack caption { display: block; width: 100%; }
  .table-stack tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack tbody th, .table-stack tbody td { padding: 3px 0; border: 0; text-align: left; white-space: normal; }
  .table-stack tbody th { font-size: 1rem; }
  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* ---------- grids, cards, lists ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  min-width: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s var(--ease);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card--cream { border-color: transparent; background: var(--cream); }
.card--tint { border-color: transparent; background: linear-gradient(160deg, #f8f7f2 0%, #eef3e8 100%); }
.card-index {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
  font: 600 italic 1.05rem/1 var(--serif);
}
.q-card h3 { font-size: 1.22rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > .sticky-col { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split > .sticky-col { position: static; }
}

.check-list, .cross-list { margin: 0 0 1em; padding: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; margin: 0 0 14px; padding-left: 34px; }
.check-list li::before, .cross-list li::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}
.check-list li::before {
  border: 1px solid var(--tint-green-line);
  background-color: var(--tint-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.4' fill='none' stroke='%233d6b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cross-list li::before {
  border: 1px solid var(--line-strong);
  background-color: var(--cream-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7.5 7.5l7 7M14.5 7.5l-7 7' fill='none' stroke='%235a615c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.dot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin: 20px 0 0; padding: 0; list-style: none; }
.dot-list li { position: relative; margin: 0; padding-left: 20px; font-size: 0.98rem; }
.dot-list li::before { content: ""; position: absolute; top: 0.6em; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--pear-gradient); }
@media (max-width: 640px) { .dot-list { grid-template-columns: minmax(0, 1fr); } }

/* feature rows (home: a look inside) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.feature + .feature { margin-top: clamp(64px, 8vw, 112px); }
.feature--flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.feature p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip > :first-child { order: 0; }
}

/* steps */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; margin: 0; padding: 0 0 36px 68px; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: 600 1.1rem/42px var(--serif);
  text-align: center;
  box-shadow: var(--sh-1);
}
.steps > li::after {
  content: "";
  position: absolute;
  top: 52px; bottom: 8px; left: 22px;
  width: 1px;
  background: var(--line-strong);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 8px 0 8px; font-size: 1.24rem; }
.steps p { margin: 0; color: var(--muted); }
.steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps--row > li { padding: 68px 0 0; }
.steps--row > li::after { top: 22px; bottom: auto; left: 56px; right: -16px; width: auto; height: 1px; }
@media (max-width: 1000px) {
  .steps--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps--row > li { padding: 0 0 32px 68px; }
  .steps--row > li::after { top: 52px; bottom: 8px; left: 22px; right: auto; width: 1px; height: auto; }
}

/* definition rows */
.def-list { margin: 0; border-top: 1px solid var(--line); }
.def-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.def-list dt { color: var(--ink-strong); font-weight: 650; }
.def-list dd { margin: 0; color: var(--text); }
.split .def-list > div, .def-list--stacked > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
@media (max-width: 640px) { .def-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* callouts */
.callout {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--white);
}
.callout p:last-child { margin-bottom: 0; }
.callout--cream { background: var(--cream); border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.callout--warn { border-left-color: #b9862a; background: #fffaf0; }

/* owner placeholder (Mike fills these in) */
.placeholder {
  display: inline-block;
  padding: 1px 9px;
  border: 1px dashed #c9a45a;
  border-radius: 8px;
  background: #fffaf0;
  color: #7a5a14;
  font-weight: 600;
}

/* deliverables */
.deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deliverable {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.deliverable-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tint-green-line);
  border-radius: var(--r);
  background: var(--tint-green);
  color: var(--link);
}
.deliverable-icon svg { width: 22px; height: 22px; }
.deliverable h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.deliverable p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .deliverables { grid-template-columns: minmax(0, 1fr); } }

/* CTA panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(201, 224, 143, 0.42) 0%, rgba(201, 224, 143, 0) 60%),
    radial-gradient(50% 120% at 85% 100%, rgba(163, 235, 223, 0.3) 0%, rgba(163, 235, 223, 0) 60%),
    var(--cream);
  color: var(--text);
  isolation: isolate;
}
.cta-panel h2 { margin-bottom: 12px; }
.cta-panel p { margin: 0; max-width: 36em; color: var(--muted); font-size: 1.06rem; }
.cta-mark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  z-index: -1;
  width: 280px;
  height: auto;
  color: rgba(70, 84, 76, 0.06);
}
@media (max-width: 760px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-mark { width: 200px; }
}

/* ---------- report page ---------- */

.toc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px 20px 16px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  font-size: 0.9rem;
}
.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font: 650 0.72rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--muted);
  line-height: 1.35;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--range);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
.toc a:hover { background: var(--cream); color: var(--ink-strong); }
.toc a.is-active { background: var(--tint-green); color: var(--ink-strong); font-weight: 600; }
.toc a.is-active::before { color: var(--link); }
@media (max-width: 1100px) {
  .toc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; }
  .toc li { break-inside: avoid; }
}

.report-section { padding: 0 0 64px; margin: 0 0 64px; border-bottom: 1px solid var(--line); }
.report-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.report-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.sec-no { flex: none; color: var(--green); font: 600 italic 1.05rem/1 var(--serif); }
.report-section-head h2 { margin: 0; font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); }
.report-section > p { max-width: 44em; }
.report-section .exhibit { margin-top: 28px; }

/* ---------- FAQ ---------- */

.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--ink);
  font: 600 1.14rem/1.3 var(--serif);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 13l5 5 5-5' fill='none' stroke='%2346544c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); background-color: var(--cream); }
.faq summary:hover { color: var(--ink-strong); }
.faq-answer { max-width: 46em; padding: 0 0 24px; color: var(--text); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
}
@media (max-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-2);
}
fieldset { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
legend {
  margin-bottom: 18px;
  padding: 0;
  color: var(--ink);
  font: 600 1.3rem/1.25 var(--serif);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label { color: var(--ink-strong); font-size: 0.94rem; font-weight: 600; }
.req { color: var(--neg); font-weight: 600; }
.opt { color: var(--muted); font-size: 0.86rem; font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink-strong);
  font: 400 1rem/1.4 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 128px; resize: vertical; }
select {
  padding-right: 42px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2346544c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(61, 107, 58, 0.28);
}
[aria-invalid="true"] { border-color: var(--neg); background-color: #fffafa; }
.field-error { display: none; margin: 0; color: var(--neg); font-size: 0.86rem; font-weight: 600; }
.field-error.is-shown { display: block; }
.checkbox { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.checkbox label { color: var(--text); font-size: 0.95rem; font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .note { margin: 0; }
#request-form:not([data-ready]) { display: none; }
.no-js .js-only { display: none !important; }

.error-summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--neg);
  border-left-width: 4px;
  border-radius: 0 14px 14px 0;
  background: #fffafa;
}
.error-summary h2 { margin: 0 0 8px; color: var(--neg); font: 650 1.05rem/1.3 var(--sans); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--neg); }

.thanks-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid var(--tint-green-line);
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--link);
}
.thanks h2 { margin-bottom: 12px; }
.preview-note {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed #c9a45a;
  border-radius: var(--r);
  background: #fffaf0;
  color: #6b4e12;
  font-size: 0.88rem;
}
.preview-note a { color: #6b4e12; }

.aside-stack { display: grid; gap: 16px; }
.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.aside-card h2 { margin-bottom: 12px; font-size: 1.2rem; }
.aside-card p, .aside-card li { font-size: 0.95rem; }
.aside-card p:last-child, .aside-card ul:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */

.not-found { text-align: left; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 0;
  padding: 72px 0 36px;
  background: #2f3833;
  color: #c9ccc3;
  font-size: 0.94rem;
}
.site-footer a { color: #eef0ea; text-decoration-color: rgba(238, 240, 234, 0.35); }
.site-footer a:hover { color: var(--white); text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: #e4d369; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 168px; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; margin: 0; }
.site-footer h2 {
  margin-bottom: 16px;
  color: var(--cream);
  font: 650 0.74rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 10px; }
.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 247, 242, 0.14);
  color: #b9bdb3;
  font-size: 0.84rem;
}
.footer-legal p { margin: 0; max-width: 72em; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ---------- motion (only when the visitor hasn't asked for less) ----------
   Content is visible by default; js/site.js adds .motion-ok to <html> and .is-visible
   as each block scrolls into view. Opacity and transform only: no layout shift. */

@media (prefers-reduced-motion: no-preference) {
  .motion-ok .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .motion-ok .reveal.is-visible { opacity: 1; transform: none; }
  .motion-ok .reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .motion-ok .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .motion-ok .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
  .motion-ok .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
  .motion-ok .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
  .motion-ok .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
  .motion-ok .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
  .motion-ok .chart .bar { transform: scaleX(0); transition: transform 0.9s var(--ease); }
  .motion-ok .chart .bar-value, .motion-ok .chart .range-you, .motion-ok .chart .range-typ, .motion-ok .chart .range-tq { opacity: 0; transition: opacity 0.4s ease 0.55s; }
  .motion-ok .chart .range-line { transform: scaleX(0); transform-origin: left center; transition: transform 0.8s var(--ease); }
  .motion-ok .chart.is-visible .bar, .motion-ok .chart.is-visible .range-line { transform: none; }
  .motion-ok .chart.is-visible .bar-value, .motion-ok .chart.is-visible .range-you,
  .motion-ok .chart.is-visible .range-typ, .motion-ok .chart.is-visible .range-tq { opacity: 1; }
  .motion-ok .chart.is-visible .range-typ, .motion-ok .chart.is-visible .range-tq, .motion-ok .chart.is-visible .range-you { transform: translateX(-50%); }
  .card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- print ---------- */

@media print {
  @page { margin: 16mm 14mm; }
  .site-header, .site-footer, .cta-panel, .skip-link, .toc, .nav-toggle, .hero-glow, .scroll-hint, .btn-row { display: none !important; }
  html, body { background: #fff !important; }
  body { color: #222; font-size: 10.5pt; line-height: 1.45; }
  h1 { font-size: 26pt; }
  h2 { font-size: 17pt; }
  h3 { font-size: 13pt; }
  .hero, .page-hero { margin-top: 0; padding: 0 0 12pt; background: none; border: 0; }
  .section, .section--cream { padding: 14pt 0; background: none; }
  .hero-grid, .split, .split--even, .feature, .toc-layout, .form-layout { display: block; }
  .hero-visual { padding: 0; }
  .hero-visual .paper--back { display: none; }
  .paper, .exhibit, .card, .exhibit-panel, .form-card, .aside-card { box-shadow: none !important; background: #fff !important; break-inside: avoid; }
  .exhibit, .table-wrap, figure, tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .table-wrap table.data-wide { min-width: 0; }
  .accent { -webkit-text-fill-color: currentColor; background: none; color: #46544c; }
  .bar, .range-line, .range-typ, .range-tq, .range-you, .key, .sample-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal, .reveal-stagger > *, .chart .bar, .chart .bar-value, .chart .range-line { opacity: 1 !important; transform: none !important; }
  .chart .range-typ, .chart .range-tq, .chart .range-you { opacity: 1 !important; }
  a { color: inherit; text-decoration: none; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) > .faq-answer { display: block; }
}

/* ---------- utilities ---------- */
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.card--link { display: block; color: inherit; }
.card--link h3 { color: var(--ink); }
.card--link:hover h3 { color: var(--ink-strong); }
.exhibit-head .howto { margin: 0; }

/* header button keeps button colours (nav link styles would otherwise win) */
.site-nav a.btn { padding: 9px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-weight: 600; }
.site-nav a.btn:hover, .site-nav a.btn[aria-current="page"] { background: var(--ink-strong); color: var(--cream); }

/* charts adapt to the width of their own panel, not just the window */
.exhibit-panel, .paper { container-type: inline-size; }
@container (max-width: 600px) {
  .chart--range .chart-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chart--range .chart-label { text-align: left; }
  .chart--range .chart-label small { display: inline; }
}
@container (max-width: 460px) {
  .chart:not(.chart--diverging) .chart-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chart:not(.chart--diverging) .chart-label { text-align: left; }
  .chart:not(.chart--diverging) .chart-label small { display: inline; }
}
.section--cta { padding-bottom: clamp(64px, 7vw, 96px); }

/* wide numeric tables: compact cells, a readable first column */
table.data-wide { font-size: 0.86rem; }
table.data-wide th, table.data-wide td { padding: 10px 11px; }
table.data-wide tbody th { min-width: 12.5em; }
table.data-wide thead th { font-size: 0.72rem; }
thead th.num { white-space: normal; }

@media print {
  .exhibit, .report-section { break-inside: auto; }
  .exhibit-panel, .chart, .paper, tr, .callout, .stat { break-inside: avoid; }
  .exhibit-head, h2, h3 { break-after: avoid; }
  table, table.data-wide { font-size: 8.5pt; }
  th, td, table.data-wide th, table.data-wide td { padding: 5px 6px; }
  table.data-wide tbody th, .table-wrap table.data-wide tbody th { min-width: 0; position: static; box-shadow: none; }
  .num { white-space: normal; }
}

/* ---------- refinements after the 2026-11-28 design review ---------- */

/* flipped feature rows keep the exhibit in the wide column */
@media (min-width: 1001px) {
  .feature--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* the back sheet in the hero reads as a clean second page */
.hero-visual .paper--back .chart { visibility: hidden; }

/* table titles sit above the scroll box, so they never get cut off on phones */
.table-title { margin: 0 0 8px; color: var(--muted); font-size: 0.84rem; }
table.data-wide td:nth-child(2) { white-space: nowrap; }
@media (min-width: 641px) {
  .table-stack tbody th { min-width: 11em; }
}

/* the two halves of an even split start their lists at the same height */
.split--even h2 { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.5rem); }

/* FAQ lines up with the page title instead of centring */
.faq.wrap--narrow { max-width: var(--wrap); }
.faq > .faq-group { max-width: 820px; }
.faq summary { text-wrap: balance; }

/* phones: hero buttons share one width */
@media (max-width: 480px) {
  .hero .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero .btn-row .btn--secondary { justify-content: center; }
}

/* report contents: a disclosure that is open on desktop, closed by default on small screens */
.toc summary {
  margin: 0 0 10px;
  color: var(--muted);
  font: 650 0.72rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
  cursor: default;
}
.toc summary::-webkit-details-marker { display: none; }
.toc a { text-wrap: balance; }
@media (max-width: 1100px) {
  .toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    cursor: pointer;
  }
  .toc summary::after {
    content: "";
    width: 26px;
    height: 26px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 11.5l4 4 4-4' fill='none' stroke='%2346544c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat;
    transition: transform 0.25s var(--ease);
  }
  .toc[open] summary::after { transform: rotate(180deg); }
  .toc[open] summary { margin-bottom: 10px; }
  .toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }

/* "Also in the report": sections 08-12 as a card grid */
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.report-card--wide { grid-column: 1 / -1; }
.report-card .report-section-head { margin-bottom: 10px; }
.report-card .report-section-head h2 { font-size: 1.3rem; }
.report-card p { color: var(--muted); font-size: 0.98rem; }
.report-card .dot-list { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 8px; }
.report-card .dot-list li { font-size: 0.94rem; }
.report-card--wide .dot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .report-card--wide .dot-list { grid-template-columns: minmax(0, 1fr); }
}
.also-title { margin: 0 0 20px; font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); }

/* 404 page cards say they are links */
.card--link .text-link { margin-top: 14px; }

/* ---------- booking a call (Calendly) ---------- */
.cta-actions { justify-content: flex-end; }
@media (max-width: 760px) { .cta-actions { justify-content: flex-start; } }

.book-section { padding-top: clamp(56px, 7vw, 88px); }
.book-panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(201, 224, 143, 0.28) 0%, rgba(201, 224, 143, 0) 60%),
    var(--cream);
}
.book-intro { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 760px; }
.book-intro h2 { margin-bottom: 10px; }
.book-intro p.muted { margin: 0; font-size: 1.06rem; }
.book-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--tint-green-line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--link);
}
.book-icon svg { width: 26px; height: 26px; }
.book-actions { margin: 28px 0 0 76px; display: grid; gap: 14px; }
.book-actions .preview-note { margin: 0; }
.book-frame {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.book-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 640px) {
  .book-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .book-actions { margin-left: 0; }
  .book-actions .btn-row .btn { flex: 1 1 100%; }
  .book-frame iframe { height: 1000px; }
}
@media print { .book-section { display: none !important; } }
