/* ==========================================================================
   RallyNPS — Editorial Landing Page
   Aesthetic: data-journalism, newspaper grid, sidenotes, annotated charts.
   Type system: Fraunces (display), Instrument Sans (body), JetBrains Mono (data),
                 Caveat (margin annotations).
   Color discipline: paper + forest ink. Mustard marker used ≤ 5 times.
   ========================================================================== */

:root {
  /* Color palette — forest/cream editorial */
  --ink: #0F1A14;
  --paper: #F5F1E6;
  --brand: #35644F;
  --sage: #A8D5B5;
  --muted: #7AA88A;
  --border-ink: #2D4A35;
  --cream: #F0EDE5;
  --marker: #E8C547;
  --detractor: #B85C3E;
  --passive: #C9BB8E;

  /* Type families — Fraunces (display big-numbers), Instrument Sans (body + headings),
     JetBrains Mono (data, labels, microcopy), Caveat (LIMITED hand annotation, max 2/page) */
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ff-hand: "Caveat", "Bradley Hand", cursive;

  /* Type scale — 6-step consolidated (+ fluid display sizes) */
  --fs-micro: 11px;
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-lead: 18px;
  --fs-h3:   clamp(18px, 1.6vw, 22px);
  --fs-h2:   clamp(26px, 3vw, 36px);
  --fs-h1:   clamp(26px, 3.6vw, 42px);

  /* Spacing — 4/8/12/16/20/24/32/40/48/64 rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px;

  /* Radii — 4 / 8 / 12 / 16 (cards use 12) */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows — two main tiers plus an emphasized third for popovers/modals */
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 26, 20, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 26, 20, 0.14);

  --measure: 62ch;
  --col: 1fr;
  --page-px: clamp(20px, 4vw, 56px);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  /* Faint paper texture via layered radial gradients — no images */
  background-image:
    radial-gradient(1400px 800px at 10% -5%, rgba(53,100,79,0.06), transparent 60%),
    radial-gradient(1100px 700px at 105% 10%, rgba(232,197,71,0.05), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(15,26,20,0.04), transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--marker); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* Focus rings — mustard marker */
:focus-visible {
  outline: 2px solid var(--marker);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ========== Layout shell ========== */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

/* Editorial grid — 12 cols, wide right margin on desktop for sidenotes */
.editorial {
  display: grid;
  grid-template-columns:
    [left-edge] minmax(0, 2fr)
    [main-start] minmax(0, 8fr)
    [main-end] minmax(0, 3fr)
    [right-edge];
  gap: 0 32px;
}

@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; gap: 0; }
}

.col-main { grid-column: main-start / main-end; }
.col-side { grid-column: main-end / right-edge; }
.col-full { grid-column: left-edge / right-edge; }
.col-wide { grid-column: left-edge / main-end; }

/* ========== Nav strip ========== */
.nav {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--border-ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--page-px);
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
}

.wordmark {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 150ms ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover { opacity: 1; }

.nav-signin-wrap {
  position: relative;
}
.nav-pencil {
  position: absolute;
  right: -110px;
  top: -2px;
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marker);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 900px) {
  .nav-pencil { display: none; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-links a.nav-hide-sm { display: none; }
}

/* ========== Hero ========== */
.hero {
  padding: 72px 0 48px;
  position: relative;
}

.kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--muted);
  display: inline-block;
}

.h1 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 14ch;
  margin-bottom: 24px;
}
.h1 em {
  font-family: var(--ff-body);
  font-style: normal;
  color: var(--brand);
  position: relative;
  font-weight: 700;
  isolation: isolate;
}
.h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: 0.02em;
  height: 0.22em;
  background: var(--marker);
  opacity: 0.55;
  z-index: -1;
  transform: skewX(-6deg) rotate(-0.6deg);
  border-radius: 2px;
}

.h1 .w {
  display: inline;
}
.h1 .w > span {
  display: inline;
}

.lede {
  font-family: var(--ff-body);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--brand);
  max-width: 48ch;
  margin-bottom: 36px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.005em;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: none;
  padding: 14px 4px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--brand); }

.fineprint {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Hero layout: text left, chart overlapping right margin */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 32px;
  align-items: start;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-figure {
  position: relative;
  margin-right: calc(var(--page-px) * -0.8);
  margin-top: 8px;
  margin-bottom: -40px;
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-right: 0; margin-top: 24px; }
}

/* Hide chart annotations on small viewports where they would overlap */
@media (max-width: 600px) {
  .chart-annotation { display: none; }
}

/* ========== Chart ========== */
.chart-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 920 / 560;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-bignum {
  position: absolute;
  top: -6px;
  left: -4px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--brand);
  transform: rotate(-1deg);
  z-index: 3;
  letter-spacing: -0.03em;
  pointer-events: none;
}
.chart-bignum small {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  transform: rotate(2deg);
  margin-left: 14px;
}

.chart-caption {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-ink);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-caption b {
  color: var(--ink);
  font-weight: 600;
}

/* Chart bar base state for animation */
.chart-bar {
  transform-origin: bottom center;
  transform-box: fill-box;
}

/* Chart insights — handwritten "pen" notes in the whitespace beneath the chart. */
.chart-insights {
  display: grid;
  grid-template-columns: 7fr 2fr 2fr;
  gap: 24px;
  margin-top: 36px;            /* breathing room between chart and notes */
  padding: 20px 5.2% 0 6.8%;
  border-top: 1px solid rgba(45,74,53,0.1);
}
.chart-insight { position: relative; padding-top: 12px; border-top: 2px solid currentColor; }
.chart-insight--detractor { color: #B85C3E; }
.chart-insight--passive   { color: #B89A3A; }
.chart-insight--promoter  { color: #35644F; }
.chart-insight-pill { display: none; }  /* replaced by the colored border-top */
.chart-insight-group {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: currentColor;
  margin-bottom: 4px;
}
.chart-insight-text {
  font-family: var(--ff-hand);   /* Caveat — written in pen */
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 4px;
}
.chart-insight-text b {
  color: currentColor;
  font-weight: 700;
}
.chart-insight-action {
  font-family: var(--ff-hand);
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  color: currentColor;
  opacity: 0.9;
  margin: 0;
}
@media (max-width: 760px) {
  .chart-insights {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0 0;
  }
}
.chart-annotation-leader {
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  fill: none;
}
.chart-axis-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
.chart-threshold {
  stroke: var(--marker);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  fill: none;
}
/* chart-threshold-label removed — threshold lines now communicate via color alone */

/* Sidenote (aside) */
.sidenote {
  font-family: var(--ff-hand);
  font-size: 21px;
  line-height: 1.35;
  color: var(--border-ink);
  transform: rotate(-0.6deg);
  max-width: 22ch;
  padding: 12px 0;
  margin: 8px 0;
}
.sidenote .dagger {
  color: var(--marker);
  font-weight: 700;
  margin-right: 6px;
}

.hero-sidenote {
  position: absolute;
  right: calc(var(--page-px) * -0.2);
  bottom: 8%;
  max-width: 20ch;
  z-index: 4;
}
@media (max-width: 1100px) {
  .hero-sidenote {
    position: static;
    margin-top: 16px;
  }
}

/* ========== Section rule (horizontal) ========== */
.rule {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--border-ink);
  opacity: 0.45;
  margin: 72px 0 56px;
  transform-origin: left center;
}

/* ========== Social proof band (placeholder — replace copy when customers ship) ========== */
/* ========== Quotes section ========== */
.quotes-section { padding: 64px 0 72px; }

.quotes-kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.quotes-heading {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: none;  /* one line on desktop */
  margin: 0 0 40px;
}
.quotes-heading em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .quotes-grid { grid-template-columns: 1fr; gap: 16px; }
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 26px 24px;
  background: var(--paper);
  border: 1px solid rgba(45, 74, 53, 0.14);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15,26,20,0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  margin: 0;
}
.quote-card:hover {
  border-color: rgba(53, 100, 79, 0.45);
  box-shadow: 0 6px 18px rgba(15,26,20,0.08);
  transform: translateY(-2px);
}

.quote-body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  position: relative;
}
.quote-body::before {
  content: "\201C";
  position: absolute;
  left: -10px;
  top: -18px;
  font-family: var(--ff-display);
  font-size: 56px;
  color: var(--brand);
  opacity: 0.25;
  line-height: 1;
}
.quote-body em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.quote-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 74, 53, 0.1);
}
.quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(53,100,79,0.18), rgba(53,100,79,0.05));
  border: 1px dashed rgba(45, 74, 53, 0.3);
  flex-shrink: 0;
}
.quote-meta { display: flex; flex-direction: column; gap: 2px; }
.quote-author {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.quote-role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== Read like an editor (3-part articles) ========== */
.editor-section { padding: 48px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

.h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: none;  /* prefer one line; let the column width wrap when needed */
}
.h2 em { font-style: italic; color: var(--brand); }

.section-deck {
  font-family: var(--ff-body);
  font-size: 17px;
  color: var(--brand);
  max-width: 38ch;
  line-height: 1.55;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
}
@media (max-width: 900px) {
  .articles { grid-template-columns: 1fr; }
}

.article {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--border-ink);
  display: flex;
  flex-direction: column;
  position: relative;
}
.article:last-child { border-right: none; }
@media (max-width: 900px) {
  .article { border-right: none; border-bottom: 1px solid var(--border-ink); }
  .article:last-child { border-bottom: none; }
}

.byline {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.byline .no {
  color: var(--brand);
  font-weight: 600;
}

.article h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
}

.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.article-body::first-letter {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 62px;
  line-height: 1.0;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--brand);
  font-style: normal;
}

.excerpt {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--marker);
  background: rgba(232, 197, 71, 0.08);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--border-ink);
}
.excerpt .label {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.excerpt.from-coach { border-left-color: var(--brand); background: rgba(53, 100, 79, 0.06); }
.excerpt.from-analyst { border-left-color: var(--muted); background: rgba(122, 168, 138, 0.08); }

/* ========== Survey types — newspaper index ========== */
/* Survey types cloud — "if you can imagine it, we do it" */
.types-section { padding: 56px 0 64px; }

.types-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}
.type-chip {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(45,74,53,0.22);
  border-radius: 9999px;
  padding: 8px 16px;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
  cursor: default;
}
.type-chip:hover {
  border-color: var(--brand);
  background: rgba(53,100,79,0.05);
  transform: translateY(-1px);
}
.type-chip--custom {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
  font-weight: 600;
}
.type-chip--custom:hover {
  background: rgba(53,100,79,0.92);
  color: var(--paper);
}

/* Legacy index rules retained for any pages that still reference them */
.index-section { padding: 72px 0; }
.index-list { list-style: none; border-top: 1px solid var(--border-ink); }
.index-list li { display: grid; grid-template-columns: 3fr 7fr 2fr; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(45, 74, 53, 0.35); }
.index-name { font-family: var(--ff-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); }
.index-purpose { font-size: 15px; color: var(--border-ink); }
.index-tag { font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; color: var(--brand); text-align: right; }
@media (max-width: 760px) {
  .index-list li { grid-template-columns: 1fr; gap: 6px; }
  .index-tag { text-align: left; }
}

/* ========== Rigor pull quote ========== */
.rigor-section {
  padding: 96px 0 88px;
  position: relative;
}

.pullquote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 36px;
  align-items: start;
  max-width: 66ch;
}
.pullquote .mark {
  font-family: var(--ff-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 1.0;
  color: var(--marker);
  transform-origin: top left;
}
.pullquote blockquote {
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-indent: -0.3em;
}
.pullquote blockquote em {
  color: var(--brand);
  font-style: italic;
}
.pullquote cite {
  grid-column: 2;
  display: block;
  margin-top: 24px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ========== Pricing dark band ========== */
.pricing-band {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
}
.pricing-band .kicker { color: var(--sage); }
.pricing-band .kicker::before { background: var(--sage); }

.pricing-band h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  color: var(--cream);
  max-width: 28ch;
  margin-bottom: 48px;
  letter-spacing: -0.015em;
}
.pricing-band h2 em { font-style: italic; color: var(--sage); font-weight: 500; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-ink);
}
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--border-ink);
  position: relative;
}
.tier:last-child { border-right: none; }
@media (max-width: 900px) {
  .tier { border-right: none; border-bottom: 1px solid var(--border-ink); }
  .tier:last-child { border-bottom: none; }
}

.tier-head {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tier-headline {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 6px;
}
.tier-headline .price {
  font-weight: 300;
  font-style: italic;
  color: var(--sage);
}
.tier-desc {
  margin-top: 18px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: rgba(240, 237, 229, 0.78);
  line-height: 1.55;
  max-width: 32ch;
}

.pricing-cta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 4px;
}
.pricing-cta:hover { color: var(--marker); border-bottom-color: var(--marker); }

/* ========== Rally footer band ========== */
.footer-band {
  padding: 80px 0 40px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-ink);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--ink);
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.footer-lead {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
}
.footer-lead b {
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}

.footer-meta {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-hand {
  font-family: var(--ff-hand);
  font-size: 20px;
  color: var(--border-ink);
  text-transform: none;
  letter-spacing: 0;
  transform: rotate(-0.8deg);
}

/* ========== Inline sidenotes (for use across sections) ========== */
.marginalia {
  font-family: var(--ff-hand);
  font-size: 19px;
  line-height: 1.35;
  color: var(--border-ink);
  padding: 12px 0;
  margin: 8px 0;
}

.marginalia .dagger { color: var(--marker); margin-right: 4px; }

details.note-mobile {
  display: none;
  font-family: var(--ff-hand);
  font-size: 20px;
  color: var(--border-ink);
  margin: 12px 0;
}
details.note-mobile summary {
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  details.note-mobile { display: block; }
}

/* ========== Animations (respect reduced motion) ========== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero H1 word reveal */
  .h1 .w > span {
    transform: translateY(110%);
    animation: word-rise 900ms cubic-bezier(.2, .8, .2, 1) forwards;
  }
  .h1 .w:nth-child(1) > span { animation-delay: 80ms; }
  .h1 .w:nth-child(2) > span { animation-delay: 160ms; }
  .h1 .w:nth-child(3) > span { animation-delay: 240ms; }
  .h1 .w:nth-child(4) > span { animation-delay: 320ms; }
  .h1 .w:nth-child(5) > span { animation-delay: 400ms; }
  .h1 .w:nth-child(6) > span { animation-delay: 480ms; }
  .h1 .w:nth-child(7) > span { animation-delay: 560ms; }
  .h1 .w:nth-child(8) > span { animation-delay: 640ms; }
  .h1 .w:nth-child(9) > span { animation-delay: 720ms; }

  @keyframes word-rise {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
  }

  /* Bars stagger */
  .chart-bar {
    transform: scaleY(0);
    animation: bar-rise 900ms cubic-bezier(.2, .8, .2, 1) forwards;
  }
  .chart-bar[data-i="0"]  { animation-delay: 200ms; }
  .chart-bar[data-i="1"]  { animation-delay: 260ms; }
  .chart-bar[data-i="2"]  { animation-delay: 320ms; }
  .chart-bar[data-i="3"]  { animation-delay: 380ms; }
  .chart-bar[data-i="4"]  { animation-delay: 440ms; }
  .chart-bar[data-i="5"]  { animation-delay: 500ms; }
  .chart-bar[data-i="6"]  { animation-delay: 560ms; }
  .chart-bar[data-i="7"]  { animation-delay: 620ms; }
  .chart-bar[data-i="8"]  { animation-delay: 680ms; }
  .chart-bar[data-i="9"]  { animation-delay: 740ms; }
  .chart-bar[data-i="10"] { animation-delay: 800ms; }

  @keyframes bar-rise {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
  }

  /* Annotation fade-in and leader line draw */
  .chart-annotation {
    opacity: 0;
    animation: fade-in 500ms ease 1100ms forwards;
  }
  .chart-annotation-leader {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: leader-draw 800ms cubic-bezier(.2,.8,.2,1) 1200ms forwards;
  }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes leader-draw {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
  }

  .chart-threshold {
    stroke-dasharray: 3 4, 500;
    animation: dash-appear 600ms ease 900ms forwards;
    opacity: 0;
  }
  @keyframes dash-appear { from { opacity: 0; } to { opacity: 1; } }

  .chart-bignum {
    opacity: 0;
    transform: rotate(-2deg) translateY(-8px);
    animation: bignum-settle 700ms cubic-bezier(.2,.8,.2,1) 1200ms forwards;
  }
  @keyframes bignum-settle {
    to { opacity: 1; transform: rotate(-2deg) translateY(0); }
  }

  /* Pull quote marks */
  .pullquote .mark {
    transform: scale(0.85);
    opacity: 0;
    transition: transform 700ms cubic-bezier(.2,.8,.2,1), opacity 700ms ease;
  }
  .pullquote.in .mark { transform: scale(1); opacity: 1; }

  /* Section rules */
  .rule {
    transform: scaleX(0);
    transition: transform 900ms cubic-bezier(.2,.8,.2,1);
  }
  .rule.in { transform: scaleX(1); }

  /* Sidenote reveal */
  .sidenote, .marginalia {
    opacity: 0;
    transform: translateY(8px) rotate(-0.6deg);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
  }
  .sidenote.in, .marginalia.in {
    opacity: 1;
    transform: translateY(0) rotate(-0.6deg);
  }

  .hero-sidenote { transition-delay: 1400ms; }
}

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    animation-delay: 0ms !important;
  }
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
