/* Pitch Unfairly site toolbox: the components a proposal reaches for every
   time (hero, glance band, calculator, comparison, stats, quotes, timeline,
   FAQ, close, header, sample line, viewers). Copy this file to site/toolbox.css;
   the build loads it after the brand and before site/styles.css, where the
   site adapts it. It reads only the brand kit's tokens, so it takes any brand.
   Every class starts with tb- so a site's own styles never collide with it.
   Snippets and guidance: site-toolbox/README.md and site-toolbox/components/. */

:root {
  --tb-wrap: 1200px;
  --tb-gutter: clamp(20px, 5vw, 64px);
  --tb-band: clamp(72px, 9vw, 128px);
  --tb-rule: color-mix(in oklab, var(--ink) 13%, var(--paper));
  --tb-rule-strong: color-mix(in oklab, var(--ink) 30%, var(--paper));
  --tb-tint: color-mix(in oklab, var(--accent) 7%, var(--paper));
  --tb-tint-2: color-mix(in oklab, var(--accent) 16%, var(--paper));
  --tb-night-rule: color-mix(in oklab, var(--on-night) 16%, var(--night));
  --tb-night-muted: color-mix(in oklab, var(--on-night) 72%, var(--night));
  --tb-radius: min(var(--radius-base, 16px), 24px);
  --tb-radius-s: min(var(--radius-base, 16px), 12px);
  --tb-lift: 0 1px 2px color-mix(in oklab, var(--ink) 8%, transparent), 0 24px 56px -24px color-mix(in oklab, var(--ink) 38%, transparent);
  --tb-label: 600 12px/1.3 var(--font-body);
}

/* data-when and toggles hide with [hidden]; no component's display wins over it. */
[hidden] { display: none !important; }

/* ── Layout and type ── */
.tb-wrap { max-width: calc(var(--tb-wrap) + 2 * var(--tb-gutter)); margin-inline: auto; padding-inline: var(--tb-gutter); }
.tb-band { padding-block: var(--tb-band); position: relative; }
[data-tone='paper'] { background: var(--paper); }
[data-tone='surface'] { background: var(--surface); }
[data-tone='night'] { background: var(--night); color: var(--on-night); }
[data-tone='night'] :is(h1, h2, h3) { color: var(--headline-on-night); }
[data-tone='night'] .hl { color: var(--hl-on-night); }
.tb-eyebrow { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.tb-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); flex: none; }
[data-tone='night'] .tb-eyebrow { color: var(--tb-night-muted); }
[data-tone='night'] .tb-eyebrow::before { background: var(--accent-on-night); }
.tb-h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; max-width: 26ch; }
.tb-lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 52ch; }
[data-tone='night'] .tb-lede { color: var(--tb-night-muted); }
.tb-head { margin-bottom: clamp(36px, 5vw, 56px); }
.tb-num { font-variant-numeric: tabular-nums lining-nums; }
.tb-nowrap { white-space: nowrap; }

/* ── Buttons and links: one primary per screen; the rest are text links ── */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-button, 999px); border: var(--border-base, 1px) solid var(--ink); background: transparent; color: var(--ink); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms, transform 120ms; }
.tb-btn:hover { background: var(--ink); color: var(--paper); }
.tb-btn:active { transform: translateY(1px) scale(.98); }
.tb-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tb-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.tb-btn-big { min-height: 56px; padding: 0 30px; font-size: 16px; }
[data-tone='night'] .tb-btn { border-color: var(--on-night); color: var(--on-night); }
[data-tone='night'] .tb-btn:hover { background: var(--on-night); color: var(--night); }
[data-tone='night'] .tb-btn-primary { background: var(--accent-on-night); border-color: var(--accent-on-night); color: var(--night); }
[data-tone='night'] .tb-btn-primary:hover { background: var(--on-night); border-color: var(--on-night); }
.tb-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--tb-rule-strong); transition: color 160ms, text-decoration-color 160ms; }
.tb-link:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.tb-link span { transition: transform 200ms var(--ease); }
.tb-link:hover span { transform: translateX(3px); }
[data-tone='night'] .tb-link { color: var(--on-night); text-decoration-color: var(--tb-night-rule); }
[data-tone='night'] .tb-link:hover { color: var(--accent-on-night); text-decoration-color: var(--accent-on-night); }

/* Small source tags and the detail toggle */
.tb-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 9px; border-radius: 999px; background: var(--tb-tint); color: var(--ink-muted); font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; max-width: 100%; }
.tb-tag-ex { background: transparent; border: 1px dashed var(--tb-rule-strong); }
[data-tone='night'] .tb-tag { background: color-mix(in oklab, var(--on-night) 10%, transparent); color: var(--tb-night-muted); }
details.tb-more { margin-top: 28px; border-top: 1px solid var(--tb-rule); }
details.tb-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font: 600 15px/1.3 var(--font-body); color: var(--ink); }
details.tb-more > summary::-webkit-details-marker { display: none; }
details.tb-more > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform 220ms var(--ease); flex: none; margin-right: 6px; }
details.tb-more[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
details.tb-more > summary:hover { color: var(--accent-dark); }
.tb-more-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 4px 0 20px; font-size: 15px; color: var(--ink-muted); max-width: 80ch; }
[data-tone='night'] details.tb-more { border-color: var(--tb-night-rule); }
[data-tone='night'] details.tb-more > summary { color: var(--on-night); }
[data-tone='night'] .tb-more-body { color: var(--tb-night-muted); }
.tb-fine { font-size: 13px; line-height: 1.5; color: var(--ink-muted); max-width: 90ch; margin-top: 28px; }
[data-tone='night'] .tb-fine { color: var(--tb-night-muted); }

/* ── Sticky header with section nav ── */
.tb-top { background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--tb-rule); }
.tb-top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.tb-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font: var(--display-weight) 22px/1 var(--font-display); }
.tb-brand img { height: 28px; width: auto; }
.tb-nav { display: flex; gap: 4px; font: 500 14.5px/1 var(--font-body); }
.tb-nav a { padding: 10px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-muted); transition: color 160ms, background 160ms; }
.tb-nav a:hover { color: var(--ink); background: var(--tb-tint); }
.tb-nav a.is-here { color: var(--ink); background: var(--tb-tint-2); }
.tb-top .tb-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ── The sample band (a sample built by Unfairly): one slim band at the top of the
   sticky header, in the Pitch Unfairly house palette (cream, ink, magenta, periwinkle,
   yellow, cyan, pink; Sora and DM Sans) whatever the page's brand, so it reads as
   "not part of this proposal". The palette is tokens a kit can override; these are the
   only fixed colors in the toolbox, on purpose. The band's tone and its pill come from
   sample-tone.mjs (data-sample-tone, data-sample-pill), which keeps both away from the
   provider's own hues. Every text pair here is 4.5:1 or better. ── */
@font-face { font-family: 'Unfairly Sora'; src: url(assets/fonts/unfairly-sora.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Unfairly DM Sans'; src: url(assets/fonts/unfairly-dm-sans.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }
:root {
  --tb-sample-paper: #faf5eb;
  --tb-sample-ink: #1a1612;
  --tb-sample-magenta: #c92a89;
  --tb-sample-magenta-dark: #9a176e;
  --tb-sample-periwinkle: #697ffc;
  --tb-sample-yellow: #ffd866;
  --tb-sample-cyan: #81ebeb;
  --tb-sample-pink: #f5a7c4;
  --tb-sample-display: 'Unfairly Sora', ui-sans-serif, system-ui, sans-serif;
  --tb-sample-body: 'Unfairly DM Sans', ui-sans-serif, system-ui, sans-serif;
  /* What the band and the close use, set by the variants below. */
  --tb-sample-band: var(--tb-sample-yellow);
  --tb-sample-pill: var(--tb-sample-magenta);
  --tb-sample-pill-ink: var(--tb-sample-paper);
  --tb-sample-pill-hover: var(--tb-sample-magenta-dark);
  --tb-sample-close: var(--tb-sample-magenta);
  --tb-sample-close-ink: var(--tb-sample-paper);
  --tb-sample-close-hl: var(--tb-sample-yellow);
  --tb-top-h: 68px;
}
:root:has([data-sample-tone='cyan']) { --tb-sample-band: var(--tb-sample-cyan); }
:root:has([data-sample-tone='pink']) { --tb-sample-band: var(--tb-sample-pink); }
:root:has([data-sample-pill='periwinkle']) { --tb-sample-pill: var(--tb-sample-periwinkle); --tb-sample-pill-ink: var(--tb-sample-ink); --tb-sample-pill-hover: var(--tb-sample-paper); --tb-sample-close: var(--tb-sample-periwinkle); --tb-sample-close-ink: var(--tb-sample-ink); --tb-sample-close-hl: var(--tb-sample-paper); }
:root:has([data-sample-pill='ink']) { --tb-sample-pill: var(--tb-sample-ink); --tb-sample-pill-ink: var(--tb-sample-paper); --tb-sample-pill-hover: var(--tb-sample-magenta-dark); --tb-sample-close: var(--tb-sample-ink); --tb-sample-close-ink: var(--tb-sample-paper); --tb-sample-close-hl: var(--tb-sample-yellow); }
:root:has(.tb-sample-bar) { --tb-top-h: 112px; }
html { scroll-padding-top: calc(var(--tb-top-h) + 12px); }
.tb-sample-bar { background: var(--tb-sample-band); color: var(--tb-sample-ink); border-bottom: 2px solid var(--tb-sample-ink); font: 500 14px/1.3 var(--tb-sample-body); letter-spacing: -.005em; text-transform: none; }
.tb-sb-row { display: flex; align-items: center; gap: 8px 20px; min-height: 44px; }
.tb-sb-mark { display: inline-flex; align-items: center; gap: 9px; flex: none; font: 800 16px/1 var(--tb-sample-display); letter-spacing: -.04em; color: var(--tb-sample-ink); white-space: nowrap; }
/* The mark: three house colors, each ringed in ink so it shows on any band tone. */
.tb-sb-dots { display: inline-flex; }
.tb-sb-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--tb-sample-ink); background: var(--tb-sample-magenta); }
.tb-sb-dots i + i { margin-left: -3px; background: var(--tb-sample-periwinkle); }
.tb-sb-dots i:last-child { background: var(--tb-sample-cyan); }
.tb-sb-text { flex: 1 1 auto; min-width: 0; color: var(--tb-sample-ink); }
.tb-sb-short { display: none; }
@media (max-width: 1279px) { .tb-sb-tail { display: none; } }
.tb-sb-actions { display: flex; align-items: center; gap: 4px 16px; flex: none; }
.tb-sample-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-family: var(--tb-sample-body); }
.tb-sb-book { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--tb-sample-pill); color: var(--tb-sample-pill-ink); font: 700 13.5px/1 var(--tb-sample-body); text-decoration: none; white-space: nowrap; transition: background 160ms, color 160ms, transform 120ms; }
.tb-sb-book:hover { background: var(--tb-sample-pill-hover); color: var(--tb-sample-pill-ink); }
:root:has([data-sample-pill='periwinkle']) .tb-sb-book:hover { color: var(--tb-sample-ink); }
.tb-sb-book:active { transform: translateY(1px) scale(.98); }
.tb-sb-email { display: inline-flex; align-items: center; min-height: 32px; color: var(--tb-sample-ink); font: 700 13.5px/1 var(--tb-sample-body); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.tb-sb-email:hover { text-decoration-color: var(--tb-sample-magenta); }
.tb-sb-made { display: inline-flex; align-items: center; min-height: 44px; color: var(--tb-sample-ink); font: 600 13px/1 var(--tb-sample-body); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.tb-sb-made:hover { text-decoration-thickness: 2px; }
.tb-sample-bar :focus-visible, .tb-sample-ctas :focus-visible { outline: 2px solid var(--tb-sample-ink); outline-offset: 3px; }
/* The PDF has no header: the first page carries the band, links written out. */
.tb-sample-print { margin: calc(-1 * var(--tb-hero-top)) 0 clamp(28px, 4.5vw, 48px); padding: 12px 0; background: var(--tb-sample-band); color: var(--tb-sample-ink); border-bottom: 2px solid var(--tb-sample-ink); font: 500 14px/1.4 var(--tb-sample-body); }
.tb-sample-print .tb-wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.is-pdf .tb-sample-print { margin: 0 0 28px; padding: 12px 20px; border: 2px solid var(--tb-sample-ink); border-radius: 12px; }

/* The close of an Unfairly sample (.tb-sample-close on its section): the house's own
   close, magenta with cream type and a yellow marker highlight (ink on yellow, never yellow
   type on magenta: that is 3.7:1), chips for the steps. */
.tb-sample-close { background: var(--tb-sample-close); color: var(--tb-sample-close-ink); font-family: var(--tb-sample-body);
  --night: var(--tb-sample-close); --on-night: var(--tb-sample-close-ink); --accent-on-night: var(--tb-sample-close-hl); --headline-on-night: var(--tb-sample-close-ink); --hl-on-night: var(--tb-sample-close-hl);
  --tb-night-rule: color-mix(in oklab, var(--tb-sample-close-ink) 28%, var(--tb-sample-close)); --tb-night-muted: var(--tb-sample-close-ink); }
.tb-sample-close :is(h2, h3) { font-family: var(--tb-sample-display); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--tb-sample-close-ink); }
.tb-sample-close .hl { color: var(--tb-sample-ink); background: var(--tb-sample-close-hl); padding: 0 .12em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tb-sample-close .tb-eyebrow { color: var(--tb-sample-close-ink); }
.tb-sample-close .tb-eyebrow::before { background: var(--tb-sample-close-hl); }
.tb-sample-close .tb-lede { color: var(--tb-sample-close-ink); }
.tb-sample-close .tb-close-steps li::before { border: 1.5px solid var(--tb-sample-ink); border-radius: 10px; background: var(--tb-sample-yellow); color: var(--tb-sample-ink); font: 800 15px/1 var(--tb-sample-display); }
.tb-sample-close .tb-close-steps li:nth-child(2)::before { background: var(--tb-sample-cyan); }
.tb-sample-close .tb-close-steps li:nth-child(3)::before { background: var(--tb-sample-pink); }
.tb-sample-close .tb-close-steps b, .tb-sample-close .tb-close-steps span { color: var(--tb-sample-close-ink); }
.tb-sample-close .tb-sb-book { background: var(--tb-sample-paper); color: var(--tb-sample-ink); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--tb-sample-ink) 60%, transparent); }
.tb-sample-close .tb-sb-book:hover { background: var(--tb-sample-yellow); color: var(--tb-sample-ink); }
.tb-sample-close .tb-sb-email { color: var(--tb-sample-close-ink); }

/* ── Hero: who it's for, one headline, one sentence, one action, the art ── */
.tb-hero { --tb-hero-top: clamp(48px, 7vw, 96px); padding-block: var(--tb-hero-top) clamp(140px, 14vw, 184px); background: var(--surface); overflow-x: clip; }
.tb-hero-copy { min-width: 0; }
.tb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tb-for { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 32px; padding: 8px 18px 8px 16px; border: 1px solid var(--tb-rule); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink-muted); }
.tb-for b { font: var(--display-weight) 18px/1.1 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.tb-for-with { padding-left: 14px; border-left: 1px solid var(--tb-rule); }
.tb-hero h1 { font-size: calc(clamp(44px, 5.6vw, 80px) * var(--display-scale, 1)); line-height: 1; max-width: 13ch; }
.tb-hero h1 .hl { display: block; }
.tb-hero .tb-lede { margin-top: 28px; color: var(--ink); max-width: 30em; font-size: clamp(19px, 1.6vw, 22px); }
.tb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.tb-hero-art { margin: 0; position: relative; }
.tb-hero-art::before { content: ''; position: absolute; inset: -10% -6%; background: radial-gradient(closest-side, var(--tb-tint-2), transparent 72%); z-index: 0; }
.tb-hero-art > * { position: relative; z-index: 1; width: 100%; height: auto; }
.tb-hero-art .drawing { color: var(--ink); }
/* A line drawing (strokes, no fills) is traced by the pen, then its ink appears. */
.tb-hero-art .drawing .ink { stroke-opacity: 0; }
.tb-hero-art .drawing.is-drawn .ink { stroke-opacity: 1; transition: stroke-opacity 900ms ease 1900ms; }
.has-motion .tb-hero :is(.tb-for, h1 > span, .tb-lede, .tb-hero-actions) { animation: kit-rise 800ms var(--ease) both; }
.has-motion .tb-hero h1 > span + span { animation-delay: 140ms; }
.has-motion .tb-hero .tb-lede { animation-delay: 280ms; }
.has-motion .tb-hero .tb-hero-actions { animation-delay: 400ms; }
.tb-hero h1 > span { display: inline; }
.tb-hero h1 > .hl { display: block; }

/* ── Glance band: the decision in one sentence, then three or four numbers ── */
.tb-glance-band { position: relative; z-index: 2; margin-top: clamp(-120px, -10vw, -96px); padding-bottom: 8px; }
.tb-glance { background: var(--night); color: var(--on-night); border-radius: var(--tb-radius); box-shadow: var(--tb-lift); overflow: hidden; }
.tb-glance-ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; padding: 22px clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--tb-night-rule); font: var(--display-weight) clamp(18px, 1.6vw, 21px)/1.4 var(--font-display); color: var(--on-night); letter-spacing: -.005em; }
.tb-glance-l { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--night); background: var(--accent-on-night); padding: 6px 10px; border-radius: 999px; transform: translateY(-2px); }
.tb-glance-nums { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.tb-g { position: relative; padding: 30px clamp(20px, 3vw, 36px) 32px; border-left: 1px solid var(--tb-night-rule); }
.tb-g:first-child { border-left: 0; }
.tb-g::before { content: ''; position: absolute; left: clamp(20px, 3vw, 36px); top: 0; height: 3px; width: 40px; background: var(--accent-on-night); }
.has-motion .tb-glance:not(.is-in) .tb-g::before { width: 0; }
.has-motion .tb-glance.is-in .tb-g::before { transition: width 900ms var(--ease) calc(var(--i, 0) * 120ms + 300ms); }
.tb-g:nth-child(2) { --i: 1; } .tb-g:nth-child(3) { --i: 2; } .tb-g:nth-child(4) { --i: 3; }
.tb-g-label { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--tb-night-muted); margin-bottom: 14px; }
.tb-g-n { font: var(--display-weight) clamp(34px, 3.6vw, 52px)/1 var(--font-display); letter-spacing: -.025em; color: var(--on-night); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.tb-g.is-focal .tb-g-n { color: var(--accent-on-night); }
.tb-g-c { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--tb-night-muted); max-width: 26ch; }

/* ── Split: a headline beside its proof (context, problem, how it works) ── */
.tb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.tb-split .tb-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.tb-split-body { display: grid; gap: 18px; font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 56ch; }

/* Compare bars: two or three figures as horizontal bars (this year vs renewal) */
.tb-bars { display: grid; gap: 22px; }
.tb-bar-row { display: grid; gap: 8px; }
.tb-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: var(--ink-muted); }
.tb-bar-top b { font: var(--display-weight) clamp(24px, 2.4vw, 32px)/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.tb-bar-track { height: 14px; border-radius: 999px; background: var(--tb-rule); overflow: hidden; }
.tb-bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--tb-rule-strong); transition: width 450ms var(--ease); }
.tb-bar-row.is-focal .tb-bar-track i { background: var(--accent); }
.tb-bar-row.is-focal .tb-bar-top b { color: var(--accent-dark); }

/* ── Cards: three to four pillars (how it works) ── */
.tb-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tb-card { display: grid; gap: 12px; align-content: start; padding: 28px; border: 1px solid var(--tb-rule); border-radius: var(--tb-radius); background: var(--paper); }
[data-tone='paper'] .tb-card { background: var(--surface); border-color: transparent; }
.tb-card.is-focal { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tb-card-n { font: var(--display-weight) 15px/1 var(--font-display); color: var(--accent); }
.tb-card .tb-icon { width: 32px; height: 32px; color: var(--accent); }
.tb-card h3 { font-size: 23px; line-height: 1.2; }
.tb-card p { font-size: 16px; color: var(--ink-muted); }

/* ── Calculator: controls, one big live answer, a chart, the detail behind a toggle ── */
.tb-calc { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tb-calc-controls { display: grid; gap: 22px; padding: 28px; border-radius: var(--tb-radius); background: var(--surface); }
[data-tone='surface'] .tb-calc-controls { background: var(--paper); }
.tb-ctl-label { font: var(--tb-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.tb-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--tb-rule-strong); border-radius: 999px; background: var(--paper); }
.tb-seg button { flex: 1 1 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background 160ms, color 160ms; white-space: nowrap; }
.tb-seg button:hover { background: var(--tb-tint); }
.tb-seg button.is-on { background: var(--ink); color: var(--paper); }
.tb-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tb-presets button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--tb-rule-strong); border-radius: var(--tb-radius-s); background: var(--paper); color: var(--ink); font: 600 14px/1.2 var(--font-body); cursor: pointer; text-align: left; transition: background 160ms, color 160ms, border-color 160ms; }
.tb-presets button:hover { border-color: var(--ink); }
.tb-presets button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tb-slider { display: grid; gap: 6px; font-size: 15px; color: var(--ink); }
.tb-slider-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tb-slider output { font: var(--display-weight) 19px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tb-slider input[type='range'] { width: 100%; height: 44px; accent-color: var(--accent); margin: 0; }
.tb-calc-summary { grid-column: 1 / -1; margin: 0 0 12px; font: 500 15px/1.5 var(--font-body); color: var(--ink-muted); }
.tb-calc-out { display: grid; gap: 28px; min-width: 0; }
.tb-answer { padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.tb-answer-k { font: var(--tb-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.tb-answer-n { margin-top: 10px; font: var(--display-weight) clamp(56px, 7vw, 96px)/.95 var(--font-display); letter-spacing: -.035em; color: var(--accent-dark); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.tb-answer-line { margin-top: 14px; font-size: 18px; line-height: 1.45; color: var(--ink); max-width: 46ch; }
.tb-answer-line b { font-weight: 650; }
.tb-flag { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--tb-radius-s); background: var(--tb-tint); color: var(--ink); font-size: 15px; }
.tb-flag::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.tb-chart { display: grid; gap: 14px; }
.tb-hbar { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14.5px; color: var(--ink-muted); }
.tb-hbar-track { position: relative; height: 26px; border-radius: 6px; background: var(--tb-tint); overflow: hidden; }
.tb-hbar-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--tb-rule-strong); transition: width 450ms var(--ease); }
.tb-hbar-track i.is-base { background: color-mix(in oklab, var(--ink) 55%, var(--paper)); }
.tb-hbar.is-focal .tb-hbar-track i:not(.is-base) { background: var(--accent); }
.tb-hbar.is-focal { color: var(--ink); font-weight: 600; }
.tb-hbar-v { font: var(--display-weight) 17px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; }
.tb-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-muted); }
.tb-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--tb-rule-strong); }
.tb-key.is-base { background: color-mix(in oklab, var(--ink) 55%, var(--paper)); }
.tb-key.is-focal { background: var(--accent); }

/* Tables (calculator detail, assumptions) */
.tb-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb-table :is(th, td) { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--tb-rule); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.tb-table :is(th, td):first-child { text-align: left; }
.tb-table thead th { font: var(--tb-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); border-bottom-color: var(--ink); }
.tb-table tbody th { font-weight: 500; color: var(--ink); }
.tb-table .is-total :is(th, td) { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); }
.tb-table .is-col { background: var(--tb-tint); }

/* ── Comparison table: options side by side, the recommended column lit ── */
.tb-compare-wrap { overflow-x: auto; }
.tb-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.tb-compare :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--tb-rule); text-align: left; vertical-align: top; }
.tb-compare thead th { padding-top: 22px; font: var(--display-weight) 21px/1.2 var(--font-display); color: var(--ink); border-bottom: 1px solid var(--ink); }
.tb-compare thead th:first-child { width: 24%; }
.tb-compare tbody th { font-weight: 600; color: var(--ink); }
.tb-compare td { color: var(--ink); }
.tb-compare td p + .tb-tag { margin-top: 10px; }
.tb-compare .is-rec { background: var(--tb-tint); }
.tb-compare thead .is-rec { position: relative; border-radius: var(--tb-radius-s) var(--tb-radius-s) 0 0; box-shadow: inset 0 3px 0 var(--accent); }
.tb-compare tbody tr:last-child .is-rec { border-radius: 0 0 var(--tb-radius-s) var(--tb-radius-s); }
.tb-rec { display: block; margin-bottom: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.tb-compare .tb-yes, .tb-compare .tb-no { display: inline-flex; gap: 8px; align-items: center; }
.tb-yes::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tb-no::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--tb-rule-strong); }

/* ── Versus: the edge case, two outcomes side by side, ours lit ── */
.tb-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tb-vs-col { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--tb-radius); border: 1px solid var(--tb-rule); background: var(--paper); }
.tb-vs-col.is-focal { background: var(--night); color: var(--on-night); border-color: var(--night); }
.tb-vs-k { font: var(--tb-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.tb-vs-col.is-focal .tb-vs-k { color: var(--accent-on-night); }
.tb-vs-n { font: var(--display-weight) clamp(40px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-vs-col.is-focal .tb-vs-n { color: var(--on-night); }
.tb-vs-t { font-size: 16px; color: var(--ink-muted); }
.tb-vs-col.is-focal .tb-vs-t { color: var(--tb-night-muted); }
[data-tone='night'] .tb-vs-col:not(.is-focal) { background: color-mix(in oklab, var(--on-night) 6%, var(--night)); border-color: var(--tb-night-rule); }
[data-tone='night'] .tb-vs-col:not(.is-focal) :is(.tb-vs-n) { color: var(--on-night); }
[data-tone='night'] .tb-vs-col:not(.is-focal) :is(.tb-vs-k, .tb-vs-t) { color: var(--tb-night-muted); }
[data-tone='night'] .tb-vs-col.is-focal { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-tone='night'] .tb-vs-col.is-focal .tb-vs-n { color: var(--accent-dark); }
[data-tone='night'] .tb-vs-col.is-focal .tb-vs-k { color: var(--accent-dark); }
[data-tone='night'] .tb-vs-col.is-focal .tb-vs-t { color: var(--ink-muted); }

/* ── Stats: big numbers, each with its exact qualifier ── */
.tb-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tb-stat { padding: 26px 24px 4px 0; display: grid; gap: 10px; align-content: start; }
.tb-stat + .tb-stat { padding-left: 24px; border-left: 1px solid var(--tb-rule); }
.tb-stat-n { font: var(--display-weight) clamp(44px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.tb-stat:first-child .tb-stat-n { color: var(--accent-dark); }
.tb-stat-l { font-size: 15.5px; line-height: 1.4; color: var(--ink); max-width: 24ch; }
.tb-stat-q { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }

/* ── Quotes: one large pull quote, or a row of two or three cards ── */
.tb-pull { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 40px); max-width: 1040px; }
.tb-pull::before { content: '\201C'; grid-row: 1 / span 2; font: var(--display-weight) clamp(120px, 14vw, 200px)/.72 var(--font-display); color: var(--accent); }
.tb-pull blockquote { margin: 0; }
.tb-pull blockquote p { font: var(--display-weight) clamp(28px, 3.3vw, 46px)/1.16 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.tb-pull figcaption { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--tb-rule); }
[data-tone='night'] .tb-pull blockquote p { color: var(--on-night); }
[data-tone='night'] .tb-pull::before { color: var(--accent-on-night); }
[data-tone='night'] .tb-pull figcaption { border-color: var(--tb-night-rule); }
.tb-who { display: flex; align-items: center; gap: 14px; }
.tb-mono { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tb-tint-2); color: var(--accent-dark); font: 700 15px/1 var(--font-body); letter-spacing: .02em; }
.tb-who img { flex: none; height: 32px; width: auto; }
.tb-who-name { display: block; font-weight: 700; color: var(--ink); font-size: 16px; }
.tb-who-role { display: block; font-size: 14px; color: var(--ink-muted); }
[data-tone='night'] .tb-who-name { color: var(--on-night); }
[data-tone='night'] .tb-who-role { color: var(--tb-night-muted); }
[data-tone='night'] .tb-mono { background: color-mix(in oklab, var(--accent-on-night) 22%, var(--night)); color: var(--accent-on-night); }
.tb-quotes { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.tb-quote { margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 28px; border-radius: var(--tb-radius); background: var(--surface); }
[data-tone='surface'] .tb-quote { background: var(--paper); }
.tb-quote::before { content: '\201C'; font: var(--display-weight) 64px/.6 var(--font-display); color: var(--accent); height: 28px; }
.tb-quote blockquote { margin: 0; }
.tb-quote blockquote p { font: var(--display-weight) clamp(19px, 1.6vw, 22px)/1.35 var(--font-display); color: var(--ink); letter-spacing: -.005em; }
.tb-quote .tb-mono { width: 40px; height: 40px; font-size: 13px; }
.tb-quotes-src { margin-top: 18px; }

/* ── Timeline: dated milestones, the path so far filled, today marked ── */
.tb-timeline { --now: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0 20px; position: relative; }
.tb-timeline { --col: calc((100% - (var(--n, 5) - 1) * 20px) / var(--n, 5)); }
.tb-timeline::before, .tb-timeline::after { content: ''; position: absolute; left: 8px; top: 53px; height: 2px; border-radius: 2px; }
/* The track runs from the first dot to the last; the accent fills it up to today. */
.tb-timeline::before { right: calc(var(--col) - 8px); background: var(--tb-rule); }
.tb-timeline::after { width: calc(var(--now) * (var(--col) + 20px)); background: var(--accent); transform-origin: left; }
.has-motion .tb-timeline:not(.is-in)::after { transform: scaleX(0); }
.has-motion .tb-timeline.is-in::after { transition: transform 1200ms var(--ease) 200ms; }
.tb-step { position: relative; display: grid; gap: 8px; align-content: start; }
.tb-step-when { font: var(--tb-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); min-height: 26px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-today { padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--font-body); letter-spacing: .08em; }
.tb-step-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin: 12px 0 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--tb-rule-strong); }
.tb-step.is-done .tb-step-dot { background: var(--accent); border-color: var(--accent); }
.tb-step.is-now .tb-step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--tb-tint-2); }
.tb-step.is-key h3 { color: var(--accent-dark); font-size: 27px; }
.tb-step.is-key .tb-step-line { font-weight: 600; }
.tb-step.is-key .tb-step-dot { background: var(--accent); border-color: var(--accent); width: 22px; height: 22px; margin-top: 9px; box-shadow: 0 0 0 7px var(--tb-tint-2); }
[data-tone='night'] .tb-step.is-key h3 { color: var(--accent-on-night); }
[data-tone='night'] .tb-step.is-key .tb-step-dot { background: var(--accent-on-night); border-color: var(--accent-on-night); box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent-on-night) 28%, var(--night)); }
[data-tone='night'] .tb-step.is-key .tb-step-when { color: var(--on-night); }
.tb-step.is-end .tb-step-dot { background: var(--ink); border-color: var(--ink); width: 18px; height: 18px; margin-top: 11px; }
.has-motion .tb-step.is-now .tb-step-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: tb-ping 2.6s ease-out infinite; }
@keyframes tb-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2); opacity: 0; } }
.tb-step h3 { font-size: 21px; line-height: 1.2; }
.tb-step-who { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.tb-step-who::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tb-rule-strong); margin-right: 7px; vertical-align: 2px; }
.tb-step-line { font-size: 15px; line-height: 1.45; color: var(--ink); }
.has-motion .tb-timeline:not(.is-in) .tb-step { opacity: 0; transform: translateY(10px); }
.has-motion .tb-timeline.is-in .tb-step { transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.tb-step:nth-child(2) { --i: 1; } .tb-step:nth-child(3) { --i: 2; } .tb-step:nth-child(4) { --i: 3; } .tb-step:nth-child(5) { --i: 4; } .tb-step:nth-child(6) { --i: 5; }
[data-tone='night'] .tb-timeline::before { background: var(--tb-night-rule); }
[data-tone='night'] .tb-timeline::after { background: var(--accent-on-night); }
[data-tone='night'] .tb-step-when { color: var(--accent-on-night); }
[data-tone='night'] .tb-step-dot { background: var(--night); border-color: var(--tb-night-muted); }
[data-tone='night'] .tb-step:is(.is-done, .is-now) .tb-step-dot { background: var(--accent-on-night); border-color: var(--accent-on-night); }
[data-tone='night'] .tb-step.is-end .tb-step-dot { background: var(--on-night); border-color: var(--on-night); }
[data-tone='night'] .tb-step-line { color: var(--on-night); }
[data-tone='night'] .tb-step-who { color: var(--tb-night-muted); }

/* ── FAQ: the heading stays put while the answers open ── */
.tb-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tb-faq-intro { position: sticky; top: calc(var(--tb-top-h) + 36px); }
.tb-faq-list { border-top: 1px solid var(--ink); }
.tb-qa { border-bottom: 1px solid var(--tb-rule); }
.tb-qa > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; font: var(--display-weight) clamp(18px, 1.6vw, 21px)/1.3 var(--font-display); color: var(--ink); transition: color 160ms; }
.tb-qa > summary::-webkit-details-marker { display: none; }
.tb-qa > summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tb-rule-strong); font: 400 20px/1 var(--font-body); color: var(--accent-dark); transition: transform 200ms var(--ease), background 160ms; }
.tb-qa[open] > summary::after { transform: rotate(45deg); background: var(--tb-tint); }
.tb-qa > summary:hover { color: var(--accent-dark); }
.tb-qa > p { padding: 0 48px 22px 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-muted); max-width: 64ch; }

/* ── Close: one action, who to contact, the PDF ── */
.tb-close-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.tb-close h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; max-width: 16ch; }
.tb-close-steps { list-style: none; margin: 36px 0 40px; padding: 0; display: grid; gap: 18px; counter-reset: tb-step; }
.tb-close-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; counter-increment: tb-step; }
.tb-close-steps li::before { content: counter(tb-step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent-on-night); color: var(--accent-on-night); font: var(--display-weight) 16px/1 var(--font-display); }
.tb-close-steps b { display: block; color: var(--on-night); font-size: 17px; }
.tb-close-steps span { color: var(--tb-night-muted); font-size: 15.5px; }
.tb-close-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.tb-contact { padding: 32px; border-radius: var(--tb-radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--night) 80%, transparent); display: grid; gap: 4px; }
.tb-contact-k { font: var(--tb-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.tb-contact-name { font: var(--display-weight) 26px/1.15 var(--font-display); color: var(--ink); }
.tb-contact-role { font-size: 15px; color: var(--ink-muted); }
.tb-contact-mail { margin-top: 10px; font-weight: 600; color: var(--accent-dark); word-break: break-word; }
.tb-contact-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tb-rule); font-size: 14.5px; color: var(--ink-muted); }
.tb-contact .tb-link { color: var(--ink); }

/* ── Viewers: who read it (an example of what the sender sees) ── */
.tb-viewers { border-radius: var(--tb-radius); background: var(--paper); box-shadow: var(--tb-lift); border: 1px solid var(--tb-rule); overflow: hidden; }
.tb-viewers-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--tb-rule); }
.tb-viewers-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--tb-rule-strong); }
.tb-viewers-bar p { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.tb-viewers ol { list-style: none; margin: 0; padding: 6px 20px; }
.tb-viewer { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--tb-rule); }
.tb-viewer:last-child { border-bottom: 0; }
.tb-viewer .tb-mono, [data-tone='night'] .tb-viewer .tb-mono { width: 40px; height: 40px; font-size: 13px; grid-row: span 2; background: var(--tb-tint-2); color: var(--accent-dark); }
.tb-viewer-who { font-weight: 650; color: var(--ink); font-size: 15px; }
.tb-viewer-what { grid-column: 2; font-size: 14px; color: var(--ink-muted); }
.tb-viewer-when { grid-column: 3; grid-row: 1; font-size: 12.5px; color: var(--ink-muted); text-align: right; white-space: nowrap; }
.tb-viewer-read { grid-column: 3; grid-row: 2; width: 72px; height: 6px; border-radius: 999px; background: var(--tb-rule); overflow: hidden; justify-self: end; }
.tb-viewer-read i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.tb-viewers-tag { padding: 10px 20px 14px; font-size: 12px; color: var(--ink-muted); }

/* ── Footer ── */
.tb-foot { padding-block: 36px; border-top: 1px solid var(--tb-rule); background: var(--surface); font-size: 14px; color: var(--ink-muted); }
.tb-foot-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.tb-foot-row p { max-width: 80ch; }

/* ── Motion for charts (Mainstay is the reference). Every number and chart
   moves three ways: it enters once (count-up, wipe, grow, draw, staggered with
   --d), it glides when an input changes (the transitions below), and a figure
   that changed flashes. Each resting state is the finished one, so the PDF,
   reduced motion and no-JS all show the end. ── */
/* Live tween: any bar or column the model sizes glides to its new value. */
[data-bar] { transition: width 450ms var(--ease), height 450ms var(--ease), y 450ms var(--ease); }
/* A figure that changed flashes. On the accent answer and on night, a soft wash instead of a color. */
.tb-answer-n .is-changed, .tb-vs-n .is-changed { animation: tb-wash 900ms ease-out; border-radius: 6px; }
@keyframes tb-wash { 0% { background-color: var(--tb-tint-2); } 100% { background-color: transparent; } }
:is([data-tone='night'], .tb-glance) .is-changed { animation: tb-changed-night 900ms ease-out; }
@keyframes tb-changed-night { 0% { color: var(--accent-on-night); } }
/* Was and now: the old figure is struck, then the new one lands (in a [data-in] parent). */
.tb-was { position: relative; display: inline-block; }
.tb-was::after { content: ''; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 2px; background: var(--accent); transform-origin: left; }
[data-tone='night'] .tb-was::after, .tb-glance .tb-was::after { background: var(--accent-on-night); }
.has-motion [data-in]:not(.is-in) .tb-was::after { transform: scaleX(0); }
.has-motion [data-in].is-in .tb-was::after { transition: transform 500ms cubic-bezier(.65, 0, .35, 1) 900ms; }
.has-motion [data-in]:not(.is-in) .tb-now { opacity: 0; transform: translateY(8px); }
.has-motion [data-in].is-in .tb-now { transition: opacity 450ms 1300ms, transform 450ms var(--ease) 1300ms; }
.tb-now { display: inline-block; }
/* Two outcomes arrive one after the other. */
.has-motion .tb-vs[data-in]:not(.is-in) .tb-vs-col { opacity: 0; transform: translateY(12px); }
.has-motion .tb-vs[data-in].is-in .tb-vs-col { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.has-motion .tb-vs[data-in].is-in .tb-vs-col + .tb-vs-col { transition-delay: 160ms; }
/* The timeline's next step is outlined in the accent. */
.tb-step.is-next .tb-step-dot { border-color: var(--accent); }
[data-tone='night'] .tb-step.is-next .tb-step-dot { border-color: var(--accent-on-night); }

/* ── Statement: one idea set big ── */
.tb-statement .tb-wrap { display: grid; gap: 0; }
.tb-statement-line { font-size: calc(clamp(40px, 5.6vw, 84px) * var(--display-scale, 1)); line-height: 1.02; letter-spacing: -.025em; max-width: 18ch; text-wrap: balance; }
.tb-statement:not([data-tone='night']) .tb-statement-line .hl { color: var(--accent-dark); }
.tb-statement-by { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-muted); max-width: 48ch; }
[data-tone='night'] .tb-statement-by { color: var(--tb-night-muted); }

/* ── Heard: what the reader asked for, answered ── */
.tb-heard { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tb-heard-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px clamp(24px, 5vw, 72px); align-items: baseline; padding: 26px 0 26px 20px; border-bottom: 1px solid var(--tb-rule); }
.tb-heard-row h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
.tb-heard-row p { font-size: 17px; line-height: 1.55; color: var(--ink-muted); max-width: 52ch; }
.tb-heard-row.is-focal h3 { color: var(--accent-dark); }
.tb-heard-row.is-focal { box-shadow: inset 3px 0 0 var(--accent); }

/* ── Scope: included, and not ── */
.tb-scope { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.tb-scope-col { padding: 28px; border-radius: var(--tb-radius); border: 1px solid var(--tb-rule); background: var(--paper); }
.tb-scope-col.is-out { background: transparent; }
.tb-scope-col h3 { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.tb-scope-col.is-in h3 { color: var(--accent-dark); }
.tb-scope-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.tb-scope-col li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--tb-rule); font-size: 16.5px; line-height: 1.45; }
.tb-scope-col li:first-child { border-top: 0; }
.tb-scope-col li::before { content: ''; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; }
.tb-scope-col.is-in li::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tb-scope-col.is-out li { color: var(--ink-muted); }
.tb-scope-col.is-out li::before { border: 1.5px solid var(--tb-rule-strong); }

/* ── Tiers: plans as cards, the recommended one lit ── */
.tb-tiers { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.tb-tier { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--tb-rule); border-radius: var(--tb-radius); background: var(--paper); }
[data-tone='paper'] .tb-tier { background: var(--surface); border-color: transparent; }
.tb-tier.is-rec { border: 2px solid var(--accent); background: var(--paper); box-shadow: var(--tb-lift); }
.tb-tier .tb-rec { margin-bottom: -6px; }
.tb-tier h3 { font-size: 23px; line-height: 1.2; }
.tb-tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink-muted); font-size: 14px; }
.tb-tier-n { font: var(--display-weight) clamp(36px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.tb-tier.is-rec .tb-tier-n { color: var(--accent-dark); }
.tb-tier-for { font-size: 16px; color: var(--ink); }
.tb-tier ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--tb-rule); display: grid; gap: 9px; font-size: 15px; color: var(--ink-muted); }
.tb-tier li { position: relative; padding-left: 16px; }
.tb-tier li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tb-tier-total { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tb-rule); font-size: 14px; color: var(--ink-muted); }
.tb-tier-total b { color: var(--ink); font-weight: 700; }
.tb-tier .tb-btn { align-self: stretch; }

/* ── Team: the people the reader will work with ── */
.tb-team { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px 24px; list-style: none; margin: 0; padding: 0; }
.tb-person { display: grid; gap: 6px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); }
.tb-person-face { display: block; margin-bottom: 12px; }
.tb-person-face img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.tb-person-face .tb-mono { width: 64px; height: 64px; font-size: 18px; }
.tb-person-name { font: var(--display-weight) 22px/1.2 var(--font-display); color: var(--ink); }
.tb-person-role { font-size: 14px; color: var(--ink-muted); }
.tb-person-line { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 34ch; }

/* ── Photos: the client's own, one lead and two beside it ── */
.tb-photos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(380px, 38vw, 560px); }
.tb-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; margin: 0; min-height: 0; }
.tb-photo.is-lead { grid-row: span 2; }
.tb-photo img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; border-radius: var(--tb-radius); background: var(--surface); }
.tb-photo figcaption { font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.tb-photo-credit { margin-top: 14px; font-size: 12px; color: var(--ink-muted); }

/* ── Tabs: facets of one idea, the reader picks one; every panel prints ── */
.tb-tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); border: 1px solid var(--tb-rule); border-radius: var(--tb-radius); background: var(--paper); overflow: hidden; }
[data-tone='paper'] .tb-tabs { background: var(--surface); }
.tb-tablist { display: grid; align-content: start; border-right: 1px solid var(--tb-rule); }
.tb-tab { position: relative; display: grid; gap: 4px; align-content: start; min-height: 44px; padding: 22px 26px; border: 0; border-bottom: 1px solid var(--tb-rule); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 160ms, color 160ms; }
.tb-tab:last-child { border-bottom: 0; }
.tb-tab:hover { background: var(--tb-tint); }
.tb-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.tb-tab.is-on { background: var(--night); color: var(--on-night); }
.tb-tab.is-on::after { content: ''; position: absolute; right: -1px; top: 50%; width: 14px; height: 14px; background: inherit; transform: translate(50%, -50%) rotate(45deg); z-index: 1; }
.tb-tab:has(.tb-tab-ic) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
.tb-tab-ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; }
.tb-tab-ic svg { width: 22px; height: 22px; }
.tb-tab.is-on .tb-tab-ic { border-color: var(--accent-on-night); color: var(--accent-on-night); }
.tb-tab-k { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.tb-tab.is-on .tb-tab-k { color: var(--accent-on-night); }
.tb-tab-t { font: var(--display-weight) 20px/1.25 var(--font-display); }
.tb-tabpanels { display: grid; padding: clamp(28px, 3.5vw, 44px); }
.tb-tabpanel { display: grid; gap: 16px; align-content: start; }
.js .tb-tabpanel:not(.is-on) { display: none; }
.has-motion .tb-tabpanel.is-on { animation: kit-rise 360ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .has-motion .tb-tabpanel.is-on { animation: none; } }
.tb-tabpanel-k { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.tb-tabpanel h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.tb-tabpanel-foot { padding-top: 18px; border-top: 1px solid var(--tb-rule); font: var(--display-weight) clamp(18px, 1.7vw, 21px)/1.3 var(--font-display); color: var(--ink); }
.tb-ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.tb-ticks li { position: relative; padding-left: 30px; }
.tb-ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
[data-tone='night'] .tb-ticks { color: var(--on-night); }
[data-tone='night'] .tb-ticks li::before { background: none; border: 1.5px solid var(--accent-on-night); }

/* ── Price: one price, and the arithmetic from the reader's own count ── */
.tb-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.tb-price-card { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--tb-radius); }
.tb-price-k { font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
[data-tone='night'] .tb-price-k { color: var(--accent-on-night); }
.tb-price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tb-price-n { font: var(--display-weight) clamp(56px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
[data-tone='night'] .tb-price-n { color: var(--on-night); }
.tb-price-unit, .tb-price-after { font-size: 16px; color: var(--ink-muted); }
[data-tone='night'] :is(.tb-price-unit, .tb-price-after) { color: var(--tb-night-muted); }
.tb-price-card details.tb-more { margin-top: 8px; }
.tb-build { display: grid; align-content: start; padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--tb-rule); border-radius: var(--tb-radius); background: var(--paper); }
[data-tone='paper'] .tb-build { background: var(--surface); border-color: transparent; }
.tb-build-k { margin-bottom: 10px; font: var(--tb-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.tb-build-row { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--tb-rule); font-size: 16px; color: var(--ink-muted); }
.tb-build-n { font: var(--display-weight) clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); color: var(--ink); white-space: nowrap; }
.tb-build-row.is-total .tb-build-n { color: var(--accent-dark); }
.tb-stepper { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--tb-rule-strong); border-radius: var(--radius-button, 999px); background: var(--paper); overflow: hidden; }
.tb-step-b { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 500 20px/1 var(--font-body); cursor: pointer; transition: background 160ms; }
.tb-step-b:hover { background: var(--tb-tint); }
.tb-stepper input { width: 4.5em; height: 44px; border: 0; border-inline: 1px solid var(--tb-rule); background: transparent; color: var(--ink); font: var(--display-weight) 22px/1 var(--font-display); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.tb-stepper input::-webkit-inner-spin-button, .tb-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tb-build button.tb-link { justify-self: start; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }

/* ── Tablet ── */
@media (max-width: 1100px) {
  .tb-nav { display: none; }
  .tb-hero-grid, .tb-split, .tb-calc, .tb-faq, .tb-close-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-hero-art { max-width: 520px; }
  .tb-glance-nums, .tb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-g:nth-child(3) { border-left: 0; }
  .tb-g:nth-child(n + 3) { border-top: 1px solid var(--tb-night-rule); }
  .tb-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .tb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-tiers, .tb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd item left alone in two columns takes the whole row, so no cell is empty. */
  :is(.tb-cards, .tb-tiers, .tb-team, .tb-glance-nums, .tb-stats) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tb-faq-intro { position: static; }
  .tb-timeline { --n-col: 1; }
}

/* ── Phone (390): one column, controls a thumb can hit, nothing sideways ── */
@media (max-width: 720px) {
  .tb-h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .tb-hero { --tb-hero-top: 24px; padding-block: var(--tb-hero-top) 128px; }
  .tb-hero-grid { gap: 8px; }
  .tb-hero-art { order: -1; max-width: 220px; margin: 0 0 12px; }
  .tb-top-row { min-height: 56px; }
  :root:has(.tb-sample-bar) { --tb-top-h: 108px; }
  .tb-sb-row { min-height: 52px; padding-block: 4px; }
  .tb-sb-long, .tb-sample-bar .tb-sb-email { display: none; }
  .tb-sb-short { display: inline; }
  .tb-sb-row { gap: 10px; }
  .tb-sb-text { font-size: 13px; line-height: 1.2; }
  .tb-sb-book, .tb-sample-ctas .tb-sb-email { min-height: 44px; }
  .tb-sample-bar .tb-sb-book { padding: 0 14px; font-size: 13px; }
  .tb-sb-mark { font-size: 14px; gap: 6px; }
  .tb-sb-dots i { width: 8px; height: 8px; border-width: 1.25px; }
  .tb-sb-dots i + i { margin-left: -2px; }
  .tb-hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .tb-for { margin-bottom: 22px; padding: 7px 14px; font-size: 13px; }
  .tb-for b { font-size: 16px; }
  .tb-for-with { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .tb-hero .tb-lede { margin-top: 18px; }
  .tb-hero-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 28px; }
  .tb-hero-actions .tb-link { justify-content: center; }
  .tb-glance-band { margin-top: -104px; }
  .tb-glance-ask { padding: 18px 20px; font-size: 17px; }
  .tb-g { padding: 22px 20px; }
  .tb-g::before { left: 20px; }
  .tb-g-n { font-size: clamp(26px, 8vw, 34px); }
  .tb-g-c { font-size: 13px; }
  .tb-cards, .tb-vs, .tb-quotes, .tb-tiers, .tb-team, .tb-scope, .tb-heard-row { grid-template-columns: minmax(0, 1fr); }
  .tb-tabs, .tb-price { grid-template-columns: minmax(0, 1fr); }
  .tb-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; height: auto; }
  .tb-photo.is-lead { grid-row: auto; grid-column: 1 / -1; }
  .tb-photo img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .tb-photo.is-lead img { aspect-ratio: 16 / 10; }
  .tb-tablist { border-right: 0; border-bottom: 1px solid var(--tb-rule); }
  .tb-tab { padding: 16px 20px; }
  .tb-tab.is-on::after { display: none; }
  .tb-tabpanels { padding: 24px 20px; }
  .tb-build-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tb-heard-row { gap: 6px; padding: 20px 0 20px 16px; }
  .tb-statement-line { font-size: clamp(34px, 10vw, 46px); }
  .tb-scope-col, .tb-tier { padding: 22px; }
  .tb-tier.is-rec { order: -1; }
  .tb-calc-controls { padding: 20px; margin-inline: calc(-1 * var(--tb-gutter) + 8px); }
  /* The answer leads and stays in view while the reader works the controls. */
  .tb-calc-out { display: contents; }
  .tb-answer { order: -1; position: sticky; top: var(--tb-top-h); z-index: 3; padding-top: 12px; }
  .tb-calc-out > :not(.tb-answer) { order: 1; }
  [data-tone='paper'] .tb-answer { background: var(--paper); }
  [data-tone='surface'] .tb-answer { background: var(--surface); }
  .tb-answer-n { font-size: clamp(48px, 15vw, 64px); }
  .tb-answer-line { font-size: 16px; }
  .tb-presets { grid-template-columns: minmax(0, 1fr); }
  .tb-hbar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .tb-hbar-track { grid-column: 1 / -1; grid-row: 2; }
  /* Comparison: the option names stay as columns; each row's label spans above its values. */
  .tb-compare, .tb-compare thead, .tb-compare tbody { display: block; }
  .tb-compare tr { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .tb-compare-wrap { overflow: visible; }
  .tb-compare thead tr { position: sticky; top: var(--tb-top-h); z-index: 2; background: var(--surface); }
  [data-tone='paper'] .tb-compare thead tr { background: var(--paper); }
  .tb-compare thead th:first-child { display: none; }
  .tb-compare thead th { padding: 12px 10px 10px; font-size: 16px; }
  .tb-compare .tb-rec { font-size: 12px; letter-spacing: .04em; margin-bottom: 4px; }
  .tb-compare tbody th { grid-column: 1 / -1; padding: 16px 0 6px; border-bottom: 0; font-size: 14px; color: var(--ink-muted); }
  .tb-compare td { padding: 4px 10px 14px; font-size: 14.5px; line-height: 1.4; }
  .tb-compare td .tb-tag { display: none; }
  .tb-compare :is(.tb-yes, .tb-no) { font-size: 0; }
  .tb-compare thead .is-rec { box-shadow: inset 0 3px 0 var(--accent); }
  /* A comparison of sentences (.is-text) stacks instead: each term, the lit option first, the other muted below. */
  .tb-compare.is-text thead { display: none; }
  .tb-compare.is-text tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--tb-rule); }
  .tb-compare.is-text tbody th { padding: 0 0 8px; color: var(--ink); font-size: 16px; }
  .tb-compare.is-text td { padding: 12px 14px; border: 0; border-radius: var(--tb-radius-s); }
  .tb-compare.is-text td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: var(--tb-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
  .tb-compare.is-text td.is-rec::before { color: var(--accent-dark); }
  .tb-compare.is-text td:not(.is-rec) { background: transparent; color: var(--ink-muted); padding-block: 8px 4px; }
  .tb-compare.is-text td .tb-tag { display: inline-flex; margin-top: 6px; }
  .tb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-stat { padding: 20px 12px 8px 0; }
  .tb-stat + .tb-stat { padding-left: 12px; }
  .tb-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tb-stat:nth-child(n + 3) { border-top: 1px solid var(--tb-rule); }
  .tb-stat-n { font-size: clamp(36px, 11vw, 48px); }
  .tb-pull { grid-template-columns: minmax(0, 1fr); }
  .tb-pull::before { grid-row: auto; font-size: 110px; height: 56px; }
  .tb-pull blockquote p { font-size: clamp(25px, 7vw, 30px); }
  /* Timeline: a vertical stepper. */
  .tb-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 34px; }
  .tb-timeline::before, .tb-timeline::after { left: 7px; top: 10px; width: 2px; right: auto; }
  .tb-timeline::before { bottom: 40px; height: auto; }
  .tb-timeline::after { height: calc(var(--now) / (var(--n, 5) - 1) * (100% - 50px)); transform-origin: top; }
  .has-motion .tb-timeline:not(.is-in)::after { transform: scaleY(0); }
  .tb-step { padding-bottom: 26px; }
  .tb-step-dot { position: absolute; left: -34px; top: 2px; margin: 0; }
  .tb-step.is-end .tb-step-dot { margin: 0; left: -35px; }
  .tb-step-when { min-height: 0; }
  .tb-qa > summary { font-size: 18px; }
  .tb-qa > p { padding-right: 0; }
  .tb-close-actions { flex-direction: column; align-items: stretch; }
  .tb-close-actions .tb-link { justify-content: center; }
  .tb-contact { padding: 24px; }
  .tb-viewers ol { padding: 4px 14px; }
  .tb-viewer { grid-template-columns: 34px minmax(0, 1fr); }
  .tb-viewer .tb-mono { width: 34px; height: 34px; }
  .tb-viewer-when { grid-column: 2; grid-row: auto; text-align: left; }
  .tb-viewer-read { display: none; }
  .tb-top .tb-btn { display: none; }
}
/* A small phone (320, 360) keeps the primary action on the first screen: the art follows the copy. */
@media (max-width: 380px) {
  .tb-hero-art { order: 0; max-width: 180px; margin: 20px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-bar], .tb-bar-track i, .tb-hbar-track i { transition: none !important; }
  .is-changed, .tb-answer-n .is-changed { animation: none !important; }
  .has-motion [data-in] .tb-was::after { transform: none !important; transition: none; }
  .has-motion [data-in] :is(.tb-now, .tb-vs-col) { opacity: 1 !important; transform: none !important; transition: none; }
  .has-motion .tb-hero :is(.tb-for, h1 > span, .tb-lede, .tb-hero-actions) { animation: none; }
  .has-motion .tb-timeline::after, .has-motion .tb-timeline .tb-step { transform: none !important; opacity: 1 !important; transition: none; }
  .tb-step.is-now .tb-step-dot::after { animation: none; display: none; }
  .has-motion .tb-glance .tb-g::before { width: 40px; transition: none; }
}

/* ── The PDF: each section laid out for a 16:9 page (the export sets .is-pdf) ── */
.is-pdf .tb-wrap { padding-inline: 0; max-width: none; }
.is-pdf .tb-hero { padding-block: 40px 56px; }
.is-pdf .tb-hero-grid { grid-template-columns: 1.45fr 1fr; }
.is-pdf .tb-hero h1 { font-size: 56px; }
.is-pdf .tb-hero .tb-lede { margin-top: 18px; }
.is-pdf .tb-for { margin-bottom: 20px; }
.is-pdf .tb-hero-art { max-width: 360px; justify-self: end; }
.is-pdf .tb-glance-band { padding-block: 20px 0; }
.is-pdf .tb-g { padding-block: 20px 22px; }
.is-pdf .tb-hero-actions, .is-pdf .tb-top, .is-pdf .tb-close-actions { display: none !important; }
.is-pdf .tb-glance-band { margin-top: 0; padding-block: 32px; }
.is-pdf .tb-glance .tb-g::before { width: 40px; }
.is-pdf .tb-calc { grid-template-columns: minmax(0, 1fr); }
.is-pdf .tb-calc-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 48px; }
.is-pdf .tb-answer { position: static; }
.is-pdf .tb-timeline::after, .is-pdf .tb-timeline .tb-step, .is-pdf .tb-now, .is-pdf .tb-vs-col { transform: none !important; opacity: 1 !important; }
.is-pdf .tb-was::after { transform: none !important; }
.is-pdf .tb-faq-intro { position: static; }
.is-pdf .tb-faq-list { columns: 2; column-gap: 40px; }
.is-pdf .tb-photos { height: 420px; }
.is-pdf .tb-photo img { min-height: 0; }
.is-pdf .tb-qa { break-inside: avoid; }
.is-pdf .tb-qa > summary::after { display: none; }
.is-pdf details.tb-more:not([open]) { display: none; }
.is-pdf details.tb-more > summary { display: none; }
@media print {
  .tb-top, .tb-hero-actions, .tb-close-actions, .tb-calc-controls { display: none !important; }
  .tb-glance-band { margin-top: 0; }
  .tb-timeline::after, .tb-timeline .tb-step { transform: none !important; opacity: 1 !important; }
  .tb-qa > p { display: block; }
}
.is-pdf .tb-compare :is(th, td) { padding: 10px 14px; font-size: 14px; }
.is-pdf .tb-compare thead th { font-size: 17px; padding-top: 14px; }
.is-pdf .tb-compare td p + .tb-tag { margin-top: 4px; }
.is-pdf .tb-head { margin-bottom: 28px; }
.is-pdf .tb-tier.is-rec { box-shadow: none; }
.is-pdf .tb-tier .tb-btn { display: none; }
.is-pdf :is(.tb-tier, .tb-person, .tb-heard-row, .tb-scope-col) { break-inside: avoid; }
.is-pdf .tb-statement-line { font-size: 64px; }
.is-pdf .tb-tabs { grid-template-columns: minmax(0, 1fr); }
.is-pdf .tb-tablist { display: none; }
.is-pdf .tb-tabpanels { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; }
.is-pdf .tb-tabpanel { display: grid !important; break-inside: avoid; }
.is-pdf .tb-step-b, .is-pdf .tb-build button.tb-link { display: none !important; }
.is-pdf .tb-stepper { border: 0; }
.is-pdf .tb-stepper input { width: auto; border: 0; text-align: left; }
.is-pdf .tb-price-card, .is-pdf .tb-build { break-inside: avoid; }
