@import url('/assets/css/fonts.css');
@import url('/assets/css/tokens.css');

/* ===========================================================================
   1. Base
   =========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-2xl); font-weight: 800; }
h2 { font-size: var(--t-xl); font-weight: 800; }
h3 { font-size: var(--t-lg); font-weight: 600; }
h4 { font-size: var(--t-md); font-weight: 600; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; }

strong { font-weight: 600; }

/* Focus is visible everywhere, and never removed for mouse users only. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r-md) 0;
  font-family: var(--display);
}
.skip:focus { left: 0; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===========================================================================
   2. Layout
   =========================================================================== */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - (var(--gutter) * 2), 74ch);
  margin-inline: auto;
}

.band { padding-block: var(--band); }
.band-tight { padding-block: calc(var(--band) * 0.6); }

/* Inverted bands carry the deep surface. The curve on the leading edge is the
   site's section transition — a straight full-width rule between sections is
   the templated default this design is trying not to read as. */
.band-deep {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
}
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4 { color: var(--on-deep); }
.band-deep a { color: var(--brand); }
.band-deep a:hover { color: #fff; }

.curve-top {
  border-start-start-radius: var(--r-xl);
  border-start-end-radius: var(--r-xl);
}
.curve-bottom {
  border-end-start-radius: var(--r-xl);
  border-end-end-radius: var(--r-xl);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 var(--s-3);
  display: block;
}
.band-deep .eyebrow { color: var(--brand); }

.section-head { max-width: 62ch; margin-bottom: var(--s-6); }
.section-head p { color: var(--ink-2); font-size: var(--t-md); margin-top: var(--s-3); }
.band-deep .section-head p { color: var(--on-deep-2); }

/* ===========================================================================
   3. Header
   =========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 68px;
}

.brandmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}
.brandmark:hover { color: var(--brand-deep); }
.brandmark svg { flex-shrink: 0; }

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  display: block;
  transition: color var(--fast) var(--ease-out), background var(--fast) var(--ease-out);
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a[aria-current='page'] { color: var(--brand-deep); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  /* 44px minimum — this is a touch target, and it only ever renders on touch. */
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: var(--s-4);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: var(--s-3); border-radius: var(--r-sm); }
  .site-head__in { flex-wrap: wrap; }
}

/* ===========================================================================
   4. Hero
   =========================================================================== */

.hero {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
  overflow: hidden;
  border-end-start-radius: var(--r-xl);
  border-end-end-radius: var(--r-xl);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}

/* One gradient, on one surface. It sits behind the hero only and stays inside
   the brand hue family so it reads as depth rather than as a second colour. */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(58% 48% at 78% 8%, rgba(226, 62, 124, 0.34), transparent 68%),
    radial-gradient(46% 42% at 10% 0%, rgba(20, 196, 179, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__in { position: relative; }

.hero h1 {
  font-size: var(--t-3xl);
  color: #fff;
  max-width: 19ch;
  margin-bottom: var(--s-5);
}

.hero__lede {
  font-size: var(--t-md);
  color: var(--on-deep-2);
  max-width: 58ch;
  margin-bottom: var(--s-6);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--deep-3);
}
.hero__stat { min-width: 0; }
.hero__stat dt {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  margin-bottom: var(--s-2);
}
.hero__stat dd {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__stat dd span { color: var(--brand); }

/* ===========================================================================
   5. Buttons
   =========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition:
    transform var(--fast) var(--spring),
    box-shadow var(--mid) var(--ease-out),
    background var(--fast) var(--ease-out),
    color var(--fast) var(--ease-out);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--brand-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--paper-3); color: var(--ink); transform: translateY(-2px); }
.band-deep .btn-ghost, .hero .btn-ghost { color: var(--on-deep); border-color: var(--deep-3); }
.band-deep .btn-ghost:hover, .hero .btn-ghost:hover { background: var(--deep-2); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ===========================================================================
   6. Comparison table — the homepage's central object
   =========================================================================== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--display);
  font-size: var(--t-sm);
  min-width: 720px;
}

.cmp caption {
  caption-side: top;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-family: var(--body);
  font-size: var(--t-sm);
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}

.cmp thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-3);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.cmp tbody th,
.cmp tbody td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: 0; }

.cmp tbody tr { transition: background var(--fast) var(--ease-out); }
.cmp tbody tr:hover { background: var(--brand-soft); }

.cmp__rank {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-3);
  width: 3ch;
  font-variant-numeric: tabular-nums;
}

.cmp__name a {
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.cmp__name a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease-out);
}
.cmp__name a:hover { color: var(--brand-deep); }
.cmp__name a:hover::after,
.cmp__name a:focus-visible::after { transform: scaleX(1); }

.cmp__focus { color: var(--ink-2); max-width: 34ch; }
.cmp__meta { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px var(--s-2);
  border-radius: var(--r-sm);
  background: var(--paper-3);
  color: var(--ink-3);
  white-space: nowrap;
}
.tag-network { background: var(--brand-soft); color: var(--brand-deep); }
.tag-platform { background: var(--high-soft); color: var(--high); }
.tag-gone { background: #eeecf2; color: var(--gone); }

/* ===========================================================================
   7. The tier ladder — the signature element
   ---------------------------------------------------------------------------
   The job: make one counter-intuitive fact obvious to someone who has never
   bought a campaign — as audience grows, the share of it that engages falls.
   A table of percentages states that. Two bars running in opposite directions
   let you see it before you have read a word.
   =========================================================================== */

.ladder {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-6) 0;
}

.rung {
  display: grid;
  grid-template-columns: 8.5rem 1fr 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: border-color var(--mid) var(--ease-out), box-shadow var(--mid) var(--ease-out);
}
.rung:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }

.rung__label { min-width: 0; }
.rung__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-md);
  display: block;
  line-height: 1.15;
}
.rung__range {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  white-space: nowrap;
}

.rung__metric { min-width: 0; }
.rung__cap {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.rung__cap b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.bar {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  width: var(--w);
  transform-origin: left;
  /* Duration varies per rung so the five bars never land together — a single
     synchronised finish is what makes an animated chart read as scripted. */
  transition: transform var(--dur, 900ms) var(--ease-out);
}

/* Reach is the neutral quantity: more is simply more. */
.bar--reach > i { background: linear-gradient(90deg, var(--ink-3), var(--ink-2)); }
/* Engagement carries the judgement, so it carries the semantic colour: teal is
   good and the ramp toward magenta is the story of the whole ladder. */
.bar--eng > i { background: linear-gradient(90deg, var(--high-bright), var(--brand)); }

.anim .bar > i { transform: scaleX(0); }
.anim .rung.is-in .bar > i { transform: scaleX(1); }

.ladder__key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: var(--s-4);
}
.ladder__key span { display: inline-flex; align-items: center; gap: var(--s-2); }
.ladder__key i { width: 14px; height: 8px; border-radius: var(--r-pill); display: block; }

.rung__note {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--rule);
  margin-top: var(--s-1);
}
.rung__note b { font-family: var(--display); color: var(--ink); }

@media (max-width: 720px) {
  .rung { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ===========================================================================
   8. Cards
   =========================================================================== */

.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    transform var(--mid) var(--ease-out),
    box-shadow var(--mid) var(--ease-out),
    border-color var(--mid) var(--ease-out);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.card h3 { font-size: var(--t-md); }
.card p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.card__meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: auto;
  padding-top: var(--s-2);
}

.band-deep .card {
  background: var(--deep-2);
  border-color: var(--deep-3);
}
.band-deep .card p { color: var(--on-deep-2); }
.band-deep a.card:hover { border-color: var(--brand); }
.band-deep .card__meta { color: var(--on-deep-2); }

/* ===========================================================================
   9. Prose
   =========================================================================== */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--t-lg); }
.prose h3 { margin-top: var(--s-6); font-size: var(--t-md); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--s-5); margin-block: var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--brand); }

.lede {
  font-size: var(--t-md);
  color: var(--ink-2);
  line-height: 1.55;
}

blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--brand);
  background: var(--paper-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2);
}

/* A callout used for caveats about data quality. Amber is a semantic colour
   here, doing the job it is reserved for. */
.note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid rgba(154, 98, 18, 0.22);
  font-size: var(--t-sm);
  color: var(--warn);
  margin-block: var(--s-5);
}
.note svg { flex-shrink: 0; margin-top: 2px; }
.note b { font-family: var(--display); }
.note a { color: var(--warn); }

/* ===========================================================================
   10. Profile pages
   =========================================================================== */

.profile-head { display: grid; gap: var(--s-5); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-1);
  margin: 0;
  padding: var(--s-2);
  background: var(--paper-3);
  border-radius: var(--r-lg);
}
.facts > div {
  padding: var(--s-4);
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-base);
  line-height: 1.3;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.chips li {
  font-family: var(--display);
  font-size: var(--t-sm);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.band-deep .chips li { background: var(--deep-2); border-color: var(--deep-3); }

/* Results readout on brand pages. */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0;
  padding: 0;
}
.results > div {
  padding: var(--s-5);
  background: var(--deep);
  color: var(--on-deep);
  border-radius: var(--r-lg);
}
.results dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  margin-bottom: var(--s-3);
}
.results dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-lg);
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.sources { font-size: var(--t-sm); }
.sources ol { padding-left: var(--s-5); }
.sources li { margin-bottom: var(--s-2); color: var(--ink-2); }
.sources cite { font-style: normal; color: var(--ink-3); font-family: var(--mono); font-size: var(--t-xs); }

/* ===========================================================================
   10b. Explainer components
   ---------------------------------------------------------------------------
   Defined once here and reused across the six topic pages. Each one exists to
   make a specific comparison legible to someone who has never bought a
   campaign; none of them is decoration.
   =========================================================================== */

/* --- stacked proportion bar: where a budget actually goes ---------------- */

.stack {
  display: flex;
  height: 44px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--s-5) 0 var(--s-3);
  border: 1px solid var(--rule);
  background: var(--paper-3);
}
.stack > span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: #fff;
  width: var(--w);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transform-origin: left;
  transition: transform var(--dur, 900ms) var(--ease-out);
}
.anim .stack > span { transform: scaleX(0); }
.anim .stack.is-in > span { transform: scaleX(1); }

.stack__key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.stack__key li { display: flex; align-items: center; gap: var(--s-2); }
.stack__key i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* --- do / don't pair ------------------------------------------------------ */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
.compare > div {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.compare h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--t-base);
}
.compare ul { margin: 0; padding-left: var(--s-5); font-size: var(--t-sm); }
.compare li + li { margin-top: var(--s-2); }
.compare--yes { border-color: rgba(11, 125, 115, 0.35); background: var(--high-soft); }
.compare--yes h3 { color: var(--high); }
.compare--yes li::marker { color: var(--high); }
.compare--no { border-color: rgba(185, 38, 95, 0.28); background: var(--brand-soft); }
.compare--no h3 { color: var(--brand-deep); }
.compare--no li::marker { color: var(--brand-deep); }

/* --- signal strength meter: which metrics mean something ----------------- */

.meters { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.meter {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.meter__name { font-family: var(--display); font-weight: 600; font-size: var(--t-sm); }
.meter__name small {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.meter__body { min-width: 0; }
.meter__val {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  display: block;
  margin-top: var(--s-2);
}
@media (max-width: 620px) {
  .meter { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* --- sequence: only where order genuinely carries information ----------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-3); }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--t-sm);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--deep);
  color: var(--brand);
}
.steps h3 { margin-bottom: var(--s-2); font-size: var(--t-base); }
.steps p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.steps blockquote {
  margin: var(--s-3) 0 0;
  padding: var(--s-3);
  font-size: var(--t-sm);
  background: var(--paper-3);
  border-left-width: 2px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* --- rate card table ----------------------------------------------------- */

.rates { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: var(--t-sm); min-width: 560px; }
.rates caption {
  caption-side: bottom;
  text-align: left;
  padding-top: var(--s-3);
  font-family: var(--body);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.rates th, .rates td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); text-align: left; }
.rates thead th {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-3);
}
.rates tbody th { font-weight: 600; }
.rates td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===========================================================================
   11. Footer
   =========================================================================== */

.site-foot {
  background: var(--deep);
  color: var(--on-deep-2);
  padding-block: var(--s-8) var(--s-6);
  margin-top: var(--band);
  border-start-start-radius: var(--r-xl);
  border-start-end-radius: var(--r-xl);
}
.site-foot h2 {
  font-size: var(--t-sm);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  margin-bottom: var(--s-4);
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: var(--s-2); }
.site-foot a {
  color: var(--on-deep);
  text-decoration: none;
  font-family: var(--display);
  font-size: var(--t-sm);
  transition: color var(--fast) var(--ease-out);
}
.site-foot a:hover { color: var(--brand); }

.foot-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--deep-3);
}
.foot-note {
  padding-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--on-deep-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
}

/* ===========================================================================
   12. Motion
   ---------------------------------------------------------------------------
   Everything that hides content sits behind `.anim`, which site.js only adds
   once it is running. If the script fails, nothing is ever hidden and the page
   reads exactly as it should — the content is simply there.
   =========================================================================== */

.anim .reveal { opacity: 0; transform: translateY(14px); }
.anim .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--slow) var(--ease-out),
    transform var(--slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Reduced motion must still show everything — no transform, no fade, but
     never a permanently hidden element. */
  .anim .reveal { opacity: 1; transform: none; }
  .anim .bar > i { transform: scaleX(1); }
}

/* ===========================================================================
   13. Print
   =========================================================================== */

@media print {
  .site-head, .site-foot, .nav-toggle, .btn { display: none; }
  body { background: #fff; color: #000; }
  .hero, .band-deep, .results > div { background: #fff !important; color: #000 !important; }
  .hero h1, .band-deep h2, .results dd { color: #000 !important; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
}
