/*
  Practice Rights design tokens and base styles. Shared by the public site and the member app.
  Specification: DESIGN-SYSTEM.md (the house system measured from wellspent.co), re-tinted for
  Practice Rights: blue-black ink, warm grey cards, one amber accent taken from the hero photograph.

  Fonts (both hosts load them in <head>; URL in shared/constants.mjs FONT_CSS_URL):
    Newsreader 400 (display, optical sizes 6-72) and Inter 400/500 (text), display=swap.
  Until they arrive, metric-adjusted local fallbacks hold the layout (see @font-face below).
*/

/* ---- Fallback faces: local fonts scaled to Newsreader / Inter widths, so text reflows little on swap.
   Values are estimates from published metrics (Inter vs Arial is the well-known next/font pairing;
   Newsreader vs Times/Georgia tuned by eye on the hero headline). */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("LiberationSerif"), local("Tinos");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback Georgia";
  src: local("Georgia"), local("Gelasio");
  size-adjust: 92%;
  ascent-override: 98%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo");
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  /* Colour (Practice Rights re-tint) */
  --ink: #0f141b;              /* text, dark bands, primary buttons on light */
  --ink-2: #1d2430;            /* hover for ink fills */
  --card-dark: #181e27;        /* dark card on dark */
  --paper: #ffffff;
  --warm: #f3f1ec;             /* warm card fill */
  --warm-2: #ebe8e1;           /* hover on warm */
  --text-2: #63666b;           /* secondary text on light (5.9:1 on white, 5.2:1 on warm) */
  --label: #74777d;            /* small labels on light (4.5:1 on white) */
  --muted: #9a9da3;            /* labels on dark; decorative greys on light */
  --hair: rgba(15, 20, 27, 0.08);
  --hair-2: rgba(15, 20, 27, 0.16);   /* form outlines: a touch firmer than a hairline */
  --hair-dark: rgba(255, 255, 255, 0.12);
  --on-dark: #ffffff;
  --on-dark-lead: rgba(255, 255, 255, 0.72);
  --on-dark-body: rgba(255, 255, 255, 0.82);
  --accent: #c8892b;           /* amber: the lit windows in the hero photograph */
  --accent-soft: #f6ead6;
  --accent-ink: #7a4f12;       /* text on accent-soft (6.3:1) */
  --positive: #3f8f6b;         /* accepting clients, done */
  --danger: #a3352b;           /* app only: destructive actions, errors */
  --danger-soft: #f8e7e4;

  /* Type */
  --serif: "Newsreader", "Newsreader Fallback", "Newsreader Fallback Georgia", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-h1: clamp(2.75rem, 1.05rem + 4.75vw, 5.4rem);      /* 44 -> 86.4 */
  --fs-h2: clamp(2rem, 1.3rem + 1.95vw, 3.1rem);          /* 32 -> 49.6 */
  --fs-h2-sm: clamp(1.75rem, 1.35rem + 1.1vw, 2.375rem);  /* 28 -> 38 for inner pages */
  --fs-num: clamp(3.25rem, 2rem + 3.4vw, 5.25rem);        /* big numerals, ~84 */
  --fs-num-mid: 2rem;                                     /* 32 */
  --fs-quote: 1.35rem;         /* 21.6 */
  --fs-lead: 1.15rem;          /* 18.4 */
  --fs-h3: 1.2rem;             /* 19.2, Inter 500 */
  --fs-body: 1rem;
  --fs-ui: 0.95rem;            /* 15.2: nav, buttons */
  --fs-sm: 0.85rem;            /* 13.6 */
  --fs-xs: 0.8rem;             /* 12.8 */
  --fs-eyebrow: 0.6875rem;     /* 11 */

  /* Space and layout */
  --container: 73.125rem;      /* 1170px */
  --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 2rem);
  --section: clamp(4.5rem, 2.6rem + 5.2vw, 7rem);   /* 72 -> 112 */
  --gap-card: 10px;
  --radius: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base ------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--on-dark); }
code, pre, kbd, samp { font-family: var(--mono); font-size: 0.875em; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.sr-only, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 0.5rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-size: var(--fs-ui);
}
.skip:focus { top: 0.75rem; }

/* ---- Type roles -------------------------------------------------------------------------------- */
.t-h1, .t-h2, .t-h2s, .t-serif {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  letter-spacing: -0.02em; text-wrap: balance;
}
.t-h1 { font-size: var(--fs-h1); line-height: 1.06; }
.t-h2 { font-size: var(--fs-h2); line-height: 1.06; }
.t-h2s { font-size: var(--fs-h2-sm); line-height: 1.1; }
.t-h3 { font-family: var(--sans); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.t-lead { font-size: var(--fs-lead); line-height: 1.58; color: var(--text-2); text-wrap: pretty; }
.t-eyebrow {
  font-size: var(--fs-eyebrow); line-height: 1.4; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}
.t-small { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.on-dark .t-lead { color: var(--on-dark-lead); }
.on-dark .t-eyebrow { color: var(--muted); }

/* ---- Buttons: ~41px, 6px radius, 15.2/500. Primary on light = ink; on dark = white. ------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5625rem; padding: 0.7rem 1.1rem;
  font: 500 var(--fs-ui)/1.1 var(--sans); letter-spacing: -0.005em;
  background: var(--ink); color: var(--on-dark);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: var(--ink-2); color: var(--on-dark); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #ecebe7; color: var(--ink); }
.btn--soft { background: var(--warm); color: var(--ink); }
.btn--soft:hover { background: var(--warm-2); color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); color: var(--on-dark); }
.btn--sm { min-height: 2.125rem; padding: 0.5rem 0.8rem; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }

/* ---- Small parts ------------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: var(--radius);
  background: var(--warm); color: var(--ink); font-size: 0.78rem; line-height: 1.35; white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 3px 8px; border-radius: var(--radius);
  font-size: 0.75rem; line-height: 1.4; font-weight: 500; white-space: nowrap;
  background: var(--warm); color: var(--text-2);
}
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); flex: none; display: inline-block; }
.dot--accent { background: var(--accent); }
.dot--off { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.monogram {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); background: var(--ink); color: var(--on-dark);
  font: 400 1.15rem/1 var(--serif); letter-spacing: 0.01em;
}

/* ---- Motion: fade and rise as sections enter. Scroll-driven CSS only; content is fully visible
   wherever view timelines are unsupported, and nothing moves under prefers-reduced-motion. ----- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise {
      animation: pr-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .rise-group > * {
      animation: pr-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .rise-group > :nth-child(2) { animation-range: entry 8% entry 63%; }
    .rise-group > :nth-child(3) { animation-range: entry 16% entry 71%; }
    .rise-group > :nth-child(4) { animation-range: entry 24% entry 79%; }
  }
}
@keyframes pr-rise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* The practice record (shared/card.mjs). Bundled into BOTH stylesheets after tokens.css, so the
   member app's preview is literally the public component. Classes: rhead__* (header pattern) and
   pcard__* (the dark record card, and the warm compact card used in lists). */

/* ---- Header pattern -------------------------------------------------------------------------- */
.rhead { display: grid; gap: 0; }
.rhead__top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.rhead__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.5rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; color: var(--ink);
}
.rhead__firm { margin-top: 0.5rem; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.5; }
.rhead__firm:empty { display: none; }
.rhead__summary {
  margin-top: 1.25rem; max-width: 40rem; font-size: var(--fs-lead); line-height: 1.58; color: var(--ink);
  text-wrap: pretty; white-space: pre-line; overflow-wrap: anywhere;
}
.rhead__summary:empty { display: none; }
.rhead__pills { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__blank { color: var(--muted); font-style: normal; }

/* ---- Dark record card -------------------------------------------------------------------------- */
.pcard {
  position: relative; border-radius: var(--radius);
  font-family: var(--sans); font-size: var(--fs-sm); line-height: 1.5; text-align: left;
}
.pcard :where(p, h1, h2, h3, h4, h5, h6, dl, dd, dt, ul) { margin: 0; padding: 0; }
.pcard--full, .pcard--hero {
  background: var(--ink); color: var(--on-dark);
  padding: 1.5rem 1.5rem 1.25rem;
}
.pcard--hero { background: var(--card-dark); border: 1px solid var(--hair-dark); }
.pcard__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 1.5rem; margin-bottom: 0.75rem; }
.pcard__title { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0; }
.pcard__heroname { font: 400 1.5rem/1.15 var(--serif); letter-spacing: -0.015em; margin: 0.25rem 0 0.75rem !important; }
.pcard__heroname a { color: inherit; text-decoration: none; }
.pcard__heroname a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pcard__rows { display: grid; }
.pcard__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem;
  padding: 0.7rem 0; border-top: 1px solid var(--hair-dark);
}
.pcard__row dt { color: var(--muted); flex: none; }
.pcard__row dd { text-align: right; color: var(--on-dark); overflow-wrap: anywhere; min-width: 0; }
.pcard__row .dot { vertical-align: middle; margin-right: 0.15rem; position: relative; top: -1px; }
.pcard__cred {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0 0;
  border-top: 1px solid var(--hair-dark); color: var(--on-dark-body);
}
.pcard__cred .dot--off { box-shadow: inset 0 0 0 1px var(--muted); }
.pcard__updated { padding-top: 0.25rem; color: var(--muted); font-size: var(--fs-xs); padding-left: calc(6px + 0.55rem); }
.pcard__actions { display: grid; gap: 0.25rem; margin-top: 1.25rem; }
.pcard__actions .btn { width: 100%; }
.pcard__actions .pcard__link {
  display: block; text-align: center; padding: 0.55rem 0; color: var(--on-dark-lead); font-size: var(--fs-sm);
  text-decoration: none;
}
.pcard__actions .pcard__link:hover { color: var(--on-dark); text-decoration: underline; }
.pcard__ref { margin-top: 1rem !important; padding-top: 0.75rem; border-top: 1px solid var(--hair-dark); }
.pcard__ref .mono { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.pcard .pcard__blank { color: rgba(255, 255, 255, 0.4); }

/* ---- Compact card (lists): warm fill, no border, no shadow ------------------------------------ */
.pcard--compact {
  background: var(--warm); color: var(--ink); padding: 1.25rem 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 0.9rem; height: 100%;
  transition: background-color 160ms var(--ease);
}
.pcard--compact:hover { background: var(--warm-2); }
.pcard__top { display: flex; align-items: flex-start; gap: 0.85rem; }
.pcard__top .monogram { width: 40px; height: 40px; font-size: 1.05rem; }
.pcard__top .pill { margin-left: auto; }
.pcard__id { min-width: 0; }
.pcard__name { font: 400 1.375rem/1.15 var(--serif); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pcard__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pcard__name a:focus-visible { outline: none; }
.pcard__name a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.pcard__firm { margin-top: 0.2rem; color: var(--text-2); font-size: var(--fs-sm); }
.pcard__tags .tag { background: var(--paper); }
.pcard--compact .pcard__rows { margin-top: auto; }
.pcard--compact .pcard__row { border-top-color: var(--hair); padding: 0.5rem 0; }
.pcard--compact .pcard__row dt { color: var(--label); }
.pcard--compact .pcard__row dd { color: var(--ink); }
.pcard--compact .pcard__cred { border-top-color: var(--hair); color: var(--text-2); padding-top: 0.6rem; font-size: var(--fs-xs); }

@media print { .pcard--full, .pcard--hero { background: none; color: #000; border: 1px solid #999; } }

/* Practice Rights public site. Tokens, base type, buttons and motion: shared/tokens.css.
   The record header + dark record card: shared/card.css. Spec: DESIGN-SYSTEM.md. */

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.dot--muted { background: var(--muted); }
.mono { font-family: var(--mono); }

/* =================================================================================================
   Header. Light translucent sticky bar by default. On the home page (.masthead--overlay) it starts
   transparent with white text over the photograph and turns into the light bar as the page scrolls,
   with no JavaScript: a scroll-driven animation on the root scroller animates registered custom
   properties. Where scroll timelines are unsupported the overlay header is position:absolute and
   simply scrolls away with the hero, so white text never sits on a white page.
   ================================================================================================= */
@property --m-fg { syntax: "<color>"; inherits: true; initial-value: #0f141b; }
@property --m-fg2 { syntax: "<color>"; inherits: true; initial-value: #4a4e55; }
@property --m-bg { syntax: "<color>"; inherits: false; initial-value: rgba(255, 255, 255, 0.84); }
@property --m-line { syntax: "<color>"; inherits: false; initial-value: rgba(15, 20, 27, 0.08); }
@property --m-btn-bg { syntax: "<color>"; inherits: true; initial-value: #0f141b; }
@property --m-btn-fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --m-blur { syntax: "<length>"; inherits: false; initial-value: 16px; }

.masthead {
  --m-fg: var(--ink); --m-fg2: #4a4e55; --m-bg: rgba(255, 255, 255, 0.84); --m-line: var(--hair);
  --m-btn-bg: var(--ink); --m-btn-fg: #fff; --m-blur: 16px;
  position: sticky; top: 0; z-index: 40;
  color: var(--m-fg); background: var(--m-bg);
  border-bottom: 1px solid var(--m-line);
  -webkit-backdrop-filter: blur(var(--m-blur)) saturate(1.5);
  backdrop-filter: blur(var(--m-blur)) saturate(1.5);
}
.masthead--overlay {
  --m-fg: #fff; --m-fg2: rgba(255, 255, 255, 0.8); --m-bg: rgba(255, 255, 255, 0); --m-line: rgba(255, 255, 255, 0);
  --m-btn-bg: #fff; --m-btn-fg: var(--ink); --m-blur: 0px;
  position: absolute; left: 0; right: 0; top: 0;
}
@supports (animation-timeline: scroll()) {
  .masthead--overlay {
    position: fixed;
    animation: pr-masthead linear both;
    animation-timeline: scroll(root block);
    animation-range: 24px 120px;
  }
}
@keyframes pr-masthead {
  to {
    --m-fg: #0f141b; --m-fg2: #4a4e55; --m-bg: rgba(255, 255, 255, 0.84); --m-line: rgba(15, 20, 27, 0.08);
    --m-btn-bg: #0f141b; --m-btn-fg: #ffffff; --m-blur: 16px;
  }
}
.masthead__inner {
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 4.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.wordmark {
  justify-self: start; color: inherit; text-decoration: none;
  font: 400 1.65rem/1 var(--serif); letter-spacing: -0.015em; white-space: nowrap;
}
.nav ul { display: flex; gap: 2.25rem; list-style: none; }
.nav a, .masthead__signin {
  color: var(--m-fg2); text-decoration: none; font-size: var(--fs-ui); line-height: 1; white-space: nowrap;
  transition: color 160ms var(--ease);
}
.nav a:hover, .masthead__signin:hover, .nav a[aria-current="page"] { color: var(--m-fg); }
.masthead__actions { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.masthead .masthead__join { background: var(--m-btn-bg); color: var(--m-btn-fg); }
.masthead .masthead__join:hover { opacity: 0.9; }
.masthead :focus-visible { outline-color: currentColor; }

/* Menu for narrow screens: a native <details>, so it works without script. */
.menu { display: none; position: relative; }
.menu__button {
  list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: var(--radius); color: var(--m-fg);
}
.menu__button::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before {
  display: block; width: 18px; height: 1px; background: currentColor; position: relative;
}
.menu__bars { top: -3px; }
.menu__bars::before { content: ""; top: 6px; position: absolute; left: 0; }
.menu[open] .menu__bars { top: 0; transform: rotate(45deg); }
.menu[open] .menu__bars::before { top: 0; transform: rotate(-90deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 0.75rem); min-width: 14rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--hair-2); border-radius: var(--radius);
  padding: 0.5rem;
}
.menu__panel ul { list-style: none; }
.menu__panel a { display: block; padding: 0.7rem 0.75rem; color: var(--ink); text-decoration: none; border-radius: 4px; font-size: var(--fs-ui); }
.menu__panel a:hover { background: var(--warm); }
@media (max-width: 56rem) {
  .masthead__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; }
  .nav, .masthead__signin { display: none; }
  .menu { display: block; }
  .masthead__actions { gap: 0.5rem; }
}
@media (max-width: 26rem) {
  .wordmark { font-size: 1.4rem; }
  .masthead__actions { gap: 0.25rem; }
  .masthead__join { padding-inline: 0.7rem; }
  .menu__button { margin-right: -0.5rem; }
}

/* =================================================================================================
   Home: hero
   ================================================================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: 11rem 0 3.5rem;
}
/* Stand-in for the photograph (and what shows if it fails): dusk slate-blue sky, a warm amber
   glow low in the centre where the lit windows are, a near-black base. */
.hero {
  --standin:
    radial-gradient(34% 13% at 50% 61%, rgba(240, 176, 88, 0.40), rgba(240, 176, 88, 0) 75%),
    radial-gradient(72% 28% at 50% 64%, rgba(200, 137, 43, 0.28), rgba(200, 137, 43, 0) 72%),
    linear-gradient(180deg, #1a2940 0%, #243651 26%, #2d3f58 44%, #232f42 58%, #151c27 74%, #0c1016 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--standin); }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  max-width: none; color: transparent;
}
/* A failed image renders its pseudo-elements: cover the broken-image glyph with the stand-in. */
.hero__img::after { content: ""; position: absolute; inset: 0; background: var(--standin); }
.hero__media::after {
  /* the dark overlay: stronger at the top (nav, headline) and at the bottom (cards, band) */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 20, 27, 0.70) 0%, rgba(15, 20, 27, 0.42) 22%, rgba(15, 20, 27, 0.30) 40%,
    rgba(15, 20, 27, 0.55) 60%, rgba(15, 20, 27, 0.90) 80%, #0f141b 100%);
}
.hero__inner { position: relative; }
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { font-size: var(--fs-ui); color: rgba(255, 255, 255, 0.72); margin-bottom: 1.5rem; }
.hero__title { max-width: 11.5em; color: #fff; }
.hero__lead { margin-top: 1.75rem; max-width: 36ch; color: rgba(255, 255, 255, 0.8); }
.hero__actions { justify-content: center; margin-top: 2.25rem; }

.exchange { margin: 6rem auto 0; max-width: 63rem; }
.exchange__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); align-items: start; }
.ask {
  background: var(--card-dark); border: 1px solid var(--hair-dark); border-radius: var(--radius);
  padding: 1.5rem;
}
.ask__label { font-size: var(--fs-xs); color: var(--muted); }
.ask__label--answer { margin-top: 2.5rem; }
.ask__q { margin: 0.85rem 0 0; font: 400 var(--fs-quote)/1.3 var(--serif); letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.ask__answer {
  margin-top: 0.6rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair-dark);
  font-size: var(--fs-sm); line-height: 1.6; color: var(--on-dark-body);
}
.ask__source {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.85rem;
  padding: 3px 8px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07);
}
.ask__source .mono { font-size: 0.72rem; color: var(--on-dark-lead); overflow-wrap: anywhere; }
.exchange__caption { margin-top: 1rem; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
#example-card:focus { outline: none; }
#example-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 52rem) {
  .hero { padding-top: 8rem; }
  .exchange { margin-top: 4rem; }
  .exchange__cards { grid-template-columns: 1fr; }
  .ask__label--answer { margin-top: 1.75rem; }
}

/* =================================================================================================
   Question marquee (in place of press logos: we have none)
   ================================================================================================= */
.marquee {
  background: var(--ink); color: rgba(255, 255, 255, 0.62); padding: 1.9rem 0 2.2rem;
}
.marquee__mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; list-style: none; gap: 3.25rem; padding-right: 3.25rem; }
.marquee__list li { display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap; font: 400 1.25rem/1.2 var(--serif); letter-spacing: -0.005em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: pr-marquee 110s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes pr-marquee { to { transform: translateX(-50%); } }

/* =================================================================================================
   Sections
   ================================================================================================= */
.section { padding: var(--section) 0; }
.section--flush { padding-top: 0; padding-bottom: 0; }
.section--top0 { padding-top: 0; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--warmband { background: var(--warm); }
.section__head { max-width: 46rem; margin-bottom: 3.5rem; }
.section__head .t-lead { margin-top: 1.25rem; max-width: 46ch; }
.section--dark .t-h2 { color: #fff; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); }
.wcard { background: var(--warm); border-radius: var(--radius); padding: 2rem 2rem 2rem; display: flex; flex-direction: column; }
.wcard--white { background: var(--paper); }
.wcard > p { margin-top: 0.5rem; color: var(--text-2); max-width: 42ch; }
.wcard > p:has(+ .specimen) { margin-bottom: 1.75rem; }
.wcard code { font-size: 0.85em; }
.specimen { margin-top: auto; padding: 1rem 1.15rem; background: var(--paper); border-radius: var(--radius); }
.specimen--code dl, .plan__specimen dl { display: grid; }
.specimen--code dl > div, .plan__specimen dl > div {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0;
  font: 0.8125rem/1.45 var(--mono); border-top: 1px solid var(--hair);
}
.specimen--code dl > div:first-child, .plan__specimen dl > div:first-child { border-top: 0; }
.specimen--code dt, .plan__specimen dt { color: var(--label); }
.specimen--code dd, .plan__specimen dd { color: var(--ink); text-align: right; }
.dotlist { list-style: none; display: grid; }
.dotlist li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid var(--hair); font-size: 0.875rem; }
.dotlist li:first-child { border-top: 0; }
.dotlist__v { margin-left: auto; color: var(--text-2); font-size: var(--fs-xs); }
.specimen--msg { display: flex; flex-direction: column; gap: 0.7rem; }
.msg__q { align-self: flex-end; max-width: 85%; background: var(--warm); border-radius: var(--radius); padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--ink); }
.msg__a { font-size: 0.875rem; color: var(--ink); line-height: 1.55; max-width: 92%; }

/* Stat rows */
.stats { border-bottom: 1px solid var(--hair); }
.stats__row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem;
  padding: 1.6rem 0; border-top: 1px solid var(--hair);
}
.stats__n { font: 400 var(--fs-num)/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.stats__t { font-size: var(--fs-ui); line-height: 1.55; color: var(--text-2); max-width: 38ch; }
.stats__note { margin-top: 1rem; font-size: 0.75rem; color: var(--label); }

/* Proof block */
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
.proof__copy .t-h2 { margin-top: 1rem; }
.proof__copy .t-lead { margin-top: 1.25rem; max-width: 40ch; }
.proof__copy .btn-row { margin-top: 2rem; }
.proof__rows { border-bottom: 1px solid var(--hair); }
.proof__row { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem 0; border-top: 1px solid var(--hair); }
.proof__n { font: 400 var(--fs-num-mid)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.proof__name { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }
.proof__row p + p { margin-top: 0.3rem; font-size: var(--fs-ui); color: var(--text-2); line-height: 1.55; }

/* Dark cards: "how clients searched / search now" */
.dcard { background: var(--card-dark); border: 1px solid var(--hair-dark); border-radius: var(--radius); padding: 2rem; }
.dcard__label { font-size: var(--fs-xs); color: var(--muted); }
.dcard__q { margin: 1rem 0 1.75rem; font: 400 var(--fs-quote)/1.3 var(--serif); letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.dashlist { list-style: none; border-top: 1px solid var(--hair-dark); padding-top: 1rem; }
.dashlist li { position: relative; padding: 0.3rem 0 0.3rem 1.25rem; font-size: var(--fs-ui); color: var(--on-dark-body); }
.dashlist li::before { content: "\2014"; position: absolute; left: 0; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--hair); }
.principles p { margin-top: 0.6rem; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.6; }

/* Dark CTA */
.cta { background: var(--ink); color: var(--on-dark); padding: var(--section) 0; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta .t-h2 { color: #fff; max-width: 16em; }
.cta__line { margin-top: 1rem; color: var(--on-dark-lead); }
.cta__actions { justify-content: center; margin-top: 2rem; }

/* =================================================================================================
   Footer: four columns and the cropped wordmark
   ================================================================================================= */
.footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding-top: 4rem; border-top: 1px solid var(--hair-dark); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--hair-dark); }
.footer__tagline { font-size: 1.2rem; line-height: 1.4; color: #fff; letter-spacing: -0.01em; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 2.75rem 0; }
.footer__cols h2 { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-bottom: 1rem; }
.footer__cols ul { list-style: none; display: grid; gap: 0.6rem; }
.footer__cols a { color: var(--on-dark-body); text-decoration: none; font-size: var(--fs-ui); }
.footer__cols a:hover { color: #fff; }
.footer__legal { border-top: 1px solid var(--hair-dark); padding: 2rem 0 0; display: grid; gap: 0.6rem; }
.footer__legal p { max-width: 52rem; font-size: 0.78rem; line-height: 1.6; color: var(--muted); }
.footer__fine { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__credit a, .footer__legal a { color: var(--muted); }
.footer__mark {
  font: 400 min(16.4vw, 18.75rem)/0.78 var(--serif); letter-spacing: -0.035em; white-space: nowrap;
  color: rgba(255, 255, 255, 0.06); text-align: center; margin: 3rem 0 -0.16em; user-select: none; pointer-events: none;
}

/* =================================================================================================
   Inner marketing pages
   ================================================================================================= */
.pagehead { padding: 7rem 0 4.5rem; }
.pagehead__kicker { margin-bottom: 1.25rem; }
.pagehead__title { font-size: clamp(2.5rem, 1.3rem + 3.3vw, 4.25rem); line-height: 1.06; max-width: 15em; }
.pagehead__lede { margin-top: 1.5rem; max-width: 50ch; }
.pagehead--centred { text-align: center; }
.pagehead--centred .wrap { display: flex; flex-direction: column; align-items: center; }
.pagehead--centred .pagehead__title { max-width: 13em; }

.steps { list-style: none; border-bottom: 1px solid var(--hair); }
.steps__row {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid var(--hair); scroll-margin-top: 6rem;
}
.steps__row > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; }
.steps__n { font: 400 var(--fs-num-mid)/1 var(--serif); color: var(--ink); }
.steps__row p { color: var(--text-2); max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; }
.split__h { position: sticky; top: 6.5rem; }
.rules { list-style: none; border-bottom: 1px solid var(--hair); }
.rules li { padding: 1.6rem 0; border-top: 1px solid var(--hair); }
.rules p { margin-top: 0.4rem; color: var(--text-2); max-width: 62ch; }
.prose p { color: var(--text-2); font-size: 1.0625rem; line-height: 1.68; max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }
.section--rule { padding: 0; }
.section--rule .split { padding: 4rem 0; border-top: 1px solid var(--hair); }
.section--rule:first-of-type .split { border-top: 0; }
.pagehead + .section--rule .split { border-top: 1px solid var(--hair); }

.faq { border-bottom: 1px solid var(--hair); }
.faq__item { border-top: 1px solid var(--hair); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { position: relative; width: 12px; height: 12px; flex: none; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ink); transition: transform 200ms var(--ease); }
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }
.faq__item p { padding: 0 2.5rem 1.6rem 0; color: var(--text-2); max-width: 64ch; }

/* Pricing: the one plan */
.section:has(> .wrap > .plan) { padding-bottom: var(--section); }
.plan {
  max-width: 29rem; margin: 0 auto; border-radius: var(--radius); padding: 2rem;
  color: var(--on-dark);
  background:
    radial-gradient(90% 55% at 88% -5%, rgba(200, 137, 43, 0.24), rgba(200, 137, 43, 0) 65%),
    radial-gradient(70% 40% at 0% 100%, rgba(200, 137, 43, 0.07), rgba(200, 137, 43, 0) 70%),
    var(--ink);
  box-shadow: 0 50px 90px -40px rgba(15, 20, 27, 0.55), 0 18px 40px -24px rgba(15, 20, 27, 0.35);
}
.plan__head { display: flex; align-items: center; justify-content: space-between; }
.plan__name { font-size: var(--fs-ui); font-weight: 500; color: #fff; }
.plan__badge { background: var(--accent); color: var(--ink); font-size: 0.75rem; font-weight: 500; padding: 3px 9px; border-radius: var(--radius); }
.plan__price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.5rem; }
.plan__amount { font: 400 2.75rem/1 var(--serif); letter-spacing: -0.02em; color: #fff; }
.plan__per { color: var(--muted); font-size: var(--fs-ui); }
.plan__billing { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--on-dark-lead); }
.plan__cta { margin-top: 1.75rem; }
.plan__terms { margin-top: 0.9rem; font-size: 0.78rem; line-height: 1.55; color: var(--muted); }
.plan__group { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hair-dark); }
.plan__gh { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-bottom: 0.6rem; }
.plan__list { list-style: none; display: grid; gap: 0.35rem; }
.plan__list li { font-size: 0.9375rem; color: var(--on-dark-body); line-height: 1.5; }
.plan__specimen { margin-top: 1rem; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 0.85rem 1rem; }
.plan__status-row { display: flex; justify-content: space-between; align-items: center; padding: 0.42rem 0; font-size: var(--fs-sm); border-top: 1px solid var(--hair); }
.plan__status-row:first-child { border-top: 0; }
.plan__status-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--hair); font-size: var(--fs-xs); color: var(--text-2); }
.notice-warm { max-width: 40rem; margin: 3rem auto 0; background: var(--warm); border-radius: var(--radius); padding: 1.4rem 1.6rem; font-size: var(--fs-ui); color: var(--text-2); }
.notice-warm strong { color: var(--ink); font-weight: 500; }
.notice-warm p + p { margin-top: 0.5rem; }

/* =================================================================================================
   Graph pages (/find, /ea/*)
   ================================================================================================= */
.graphhead { padding: 4.5rem 0 1rem; }
.graphhead__title { margin-top: 0.9rem; font: 400 2.75rem/1.08 var(--serif); letter-spacing: -0.02em; text-wrap: balance; max-width: 18em; }
.graphhead--state .graphhead__title { margin-top: 1.25rem; }
.graphhead__lede { margin-top: 1rem; max-width: 66ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; }
.graphhead__count { margin-top: 0.85rem; color: var(--text-2); max-width: 66ch; }
.graphhead .btn-row { margin-top: 1.75rem; }
.graphhead .filters--inline { margin-top: 2rem; }
.figures { display: flex; flex-wrap: wrap; margin-top: 2.75rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.figures > div { display: flex; flex-direction: column-reverse; gap: 0.3rem; padding: 1.25rem 2.5rem 1.25rem 0; }
.figures > div + div { padding-left: 2.5rem; border-left: 1px solid var(--hair); }
.figures dd { font: 400 2.25rem/1 var(--serif); letter-spacing: -0.02em; }
.figures dt { font-size: var(--fs-xs); color: var(--label); }

.graphsec { padding: 3.5rem 0 0; scroll-margin-top: 4.5rem; }
.graphsec--last { padding-bottom: var(--section); }
.graphsec__title { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 1.25rem; }
.graphsec__note { margin-top: 2.5rem; font-size: var(--fs-sm); color: var(--text-2); max-width: 62ch; }

.filters {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: end;
  background: var(--warm); border-radius: var(--radius); padding: 1rem;
}
.filters--inline { grid-template-columns: minmax(0, 1fr) auto; max-width: 40rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field > label { font-size: var(--fs-xs); color: var(--text-2); }
.field input[type="search"], .field select {
  width: 100%; height: 2.6rem; padding: 0 0.85rem; border-radius: var(--radius);
  border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink);
  font: 400 var(--fs-ui)/1 var(--sans); appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field--check { display: flex; align-items: center; gap: 0.5rem; height: 2.6rem; }
.field--check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--ink); }
.field--check label { font-size: var(--fs-ui); color: var(--ink); white-space: nowrap; }
.filters .btn { height: 2.6rem; min-height: 0; }

.resulthead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 2.5rem 0 1rem; }
.resulthead__count { font-size: var(--fs-ui); font-weight: 500; }
.resulthead__q { font-weight: 400; color: var(--text-2); }
.resulthead__clear { font-size: var(--fs-sm); color: var(--text-2); }
.results { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager__pos { font-size: var(--fs-sm); color: var(--text-2); }
.empty { padding: 2rem 0; border-top: 1px solid var(--hair); max-width: 44rem; }
.empty__title { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.empty p:not(.empty__title) { color: var(--text-2); }
.empty p + p { margin-top: 0.4rem; }
.samples { margin-top: 3rem; }
.samples__head { margin-bottom: 1.25rem; max-width: 44rem; }
.samples__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.35rem; }

.tiles { list-style: none; display: grid; gap: var(--gap-card); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 100%;
  min-height: 4.25rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--warm); color: var(--ink); text-decoration: none; transition: background-color 160ms var(--ease);
}
.tile:hover { background: var(--warm-2); }
.tile__name { font: 400 1.2rem/1.2 var(--serif); letter-spacing: -0.01em; }
.tile--state .tile__name { font-size: 1.0625rem; }
.tile__count { background: var(--paper); border-radius: var(--radius); padding: 1px 8px; font-size: 0.75rem; color: var(--text-2); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-sm); color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Record page */
.recordpage { padding: 2.5rem 0 var(--section); }
.samplenote { margin-top: 1.25rem; max-width: 46rem; background: var(--warm); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: var(--fs-sm); color: var(--text-2); }
.samplenote strong { color: var(--ink); font-weight: 500; }
.recordpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 23.5rem; gap: 5rem; align-items: start; margin-top: 2.75rem; }
.recordpage__sticky { position: sticky; top: 5.75rem; }
.recordpage__below { margin-top: 1rem; text-align: center; font-size: var(--fs-sm); color: var(--text-2); display: grid; gap: 0.3rem; }
.rsec { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--hair); }
.rsec__title { font: 400 1.375rem/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 1rem; }
.rsec__note { margin-top: 0.9rem; font-size: var(--fs-ui); color: var(--text-2); }
.rsec .tags { gap: 8px; }
.rsec .tag { font-size: 0.8125rem; padding: 5px 10px; }
.qa__item { padding: 1.2rem 0; border-top: 1px solid var(--hair); }
.qa__item:first-child { border-top: 0; padding-top: 0.25rem; }
.qa dt { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }
.qa dd { margin-top: 0.35rem; font-size: var(--fs-ui); line-height: 1.6; color: var(--text-2); max-width: 64ch; }

/* 404 */
.lost { padding: 7rem 0 var(--section); }
.lost__title { margin-top: 1rem; max-width: 18em; }
.lost__lede { margin-top: 1.25rem; max-width: 52ch; }
.lost__search { margin-top: 2.25rem; }
.lost__links { display: flex; gap: 1.5rem; margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--text-2); }

/* =================================================================================================
   Responsive
   ================================================================================================= */
@media (max-width: 64rem) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recordpage__grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
  .proof { gap: 3rem; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters .field--grow { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .grid2, .proof, .principles, .split { grid-template-columns: minmax(0, 1fr); }
  .principles { gap: 2rem; }
  .split__h { position: static; }
  .steps__row > div { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  /* Phones: the record card (contact, fees, credential) follows the header, before the long sections. */
  .recordpage__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .recordpage__main { display: contents; }
  .recordpage__main > .rhead { order: 1; }
  .recordpage__side { order: 2; margin-top: 2rem; }
  .recordpage__main > .rsec { order: 3; }
  .recordpage__sticky { position: static; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 40rem) {
  .results { grid-template-columns: minmax(0, 1fr); }
  .tiles--4, .tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; padding: 1.5rem 0; }
  .wcard, .dcard { padding: 1.5rem; }
  .steps__row { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; }
  .figures > div { padding-right: 1.25rem; }
  .figures > div + div { padding-left: 1.25rem; }
  .figures dd { font-size: 1.75rem; }
  .graphhead { padding-top: 3rem; }
  .graphhead__title { font-size: 2.25rem; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters--inline { grid-template-columns: minmax(0, 1fr); }
  .pagehead { padding: 4.5rem 0 3rem; }
  .plan { padding: 1.5rem; }
  .faq__item p { padding-right: 0; }
  .section__head { margin-bottom: 2.5rem; }
  .hero__lead { font-size: 1.0625rem; }
  .proof__row { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.75rem; }
}
@media print {
  .masthead, .footer, .marquee, .hero__media { display: none; }
  .hero, .section--dark, .cta { background: none; color: #000; }
}
