/* Hallmark · shape: Manifesto · genre: modern-minimal · theme: Porcelain and brass (custom, from the plan's design_notes) · job: try · deal: manual
 * hero: Poster (core standard, <!--core:hero-->) · nav: core sticky bar, ink-ruled · footer: statement (core), brass-light rule · imagery: photographs, 1 (the user's hero image) · product sample in hero sheet · signature: the bathroom remodeler market ranked as a fixture spec sheet, your row in glaze with the score in brass
 * axes: light/geometric-sans/cool · posture: restrained · contrast: pass (muted 5.32:1 on paper, brass 5.09:1 on paper, brass-light 6.48:1 on ink) · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, the porcelain and brass palette sits close to GroutWatcher's tile voice; cooler surfaces, 4px porcelain edges and a glaze data colour keep the two apart */
/* Hallmark · answered terrazzo photo-under-type · the home hero is the core standard (watcher-site-core docs/hero.md); the photo is already lightened, so the scrim is lighter than the core's and still holds the porcelain head */
/* Hallmark · answered F4 · the extra fills are the hamburger bars, the selected tab, the checked radio cell and the inverted button on ink, not second primaries */
/* Hallmark · waive 24b · design_notes BUTTONS specifies padding 14px 22px · the plan's button wins over the scale; every other step sits on the 4px scale */
/* Hallmark · waive 38iii · the <em> in the pricing and get-started heads is core-owned markup and design_notes sets it roman in brass · the accent stays a colour, never an italic, and it cannot be removed from the core partials */
/* Hallmark · core-owned: 58 (pricing words), 54 and 38i (eyebrows, em in core pricing and get-started headings, set roman here), 19 (footer line) come from watcher-site-core markup */

/* ==========================================================================
   Tokens. Every colour and font family lives here and nowhere else.
   ========================================================================== */
:root {
  color-scheme: light;

  /* Porcelain and brass palette */
  --paper: #F2F3EF;
  --paper-2: #E6E9E4;
  --plate: #FBFBF9;
  --ink: #14262A;
  --ink-2: #2A3E42;
  --muted: #56676A;
  --rule: #C9D0CC;
  --brass: #8C5D20;
  --brass-light: #C9A063;
  --glaze: #3E7C78;
  --glaze-soft: #DCEBE8;
  --on-ink: #F2F3EF;
  --on-ink-muted: #B9C6C4;
  --error: #A3332B;

  /* Core contract (site.json core_theme and the core's own sections) */
  --card: var(--plate);
  --line: var(--rule);
  --text: var(--ink);
  --accent: var(--brass);
  --dark: var(--ink);
  --on-dark: var(--on-ink);
  --dark-muted: var(--on-ink-muted);
  --serif: "Syne", ui-sans-serif, system-ui, sans-serif;
  --sans: "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;

  /* Derived surfaces */
  --hair-on-ink: color-mix(in oklab, var(--on-ink) 22%, transparent);
  --focus: var(--brass);
  --focus-on-ink: var(--brass-light);
  --shadow-card: 0 1px 0 var(--rule), 0 18px 36px -24px color-mix(in oklab, var(--ink) 45%, transparent);
  --scrim-strong: color-mix(in oklab, var(--ink) 74%, transparent);
  --scrim-mid: color-mix(in oklab, var(--ink) 42%, transparent);
  --scrim-low: color-mix(in oklab, var(--ink) 18%, transparent);
  --clear: transparent;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-label: 0.9rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --text-statement: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  --text-h3: 1.25rem;
  --text-lead: 1.25rem;
  --tracking-display: -0.025em;

  /* Space, 8px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;
  --section: clamp(72px, 9vw, 128px);
  --section-tight: clamp(48px, 6vw, 80px);
  --container: 1200px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 40px);
  --gap: 32px;
  --header-h: 74px;

  /* Motion: transform and opacity only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;

  --z-raised: 10;
  --z-sticky: 200;
  --z-nav: 300;
  --z-toast: 500;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
  scrollbar-color: var(--muted) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brass);
}
::selection { background: var(--glaze-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
}
h1 { max-width: 18ch; font-size: var(--text-h1); }
h2 { max-width: 24ch; font-size: var(--text-h2); }
h3 { max-width: 40ch; font-family: var(--sans); font-size: var(--text-h3); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
ul, ol { margin: 0; }
img, video, picture { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
small { font-size: var(--text-sm); }
strong, b { font-weight: 700; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--brass); text-decoration-color: var(--brass); }

.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-toast);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink); font-weight: 500; text-decoration: none;
}
.skip-link:focus-visible { top: var(--s-4); outline-color: var(--focus-on-ink); }

.code, .num, .figure { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
td.num, .r { text-align: right; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap, .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
main > section, main > .core-start, main > .core-pricing { padding-block: var(--section); }
.section { padding-block: var(--section); }
.section--tight, main > .section--tight { padding-block: var(--section-tight); }
.section--tight + .section--tight { padding-top: 0; }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--paper { background: var(--paper-2); }

/* Ink grounds the core marks with .on-night (the footer, report closing) */
.on-night { background-color: var(--ink); color: var(--on-ink); }
.on-night .eyebrow { color: var(--brass-light); }
.on-night .lead, .on-night .lede { color: var(--on-ink-muted); }
.on-night h2 em, .on-night h1 em { font-style: normal; color: var(--brass-light); }
.on-night :focus-visible { outline-color: var(--focus-on-ink); }
.on-night .demo-trust, .on-night .demo-ps { color: var(--on-ink-muted); }

.eyebrow {
  margin: 0 0 var(--s-3);
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass);
}
.band--ink .eyebrow, .site-footer .eyebrow { color: var(--brass-light); }
.lead, .lede { max-width: 52ch; font-size: var(--text-lead); line-height: 1.45; color: var(--muted); }
.band--ink .lead, .band--ink .lede { color: var(--on-ink-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.more { margin-top: var(--s-8); font-weight: 500; }
.more a { text-decoration-color: var(--brass); text-decoration-thickness: 2px; }

/* Type helpers: display head, h2-sized head, label, small print, figure number */
.display {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: var(--text-h1);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
h2.display, p.display { font-size: var(--text-statement); }
.h2 {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: var(--text-h2);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.label {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.eyebrow .label { font-size: inherit; color: inherit; }
.small { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.no {
  display: inline-block;
  margin-right: var(--s-3);
  font: 500 var(--text-sm)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--brass);
}
.band--ink .label, .band-night .label, .on-night .label,
.band--ink .small, .band-night .small, .on-night .small { color: var(--on-ink-muted); }
.band--ink .no, .band-night .no, .on-night .no { color: var(--brass-light); }

/* ==========================================================================
   Controls: one primary button style across the site
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  font: 500 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--ink-2); color: var(--on-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

.btn .arr {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-short) var(--ease-out);
}
.btn:hover .arr { transform: translateX(3px) rotate(45deg); }

.btn--ghost, .btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover, .btn-ghost:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); }
.btn--block { width: 100%; }

/* The core demo button: the primary .btn, kept whole wherever it lands */
.btn--demo { flex: none; max-width: 100%; }
.prose .btn--demo, .closing .btn--demo, .sec-head .btn--demo { margin-top: var(--s-4); color: var(--on-ink); text-decoration: none; }
.prose .btn--demo:hover { color: var(--on-ink); }

/* Light button for ink grounds */
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: var(--plate); color: var(--ink); }
.btn--light:focus-visible { outline: 2px solid var(--focus-on-ink); outline-offset: 3px; }
.btn--ghost.btn--light { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--on-ink); }
.btn--ghost.btn--light:hover { background: color-mix(in oklab, var(--on-ink) 12%, transparent); color: var(--on-ink); }

/* Inverted on ink grounds */
.band--ink .btn, .site-footer .btn, .on-night .btn { background: var(--on-ink); color: var(--ink); }
.band--ink .btn:hover, .site-footer .btn:hover, .on-night .btn:hover { background: var(--plate); color: var(--ink); }
.band--ink .btn--ghost, .site-footer .btn--ghost, .on-night .btn--ghost { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--on-ink); }
.band--ink .btn--ghost:hover, .site-footer .btn--ghost:hover, .on-night .btn--ghost:hover { background: color-mix(in oklab, var(--on-ink) 12%, transparent); color: var(--on-ink); }
.band--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-ink); }

.demo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-4) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.demo-trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.demo-trust span::before {
  content: "";
  flex: none;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
.band--ink .demo-trust { color: var(--on-ink-muted); }
.demo-ps { margin-top: var(--s-4); max-width: 60ch; font-size: var(--text-sm); color: var(--muted); }
.band--ink .demo-ps { color: var(--on-ink-muted); }

/* ==========================================================================
   Header (core markup): sticky, 74px, paper with a 2px ink rule
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; gap: var(--s-5); min-height: calc(var(--header-h) - 2px); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); flex-shrink: 0; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark { flex-shrink: 0; width: auto; height: 34px; }
.brand__word {
  display: block;
  font: 700 1.3rem/1 var(--serif);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}
.brand__word i { font-style: normal; color: var(--brass); }
.brand__by { display: block; margin-top: var(--s-1); font-size: var(--text-xs); font-weight: 400; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: var(--s-5); margin: 0 auto; padding: 0; list-style: none; }
.nav__links a, .nav__login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover, .nav__login:hover, .nav__links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.nav__cta { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }
.nav__cta .btn { min-height: 48px; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span { display: block; height: 2px; background: var(--ink); transition: transform var(--dur-short) var(--ease-out); }
.menu-btn:hover { background: var(--plate); }
.menu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav { display: none; }

@media (max-width: 75rem) {
  .nav__links { display: none; }
  .nav__login { display: none; }
  .menu-btn { display: inline-flex; }
  .js .mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0;
    z-index: var(--z-sticky);
    padding: var(--s-6) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-nav ol { display: grid; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
  .mobile-nav li { border-bottom: 1px solid var(--rule); }
  .mobile-nav li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: var(--s-2);
    font: 600 1.35rem/1.1 var(--serif);
    letter-spacing: var(--tracking-display);
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-nav li a:hover, .mobile-nav li a[aria-current="page"] { color: var(--brass); }
  .mobile-nav .nav__login { display: inline-flex; align-self: flex-start; }
  html:not(.js) .nav__links { display: flex; overflow-x: auto; margin: 0; }
}
@media (max-width: 40rem) {
  .nav__cta .btn { display: none; }
  .brand__by { display: none; }
}

/* ==========================================================================
   Cards: porcelain plates
   ========================================================================== */
.plate {
  margin: 0;
  background: var(--plate);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Home hero (core, partials/hero.css). Lighter scrim: the photo is lightened.
   ========================================================================== */
.core-hero { --ch-header: 74px; }
.core-hero .core-hero__scrim {
  background:
    linear-gradient(90deg, var(--scrim-strong) 0%, var(--scrim-mid) 40%, var(--clear) 72%),
    linear-gradient(0deg, var(--scrim-mid) 0%, var(--clear) 42%);
}
.core-hero h1 { font-weight: 700; }
.core-hero .btn { border: 0; }
.core-hero .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--on-ink); }
.core-hero .btn:focus-visible { outline: 2px solid var(--focus-on-ink); outline-offset: 3px; }
@media (max-width: 60rem) {
  .core-hero .core-hero__scrim {
    background: linear-gradient(0deg, var(--scrim-strong) 0%, var(--scrim-mid) 55%, var(--scrim-low) 100%);
  }
}

/* Hero aside: the ranking sheet */
.sheet { width: 100%; padding: var(--s-4) var(--s-5) var(--s-3); color: var(--ink); }
.sheet__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sheet__table caption { padding-bottom: var(--s-3); text-align: left; font-weight: 500; color: var(--muted); }
.sheet__table thead th {
  padding: var(--s-2) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}
.sheet__table thead th.r { text-align: right; }
.sheet__table td, .sheet__table tbody th { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); text-align: left; }
.sheet__table td.code:first-child { width: 3.25rem; padding-left: var(--s-2); color: var(--muted); }
.sheet__table tbody th { padding-left: var(--s-2); font-size: 1rem; font-weight: 500; }
.sheet__table td.r { padding-right: var(--s-2); text-align: right; font-size: 1rem; }
.sheet__table tr:last-child > * { border-bottom: 0; }
.sheet__table .is-you { background: var(--glaze-soft); }
.sheet__table .is-you th { font-weight: 700; }
.sheet__table .is-you .code { color: var(--brass); }

/* ==========================================================================
   Why: statement on ink with three claims
   ========================================================================== */
.statement {
  max-width: 18ch;
  font-size: var(--text-statement);
  line-height: 1.02;
  color: var(--on-ink);
}
.why .lead { margin-top: var(--s-5); }
.claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: var(--s-9) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: claim;
}
.claims li {
  counter-increment: claim;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hair-on-ink);
  min-width: 0;
}
.claims li::before {
  content: counter(claim, decimal-leading-zero);
  font: 500 var(--text-sm)/1 var(--mono);
  color: var(--brass-light);
}
.claims h3 { color: var(--on-ink); }
.claims p { color: var(--on-ink-muted); }

/* ==========================================================================
   Signals: the specification table
   ========================================================================== */
.signals { background: var(--paper); }
.signals .table-scroll { scrollbar-width: thin; scrollbar-color: var(--rule) var(--paper); }
.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: var(--s-8);
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
}
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.spec { width: 100%; min-width: 680px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.spec thead th {
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.spec thead th.r { padding-right: 0; text-align: right; }
.spec td, .spec tbody th {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}
.spec tbody th { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.spec td { color: var(--muted); }
.spec td.code { color: var(--ink); white-space: nowrap; }
.spec td.code:first-child { padding-left: var(--s-2); }
.spec td.r { padding-right: var(--s-2); white-space: nowrap; text-align: right; }
.spec .w {
  position: relative;
  display: inline-block;
  width: 6rem;
  height: 8px;
  margin-right: var(--s-3);
  vertical-align: middle;
  overflow: hidden;
  border-radius: 2px;
  background: var(--glaze-soft);
}
.spec .w::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--glaze);
}
.spec tbody tr:hover, .spec tbody tr[aria-selected="true"], .spec tbody tr.is-selected { background: var(--glaze-soft); }
.spec tbody tr:hover .w { background: var(--plate); }
.spec tbody tr:hover td.code:first-child { color: var(--brass); }

/* ==========================================================================
   Solutions: four tabs and a panel card
   ========================================================================== */
.solutions h2 { margin-bottom: var(--s-5); }
.solutions h2 + .lead, .solutions .lead { margin-bottom: var(--s-7); }
.switch { position: relative; min-width: 0; }
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: 0;
  border-bottom: 1px solid var(--rule);
}
.seg button {
  position: relative;
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: var(--muted);
  font: 500 1rem/1.2 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-micro) var(--ease-out);
}
.seg button:hover { background: var(--plate); color: var(--ink); }
.seg button:active { transform: translateY(1px); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: var(--z-raised); }
.seg button:disabled { opacity: 0.55; cursor: not-allowed; }
.seg button[aria-selected="true"] {
  background: var(--plate);
  border-color: var(--ink-2);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--glaze);
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  padding: var(--s-7);
  background: var(--plate);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.panel + .panel { margin-top: var(--s-5); }
.js .panel[hidden] { display: none; }
.panel h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.08 var(--serif); letter-spacing: var(--tracking-display); }
.panel p { margin-top: var(--s-4); font-size: var(--text-lead); line-height: 1.45; color: var(--muted); }
.ruled { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ruled li { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); font-size: 1.125rem; font-weight: 500; }

/* ==========================================================================
   Pricing (core markup)
   ========================================================================== */
.core-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.core-head .eyebrow { margin: 0; }
.core-head h2 em, .core-start h2 em { font-style: normal; color: var(--brass); }
.core-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-6);
  background: var(--plate);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.plan--feature { border: 2px solid var(--ink); }
.plan__label { margin: 0; font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.plan__badge {
  align-self: flex-start;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius);
  background: var(--brass);
  color: var(--plate);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.plan__name { font-family: var(--sans); font-size: var(--text-h3); font-weight: 700; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.plan__price strong { font: 700 clamp(2.25rem, 1.8rem + 1.2vw, 2.75rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: var(--text-sm); color: var(--muted); }
.plan ul { flex: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.plan li { padding-block: var(--s-2); border-bottom: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-2); }
.plan li.inherit { font-weight: 700; color: var(--ink); }
.plan__fine { font-size: var(--text-xs); text-align: center; color: var(--muted); }
.core-note { margin-top: var(--s-8); max-width: 52ch; font-size: var(--text-lead); line-height: 1.45; }

/* ==========================================================================
   FAQ: details rows with a brass plus and minus drawn in CSS
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.faq__grid .lead { margin-top: var(--s-4); }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: var(--s-5) var(--s-8) var(--s-5) 0;
  font: 500 1.1875rem/1.35 var(--sans);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: var(--s-2);
  top: calc(var(--s-5) + 0.68em);
  width: 16px;
  height: 2px;
  background: var(--brass);
  transition: transform var(--dur-short) var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(90deg) scaleX(0); }
.faq summary:hover { color: var(--ink-2); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq details p { max-width: 62ch; padding-bottom: var(--s-5); color: var(--muted); }

/* ==========================================================================
   Report band
   ========================================================================== */
.report { border-top: 1px solid var(--rule); }
.report .report__grid h2 { max-width: 16ch; }
.report__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.report__when { margin-top: var(--s-5); color: var(--muted); }
.report__parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: var(--s-9) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rp;
}
.report__parts li { counter-increment: rp; min-width: 0; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.report__parts li::before {
  content: counter(rp, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-3);
  font: 500 var(--text-sm)/1 var(--mono);
  color: var(--brass);
}
.report__parts p { margin-top: var(--s-2); color: var(--muted); }

/* ==========================================================================
   Get started (core markup)
   ========================================================================== */
.core-start { background: var(--paper); border-top: 1px solid var(--rule); }
.core-start__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-10); align-items: start; }
.core-start .lede { margin-top: var(--s-4); }
.core-start__list {
  display: grid;
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  border-top: 2px solid var(--ink);
}
.core-start__list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: var(--s-8) minmax(0, 1fr);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.core-start__list li::before { content: counter(s, decimal-leading-zero); font: 500 var(--text-sm)/1.9 var(--mono); color: var(--brass); }
.core-start__card {
  padding: var(--s-7);
  background: var(--plate);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.core-form { display: grid; gap: var(--s-4); }
.core-form h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--serif); letter-spacing: var(--tracking-display); }
.core-form__sub { margin-top: calc(-1 * var(--s-2)); color: var(--muted); }
.core-form label { display: grid; gap: var(--s-2); font-size: var(--text-sm); font-weight: 500; }
.core-form__opt { font-weight: 400; color: var(--muted); }

.core-form input[type="text"], .core-form input[type="email"], .core-form input[type="url"], .core-form input[type="tel"],
.wl-form input, .wl-form textarea, .wl-form select {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--plate);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  outline: 2px solid transparent;
  outline-offset: 2px;
  -webkit-appearance: none;
  appearance: none;
}
.core-form input::placeholder, .wl-form input::placeholder, .wl-form textarea::placeholder { color: var(--muted); opacity: 1; }
.core-form input:hover, .wl-form input:hover, .wl-form textarea:hover { border-color: var(--ink); }
.core-form input:focus-visible, .wl-form input:focus-visible, .wl-form textarea:focus-visible, .wl-form select:focus-visible { outline-color: var(--focus); border-color: var(--ink); }
.core-form input[aria-invalid="true"], .wl-form input[aria-invalid="true"], .wl-form textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.core-form input:disabled, .wl-form input:disabled, .wl-form textarea:disabled { opacity: 0.55; cursor: not-allowed; }

.core-form__choice { display: flex; flex-wrap: wrap; margin: 0; padding: 0; border: 0; min-width: 0; }
.core-form__choice legend { margin-bottom: var(--s-2); padding: 0; font-size: var(--text-sm); font-weight: 500; }
.core-form .core-form__choice label {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 48px;
  margin-left: -1px;
  padding: 0 var(--s-5);
  border: 1px solid var(--ink-2);
  border-radius: 0;
  background: var(--plate);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.core-form .core-form__choice label:first-of-type { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.core-form .core-form__choice label:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.core-form .core-form__choice label:hover { background: var(--paper-2); }
.core-form__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.core-form .core-form__choice label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); z-index: 1; }
.core-form .core-form__choice label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; z-index: var(--z-raised); }

.core-form__hp, .wl-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.core-form__status, .wl-status { min-height: 1lh; font-size: var(--text-sm); color: var(--muted); }
.wl-status.is-error { color: var(--error); }
.core-form__legal, .wl-fine { font-size: var(--text-xs); color: var(--muted); }
.core-form__legal a, .wl-fine a { text-decoration-color: currentColor; }
.core-form__done { display: grid; gap: var(--s-4); }
.core-form__done h3 { font: 700 1.5rem/1.15 var(--serif); letter-spacing: var(--tracking-display); }
.core-form__done a { font-weight: 500; text-decoration-color: var(--brass); }

/* ==========================================================================
   Footer (core markup)
   ========================================================================== */
.site-footer {
  padding-block: var(--s-10) calc(var(--s-7) + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--on-ink);
  border-top: 2px solid var(--brass-light);
}
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--brass-light); text-decoration-thickness: 1px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-ink); text-decoration: none; }
.site-footer .brand__word { font-size: var(--text-xl); color: var(--on-ink); }
.site-footer .brand__word i, .footer__word i { font-style: normal; color: var(--brass-light); }
.site-footer .brand__by, .footer__col span { color: var(--on-ink-muted); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--gap); }
.footer__blurb { margin-top: var(--s-4); max-width: 36ch; color: var(--on-ink-muted); }
.footer__col h2, .footer__col h3 {
  max-width: none;
  font: 500 var(--text-sm)/1.4 var(--sans);
  letter-spacing: 0;
  color: var(--on-ink);
}
.footer__col h2 + ul, .footer__col h3 + ul { margin-top: var(--s-3); }
.footer__col ul { display: grid; gap: var(--s-1); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.footer__col li a, .footer__col li span { display: inline-flex; align-items: center; min-height: 32px; }
.footer__word {
  margin: var(--s-9) 0 var(--s-6);
  font: 700 clamp(2.5rem, 7vw, 5.5rem)/0.95 var(--serif);
  letter-spacing: -0.035em;
  color: var(--on-ink);
  overflow-wrap: break-word;
  min-width: 0;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hair-on-ink);
  font-size: var(--text-sm);
  color: var(--on-ink-muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; }
.credits { padding-block: var(--s-5); font-size: var(--text-sm); color: var(--on-ink-muted); }

/* ==========================================================================
   Inner pages: page hero, prose, contact, thank-you, 404
   ========================================================================== */
.page-hero { padding-block: var(--s-10) var(--s-9); border-bottom: 1px solid var(--rule); }
main > .page-hero { padding-block: var(--s-10) var(--s-9); }
.page-hero .eyebrow + h1 { margin-top: 0; }
.page-hero .lead, .page-hero .lede { margin-top: var(--s-5); }
.page-hero .actions, .page-actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.12; max-width: 32ch; }
.prose h3 { margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration-color: var(--brass); }
.prose strong { color: var(--ink); }
.prose hr { margin-block: var(--s-8); border: 0; border-top: 1px solid var(--rule); }
.prose .note, .prose .callout { padding: var(--s-4) var(--s-5); border: 1px solid var(--glaze); border-radius: var(--radius); background: var(--glaze-soft); }

.contact { background: var(--paper); }
.contact .contact__h { max-width: 16ch; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-10); align-items: start; }
.contact__h { margin-bottom: var(--s-6); font-size: var(--text-h2); }
.contact__card { padding: var(--s-7); }
.contact__next li { font-size: 1.0625rem; }
.wl-form { display: grid; gap: var(--s-4); }
.wl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.wl-form label { display: grid; gap: var(--s-2); font-size: var(--text-sm); font-weight: 500; }
.wl-opt { font-weight: 400; color: var(--muted); }
.wl-form textarea { min-height: 128px; resize: vertical; }
.wl-form .btn { justify-self: start; }
.wl-done {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--glaze);
  border-radius: var(--radius);
  background: var(--glaze-soft);
}
.wl-done:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wl-done h3 { font-size: var(--text-h3); }

/* ==========================================================================
   Industry report (core-built /industry-report/)
   ========================================================================== */
.meta-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted); }
.meta-row > * + *::before { content: ""; display: inline-block; width: 1px; height: 0.9em; margin-right: var(--s-5); vertical-align: -0.1em; background: var(--rule); }
.article { padding-block: var(--s-9) var(--section); }
.article > .wrap > * + *, .article > * + * { margin-top: var(--s-9); }
.article [gap="0"], .article .gap-0 { margin-top: 0; }

.toc { padding: var(--s-5) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.toc h2, .toc p:first-child { max-width: none; margin-bottom: var(--s-3); font: 500 var(--text-sm)/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.toc ol, .toc ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; gap: var(--s-3); align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 var(--text-xs)/1 var(--mono); color: var(--brass); }
.toc a:hover { color: var(--brass); }

.prose .dropcap::first-letter, .dropcap::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font: 700 3.6em/0.8 var(--serif);
  color: var(--brass);
}
.callout {
  max-width: 62ch;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--glaze);
  border-radius: var(--radius);
  background: var(--glaze-soft);
  font-size: 1.125rem;
  line-height: 1.5;
}
sup a { padding-inline: 1px; font: 500 0.7em/1 var(--mono); color: var(--brass); text-decoration: none; }
sup a:hover { text-decoration: underline; }

.figure-block {
  margin: 0;
  padding: var(--s-6);
  background: var(--plate);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.figure-block figcaption, .figure-block h3 { margin-bottom: var(--s-2); }
.figure-block p, .figure-block .sub, .figure-block figcaption p { font-size: var(--text-sm); color: var(--muted); }

/* Growth: vertical bars (value above, year below, .fc marks a forecast) */
.growth { display: grid; gap: var(--s-5); }
.growth__bars, .growth__chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: var(--s-4);
  min-height: 260px;
  padding-top: var(--s-6);
  border-bottom: 2px solid var(--ink);
}
.growth__col, .growth__item { display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; gap: var(--s-2); height: 100%; min-width: 0; }
.growth__bar {
  width: 100%;
  max-width: 72px;
  height: var(--h, 100%);
  min-height: 4px;
  align-self: end;
  border-radius: 2px 2px 0 0;
  background: var(--glaze);
}
.growth__bar.is-forecast, .growth__bar[data-forecast="true"], .is-forecast > .growth__bar, .growth__col.is-forecast .growth__bar,
.growth__bar.fc, .fc > .growth__bar, .fc .growth__bar {
  background: repeating-linear-gradient(135deg, var(--glaze) 0 6px, var(--glaze-soft) 6px 10px);
  box-shadow: inset 0 0 0 1.5px var(--glaze);
}
.growth__value, .growth__val { font: 500 var(--text-sm)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.growth__label, .growth__labels { font: 500 var(--text-sm)/1.2 var(--sans); color: var(--muted); text-align: center; }
.growth__yr { padding-top: var(--s-1); font: 500 var(--text-sm)/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
.fc .growth__val, .fc .growth__value, .fc .growth__yr { color: var(--muted); }
.growth__legend, .range__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--text-sm); color: var(--muted); }

/* Range: horizontal min to max bars */
.range { display: grid; gap: var(--s-4); }
.range__axis { display: flex; justify-content: space-between; padding-bottom: var(--s-2); border-bottom: 2px solid var(--ink); font: 500 var(--text-xs)/1 var(--mono); color: var(--muted); }
.range__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--s-4); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.range__label { font-weight: 500; }
.range__track { position: relative; height: 10px; border-radius: 2px; background: var(--glaze-soft); }
.range__bar, .range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--min, 0%);
  right: calc(100% - var(--max, 100%));
  border-radius: 2px;
  background: var(--glaze);
}
.range__value, .range__display { font: 500 var(--text-sm)/1.2 var(--mono); text-align: right; color: var(--ink); }

/* Pull stats */
.pullstat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--gap);
  margin: 0;
  padding: var(--s-6) 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.pullstat > * { display: grid; align-content: start; gap: var(--s-2); min-width: 0; }
.pullstat strong, .pullstat__value {
  font: 500 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1 var(--mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pullstat span, .pullstat p, .pullstat__label { font-size: var(--text-sm); color: var(--muted); }

/* Data tables */
.dtable-wrap, .dtable__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable-wrap:focus-visible, .dtable__scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.dtable { width: 100%; min-width: 560px; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 0.9375rem; }
.dtable caption { padding-bottom: var(--s-3); text-align: left; font-weight: 500; color: var(--muted); caption-side: top; }
.dtable thead th { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.dtable td, .dtable tbody th { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.dtable tbody th { font-weight: 700; }
.dtable td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dtable tbody tr:hover { background: var(--glaze-soft); }

/* Funnel */
.funnel { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; counter-reset: fn; }
.funnel__stage {
  counter-increment: fn;
  display: grid;
  grid-template-columns: var(--s-8) minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  padding: var(--s-5);
  background: var(--plate);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--glaze);
  border-radius: var(--radius);
}
.funnel__stage:nth-child(2) { margin-left: 4%; }
.funnel__stage:nth-child(3) { margin-left: 8%; }
.funnel__stage:nth-child(4) { margin-left: 12%; }
.funnel__stage:nth-child(n+5) { margin-left: 16%; }
.funnel__stage::before { content: counter(fn, decimal-leading-zero); grid-row: span 3; font: 500 var(--text-sm)/1.6 var(--mono); color: var(--brass); }
.funnel__stage h3, .funnel__title { font-size: 1.125rem; }
.funnel__stage p, .funnel__text { color: var(--muted); }
.funnel__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.funnel__tags > *, .funnel__tag { padding: 2px var(--s-2); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--text-xs); color: var(--ink-2); }

/* Sources */
.sources { padding-top: var(--s-6); border-top: 2px solid var(--ink); }
.sources h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; margin-bottom: var(--s-5); }
.sources ol { margin: 0; padding: 0; list-style: none; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: var(--s-8) minmax(0, 1fr); padding-block: var(--s-3); border-bottom: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-2); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.sources li::before { content: counter(src); font: 500 var(--text-sm)/1.7 var(--mono); color: var(--brass); }
.sources li:target { background: var(--glaze-soft); }
.sources a { overflow-wrap: anywhere; }

/* Section heads, closing band */
.sec-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }
.sec-head .lead, .sec-head .lede, .sec-head p { max-width: 56ch; color: var(--muted); }
.band-night { background: var(--ink); color: var(--on-ink); }
.band-night .eyebrow { color: var(--brass-light); }
.band-night .lead, .band-night .lede, .band-night p { color: var(--on-ink-muted); }
.band-night h2 em, .closing h2 em, .page-hero h1 em { font-style: normal; color: inherit; }
.band-night .btn { background: var(--on-ink); color: var(--ink); }
.band-night .btn:hover { background: var(--plate); }
.band-night :focus-visible { outline-color: var(--focus-on-ink); }
.band-night .demo-trust, .band-night .demo-ps { color: var(--on-ink-muted); }
main > .band-night, main > .closing { padding-block: var(--section); }
.closing .lead, .closing .lede { margin-top: var(--s-4); }
.closing .btn, .closing .actions { margin-top: var(--s-6); }
.band-night .btn--demo, .on-night .btn--demo { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 75rem) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 60rem) {
  .head-split, .panel, .faq__grid, .report__grid, .core-start__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .core-start__grid, .contact__grid { gap: var(--s-7); }
  .claims { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .core-plans { grid-template-columns: minmax(0, 1fr); max-width: 36rem; }
  .report__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-split { margin-bottom: var(--s-7); }
  .range__row { grid-template-columns: minmax(0, 1fr) auto; }
  .range__track { grid-column: 1 / -1; grid-row: 2; }
  .funnel__stage:nth-child(n) { margin-left: 0; }
}
@media (max-width: 45rem) {
  .seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .seg button { flex: none; min-height: 48px; scroll-snap-align: start; padding: 0 var(--s-4); }
}
@media (max-width: 40rem) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .report__parts { grid-template-columns: minmax(0, 1fr); }
  .panel, .core-start__card, .plan, .contact__card, .figure-block { padding: var(--s-5); }
  .wl-row { grid-template-columns: minmax(0, 1fr); }
  .core-form .core-form__choice label { padding: 0 var(--s-3); }
  .sheet { padding: var(--s-3) var(--s-4) var(--s-2); }
  .footer__bottom { flex-direction: column; }
  .growth__bars, .growth__chart { gap: var(--s-2); }
  .growth__val, .growth__yr { font-size: var(--text-xs); }
  .btn--demo { white-space: normal; }
}

/* ==========================================================================
   Motion preferences and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover .arr { transform: rotate(45deg); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .mobile-nav, .site-footer, .core-start, .skip-link { display: none !important; }
  body { background: none; }
  .band--ink, .band-night, .on-night { background: none; color: inherit; }
}
