/* ── Design Tokens ── */
:root {
  /* Surfaces */
  --color-bg: #0A1F1C;
  --color-bg-deep: #071714;
  --color-surface: #0E2A25;
  --color-surface-elevated: #123B33;
  --color-border: rgba(242, 241, 236, 0.06);
  --color-border-subtle: rgba(242, 241, 236, 0.08);
  --color-border-strong: rgba(242, 241, 236, 0.12);
  --color-border-input: rgba(242, 241, 236, 0.15);
  --color-divider: rgba(242, 241, 236, 0.05);

  /* Text */
  --color-text: #F2F1EC;
  --color-text-primary: rgba(242, 241, 236, 0.92);
  --color-text-heading: rgba(242, 241, 236, 0.78);
  --color-text-body: rgba(242, 241, 236, 0.65);
  --color-text-secondary: rgba(242, 241, 236, 0.5);
  --color-text-muted: rgba(242, 241, 236, 0.4);
  --color-text-faint: rgba(242, 241, 236, 0.3);
  --color-text-ghost: rgba(242, 241, 236, 0.18);

  /* Accent (teal) */
  --color-accent: rgba(31, 184, 166, 0.85);
  --color-accent-bright: #1FB8A6;
  --color-accent-bright-hover: #17A18F;
  --color-accent-hover: rgba(31, 184, 166, 0.5);
  --color-accent-subtle: rgba(31, 184, 166, 0.3);
  --color-accent-bg: rgba(31, 184, 166, 0.15);
  --color-accent-bg-hover: rgba(31, 184, 166, 0.22);
  --color-accent-bg-faint: rgba(31, 184, 166, 0.08);
  --color-accent-bg-tint: rgba(31, 184, 166, 0.1);
  --color-accent-link: rgba(31, 184, 166, 0.7);
  --color-accent-focus: rgba(31, 184, 166, 0.6);

  /* Accent (gold) */
  --color-gold: #FCBC32;
  --color-gold-soft: rgba(252, 188, 50, 0.7);

  /* Semantic */
  --color-error: rgba(252, 188, 50, 0.7);
  --color-error-border: rgba(252, 188, 50, 0.5);
  --color-disabled: rgba(242, 241, 236, 0.15);

  /* Elevation */
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --input-bg: rgba(242, 241, 236, 0.06);
  --input-bg-focus: rgba(242, 241, 236, 0.08);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --shell-max: 84rem;
  --shell-pad-x: clamp(1rem, 3vw, 2.5rem);

  /* Type scale */
  --type-mono-fam: 'Source Code Pro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --type-base-fam: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Self-hosted Fonts ── */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext-400i.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Base ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--type-base-fam);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5em 1em;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--color-accent-bright);
}

.skip-link:focus { top: 1rem; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-accent-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 0.5rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Canvas Background ── */
#radial-wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* Legacy DAG canvas (deprecated, kept for fallback) */
#dag {
  display: none;
}

/* ── Site Shell ── */
.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Site Header (thin top bar) ── */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--shell-pad-x);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeIn 0.6s ease both;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  justify-self: start;
  grid-column: 1;
}

.site-header__nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.site-header__nav a:hover {
  color: var(--color-text-primary);
}

.site-header__brand {
  justify-self: center;
  grid-column: 2;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-primary);
}

.site-header__brand svg {
  width: 1.625rem;
  height: 1.625rem;
}

.site-header__brand svg path {
  fill: var(--color-text);
}

.site-header__brand-name {
  margin-left: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-header__status {
  justify-self: end;
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.status-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 0.5rem rgba(31, 184, 166, 0.6);
  animation: fadeIn 1.4s ease infinite alternate;
}

/* ── Announcement Ribbon ── */
.announcement {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-divider);
  background: linear-gradient(180deg, rgba(31, 184, 166, 0.03), transparent);
  animation: fadeIn 0.6s ease 0.15s both;
}

.announcement__lead {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--shell-pad-x);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 500;
  border-right: 1px solid var(--color-divider);
  white-space: nowrap;
}

.announcement__lead::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

.announcement__cta-list {
  display: flex;
  align-items: stretch;
  flex: 1;
  list-style: none;
}

.announcement__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--shell-pad-x);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: 500;
  border-right: 1px solid var(--color-divider);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.announcement__cta:last-child { border-right: none; }

.announcement__cta:hover {
  color: var(--color-text-primary);
  background-color: rgba(31, 184, 166, 0.04);
}

/* Focus state inset to avoid overlapping the next pill's divider */
.announcement__cta:focus-visible {
  outline-offset: -2px;
}

.announcement__cta:hover .announcement__cta-num {
  color: var(--color-accent-bright);
}

.announcement__cta[aria-disabled="true"] {
  color: var(--color-text-faint);
  pointer-events: none;
  cursor: default;
}

.announcement__cta-num {
  color: var(--color-text-muted);
  font-family: var(--type-mono-fam);
  font-weight: 500;
  transition: color 0.2s ease;
}

.announcement__cta-label {
  color: inherit;
}

/* ── Primary CTA (announcement-row variant) ── */
.announcement__cta--primary {
  background: var(--color-accent-bright);
  color: var(--color-bg);
}

.announcement__cta--primary .announcement__cta-num,
.announcement__cta--primary .announcement__cta-label {
  color: var(--color-bg);
}

.announcement__cta--primary:hover {
  background: var(--color-accent-bright-hover);
  color: var(--color-bg);
}

.announcement__cta--primary:hover .announcement__cta-num,
.announcement__cta--primary:hover .announcement__cta-label {
  color: var(--color-bg);
}

/* ── Primary CTA button (used in hero + form submit) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent-bright);
  color: var(--color-bg);
  border: 0;
  border-radius: 999px;
  font-family: var(--type-base-fam);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 0 0 0 var(--color-accent-bright);
}

.btn-primary:hover {
  background: var(--color-accent-bright-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 184, 166, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 3px;
}

/* Override .page-content a styling when .btn-primary is nested in methodology pages */
.page-content a.btn-primary,
.page-content a.btn-primary:hover,
.reading-shell a.btn-primary,
.reading-shell a.btn-primary:hover {
  color: var(--color-bg);
  border-bottom: 0;
}

.btn-primary__arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 200ms ease;
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(3px);
}

.hero__cta {
  margin-top: var(--space-3);
  animation: fadeInUp 0.85s ease 0.4s both;
}

/* ── Article CTA footer (methodology page end-of-article CTA) ── */
.article-cta-footer {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.article-cta-footer__lead {
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  padding: clamp(var(--space-8), 12vh, var(--space-10)) var(--shell-pad-x) var(--space-9);
  max-width: var(--shell-max);
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.875rem);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero__logo-mark {
  height: clamp(4.4rem, 12.1vw, 9.2rem);
  width: auto;
  flex-shrink: 0;
}

.hero__logo-type {
  height: clamp(4rem, 11vw, 8.4rem);
  width: auto;
  flex-shrink: 0;
}

.hero__logo svg path {
  fill: var(--color-text);
}

.hero__title {
  font-size: clamp(1.375rem, 3.5vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-text-primary);
  white-space: nowrap;
  animation: fadeInUp 0.8s ease 0.25s both;
}

.hero__title .tm {
  font-weight: 400;
  font-style: normal;
  font-size: 0.35em;
  vertical-align: super;
  color: var(--color-text-muted);
  margin-left: 0.15em;
}

.hero__title em {
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.05em;
  height: 0.4em;
  background: url("underline.svg") no-repeat center;
  background-size: 100% 100%;
  opacity: 0.7;
  pointer-events: none;
}

.hero__support {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-body);
  max-width: 28ch;
  justify-self: end;
  text-align: left;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__support em {
  font-style: italic;
  color: var(--color-text-primary);
}

/* ── Hero Footer (metric + proof strip) ── */
.hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 0 var(--shell-pad-x) var(--space-6);
  max-width: var(--shell-max);
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.6s ease 0.6s both;
}

.hero-positioning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  justify-content: flex-end;
  align-items: baseline;
  margin: 0 0 var(--space-5) 0;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
  text-align: right;
  animation: fadeIn 0.6s ease 0.5s both;
}

.hero-positioning__antecedent {
  color: var(--color-text-faint);
  font-style: italic;
}

.hero-positioning__claim {
  color: var(--color-text-primary);
  font-weight: 500;
  font-style: normal;
}

.hero-metric {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero-metric strong {
  color: var(--color-text-body);
  font-weight: 500;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  justify-content: flex-end;
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
}

.proof-strip__item {
  position: relative;
  transition: color 0.2s ease;
}

.proof-strip__item:hover {
  color: var(--color-text-body);
}

.proof-strip__item + .proof-strip__item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-5) * -0.5 - 0.125rem);
  top: 50%;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--color-text-ghost);
  transform: translateY(-50%);
}

/* ── Product preview section ── */
.product-preview {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-9) var(--shell-pad-x);
}

.product-preview__shell {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.product-preview__header {
  margin-bottom: var(--space-7);
  max-width: 42rem;
}

.product-preview__header .section-marker {
  margin-bottom: var(--space-3);
}

.product-preview__title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.product-preview__lead {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin: 0;
}

.product-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-screen {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(31, 184, 166, 0.03), rgba(0, 0, 0, 0.22));
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.625rem;
  padding: var(--space-5);
  gap: var(--space-4);
  transition: border-color 0.2s ease;
}

.product-screen:hover {
  border-color: var(--color-border-strong);
}

.product-screen__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.product-screen__chrome-num {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 500;
}

.product-screen__chrome-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.product-screen__viz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
}

.product-screen__viz--gauge {
  align-items: center;
}

.product-screen__viz--gates,
.product-screen__viz--channels {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.product-screen__data {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.product-screen__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.product-screen__row > span:last-child {
  color: var(--color-text-body);
  font-family: var(--type-mono-fam);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.product-screen__caption {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.trend--up { color: var(--color-accent) !important; }
.trend--alert { color: var(--color-gold) !important; }

/* Score gauge */
.score-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
}

.score-gauge {
  width: 100%;
  height: auto;
  display: block;
}

.score-gauge__value {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1;
}

.score-gauge__num {
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.score-gauge__denom {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-family: var(--type-mono-fam);
  margin-left: 0.15em;
  letter-spacing: 0.05em;
}

/* Gate meter + channel meter (shared bar style) */
.gate-meter,
.channel-meter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.gate-meter__row,
.channel-meter__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
}

.gate-meter__label,
.channel-meter__label {
  color: var(--color-text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate-meter__bar,
.channel-meter__bar {
  display: block;
  height: 0.4rem;
  background: rgba(242, 241, 236, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.gate-meter__fill,
.channel-meter__fill {
  display: block;
  height: 100%;
  background: var(--color-accent-bright);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.gate-meter__fill--alert {
  background: var(--color-gold);
}

.channel-meter__fill--featured {
  background: var(--color-accent-bright);
  box-shadow: 0 0 0.5rem rgba(31, 184, 166, 0.5);
}

.channel-meter__row--featured .channel-meter__label,
.gate-meter__row--alert .gate-meter__label {
  color: var(--color-text-primary);
  font-weight: 500;
}

.gate-meter__value,
.channel-meter__value {
  text-align: right;
  font-family: var(--type-mono-fam);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
}

.gate-meter__row--alert .gate-meter__value {
  color: var(--color-gold);
}

.channel-meter__row--featured .channel-meter__value {
  color: var(--color-accent);
}

/* ── Product preview interactivity ── */

/* Hover row highlight */
.gate-meter__row,
.channel-meter__row {
  position: relative;
  cursor: default;
  transition: background-color 0.18s ease;
}

.gate-meter__row:hover .gate-meter__label,
.channel-meter__row:hover .channel-meter__label {
  color: var(--color-text-primary);
}

.gate-meter__row:hover .gate-meter__fill,
.channel-meter__row:hover .channel-meter__fill {
  filter: brightness(1.18);
}

.gate-meter__row:hover .gate-meter__value,
.channel-meter__row:hover .channel-meter__value {
  color: var(--color-text-body);
}

/* Tooltips driven by data-tip attribute */
.gate-meter__row[data-tip]::before,
.channel-meter__row[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  background: rgba(7, 23, 20, 0.96);
  color: var(--color-text-primary);
  padding: 0.45rem 0.75rem;
  border-radius: 0.3rem;
  border: 1px solid var(--color-border-strong);
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.gate-meter__row[data-tip]:hover::before,
.channel-meter__row[data-tip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll-triggered enter animations */
.product-preview .gate-meter__fill,
.product-preview .channel-meter__fill {
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-preview:not(.is-visible) .gate-meter__fill,
.product-preview:not(.is-visible) .channel-meter__fill {
  width: 0 !important;
}

.product-preview .channel-meter__range {
  transition: opacity 0.5s ease 0.7s;
}

.product-preview:not(.is-visible) .channel-meter__range {
  opacity: 0;
}

.product-preview .posterior-chart {
  transition: opacity 0.7s ease 0.25s;
}

.product-preview:not(.is-visible) .posterior-chart {
  opacity: 0;
}

.product-preview .score-gauge__value {
  transition: opacity 0.6s ease 0.6s;
}

.product-preview:not(.is-visible) .score-gauge__value {
  opacity: 0;
}

.score-gauge__num {
  font-variant-numeric: tabular-nums;
}

.score-gauge line {
  transition: none;
}

/* Posterior chart curve hover */
.posterior-chart path {
  transition: filter 0.2s ease;
}

.posterior-chart path:hover {
  filter: brightness(1.25);
}

/* ── Campaign dashboards section ── */
.campaign-dashboards {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-9) var(--shell-pad-x);
}

/* KPI grid */
.product-screen__viz--kpis {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
}

.kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-4) var(--space-3);
  background: rgba(242, 241, 236, 0.025);
  border: 1px solid var(--color-divider);
  border-radius: 0.4rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.kpi-tile:hover {
  border-color: var(--color-border-strong);
  background: rgba(242, 241, 236, 0.04);
}

.kpi-tile__label {
  font-family: var(--type-mono-fam);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.kpi-tile__value {
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1;
}

.kpi-tile__delta {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Funnel meter */
.product-screen__viz--funnel {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.funnel-meter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.funnel-meter__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  position: relative;
  cursor: default;
  transition: background-color 0.18s ease;
}

.funnel-meter__label {
  color: var(--color-text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.funnel-meter__bar {
  display: block;
  height: 0.5rem;
  background: rgba(242, 241, 236, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.funnel-meter__fill {
  display: block;
  height: 100%;
  background: rgba(31, 184, 166, 0.55);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.funnel-meter__fill--featured {
  background: var(--color-accent-bright);
  box-shadow: 0 0 0.5rem rgba(31, 184, 166, 0.45);
}

.funnel-meter__row--featured .funnel-meter__label {
  color: var(--color-text-primary);
  font-weight: 500;
}

.funnel-meter__row--featured .funnel-meter__value {
  color: var(--color-accent);
}

.funnel-meter__value {
  text-align: right;
  font-family: var(--type-mono-fam);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.funnel-meter__row:hover .funnel-meter__label {
  color: var(--color-text-primary);
}

.funnel-meter__row:hover .funnel-meter__fill {
  filter: brightness(1.18);
}

/* Campaign table */
.product-screen__viz--table {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.campaign-table thead th {
  font-family: var(--type-mono-fam);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
  padding: 0 var(--space-2) var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  font-weight: 500;
}

.campaign-table thead th:not(:first-child) {
  text-align: right;
}

.campaign-table tbody td {
  padding: var(--space-3) var(--space-2);
  color: var(--color-text-body);
  border-bottom: 1px solid var(--color-divider);
  transition: color 0.15s ease;
}

.campaign-table tbody tr:last-child td {
  border-bottom: none;
}

.campaign-table tbody td:not(:first-child) {
  text-align: right;
  font-family: var(--type-mono-fam);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.campaign-table tbody td.hi {
  color: var(--color-accent);
}

.campaign-table tbody tr:hover td {
  color: var(--color-text-primary);
  background: rgba(31, 184, 166, 0.04);
}

.campaign-table tbody tr:hover td.hi {
  color: var(--color-accent-bright);
}

/* Time-series chart */
.product-screen__viz--timeseries {
  align-items: stretch;
  justify-content: stretch;
  min-height: 14rem;
  padding: var(--space-3) 0;
}

.timeseries-chart {
  width: 100%;
  height: auto;
  display: block;
  max-height: 20rem;
}

.timeseries-chart path:hover {
  filter: brightness(1.25);
}

/* Reveal animations for campaign dashboards (mirror product-preview) */
.campaign-dashboards .funnel-meter__fill {
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.campaign-dashboards:not(.is-visible) .funnel-meter__fill {
  width: 0 !important;
}

.campaign-dashboards .timeseries-chart,
.campaign-dashboards .kpi-tile,
.campaign-dashboards .campaign-table {
  transition: opacity 0.7s ease 0.2s;
}

.campaign-dashboards:not(.is-visible) .timeseries-chart,
.campaign-dashboards:not(.is-visible) .kpi-tile,
.campaign-dashboards:not(.is-visible) .campaign-table {
  opacity: 0;
}

/* ── Hex-style dashboard polish ── */

/* Filter bar above dashboard grid */
.dashboard-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  background: rgba(242, 241, 236, 0.02);
  border: 1px solid var(--color-divider);
  border-radius: 0.5rem;
}

.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.85rem;
  background: rgba(242, 241, 236, 0.04);
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--color-text-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--color-border-strong);
  background: rgba(242, 241, 236, 0.06);
}

.filter-pill:focus-visible {
  outline: 2px solid var(--color-accent-focus);
  outline-offset: 2px;
}

.filter-pill--open {
  border-color: var(--color-accent-subtle);
  background: rgba(31, 184, 166, 0.08);
}

.filter-pill__label {
  color: var(--color-text-muted);
  font-family: var(--type-mono-fam);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-pill__value {
  color: var(--color-text-primary);
  font-weight: 500;
}

.filter-pill__chev {
  width: 9px;
  height: 6px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.filter-pill--open .filter-pill__chev {
  transform: rotate(180deg);
}

.filter-pill__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  min-width: 12rem;
  background: rgba(7, 23, 20, 0.98);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 30;
}

.filter-pill--open .filter-pill__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.filter-pill__menu li {
  padding: 0.45rem 0.7rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-text-body);
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.filter-pill__menu li:hover {
  background: rgba(31, 184, 166, 0.1);
  color: var(--color-text-primary);
}

.filter-pill__menu li[aria-selected="true"] {
  color: var(--color-accent);
  background: rgba(31, 184, 166, 0.06);
}

.filter-pill__menu li[aria-selected="true"]::before {
  content: '✓ ';
  color: var(--color-accent);
  margin-right: 0.2rem;
}

/* Live data indicator */
.filter-pill--live {
  cursor: default;
  background: rgba(31, 184, 166, 0.06);
  border-color: var(--color-accent-subtle);
  margin-left: auto;
}

.filter-pill--live:hover {
  background: rgba(31, 184, 166, 0.06);
  border-color: var(--color-accent-subtle);
}

.filter-pill__pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 0.5rem rgba(31, 184, 166, 0.7);
  animation: fadeIn 1.4s ease infinite alternate;
}

.filter-pill--live .filter-pill__value {
  color: var(--color-accent);
}

/* Window chrome action buttons */
.product-screen__actions {
  margin-left: auto;
  display: inline-flex;
  gap: 0.15rem;
}

.window-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.window-action:hover {
  color: var(--color-text-primary);
  background: rgba(242, 241, 236, 0.07);
}

.window-action svg {
  width: 12px;
  height: 12px;
}

/* Tab strip inside cards */
.tab-strip {
  display: inline-flex;
  gap: 0;
  padding: 0.2rem;
  background: rgba(242, 241, 236, 0.04);
  border-radius: 0.4rem;
  align-self: flex-start;
  border: 1px solid var(--color-divider);
  margin-bottom: var(--space-2);
}

.tab-strip__tab {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--type-base-fam);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-strip__tab:hover {
  color: var(--color-text-body);
}

.tab-strip__tab--active {
  background: rgba(31, 184, 166, 0.14);
  color: var(--color-accent);
}

/* Time-series chart crosshair */
.crosshair {
  pointer-events: none;
}

.timeseries-chart {
  cursor: crosshair;
}

.product-screen__viz--timeseries:hover .timeseries-chart path:not(.crosshair *) {
  /* Don't dim lines when hovering chart — crosshair handles the focus */
}

/* ------------------------------------------------------------------
   MEASUREMENT ENGINE — nine documented capabilities
------------------------------------------------------------------ */
.measurement-engine {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-9) var(--shell-pad-x);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(31, 184, 166, 0.018) 100%);
}

.measurement-engine__shell {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.measurement-engine__header {
  margin-bottom: var(--space-8);
  max-width: 50rem;
}

.measurement-engine__header .section-marker {
  margin-bottom: var(--space-3);
  display: inline-block;
}

.measurement-engine__title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.measurement-engine__lead {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin: 0;
}

.measurement-engine__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--space-6);
  row-gap: 0;
  border-top: 1px solid var(--color-border-subtle);
}

.capability {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.capability__num {
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  color: var(--color-accent-bright);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
  line-height: 1;
}

.capability__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.capability__title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.capability__copy {
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin: 0;
}

.capability__link {
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  color: var(--color-accent-bright);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
  transition: color 120ms ease;
}

.capability__link:hover {
  color: var(--color-gold);
}

.measurement-engine__footer {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  font-size: 0.875rem;
  color: var(--color-text-body);
  text-align: center;
}

.measurement-engine__footer a {
  color: var(--color-accent-bright);
  text-decoration: none;
  font-family: var(--type-mono-fam);
  letter-spacing: 0.03em;
}

.measurement-engine__footer a:hover {
  color: var(--color-gold);
}

@media (max-width: 900px) {
  .measurement-engine__list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   INTEGRATIONS — technologies and platforms
------------------------------------------------------------------ */
.integrations {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-9) var(--shell-pad-x);
}

.integrations__shell {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.integrations__header {
  margin-bottom: var(--space-8);
  max-width: 50rem;
}

.integrations__header .section-marker {
  margin-bottom: var(--space-3);
  display: inline-block;
}

.integrations__title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.integrations__lead {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin: 0;
}

.integrations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border-subtle);
}

.integration-group {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.integration-group__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.integration-group__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.integration-group__count {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.integration-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-width: 11rem;
  column-gap: var(--space-5);
}

.integration-list li {
  font-family: var(--type-mono-fam);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--color-text-body);
  line-height: 1.55;
  padding: 0.15rem 0;
  break-inside: avoid;
}

.integration-list li.integration-list__item--soft {
  font-style: italic;
  color: var(--color-text-muted);
}

.integrations__footer {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  font-size: 0.875rem;
  color: var(--color-text-body);
  text-align: center;
}

@media (max-width: 600px) {
  .integration-group {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .integration-group__num {
    padding-top: 0;
  }
  .pill {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.625rem;
  }
}

/* Responsive: wrap filter bar on small screens */
@media (max-width: 720px) {
  .filter-pill--live {
    margin-left: 0;
  }
  .tab-strip {
    flex-wrap: wrap;
  }
  /* Wrap the filter bar cleanly so the live indicator drops below the pills */
  .dashboard-filterbar {
    flex-wrap: wrap;
    row-gap: var(--space-3);
  }
}

/* Tooltip support for funnel rows */
.funnel-meter__row[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  background: rgba(7, 23, 20, 0.96);
  color: var(--color-text-primary);
  padding: 0.45rem 0.75rem;
  border-radius: 0.3rem;
  border: 1px solid var(--color-border-strong);
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.funnel-meter__row[data-tip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Channel meter: credible-interval bracket markers (point estimate + ceiling/floor) */
.channel-meter__bar {
  position: relative;
  overflow: visible;
}

.channel-meter__fill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.channel-meter__range {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border-left: 1px solid rgba(242, 241, 236, 0.5);
  border-right: 1px solid rgba(242, 241, 236, 0.5);
  z-index: 2;
  pointer-events: none;
}

.channel-meter__range::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(242, 241, 236, 0.25);
  transform: translateY(-50%);
}

.channel-meter__range--featured {
  border-color: rgba(31, 184, 166, 0.75);
}

.channel-meter__range--featured::after {
  background: rgba(31, 184, 166, 0.35);
}

/* Wide variant: full-row card (e.g., posterior distribution chart) */
.product-screen--wide {
  grid-column: 1 / -1;
}

.product-screen__viz--posterior {
  align-items: stretch;
  justify-content: stretch;
  min-height: 14rem;
  padding: var(--space-3) 0;
}

.posterior-chart {
  width: 100%;
  height: auto;
  display: block;
  max-height: 22rem;
}

.product-screen__data--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-6);
}

@media (max-width: 600px) {
  .product-screen__data--grid {
    grid-template-columns: 1fr;
  }
}

/* ── Inline Waitlist Section ── */
.waitlist-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-9) var(--shell-pad-x);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.waitlist-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-7);
  align-items: start;
}

.waitlist-lead {
  position: sticky;
  top: var(--space-6);
}

.waitlist-eyebrow {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.waitlist-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.waitlist-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 36ch;
}

/* ── Section Marker (numeric markers like moment.com) ── */
.section-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section-marker::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: var(--color-border-strong);
}

/* ── Lead Form ── */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-half {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row-half .form-field {
  flex: 1;
  min-width: 10rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field label .req {
  color: var(--color-accent-link);
}

.form-field input,
.form-field select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  background: var(--input-bg);
  border: 1px solid var(--color-border-input);
  border-radius: 0.375rem;
  padding: 0.7em 0.9em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-accent-hover);
  background: var(--input-bg-focus);
}

.form-field input.invalid,
.form-field select.invalid {
  border-color: var(--color-error-border);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='rgba(242,241,236,0.4)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  padding-right: 2.5em;
}

.form-field select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.form-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-fieldset legend {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-body);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15em;
  cursor: pointer;
  accent-color: var(--color-accent);
}

/* ── Form Disclosure (progressive disclosure of optional fields) ── */
.form-disclosure-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  margin-top: calc(-1 * var(--space-2));
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--type-base-fam);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent-bright);
  text-align: left;
  align-self: flex-start;
  transition: color 160ms ease;
}

.form-disclosure-trigger:hover {
  color: var(--color-accent-bright-hover);
}

.form-disclosure-trigger:focus-visible {
  outline: 2px solid var(--color-accent-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.form-disclosure-trigger__icon {
  font-family: var(--type-mono-fam);
  font-size: 1rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}

.form-disclosure-trigger[aria-expanded="true"] .form-disclosure-trigger__icon {
  transform: rotate(45deg);
}

.form-extras {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
  margin-top: calc(-1 * var(--space-2));
}

.form-extras[hidden] {
  display: none;
}

.form-extras__lead {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.form-submit {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-subtle);
  border-radius: 2rem;
  padding: 0.9em 2.2em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--color-accent-bg-hover);
  border-color: var(--color-accent-hover);
}

.form-submit:active:not(:disabled) {
  background: var(--color-accent-subtle);
  transform: translateY(1px);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.signup-feedback {
  font-size: 0.875rem;
  font-weight: 400;
  min-height: 1.5em;
  margin-top: 0.25rem;
}

.signup-feedback.success {
  color: var(--color-accent-link);
}

.signup-feedback.error {
  color: var(--color-error);
}

/* ── AEO Content (visually hidden, crawlable) ── */
.aeo-section {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Modal (legacy, deprecated — kept for now) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(92vw, 36rem);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem 2rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: clamp(1.125rem, 2vw, 1.333rem);
  font-weight: 500;
  color: var(--color-text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ── Site Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-6) var(--shell-pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  animation: fadeIn 0.6s ease 0.7s both;
}

.site-footer__tagline {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  justify-content: center;
  align-items: baseline;
  text-align: center;
  margin: 0;
  padding: 0 0 var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-4);
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  line-height: 1.5;
  letter-spacing: 0.015em;
  color: var(--color-text-muted);
  font-weight: 400;
}

.site-footer__tagline-antecedent {
  color: var(--color-text-faint);
  font-style: italic;
}

.site-footer__tagline-claim {
  color: var(--color-text-primary);
  font-weight: 500;
  font-style: normal;
}

.site-footer__copy {
  justify-self: start;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  justify-self: center;
}

.site-footer__nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--color-text-primary);
}

.site-footer__nav a[aria-current="page"] {
  color: var(--color-text-primary);
}

.site-footer__meta {
  justify-self: end;
  font-family: var(--type-mono-fam);
  letter-spacing: 0.12em;
}

/* ── Subpages (body.page) ── */
body.page {
  padding: 0;
}

.page-header {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--space-7) var(--shell-pad-x) var(--space-5);
}

.back-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.back-link::before {
  content: '←';
  font-size: 1rem;
  line-height: 1;
}

.back-link:hover {
  color: var(--color-text-primary);
}

.page-content {
  display: block;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-6) var(--shell-pad-x) var(--space-8);
  line-height: 1.7;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: left;
  padding: 0 0 var(--space-5);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.page-content h2 {
  font-size: 1.375rem;
  font-weight: 500;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-text-primary);
  letter-spacing: -0.005em;
}

.page-content h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--color-text-heading);
}

.page-content p {
  margin: 0.6rem 0;
  font-size: 1rem;
  color: var(--color-text-body);
}

.page-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 1rem;
  color: var(--color-text-body);
}

.page-content li {
  margin: 0.3rem 0;
}

.page-content a {
  color: var(--color-accent-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-content a:hover {
  color: var(--color-accent-bright);
  border-bottom-color: var(--color-accent-hover);
}

.last-updated {
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* ── Status page ── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0;
}

.status-ok {
  background: var(--color-accent-bg-tint);
  color: var(--color-accent);
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 1.5rem 0;
}

.status-table th,
.status-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.status-table th {
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.status-badge--ok {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.status-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.status-note p { margin: 0.4rem 0; }

/* ── FAQ page ── */
.page-content .faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.page-content .faq-item:last-child {
  border-bottom: none;
}

.page-content .faq-item h2 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.page-content .faq-item p {
  margin: 0;
}

/* ── Support page ── */
.contact-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-block:last-of-type {
  border-bottom: none;
}

.contact-block h2 {
  margin-top: 0;
}

/* ── Cookie Notice ── */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice a {
  color: var(--color-accent-link);
  text-decoration: none;
}

.cookie-notice a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-notice button {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-subtle);
  border-radius: 2rem;
  padding: 0.5em 1.4em;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.cookie-notice button:hover {
  background: var(--color-accent-bg-hover);
}

/* ── Ribbon: aria-current state ── */
.announcement__cta[aria-current="page"] {
  color: var(--color-text-primary);
  background-color: rgba(31, 184, 166, 0.06);
}

.announcement__cta[aria-current="page"] .announcement__cta-num {
  color: var(--color-accent-bright);
}

/* ── Methodology page primitives ── */
.tldr {
  position: relative;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0 var(--space-6);
  background: rgba(31, 184, 166, 0.04);
  border-left: 2px solid var(--color-accent-bright);
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-primary);
}

.tldr::before {
  content: 'DIRECT ANSWER';
  display: block;
  font-family: var(--type-mono-fam);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.tldr p { margin: 0; color: inherit; font-size: inherit; }

.section-num {
  display: inline-block;
  font-family: var(--type-mono-fam);
  font-size: 0.625em;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-right: var(--space-3);
  vertical-align: middle;
  font-weight: 500;
}

.gate-list {
  list-style: none;
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: 0;
}

.gate-list__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.gate-list__item:last-child { border-bottom: none; }

.gate-list__num {
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.gate-list__title {
  display: block;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.2em;
}

.gate-list__desc {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: 1.55;
}

/* ── Paper list (whitepapers index) ── */
.paper-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}

.paper-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}

.paper-list__item:last-child { border-bottom: none; }

.paper-list__meta {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.paper-list__title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 var(--space-2);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.paper-list__abstract {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin: 0;
}

.paper-list__status {
  font-family: var(--type-mono-fam);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border: 1px solid var(--color-border-strong);
  border-radius: 2rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.paper-list__status--forthcoming {
  color: var(--color-gold-soft);
  border-color: rgba(252, 188, 50, 0.35);
}

.paper-list__status--available {
  color: var(--color-accent);
  border-color: var(--color-accent-subtle);
}

/* ── Methodology CTA (in-page waitlist nudge) ── */
.methodology-cta {
  margin: var(--space-7) 0 var(--space-5);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(31, 184, 166, 0.045), transparent 80%);
}

.methodology-cta__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.005em;
}

.methodology-cta__body {
  color: var(--color-text-body);
  margin: 0 0 var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 48ch;
}

.methodology-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-subtle);
  border-radius: 2rem;
  padding: 0.75em 1.6em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.methodology-cta__link:hover {
  background: var(--color-accent-bg-hover);
  border-color: var(--color-accent-hover);
}

/* ── Reading shell (methodology pages, narrower than landing) ── */
.reading-shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-7) var(--shell-pad-x) var(--space-8);
}

.reading-shell .last-updated {
  margin-top: 0;
  margin-bottom: var(--space-5);
}

.reading-shell .page-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.reading-shell .page-content h1 {
  border-bottom: none;
  padding-bottom: 0;
}

.reading-shell .source-cite {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: var(--space-2) 0 var(--space-5);
}

.reading-shell .source-cite a {
  color: var(--color-text-secondary);
}

/* ── Responsive ── */

/* Narrow-desktop softening — keeps hero asymmetric grid breathable before the 900px collapse */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand status" "nav nav";
    text-align: left;
  }

  .site-header__brand { grid-area: brand; justify-self: start; }
  .site-header__status { grid-area: status; }
  .site-header__nav { grid-area: nav; padding-top: var(--space-2); }

  .announcement {
    flex-direction: column;
    align-items: stretch;
  }

  .announcement__lead {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    justify-content: flex-start;
  }

  .announcement__cta-list {
    flex-direction: column;
  }

  .announcement__cta {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
  }

  .announcement__cta:last-child { border-bottom: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .hero__title {
    white-space: normal;
  }

  .hero__support {
    justify-self: start;
    max-width: 100%;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-positioning {
    justify-content: flex-start;
    text-align: left;
  }

  .proof-strip {
    justify-content: flex-start;
  }

  .product-preview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .waitlist-shell {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .waitlist-lead { position: static; }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3);
  }

  .site-footer__copy,
  .site-footer__nav,
  .site-footer__meta {
    justify-self: center;
  }
}

/* Phone */
@media (max-width: 720px) {
  .product-preview,
  .campaign-dashboards,
  .measurement-engine,
  .integrations,
  .waitlist-section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .product-screen {
    padding: var(--space-4);
  }

  .product-screen__viz {
    min-height: 7rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-tile__value {
    font-size: 1.375rem;
  }

  .gate-meter__row,
  .channel-meter__row {
    grid-template-columns: 5rem minmax(0, 1fr) 2rem;
    gap: var(--space-2);
    font-size: 0.6875rem;
  }

  .funnel-meter__row {
    grid-template-columns: 5.5rem minmax(0, 1fr) 2.25rem;
    gap: var(--space-2);
    font-size: 0.6875rem;
  }

  .score-gauge-wrap {
    max-width: 13rem;
  }

  .score-gauge__num {
    font-size: 2.25rem;
  }

  .integration-group__title {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .proof-strip {
    gap: var(--space-3);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }

  .proof-strip__item + .proof-strip__item::before {
    left: calc(var(--space-3) * -0.5 - 0.125rem);
  }
}

@media (max-width: 480px) {
  .site-header { padding: var(--space-3) var(--shell-pad-x); }
  .site-header__nav { gap: var(--space-4); flex-wrap: wrap; }

  .hero {
    padding: var(--space-6) var(--shell-pad-x) var(--space-5);
  }

  .hero__title {
    letter-spacing: -0.01em;
    white-space: normal;
  }

  .hero__cta .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .waitlist-section {
    padding: var(--space-7) var(--shell-pad-x);
  }

  .waitlist-title {
    max-width: none;
  }

  .lead-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Form: single column on small screens */
  .form-row-half {
    flex-direction: column;
  }

  /* Back link: larger touch target */
  .back-link {
    display: inline-block;
    padding: 0.5rem 0;
  }
}

/* ===================================================================
   ADDEPAR LAYER  (2026-06-26)
   New design-system primitives on top of the migrated green palette:
   serif display type (Fraunces), sage CTA buttons, teal-green data viz,
   and the shared nav / section / pricing / footer primitives used by the
   redesigned pages. Source-ordered last so it wins the cascade.
   =================================================================== */

/* New tokens not present in the original :root */
:root {
  --color-viz: #1FB8A6;
  --color-cta: #9FC6A9;
  --color-cta-hover: #B6D8BD;
  --color-cta-text: #0A1F1C;
  --type-display-fam: 'Fraunces', 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* Fraunces variable serif (self-hosted) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Serif display headings */
.hero__title,
.product-preview__title,
.measurement-engine__title,
.integrations__title,
.waitlist-title,
.section-band__title,
.page-hero__title,
.feature-row__title,
.pricing__title,
.cta-band__title,
.page-content h1,
.page-content h2,
.reading-shell h1,
.reading-shell h2 {
  font-family: var(--type-display-fam);
  font-optical-sizing: auto;
  font-weight: 440;
  letter-spacing: -0.015em;
}

/* Sage CTA button (Addepar primary) */
.btn-primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-family: var(--type-base-fam);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 7px;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(159, 198, 169, 0.16);
}
.btn-primary:focus-visible { outline: 2px solid var(--color-cta); outline-offset: 3px; }
.page-content a.btn-primary, .page-content a.btn-primary:hover,
.reading-shell a.btn-primary, .reading-shell a.btn-primary:hover { color: var(--color-cta-text); border-bottom: 0; }

/* Secondary / ghost button */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: transparent; color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong); border-radius: 7px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.btn-ghost:hover { border-color: var(--color-cta); color: var(--color-text); background: rgba(159, 198, 169, 0.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Data-viz fills use the brighter teal-green */
.gate-meter__fill, .channel-meter__fill,
.channel-meter__fill--featured, .funnel-meter__fill--featured { background: var(--color-viz); }
.funnel-meter__fill { background: rgba(31, 184, 166, 0.55); }

/* Eyebrow label (uppercase tracked, sage) */
.eyebrow {
  font-family: var(--type-base-fam);
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-cta); font-weight: 600; margin: 0;
}

/* Top navigation (brand left, links, CTA right) */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4) var(--space-5);
  padding: var(--space-4) var(--shell-pad-x);
  border-bottom: 1px solid var(--color-divider);
  position: relative; z-index: 10;
  animation: fadeIn 0.6s ease both;
}
.topnav__brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--color-text); }
.topnav__brand svg { height: 1.7rem; width: auto; }
.topnav__brand svg path { fill: var(--color-text); }
.topnav__brand-name { font-family: var(--type-display-fam); font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 480; }
.topnav__links { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.topnav__link {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-secondary); text-decoration: none; font-weight: 500;
  transition: color 0.2s ease;
}
.topnav__link:hover, .topnav__link[aria-current="page"] { color: var(--color-text-primary); }
.topnav__right { display: flex; align-items: center; gap: var(--space-4); }
.topnav__cta { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

/* Generic section + shell */
.section { position: relative; z-index: 1; border-top: 1px solid var(--color-divider); padding: var(--space-9) var(--shell-pad-x); }
.section__shell { max-width: var(--shell-max); margin: 0 auto; }
.section__head { max-width: 46rem; margin-bottom: var(--space-7); }
.section__head .eyebrow { margin-bottom: var(--space-3); }
.section__title { font-family: var(--type-display-fam); font-optical-sizing: auto; font-weight: 440; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--color-text); margin: 0 0 var(--space-3); }
.section__lead { font-size: 1.0625rem; line-height: 1.6; color: var(--color-text-body); margin: 0; max-width: 52ch; }

/* Centered serif band (the WHY pattern) */
.section-band { position: relative; z-index: 1; border-top: 1px solid var(--color-divider); text-align: center; padding: clamp(var(--space-8), 10vw, var(--space-10)) var(--shell-pad-x); }
.section-band__shell { max-width: 60rem; margin: 0 auto; }
.section-band__eyebrow { margin-bottom: var(--space-4); }
.section-band__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; color: var(--color-text); margin: 0 auto var(--space-5); max-width: 20ch; }
.section-band__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--color-text-body); max-width: 46ch; margin: 0 auto; }

/* Subpage hero */
.page-hero { position: relative; z-index: 1; padding: clamp(var(--space-8), 11vh, var(--space-10)) var(--shell-pad-x) var(--space-8); max-width: var(--shell-max); margin: 0 auto; }
.page-hero__eyebrow { margin-bottom: var(--space-4); }
.page-hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--color-text); margin: 0 0 var(--space-5); max-width: 18ch; }
.page-hero__lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--color-text-body); max-width: 54ch; margin: 0; }

/* Hero (homepage) */
.hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(var(--space-6), 5vw, var(--space-9)); padding: clamp(var(--space-8), 11vh, var(--space-10)) var(--shell-pad-x); }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.hero__eyebrow { margin: 0; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 420; line-height: 1.04; letter-spacing: -0.025em; white-space: normal; max-width: 15ch; color: var(--color-text); }
.hero__lead-copy { font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.6; color: var(--color-text-body); max-width: 46ch; margin: 0; }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-2); }
.hero__proof { font-family: var(--type-mono-fam); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); margin: var(--space-2) 0 0; }
.hero__visual { display: flex; align-items: center; justify-content: center; }

/* Hero score card (the product, shown the way Addepar shows its UI) */
.score-card { width: 100%; max-width: 24rem; border: 1px solid var(--color-border-subtle); border-radius: 16px; background: linear-gradient(165deg, rgba(159, 198, 169, 0.08), rgba(7, 23, 20, 0.45)); padding: var(--space-6); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.score-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.score-card__label { font-family: var(--type-mono-fam); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.score-card__band { font-family: var(--type-mono-fam); font-size: 0.75rem; font-weight: 600; color: var(--color-cta-text); background: var(--color-cta); padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 0.05em; }
.score-card__foot { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: var(--space-2); }

/* Engines / logos strip */
.engines-strip { border-top: 1px solid var(--color-divider); padding: var(--space-6) var(--shell-pad-x); }
.engines-strip__shell { max-width: var(--shell-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-7); }
.engines-strip__label { font-family: var(--type-mono-fam); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.engines-strip__list { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.engines-strip__list li { font-size: 0.9375rem; color: var(--color-text-secondary); font-weight: 500; }

/* Feature rows (alternating media/text) */
.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: center; max-width: var(--shell-max); margin: 0 auto; padding: var(--space-9) var(--shell-pad-x); }
.feature-row__eyebrow { margin-bottom: var(--space-3); }
.feature-row__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; color: var(--color-text); margin: 0 0 var(--space-4); }
.feature-row__copy { font-size: 1.0625rem; line-height: 1.65; color: var(--color-text-body); margin: 0 0 var(--space-5); }
.feature-row__panel { aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid var(--color-border-subtle); background: linear-gradient(160deg, rgba(159, 198, 169, 0.10), rgba(7, 23, 20, 0.5)); display: flex; align-items: center; justify-content: center; padding: var(--space-6); overflow: hidden; }
.feature-row--reverse .feature-row__panel { order: -1; }

/* Pricing tiers */
.pricing { position: relative; z-index: 1; border-top: 1px solid var(--color-divider); padding: var(--space-9) var(--shell-pad-x); }
.pricing__shell { max-width: var(--shell-max); margin: 0 auto; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.tier { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-border-subtle); border-radius: 16px; background: linear-gradient(180deg, rgba(159, 198, 169, 0.04), rgba(7, 23, 20, 0.25)); }
.tier--featured { border-color: var(--color-cta); box-shadow: inset 0 0 0 1px var(--color-cta), 0 24px 60px rgba(0, 0, 0, 0.35); }
.tier__name { font-family: var(--type-display-fam); font-optical-sizing: auto; font-weight: 460; font-size: 1.5rem; color: var(--color-text); margin: 0; }
.tier__tagline { font-size: 0.9375rem; color: var(--color-text-secondary); margin: 0; line-height: 1.5; min-height: 2.8em; }
.tier__price { font-family: var(--type-mono-fam); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); margin: 0; }
.tier__features { list-style: none; margin: 0; padding: var(--space-4) 0 0; display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--color-divider); }
.tier__features li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--space-3); font-size: 0.9375rem; color: var(--color-text-body); line-height: 1.45; }
.tier__features li::before { content: '\2713'; color: var(--color-cta); font-weight: 700; }
.tier__cta { margin-top: auto; padding-top: var(--space-2); }
.tier__cta .btn-primary, .tier__cta .btn-ghost { width: 100%; justify-content: center; }
.pricing__note { margin: var(--space-6) 0 0; font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; }

/* CTA band */
.cta-band { position: relative; z-index: 1; text-align: center; border-top: 1px solid var(--color-divider); padding: clamp(var(--space-8), 10vw, var(--space-10)) var(--shell-pad-x); background: radial-gradient(ellipse 70% 130% at 50% 0%, rgba(159, 198, 169, 0.09), transparent 70%); }
.cta-band__shell { max-width: 50rem; margin: 0 auto; }
.cta-band__title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; color: var(--color-text); margin: 0 0 var(--space-4); }
.cta-band__lead { font-size: 1.125rem; line-height: 1.6; color: var(--color-text-body); margin: 0 auto var(--space-6); max-width: 44ch; }
.cta-band__actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* Footer (multi-column) */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--color-divider); padding: var(--space-8) var(--shell-pad-x) var(--space-6); }
.footer__shell { max-width: var(--shell-max); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--color-divider); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 22rem; }
.footer__brand-name { font-family: var(--type-display-fam); font-size: 1.2rem; color: var(--color-text); }
.footer__tagline { font-size: 0.875rem; line-height: 1.55; color: var(--color-text-muted); }
.footer__col h3 { font-family: var(--type-mono-fam); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-4); font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { font-size: 0.875rem; color: var(--color-text-body); text-decoration: none; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--color-text-primary); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); font-size: 0.8125rem; color: var(--color-text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__panel { order: 0; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .topnav__links { gap: var(--space-4); }
}

/* ===================================================================
   TYPOGRAPHY POLISH  (2026-06-26)  Butterick / Practical Typography.
   Note: the firm style guide forbids en and em dashes in copy, so
   sentence breaks use periods and commas; all other rules enforced.
   =================================================================== */

/* Body leading into the 120 to 145% range; comfortable on screen */
body { line-height: 1.5; }

/* Headings: balanced wrapping, no hyphenation (kerning inherited) */
h1, h2, h3,
.hero__title, .section__title, .section-band__title, .page-hero__title,
.feature-row__title, .cta-band__title, .tier__name, .product-preview__title,
.measurement-engine__title, .integrations__title {
  text-wrap: balance;
  hyphens: none;
}

/* Paragraphs: avoid orphans and widows where supported */
p, .hero__lead-copy, .section__lead, .page-hero__lead, .section-band__lead,
.feature-row__copy, .cta-band__lead { text-wrap: pretty; }

/* Lead paragraphs: tighten leading at larger sizes */
.hero__lead-copy, .section__lead, .page-hero__lead,
.section-band__lead, .cta-band__lead, .feature-row__copy { line-height: 1.5; }

/* Links in long-form content: subtle underline per Butterick */
.page-content a, .reading-shell a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Tabular figures wherever numbers align */
.score-gauge__num, .gate-meter__value, .channel-meter__value, .funnel-meter__value,
.tier__price, .product-screen__row, .kpi-tile__value {
  font-variant-numeric: tabular-nums;
}

/* ===================================================================
   DESIGN-AUDIT REMEDIATION  (2026-06-26)  Phases 1-3.
   Source-ordered last; references existing tokens only.
   =================================================================== */

/* P1.1  Form submit -> sage primary (matches .btn-primary) */
.form-submit {
  font-family: var(--type-base-fam);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-cta-text);
  background: var(--color-cta);
  border: 0;
  border-radius: 7px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.form-submit:hover { background: var(--color-cta-hover); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(159, 198, 169, 0.16); }
.form-submit:focus-visible { outline: 2px solid var(--color-cta); outline-offset: 3px; }
.form-submit:active:not(:disabled) { transform: translateY(0); }
.form-submit:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

/* P1.2  Mobile nav: brand + CTA on row 1, links on a scrollable row 2 */
@media (max-width: 720px) {
  .topnav { flex-wrap: wrap; row-gap: var(--space-3); }
  .topnav__brand { order: 1; }
  .topnav__right { order: 2; margin-left: auto; }
  .topnav__links {
    order: 3; width: 100%; gap: var(--space-4);
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
    flex-wrap: nowrap;
  }
}

/* P2.1  Unify eyebrows: .section-marker reads like .eyebrow (sage, no dash) */
.section-marker { color: var(--color-cta); letter-spacing: 0.2em; }
.section-marker::before { display: none; }

/* P2.2  Composite-score card: keep the gauge vertically centered */
.product-screen__viz--gauge { justify-content: center; min-height: 12rem; }

/* P2.5  Tighten vertical rhythm on mid-page sections (6rem -> 4rem) */
.product-preview, .measurement-engine, .integrations, .pricing, .section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.feature-row { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* P2.6  Cookie notice: sage action + keep the fixed bar off the footer */
.cookie-notice button { background: var(--color-cta); color: var(--color-cta-text); border: 0; }
.cookie-notice button:hover { background: var(--color-cta-hover); }
.footer { padding-bottom: calc(var(--space-6) + 3.5rem); }

/* P3.1  Score gauge: draw the value arc on load */
@keyframes gaugeDraw { from { stroke-dashoffset: 280; } to { stroke-dashoffset: 0; } }
.score-gauge__arc { stroke-dasharray: 280; animation: gaugeDraw 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .score-gauge__arc { animation: none; stroke-dashoffset: 0; }
}

/* P3.3  Explicit focus rings on new nav / footer / tier links */
.topnav__link:focus-visible, .footer__col a:focus-visible, .tier__cta a:focus-visible {
  outline: 2px solid var(--color-accent-focus); outline-offset: 3px; border-radius: 2px;
}

/* P3.4  Form feedback in palette */
.signup-feedback.success { color: var(--color-accent-bright); font-weight: 500; }
.signup-feedback.error { color: var(--color-gold); font-weight: 500; }

/* P3.5  Dotted data-sphere behind the hero score card */
.hero__visual { position: relative; }
.hero__sphere {
  position: absolute;
  top: 50%; left: 50%;
  width: min(34rem, 118%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero__sphere svg { width: 100%; height: 100%; display: block; }
.hero__visual .score-card { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero__sphere { display: none; } }

/* ================================================================
   CONTENT GRID: UNIVERSAL LAYOUT (2026-07-02)
   One site-wide layout primitive. Named grid columns give every
   page the same width system:

     [full]    the 1344px (84rem) main content frame + gutters
     [wide]    84rem (1344px): tables, gate lists, cards, data
     [popout]  56rem: callouts that sit proud of the prose
     [content] 48rem: prose measure (default for all children)

   The grid itself is capped at the frame (owner directive
   2026-07-02): nothing bleeds past 1344px + gutters; the whole
   frame centers in the viewport. Mobile-first: the outer rails
   collapse to --grid-pad on small screens; the width system
   itself needs no media queries.

   Phase 1 (this block): .page-content is aliased onto the grid so
   all 10 reading pages inherit it with zero HTML changes. Marketing
   pages join in the sweep phase by replacing .section__shell with
   .content-grid > .wide.
   ================================================================ */

:root {
  --grid-content-max: 48rem;
  --grid-popout-max: 56rem;
  --grid-wide-max: var(--shell-max);
  --grid-pad: var(--shell-pad-x);
}

.content-grid,
.content-grid > section,
.page-content,
.page-content > section {
  display: grid;
  width: 100%;
  max-width: calc(var(--grid-wide-max) + 2 * var(--grid-pad));
  margin-inline: auto;
  /* Left-anchored: content/popout/wide share the frame's left edge,
     matching the marketing pages' anchor axis */
  grid-template-columns:
    [full-start] minmax(var(--grid-pad), 1fr)
    [wide-start popout-start content-start] min(var(--grid-content-max), 100% - var(--grid-pad) * 2) [content-end]
    minmax(0, calc(var(--grid-popout-max) - var(--grid-content-max))) [popout-end]
    minmax(0, calc(var(--grid-wide-max) - var(--grid-popout-max))) [wide-end]
    minmax(var(--grid-pad), 1fr) [full-end];
  row-gap: 0;
}

/* Zero-specificity default so component rules always win the column */
:where(.content-grid, .content-grid > section, .page-content, .page-content > section) > * {
  grid-column: content;
}

.content-grid > .popout { grid-column: popout; }
.content-grid > .wide { grid-column: wide; }
.content-grid > .full { grid-column: full; }

/* ── Alias phase: reading pages inherit the grid, no HTML edits ── */

.reading-shell {
  max-width: none;
  padding-inline: 0;
}

.page-content {
  padding-inline: 0;
}

/* Sections span the full grid and re-declare identical tracks,
   so their children land on the same columns */
.page-content > section,
.content-grid > section {
  grid-column: full;
}

/* Wide voices, mapped by role until the HTML sweep adds classes */
.page-content .tldr {
  grid-column: popout;
}

.page-content .status-table,
.page-content .paper-list,
.page-content .gate-list {
  grid-column: wide;
}

.page-content .score-gauge-wrap {
  justify-self: center;
}

/* Reading type at marketing scale: same hero language as page-hero */
.page-content h1 {
  grid-column: wide;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 22ch;
  margin: var(--space-2) 0 var(--space-5);
  border-bottom: none;
  padding-bottom: 0;
}

/* First paragraph after the title reads as the hero lead */
.page-content h1 + p {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 54ch;
  margin-bottom: var(--space-6);
}

.page-content p,
.page-content ul,
.page-content ol {
  font-size: 1.0625rem;
}

.page-content h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  margin-top: var(--space-7);
}

/* Gate lists go two-up once the wide track has room */
@media (min-width: 900px) {
  .gate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }

  .gate-list .gate-list__item:last-child {
    border-bottom: 1px solid var(--color-divider);
  }
}

/* ================================================================
   EDITORIAL COMPONENTS (2026-07-02)
   Visual artifacts for the reading pages: stat strips, band scale,
   gate pipeline, decay chart wrapper, info cards, timeline. All
   palette-native, no image files, wide grid column by default.
   ================================================================ */

/* ── Stat strip: row of key figures ── */
ul.stat-strip {
  grid-column: wide;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  margin: var(--space-6) 0;
  list-style: none;
  padding: 0;
}

.stat-strip__cell {
  flex: 1 1 11rem;
  padding: var(--space-5);
  border-left: 1px solid var(--color-divider);
}

.stat-strip__cell:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-strip__num {
  display: block;
  font-family: var(--type-display-fam);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat-strip__label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Band scale: numeric ranges as a segmented bar ── */
.band-scale {
  grid-column: wide;
  display: flex;
  gap: 3px;
  margin: var(--space-5) 0 var(--space-4);
  border-radius: 8px;
  overflow: hidden;
}

.band-scale__seg {
  padding: var(--space-4) var(--space-3);
  min-width: 0;
}

.band-scale__seg--a { flex: 16; background: rgba(31, 184, 166, 0.85); }
.band-scale__seg--b { flex: 15; background: rgba(31, 184, 166, 0.45); }
.band-scale__seg--c { flex: 15; background: rgba(252, 188, 50, 0.5); }
.band-scale__seg--d { flex: 15; background: rgba(252, 188, 50, 0.22); }
.band-scale__seg--f { flex: 40; background: rgba(242, 241, 236, 0.08); }

.band-scale__code {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.band-scale__seg--a .band-scale__code { color: #0A1F1C; }

.band-scale__range {
  display: block;
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.band-scale__seg--a .band-scale__range { color: rgba(10, 31, 28, 0.75); }

@media (max-width: 700px) {
  .band-scale { flex-direction: column; }
  .band-scale__seg { flex: none; }
}

/* ── Gate pipeline: 10 nodes in two tiers ── */
.pipeline {
  grid-column: wide;
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.pipeline__tier-label {
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-2);
}

.pipeline__row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pipeline__gate {
  flex: 1 1 8.5rem;
  min-width: 0;
  border: 1px solid var(--color-divider);
  background: rgba(31, 184, 166, 0.05);
  border-radius: 8px;
  padding: var(--space-3);
  position: relative;
}

.pipeline__gate:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: calc(-1 * var(--space-3) + 2px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.pipeline__num {
  display: block;
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.pipeline__name {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

@media (max-width: 700px) {
  .pipeline__gate:not(:last-child)::after { content: none; }
}

/* ── Chart figure: wrapper for funnel-meter based charts ── */
.chart-figure {
  grid-column: wide;
  margin: var(--space-5) 0;
  max-width: 44rem;
}

.chart-figure .funnel-meter {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.chart-figure figcaption {
  margin-top: var(--space-3);
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* ── Info cards: team, neutrality pillars, analogy ── */
ul.info-cards {
  grid-column: wide;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
  list-style: none;
  padding: 0;
}

.info-card {
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
}

.info-card__kicker {
  display: block;
  font-family: var(--type-mono-fam);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.info-card__title {
  display: block;
  font-family: var(--type-display-fam);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.info-card__title a {
  color: inherit;
}

.info-card__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-body);
  margin: 0;
}

@media (max-width: 800px) {
  .info-cards { grid-template-columns: 1fr; }
}

/* ── Timeline: horizontal milestones ── */
ul.timeline {
  grid-column: wide;
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin: var(--space-5) 0;
  list-style: none;
  padding: 0;
}

.timeline__item {
  flex: 1 1 11rem;
  min-width: 0;
  position: relative;
  padding-top: var(--space-4);
  border-top: 2px solid rgba(31, 184, 166, 0.35);
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-bright);
}

.timeline__date {
  display: block;
  font-family: var(--type-mono-fam);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.timeline__label {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-body);
}
