/* Baby Elephant — levels: refined system + premium product marketing */

:root {
  --bg: #f4f7fc;
  --bg-subtle: #e9eef6;
  --surface: #ffffff;
  --text: #0b0d12;
  --text-body: #3a4352;
  --text-muted: #5c6678;
  --text-light: #8b96a8;
  --line: #dfe5ef;
  --line-strong: #c5cedc;
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --accent-soft: #e6f0ff;
  --accent-glow: rgba(0, 102, 255, 0.22);
  --accent-gradient: linear-gradient(135deg, #0066ff 0%, #00a2ff 50%, #0066ff 100%);
  --warn: #e07a2f;
  --link: #0066ff;
  --link-hover: #0052cc;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --width: min(76rem, 100% - 2.5rem);
  --text-width: 38rem;
  --text-wide: 48rem;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow: 0 2px 8px rgba(11, 18, 32, 0.04), 0 12px 32px rgba(11, 18, 32, 0.06);
  --shadow-hover: 0 4px 12px rgba(11, 18, 32, 0.06), 0 24px 48px rgba(11, 18, 32, 0.1);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --space-section: clamp(4rem, 8vw, 6rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-logo-height: clamp(2.75rem, 6vw, 3.35rem);
  --brand-logo-nudge-y: -0.14rem;
  --brand-logo-inset-left: 0.85rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 18, 32, 0.045) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

h1 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.625rem, 5.8vw, 4rem);
  margin: 0 0 1.25rem;
  max-width: 11.5em;
}

.headline-accent {
  color: var(--accent);
}

h2,
.chapter-title,
.section-title {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
  max-width: 20em;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--surface);
}

.skip-link:focus {
  left: 0;
}

.hidden,
[hidden] {
  display: none !important;
}

/* Motion — sections show immediately (no scroll reveal) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .preview-slide {
    transition: none !important;
  }

  .headline-accent {
    animation: none;
    color: var(--accent);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .masthead-orb {
    animation: none !important;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem 0;
  pointer-events: none;
}

.header-shell {
  pointer-events: auto;
  max-width: calc(var(--width) + 1rem);
  margin: 0 auto;
  padding: 0.5rem 0.85rem;
  isolation: isolate;
  background-color: rgba(18, 26, 44, 0.78);
  background-image:
    linear-gradient(
      180deg,
      rgba(120, 175, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 18%,
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(
      180deg,
      rgba(32, 48, 78, 0.55) 0%,
      rgba(14, 20, 36, 0.92) 100%
    );
  -webkit-backdrop-filter: blur(44px) saturate(2.15);
  backdrop-filter: blur(44px) saturate(2.15);
  border: 1px solid rgba(160, 195, 255, 0.22);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 10px 36px rgba(6, 12, 28, 0.38);
  transition:
    box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-shell {
    background-color: rgba(14, 20, 36, 0.96);
    background-image: linear-gradient(
      180deg,
      rgba(55, 85, 130, 0.45) 0%,
      rgba(14, 20, 36, 0.96) 100%
    );
  }
}

.site-header.is-scrolled .header-shell {
  background-color: rgba(14, 22, 40, 0.86);
  background-image:
    linear-gradient(
      180deg,
      rgba(130, 185, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.05) 16%,
      rgba(255, 255, 255, 0) 40%
    ),
    linear-gradient(180deg, rgba(28, 42, 68, 0.65) 0%, rgba(12, 18, 34, 0.94) 100%);
  border-color: rgba(170, 205, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 14px 44px rgba(6, 12, 28, 0.42);
}

.header-bar {
  max-width: none;
  margin: 0;
  padding: 0.35rem 0.55rem 0.35rem var(--brand-logo-inset-left);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  text-decoration: none;
  color: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  max-width: min(15rem, 58vw);
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
  transform: translateY(var(--brand-logo-nudge-y));
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.45);
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
  line-height: 1.2;
  gap: 0;
}

.brand-name {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-descriptor {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-descriptor::before {
  content: "·";
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
}

/* Legacy aliases (methodology/start pages) */
.brand-text {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.brand-tag::before {
  content: "·";
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.42);
}

.header-nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.header-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.125rem;
  min-width: 0;
}

.header-nav-links a {
  white-space: nowrap;
}

.header-nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .brand-descriptor,
  .brand-tag {
    display: none;
  }

  .header-nav-links {
    gap: 0.65rem 0.85rem;
  }

  .brand-name {
    font-size: 1rem;
  }
}

.header-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: #fff;
}

.header-nav .nav-emphasis {
  color: var(--accent);
}

.btn-nav {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8125rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.masthead-outcomes {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.masthead-outcomes li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-body);
}

.masthead-outcomes li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--text-light);
  font-weight: 500;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.stat--highlight dd {
  color: var(--text);
  font-weight: 600;
}

.preview-card--report {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.preview-callout {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-body);
  padding: 0.75rem 0;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

.preview-callout--risk {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
}

.preview-card--elevated {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: none;
  transition: box-shadow 0.2s var(--ease-out);
}

@media (min-width: 960px) {
  .masthead-panel:hover .preview-card--elevated {
    transform: none;
    box-shadow: var(--shadow-hover);
  }
}

.preview-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.report-mock-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.report-stage-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.score-bars {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-track {
  display: block;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.score-fill--warn {
  background: #e07a2f;
}

.preview-cta {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.check-promo {
  background: var(--surface);
  color: var(--text);
  padding: 2.75rem 1.25rem;
  border-block: 1px solid var(--line);
}

.check-promo-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .check-promo-inner {
    grid-template-columns: 1.4fr auto;
    gap: 2.5rem;
  }
}

.check-promo h2 {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  max-width: 22em;
}

.check-promo p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 36rem;
}

.check-promo-action {
  text-align: left;
}

.check-promo .btn-accent {
  box-shadow: none;
}

.check-promo .btn-accent:hover {
  box-shadow: none;
}

.check-promo-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.leader-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
}

.leader-strip-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.leader-strip-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.leader-strip-head p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
}

.principles-strip {
  padding: 2.5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.principles-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .principles-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.principle-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.principle-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.principle-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

.scenarios-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0 0 1rem;
  font-style: italic;
}

@media (min-width: 900px) {
  .leader-strip-inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.leader-quote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid var(--accent);
}

.leader-quote p {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.leader-quote footer {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.leader-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.leader-reasons li {
  font-size: 0.9375rem;
  color: var(--text-body);
  padding: 0.65rem 0.85rem;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.check-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-cta-sub {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(10, 20, 40, 0.08);
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

body.has-sticky-cta {
  padding-bottom: 4.5rem;
}

body.has-sticky-cta .page-scroll-rail {
  bottom: 5.25rem;
  top: auto;
  transform: none;
}

/* Fixed vertical page navigation (landing) */
.page-scroll-rail {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 88;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background-color: rgba(18, 26, 44, 0.82);
  background-image: linear-gradient(
    180deg,
    rgba(120, 175, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    rgba(255, 255, 255, 0) 45%
  );
  -webkit-backdrop-filter: blur(32px) saturate(1.9);
  backdrop-filter: blur(32px) saturate(1.9);
  border: 1px solid rgba(160, 195, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 28px rgba(6, 12, 28, 0.28);
}

.page-scroll-rail[hidden] {
  display: none;
}

.page-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.page-scroll-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-scroll-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-scroll-icon {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 719px) {
  .page-scroll-rail {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .page-scroll-btn {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .page-scroll-rail {
    right: 0.5rem;
  }
}

/* Masthead */
.masthead {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.masthead-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--surface);
}

.masthead-orb,
.masthead-grid-lines {
  display: none;
}

.masthead-grid {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .masthead-grid {
    grid-template-columns: 1fr min(22rem, 38%);
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }
}

.masthead-kicker {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.masthead-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.masthead-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 1rem 0 0;
  width: 100%;
}

.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.credibility-strip li:not(:last-child)::after {
  content: "·";
  margin-left: 0.65rem;
  font-weight: 400;
  color: var(--text-light);
}

.credibility-strip a {
  color: var(--link);
  text-decoration: none;
}

.credibility-strip a:hover {
  text-decoration: underline;
}

.credibility-strip-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 34rem;
}

.fee-band-card {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fee-band-summary {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.fee-band-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.team-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.team-card-avatar {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.team-card-photo {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.team-card-name {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.team-card-role {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.team-card-bio {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.team-card-link {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

/* Document-style pages (methodology, privacy, about, sample outline) */
.doc-page {
  padding: clamp(5.5rem, 12vw, 6.5rem) 1.25rem 4rem;
}

.doc-inner {
  max-width: var(--width);
  margin: 0 auto;
}

.doc-page h1,
.doc-page .chapter-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 20em;
  margin: 0 0 1rem;
}

.doc-lede,
.doc-page > .doc-inner > .prose-wide:first-of-type {
  max-width: var(--text-wide);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 0;
}

.doc-section {
  margin-top: 2.5rem;
}

.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.doc-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.doc-section > p {
  max-width: var(--text-wide);
  margin: 0 0 1rem;
}

.method-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  max-width: var(--text-wide);
}

.method-list li + li {
  margin-top: 0.45rem;
}

.doc-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  max-width: var(--text-wide);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.doc-cta .doc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.doc-page .offer-deliverables {
  max-width: var(--text-wide);
}

/* Campaign landing (start.html) */
.start-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.start-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vw, 6.5rem) max(1rem, env(safe-area-inset-right, 0))
    max(3rem, env(safe-area-inset-bottom, 0)) max(1rem, env(safe-area-inset-left, 0));
}

.start-main h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 18em;
  margin: 0 0 1rem;
}

.start-inner {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.start-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.start-lead {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.start-bullets {
  margin: 0 0 2rem;
  padding-left: 1.2rem;
  color: var(--text-body);
}

.start-bullets li + li {
  margin-top: 0.4rem;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.start-actions .btn {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .start-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .start-actions .btn {
    width: auto;
  }
}

.start-meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.start-foot {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

/* Carry-forward utility (check → Assessment handoff) */
.cf-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  max-width: var(--text-wide);
}

.cf-brief pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-body);
}

.cf-brief dl {
  display: grid;
  gap: 0.75rem;
}

.cf-brief dt {
  font-weight: 600;
  color: var(--text);
}

.cf-brief dd {
  margin: 0.15rem 0 0;
  color: var(--text-body);
}

.cf-file-input {
  margin-top: 0.35rem;
}

.cf-paste {
  width: 100%;
  margin-top: 0.35rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.cf-actions {
  margin-top: 0.75rem;
}

.cf-links {
  margin-top: 1.5rem;
  max-width: var(--text-wide);
}

.doc-page .team-grid {
  max-width: var(--text-wide);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-gradient);
  background-size: 150% auto;
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-accent:hover {
  background-position: 100% center;
  color: #fff !important;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn:disabled,
.btn.is-loading {
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.btn-accent:disabled,
.btn-accent.is-loading {
  background: #4a5568;
  background-image: none;
  color: #fff !important;
  box-shadow: none;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-accent.is-loading {
    animation: btn-loading-pulse 1.1s ease-in-out infinite;
  }
}

@keyframes btn-loading-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

.btn-ghost {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--line-strong);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
}

.masthead-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.preview-progress {
  flex: 1;
  max-width: 6rem;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.preview-progress-fill {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.preview-slides {
  position: relative;
  min-height: 5.5rem;
}

.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.preview-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
}

.preview-stage {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.preview-quote {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

.preview-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.preview-link:hover {
  color: var(--accent-hover);
}

.offer-ladder {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.offer-ladder li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.step-num {
  display: inline-block;
  min-width: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
  flex-shrink: 0;
}

.stats-row {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.stat {
  margin: 0;
}

.stat dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.stat dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* Sections */
.chapter {
  border-bottom: 1px solid var(--line);
}

.chapter--alt {
  background: var(--bg-subtle);
}

.chapter-inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: var(--space-section) 1.25rem;
}

.chapter-head {
  margin-bottom: 2.5rem;
  max-width: var(--text-wide);
}

.chapter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.chapter-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0.5rem 0 0;
  max-width: var(--text-wide);
}

.prose {
  max-width: var(--text-width);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose-wide {
  max-width: var(--text-wide);
}

.pullquote {
  margin: 0 0 2rem;
  padding: 0;
  border: none;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 17rem;
  }

  .split-aside {
    padding-left: 1.75rem;
    border-left: 1px solid var(--line);
  }
}

.aside-box {
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.aside-box:last-child {
  margin-bottom: 0;
}

.aside-box h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 0.45rem;
}

.aside-box p,
.aside-box ul {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.aside-box ul {
  padding-left: 1.1rem;
}

/* Gap bands */
.gap-bands {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .gap-bands {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.gap-band {
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.insight-card .gap-band-label {
  margin-bottom: 0.35rem;
}

.insight-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.insight-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.gap-band-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.gap-band-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.gap-band p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Scenarios scroll */
.scenarios-scroll {
  margin-top: 2.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 0 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scenarios {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: 1rem;
  min-width: min-content;
}

.scenarios li {
  flex: 0 0 min(18rem, 78vw);
  scroll-snap-align: start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scenarios .who {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.scenarios .story {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .scenarios-scroll {
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
  }

  .scenarios li {
    flex: none;
  }

  .scenarios li:nth-child(4),
  .scenarios li:nth-child(5) {
    grid-column: span 1;
  }
}

.sector-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  column-gap: 2rem;
}

@media (min-width: 640px) {
  .sector-list {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .sector-list {
    columns: 3;
  }
}

.sector-list li {
  break-inside: avoid;
  padding: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sector-list strong {
  font-weight: 600;
  color: var(--text);
}

.split--tight {
  margin-top: 2.5rem;
}

/* Path stepper */
.path-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-step {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.path-step span {
  padding: 0.45rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.path-step--current span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.path-step:not(:last-child)::after {
  content: "→";
  margin: 0 0.35rem;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Service cards */
.service-cards {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card--highlight {
  border-color: rgba(0, 112, 243, 0.35);
  background: linear-gradient(160deg, var(--surface) 30%, var(--accent-soft) 100%);
}

.card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0 0 0.75rem;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.services-list-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 1rem;
}

.services--list .service:first-of-type {
  border-top: 1px solid var(--line);
}

.service {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.service-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.service-desc {
  max-width: var(--text-wide);
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.service-details {
  display: grid;
  gap: 1.5rem;
  max-width: var(--text-wide);
}

@media (min-width: 768px) {
  .service-details {
    grid-template-columns: 1fr 1fr;
  }
}

.service-details ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-foot {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.subsection-title {
  margin-top: 2.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data th,
table.data td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-subtle);
}

table.data td {
  color: var(--text-muted);
}

table.data td:first-child {
  font-weight: 600;
  color: var(--text-body);
  width: 26%;
}

.timeline {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 0 0 1rem;
}

.timeline strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
}

.timeline span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Check section */
.check-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .check-layout {
    grid-template-columns: 1fr 20rem;
  }
}

.check-progress-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-segments {
  flex: 1;
  display: flex;
  gap: 3px;
}

.check-segments span {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
}

.check-segments span:nth-child(-n + 2) {
  background: var(--accent);
}

.check-deliverables {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-deliverables li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.check-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.check-cta {
  margin-top: 1.5rem;
}

.sample-result {
  background: var(--surface);
  padding: 1.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sample-result--live {
  border-color: rgba(0, 112, 243, 0.2);
}

.sample-result .label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.preview-slides--compact {
  min-height: 7rem;
}

.sample-result h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.sample-finding {
  margin: 0;
}

.sample-finding strong {
  color: var(--text);
}

.proof-deliverable-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.proof-deliverable-list li {
  padding-left: 0.15rem;
}

.proof-deliverable-list strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.proof-deliverable-list span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.proof-composite-card {
  margin-top: 0.75rem;
}

.proof-deliverable-meta {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.proof-deliverable-foot {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}

/* FAQ */
.faq {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--text-wide);
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 1rem;
}

.faq summary {
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Closing */
.closing--light {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 70%);
  border-bottom: none;
}

.closing--light .chapter-title,
.closing--light h2 {
  color: var(--text);
}

.closing--light .chapter-intro {
  color: var(--text-muted);
}

.closing--light .chapter-label {
  color: var(--accent);
}

.closing-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .closing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.closing-box {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.closing-box h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.closing-box p {
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  max-width: var(--width);
  margin: 0 auto;
  line-height: 1.6;
  background: var(--surface);
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.window-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.window-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.score-fill--animate {
  transition: width 1.1s var(--ease-out);
}

.score-fill.is-drawn {
  width: var(--fill-width, 50%) !important;
}

.offer-ladder-panel {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.stat-card {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.chapter--situation {
  position: relative;
}

.chapter-glow,
.check-promo-texture {
  display: none;
}

.chapter-inner {
  position: relative;
}

.check-shell {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .check-shell {
    padding: 2.5rem;
  }
}

.gap-band {
  /* static cards — no hover lift */
}

.path-stepper {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding-right: 2rem;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.closing-box {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  border: 1px solid rgba(0, 102, 255, 0.12);
}

.closing-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0));
}

@media (max-width: 959px) {
  .header-shell {
    border-radius: var(--radius-lg);
  }

  .site-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ——— Section polish (formerly flat areas) ——— */

.chapter-head--lined::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line) 35%, transparent 100%);
}

.chapter--clients {
  background:
    linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(0, 102, 255, 0.05), transparent 60%);
}

.chapter--approach {
  background: var(--surface);
}

.chapter--faq {
  background:
    var(--bg-subtle)
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 59h60V0' fill='none' stroke='%230066ff' stroke-opacity='0.04'/%3E%3C/svg%3E");
}

.insight-stack {
  display: grid;
  gap: 1rem;
}

.insight-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.insight-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.scenario-card {
  position: relative;
}

.sector-panel {
  margin-bottom: 2.5rem;
}

.sector-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (min-width: 640px) {
  .sector-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .sector-directory {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-directory li {
  padding: 1.2rem 1.35rem;
}

.sector-directory li h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sector-directory li p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (min-width: 640px) and (max-width: 959px) {
  .sector-directory li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .sector-directory li:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .sector-directory li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .sector-directory li:nth-child(3n) {
    border-right: none;
  }

  .sector-directory li:nth-child(n + 7) {
    border-bottom: none;
  }
}

@media (max-width: 639px) {
  .sector-directory li + li {
    border-top: 1px solid var(--line);
  }
}

.fit-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fit-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.fit-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 0.35rem;
}

.fit-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.fit-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.delivery-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.delivery-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease-out);
}

.delivery-panel[open] {
  box-shadow: var(--shadow);
  border-color: rgba(0, 102, 255, 0.2);
}

.delivery-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-subtle);
}

.delivery-panel summary::-webkit-details-marker {
  display: none;
}

.delivery-panel summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}

.delivery-panel[open] summary::after {
  transform: rotate(45deg);
}

.delivery-num {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
  min-width: 1.5rem;
  flex-shrink: 0;
}

.delivery-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.delivery-summary strong {
  font-size: 1rem;
  color: var(--text);
}

.delivery-summary em {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.delivery-body {
  padding: 0 1.35rem 1.35rem 4.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .delivery-body {
    padding-left: 1.35rem;
  }
}

.compare-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(5rem, 0.9fr) 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row > span {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
}

.compare-row > span:last-child {
  border-right: none;
}

.compare-row--head {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text);
}

.compare-col-title--check {
  color: var(--accent);
}

.compare-dim {
  font-weight: 600;
  color: var(--text-body) !important;
  background: var(--bg-subtle);
}

.compare-row--foot > span:not(.compare-dim) {
  font-weight: 500;
  color: var(--text-body);
}

.deliverable-bento {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .deliverable-bento {
    grid-template-columns: 1fr 1fr;
  }
}

.deliverable-bento li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.deliverable-bento li:last-child {
  border-bottom: none;
}

.d-num {
  flex-shrink: 0;
  min-width: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
}

.approach-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .approach-layout {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.milestone-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .milestone-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.milestone-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease-out);
}

.milestone-card:hover {
  box-shadow: var(--shadow);
}

.milestone-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.milestone-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.4rem;
}

.milestone-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.approach-rail {
  display: grid;
  gap: 1rem;
}

.rail-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--surface) 100%);
}

.rail-card h4 {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin: 0 0 0.75rem;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid var(--accent-soft);
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.phase-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-steps li {
  position: relative;
  padding: 0 0 1.1rem 1.5rem;
}

.phase-steps li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.phase-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.phase-steps strong {
  display: block;
  font-size: 0.8125rem;
}

.phase-steps span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.faq--grid {
  display: grid;
  gap: 0.75rem;
  max-width: none;
}

@media (min-width: 768px) {
  .faq--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq--grid details {
  height: fit-content;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq--grid details[open] {
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: var(--shadow);
}

.leader-strip--rich {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.leader-quote .quote-mark {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.35;
  display: block;
  margin-bottom: -0.5rem;
}

.leader-quote p {
  font-size: 1.5rem;
}

.leader-reasons li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: start;
  gap: 0.5rem;
}

.leader-reasons li > strong:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.footer-cta {
  padding: 2.5rem 1.25rem;
  background: var(--text);
  color: #fff;
}

.footer-cta-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-cta-text {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cta-text strong {
  color: #fff;
}

@media (max-width: 640px) {
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row > span {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .compare-row--head {
    display: none;
  }

  .compare-dim {
    background: var(--accent-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* —— Why integrate (case for action) —— */

.chapter--case {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.case-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.case-block--warn {
  /* legacy hook — no special warn styling */
}

.case-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-stack,
.case-quad,
.case-trio {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-stack li {
  padding: 1.35rem 1.5rem;
}

.case-stack li + li {
  border-top: 1px solid var(--line);
}

.case-stack h4,
.case-quad h4,
.case-trio h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.case-stack p,
.case-quad p,
.case-trio p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

.case-quad {
  display: grid;
}

@media (min-width: 640px) {
  .case-quad {
    grid-template-columns: 1fr 1fr;
  }
}

.case-quad li {
  padding: 1.35rem 1.5rem;
}

@media (min-width: 640px) {
  .case-quad li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .case-quad li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 639px) {
  .case-quad li + li {
    border-top: 1px solid var(--line);
  }
}

.case-trio {
  display: grid;
}

@media (min-width: 900px) {
  .case-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-trio li {
  padding: 1.35rem 1.5rem;
}

@media (min-width: 900px) {
  .case-trio li + li {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 899px) {
  .case-trio li + li {
    border-top: 1px solid var(--line);
  }
}

.case-subhead {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.case-lead {
  max-width: var(--text-wide);
  margin: 0 0 1.25rem;
  color: var(--text-body);
}

.case-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: var(--text-wide);
}

.outcome-timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.outcome-timeline-body {
  display: grid;
}

@media (min-width: 768px) {
  .outcome-timeline-body {
    grid-template-columns: 1fr 1fr;
  }
}

.outcome-phase {
  padding: 1.5rem 1.65rem 1.75rem;
}

@media (min-width: 768px) {
  .outcome-phase + .outcome-phase {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .outcome-phase + .outcome-phase {
    border-top: 1px solid var(--line);
  }
}

.outcome-phase-head {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.outcome-phase-when {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.outcome-phase-title {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outcome-list li {
  position: relative;
  padding: 0 0 0 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

.outcome-list li + li {
  margin-top: 0.65rem;
}

.outcome-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: var(--text-light);
}

.case-cta {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.65rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.case-cta.case-panel {
  box-shadow: var(--shadow);
}

.case-cta h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.case-cta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.case-cta .btn-accent {
  flex-shrink: 0;
}

.case-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.regional-trust {
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--line);
}

.regional-trust-inner {
  max-width: var(--width);
  margin: 0 auto;
}

.regional-trust-kicker {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.regional-trust-lead {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
}

.regional-trust-cta {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.methodology-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .methodology-bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.methodology-tile {
  padding: 1.25rem 1.35rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.methodology-tile--wide {
  grid-column: 1 / -1;
}

.methodology-tile h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.methodology-tile p {
  margin: 0;
  font-size: 0.9375rem;
}

.methodology-links {
  margin-top: 1.25rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.header-nav .btn-ghost.btn-nav {
  color: var(--text-body);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
}

.header-nav .btn-ghost.btn-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ——— Mobile & touch ——— */

.header-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 959px) {
  .header-menu-btn {
    display: inline-flex;
  }

  .header-bar {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .site-header.is-menu-open .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1 1 100%;
    order: 3;
    gap: 0.65rem;
    padding: 0.75rem 0.25rem 0.35rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .header-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .header-nav-links a {
    padding: 0.7rem 0.5rem;
    white-space: normal;
    border-radius: 10px;
  }

  .header-nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .header-nav-actions {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }

  .header-nav-actions .btn-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
    align-items: center;
  }

  .header-nav--flat {
    gap: 0.15rem;
  }

  .header-nav--flat > a {
    display: block;
    padding: 0.7rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
  }

  .header-nav--flat > a:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .brand-descriptor {
    display: none;
  }

  .site-header {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0));
  }
}

@media (max-width: 639px) {
  :root {
    --width: min(76rem, 100% - 1.25rem);
    --space-section: clamp(2.75rem, 9vw, 4rem);
  }

  h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.625rem);
    line-height: 1.08;
  }

  h2,
  .chapter-title {
    max-width: none;
  }

  .masthead-grid {
    padding: 2.25rem 0.75rem 2rem;
    gap: 2rem;
  }

  .masthead-kicker {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .masthead-lead {
    font-size: 1rem;
    margin-bottom: 1.1rem;
  }

  .masthead-lead + .masthead-lead {
    margin-bottom: 1.25rem;
  }

  .masthead-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .masthead-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chapter-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .leader-strip,
  .principles-strip,
  .regional-trust {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stats-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .path-stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-right: -0.25rem;
  }

  .path-step {
    flex-shrink: 0;
  }

  .case-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .case-cta .btn-accent {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .case-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .footer-cta-inner .btn {
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sticky-cta {
    padding-left: max(1rem, env(safe-area-inset-left, 0));
    padding-right: max(1rem, env(safe-area-inset-right, 0));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0));
  }

  body.has-sticky-cta {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
  }

  body.has-sticky-cta .page-scroll-rail {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }

  .page-scroll-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .delivery-panel summary {
    padding: 1rem;
    gap: 0.75rem;
    min-height: 3rem;
  }

  .faq summary {
    padding: 1rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .compare-row:not(.compare-row--head):not(.compare-row--foot) > span:nth-child(2)::before {
    content: "Free check · ";
    font-weight: 600;
    color: var(--accent);
  }

  .compare-row:not(.compare-row--head):not(.compare-row--foot) > span:nth-child(3)::before {
    content: "Assessment · ";
    font-weight: 600;
    color: var(--text);
  }
}

@media (max-width: 380px) {
  .page-scroll-rail {
    right: max(0.35rem, env(safe-area-inset-right, 0));
  }
}

/* Assessment offer page (Phase 4A) */
.offer-page {
  width: 100%;
}

.offer-page .chapter-inner {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  box-sizing: border-box;
}

.offer-page .compare-grid {
  width: 100%;
  max-width: 52rem;
}

.offer-page .offer-hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
}

.offer-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 22em;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.offer-lede {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: var(--text-body);
}

.offer-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.offer-meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.offer-section {
  padding-block: clamp(2rem, 5vw, 3rem);
}

.offer-timeline {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 40rem;
  line-height: 1.65;
  color: var(--text-body);
}

.offer-timeline li + li {
  margin-top: 0.65rem;
}

.offer-deliverables {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
  line-height: 1.65;
  color: var(--text-body);
}

.offer-deliverables li + li {
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-full {
    grid-column: 1 / -1;
  }
}

.form-grid label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-grid label.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-body);
  margin-bottom: 0;
}

.form-grid label.checkbox-row input {
  width: auto;
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 0;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-body);
}

.form-grid textarea {
  resize: vertical;
  min-height: 6rem;
}

.offer-form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.offer-form-status {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #b42318;
}

.offer-thanks {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-body);
}

.sticky-cta-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.sticky-cta-text a:hover {
  color: var(--accent-hover);
}

.safeguard-gate-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .safeguard-gate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.safeguard-gate-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.safeguard-gate-card strong {
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.safeguard-gate-card--ok {
  border-color: rgba(0, 102, 255, 0.25);
  background: var(--accent-soft);
}

.safeguard-gate-card--review {
  border-color: rgba(224, 122, 47, 0.35);
  background: rgba(224, 122, 47, 0.08);
}

.safeguard-gate-card--stop {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.06);
}

.offer-process-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 960px) {
  .offer-process-layout {
    grid-template-columns: 1fr 1.35fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

.offer-process-track--paid {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-step-label {
  margin: 1.35rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.process-phase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
}

.process-phase-card {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 102, 255, 0.2);
  background: var(--accent-soft);
  text-align: center;
}

.process-phase-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.process-phase-weeks {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.offer-timeline--weeks li {
  max-width: none;
}

.offer-deliverables-panel {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.offer-deliverables-table {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.offer-deliverables-table td:first-child {
  width: 2.5rem;
  vertical-align: top;
  color: var(--text-muted);
}

.offer-deliverables-table td:nth-child(2) {
  font-weight: 600;
  color: var(--text);
  width: 12rem;
  vertical-align: top;
}

.offer-process-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1.5rem;
}
