/* Named Agent. One accent (indigo, Primary/500), used for calls to action and emphasis only.
   Design system (2026-11-03): products/named-agent/DESIGN.md. Live reference: /foundations (local, not shipped).
   Fonts, colors and weights are Jared's call: propose, never apply. */

/* ---------------------------------------------------------------------------
   1. Core colors. Raw values live here and nowhere else. Only shades in use.
   --------------------------------------------------------------------------- */
:root {
  --primary-200: #b9bbff;
  --primary-300: #9a9dff;
  --primary-350: #8f93ff;
  --primary-400: #6a6ef0;
  --primary-500: #3b3fd8;
  --primary-600: #2c2fb3;
  --primary-700: #23268f;

  --gray-00: #ffffff;
  --gray-50: #f6f7fb;
  --gray-100: #eef0f7;
  --gray-120: #e7e9f3;
  --gray-150: #dfe3ec;
  --gray-200: #cdd3e3;
  --gray-250: #c5ccd8;
  --gray-300: #b3bccb;
  --gray-400: #a7b0c6;
  --gray-500: #677386;
  --gray-600: #5d6b82;
  --gray-700: #475467;
  --gray-800: #344054;
  --gray-850: #2a3550;
  --gray-870: #172036;
  --gray-900: #101828;
  --gray-950: #0d1424;
  --gray-alpha-16: rgb(16 24 40 / 0.16);

  --green-100: #e3f4ec;
  --green-600: #137a4b;
  --yellow-100: #fdf1de;
  --yellow-700: #9a5b00;
  --red-100: #fde8e6;
  --red-600: #b42318;

  /* Spacing, radius, motion */
  --space-0: 0; --space-2: 2px; --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-24: 24px;
  --space-32: 32px; --space-40: 40px; --space-48: 48px; --space-64: 64px; --space-80: 80px; --space-96: 96px;
  --radius-0: 0; --radius-2: 2px; --radius-4: 4px; --radius-6: 6px; --radius-8: 8px; --radius-12: 12px; --radius-16: 16px;
  --radius-24: 24px; --radius-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-color: 300ms;
  --dur-layout: 500ms;

  /* Text styles: today's rendered sizes, by the Tailwind step each one snaps to in
     the type-scale preview (site/preview-type.css). The number is the rem value. */
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.1rem, 5.4vw, 3.6rem);
  --fs-h1-report: clamp(1.7rem, 4vw, 2.5rem);
  --fs-stat-hero: clamp(2.2rem, 7vw, 3rem);
  --fs-h2: clamp(1.5rem, 3.4vw, 2.1rem);
  --fs-h2-intake: clamp(1.6rem, 3vw, 2.1rem);
  --fs-h3: 1.1rem;
  --fs-lead: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-3xl-220: 2.2rem; --fs-3xl-200: 2rem; --fs-3xl-190: 1.9rem;
  --fs-2xl-150: 1.5rem;
  --fs-xl-135: 1.35rem; --fs-xl-130: 1.3rem;
  --fs-lg-120: 1.2rem; --fs-lg-115: 1.15rem;
  --fs-base-110: 1.1rem; --fs-base-108: 1.08rem; --fs-base-105: 1.05rem; --fs-base-100: 1rem;
  --fs-sm-98: 0.98rem; --fs-sm-97: 0.97rem; --fs-sm-95: 0.95rem; --fs-sm-94: 0.94rem; --fs-sm-93: 0.93rem;
  --fs-sm-92: 0.92rem; --fs-sm-90: 0.9rem; --fs-sm-88: 0.88rem;
  --fs-xs-86: 0.86rem; --fs-xs-85: 0.85rem; --fs-xs-82: 0.82rem; --fs-xs-80: 0.8rem; --fs-xs-78: 0.78rem;
  --fs-xs-75: 0.75rem; --fs-xs-74: 0.74rem;
  --lh-body: 1.6;
  --lh-h1: 1.15; --lh-h2: 1.15; --lh-h3: 1.15;

  --wide: 1080px;
  --measure: 680px;
}

/* ---------------------------------------------------------------------------
   2. Color system, by role. Light mode on :root; Band mode on the dark
   surfaces (the band sections, the site footer, the report header). Any
   component that reads these gets the right colors on either surface.
   --------------------------------------------------------------------------- */
:root {
  --surface-page: var(--gray-50);
  --surface-card: var(--gray-00);
  --surface-subtle: var(--gray-50);
  --surface-muted: var(--gray-100);
  --surface-input: var(--gray-00);
  --surface-field: var(--gray-50);
  --surface-field-focus: var(--gray-00);
  --surface-selected: color-mix(in srgb, var(--primary-500) 9%, var(--gray-00));
  --surface-hover: color-mix(in srgb, var(--gray-900) 5%, transparent);
  --surface-current: color-mix(in srgb, var(--primary-500) 8%, transparent);
  --surface-inverted: var(--gray-900);
  --surface-featured: var(--surface-card);
  --surface-success-subtle: var(--green-100);
  --surface-warning-subtle: var(--yellow-100);
  --surface-error-subtle: var(--red-100);

  --action-primary: var(--primary-500);
  --action-primary-hover: var(--primary-600);
  --action-primary-click: var(--primary-700);
  --action-disabled: var(--gray-150);
  --action-secondary-hover: color-mix(in srgb, var(--primary-500) 9%, var(--gray-00));
  --action-secondary-click: color-mix(in srgb, var(--primary-500) 18%, var(--gray-00));

  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-800);
  --text-tertiary: var(--gray-600);
  --text-placeholder: var(--gray-600); /* 5.2:1 on the field fill; Gray/500 measured 4.49:1 once #f8f9fb folded into Gray/50 */
  --text-disabled: var(--gray-600);
  --text-inverted: var(--gray-00);
  --text-heading: currentColor;
  --text-label: currentColor;
  --text-accent: var(--primary-500);
  --text-kicker: var(--primary-500);
  --text-link: var(--primary-500);
  --text-link-hover: var(--primary-600);
  --text-link-quiet: var(--gray-800);
  --text-link-quiet-hover: var(--primary-600);
  --text-success: var(--green-600);
  --text-warning: var(--yellow-700);
  --text-error: var(--red-600);

  --border-default: var(--gray-150);
  --border-hover: var(--gray-250);
  --border-input: var(--gray-500);
  --border-input-hover: var(--gray-700);
  --border-accent: var(--primary-500);
  --border-featured: var(--primary-500);
  --border-selected: color-mix(in srgb, var(--primary-500) 65%, var(--gray-00));
  --border-focus: var(--primary-500);
  --border-warning: var(--yellow-700);
  --border-error: var(--red-600);

  --icon-accent: var(--primary-500);
  --icon-success: var(--green-600);
  --icon-subtle: var(--gray-300);

  --overlay-light: color-mix(in srgb, var(--surface-page) 70%, transparent);
  --shadow: 0 1px 2px color-mix(in srgb, var(--gray-900) 4%, transparent), 0 10px 28px -14px var(--gray-alpha-16);
  --shadow-featured: var(--shadow);
  --shadow-action: none; /* Phase 4 (2026-11-04): no button glow */
  --ring: 0 0 0 3px color-mix(in srgb, var(--action-primary) 18%, transparent);
  --ring-error: 0 0 0 3px color-mix(in srgb, var(--border-error) 18%, transparent);
}
section.band, body:not(.report) > footer, .report-hdr {
  --surface-page: var(--gray-950);
  --surface-card: var(--gray-870);
  --surface-subtle: var(--gray-900);
  --surface-muted: var(--gray-850);
  --surface-input: var(--gray-950);
  --surface-field: var(--gray-950);
  --surface-field-focus: var(--gray-950);
  --surface-featured: var(--gray-870);
  --text-primary: var(--gray-00);
  --text-secondary: var(--gray-120);
  --text-tertiary: var(--gray-400);
  --text-heading: var(--gray-00);
  --text-label: var(--gray-200);
  --text-accent: var(--primary-300);
  --text-kicker: var(--primary-200);
  --text-link: var(--primary-200);
  --text-link-hover: var(--gray-00);
  --text-link-quiet: var(--gray-200);
  --text-link-quiet-hover: var(--gray-00);
  --border-default: var(--gray-850);
  --border-input: var(--gray-500);
  --border-input-hover: var(--gray-400);
  --border-accent: var(--primary-300);
  --border-featured: var(--primary-350);
  --border-focus: var(--primary-300);
  --icon-accent: var(--primary-300);
  --shadow: none;
  --shadow-featured: none; /* Phase 4: the featured plan reads by its border */
}
/* Old names, kept so pages, generated reports and functions keep working.
   Declared on every mode root so they follow the mode. */
:root, section.band, body:not(.report) > footer, .report-hdr {
  --ink: var(--text-primary);
  --ink-2: var(--text-secondary);
  --muted: var(--text-tertiary);
  --line: var(--border-default);
  --bg: var(--surface-page);
  --card: var(--surface-card);
  --accent: var(--action-primary);
  --accent-2: var(--action-primary-hover);
  --accent-light: var(--primary-300);
  --good: var(--text-success);
  --warn: var(--text-warning);
  --bad: var(--text-error);
  --band: var(--gray-950);
  --band-card: var(--gray-870);
  --band-line: var(--gray-850);
  --band-text: var(--gray-120);
  --band-muted: var(--gray-400);
  --field: var(--surface-field);
  --field-line: var(--border-input);
  --field-hover: var(--border-input-hover);
  --radius: var(--radius-16);
}

/* ---------------------------------------------------------------------------
   3. Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--text-link); text-underline-offset: 0.18em; }
a:hover { color: var(--text-link-hover); }
h1, h2, h3 { font-family: var(--display); line-height: var(--lh-h1); letter-spacing: -0.02em; margin: 0 0 var(--space-12); color: var(--text-heading); }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-h3); }
strong { color: var(--text-heading); }
p { margin: 0 0 var(--space-16); }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--space-24); }
@media (max-width: 680px) { .wrap { padding: 0 var(--space-16); } }
.narrow { max-width: var(--measure); }
.skip { position: absolute; left: var(--space-12); top: -48px; z-index: 100; background: var(--action-primary); color: var(--text-inverted); padding: var(--space-8) var(--space-16); border-radius: var(--radius-8); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-12); color: var(--text-inverted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: color-mix(in srgb, var(--action-primary) 20%, transparent); }

/* Spacing utilities, for the few one-off gaps in page markup. !important so they
   win like the inline styles they replaced. */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-12 { margin-top: var(--space-12) !important; }
.mt-16 { margin-top: var(--space-16) !important; }
.mt-24 { margin-top: var(--space-24) !important; }
.mt-32 { margin-top: var(--space-32) !important; }
.mt-40 { margin-top: var(--space-40) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }
.ml-16 { margin-left: var(--space-16) !important; }
.m-0 { margin: 0 !important; }
.m-t8 { margin: var(--space-8) 0 0 !important; }
.m-t12 { margin: var(--space-12) 0 0 !important; }
.m-b8 { margin: 0 0 var(--space-8) !important; }
.m-b12 { margin: 0 0 var(--space-12) !important; }
.m-y4b12 { margin: var(--space-4) 0 var(--space-12) !important; }
.pt-8 { padding-top: var(--space-8) !important; }
.py-48 { padding-top: var(--space-48) !important; padding-bottom: var(--space-48) !important; }

/* Header */
.hdr { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: var(--space-16); }
.logo { font-family: var(--display); font-weight: 800; font-size: var(--fs-lg-115); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--text-accent); }
.hdr nav { display: flex; gap: var(--space-16); align-items: center; font-size: var(--fs-sm-95); }
.hdr nav a { color: var(--ink-2); text-decoration: none; }
.hdr nav a:hover { color: var(--ink); }
.hdr nav a.btn, .hdr nav a.btn:hover { color: var(--text-inverted); } /* the nav link color must not dim the Apply button's text */
.hdr .btn { display: inline-flex; align-items: center; min-height: 44px; }
/* Phones: the four product links move to a second row under the logo, so
   Pricing, Audit, Monitor and Platform stay one tap away (they used to vanish
   below 640px, leaving only the button). The button stays top right. */
@media (max-width: 640px) {
  .hdr .wrap { flex-wrap: wrap; position: relative; }
  .hdr .logo { display: flex; align-items: center; min-height: 60px; }
  .hdr nav { order: 3; flex-basis: 100%; gap: var(--space-24); margin-top: calc(-1 * var(--space-12)); }
  .hdr nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .hdr nav a.nav-sec { display: none; }
  .hdr nav .btn { position: absolute; right: var(--space-16); top: var(--space-8); }
}

/* Buttons. Primary (.btn), Secondary outline (.fix .copy), Tertiary text (.btn-link).
   States: hover, pressed (:active), focus-visible (a ring, never the hover fill),
   disabled (grey, not-allowed) and pending ([aria-busy], the action is under way). */
.btn { display: inline-block; background: var(--action-primary); color: var(--text-inverted); font-weight: 700; text-decoration: none; border: 0; border-radius: var(--radius-full); padding: var(--space-12) var(--space-24); font-size: var(--fs-base-100); cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-action); transition: background-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease), box-shadow var(--dur-color) var(--ease), transform var(--dur-color) var(--ease); }
.btn:hover { background: var(--action-primary-hover); color: var(--text-inverted); transform: translateY(-1px); }
.btn:focus { color: var(--text-inverted); }
.btn-sm { padding: var(--space-8) var(--space-16); font-size: var(--fs-sm-92); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .btn-link:focus-visible, .fix .copy:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
/* Pressed: the button settles, so a tap visibly lands. */
.btn:active { transform: translateY(1px); background: var(--action-primary-click); box-shadow: none; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; }
.btn:disabled:not([aria-busy="true"]), .btn[aria-disabled="true"] { background: var(--action-disabled); color: var(--text-disabled); box-shadow: none; cursor: not-allowed; transform: none; }

/* Sections */
section { padding: var(--space-64) 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: var(--space-80) 0 var(--space-64); }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 640px; }
.kicker { font-size: var(--fs-sm-92); font-weight: 600; color: var(--text-kicker); margin-bottom: var(--space-16); }
.note { font-size: var(--fs-sm-90); color: var(--muted); }

/* Answer specimen (Phase 3): a real archived answer beside the headline, with a
   date toggle (radio buttons plus :has, no JS). Other agents are redacted. */
.hero-grid { display: grid; gap: var(--space-40); }
.hero-grid > .proof { margin-top: 0; }
.hero-grid > .kicker { margin-bottom: calc(var(--space-40) * -1 + var(--space-8)); }
.hero-grid > h1 { margin: 0; }
.hero-grid > .hero-copy > .lead:first-child { margin-top: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; column-gap: var(--space-48); }
  .hero-grid > .proof, .hero-grid > .kicker, .hero-grid > h1 { grid-column: 1 / -1; }
  .hero-grid > h1 { max-width: none; margin-bottom: calc(var(--space-40) * -1 + var(--space-24)); }
}
.report-sample { display: grid; gap: var(--space-12); margin: var(--space-12) 0; }
.report-sample .fix { margin: 0; }
@media (min-width: 760px) { .report-sample { grid-template-columns: 1fr 1fr; align-items: start; } }
.specimen { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); box-shadow: var(--shadow); overflow: hidden; }
.spec-head { padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.spec-engine { margin: 0 0 var(--space-4); font-size: var(--fs-xs-82); font-weight: 700; color: var(--ink); }
.spec-engine span { font-weight: 500; color: var(--muted); margin-left: var(--space-4); }
.spec-q { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--fs-base-108); line-height: 1.35; color: var(--ink); }
.spec-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-16) var(--space-24) 0; padding: var(--space-4); border: 0; background: var(--surface-muted); border-radius: var(--radius-full); }
.spec-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spec-tabs label { display: grid; place-items: center; min-height: 44px; border-radius: var(--radius-full); font-size: var(--fs-sm-92); font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease); }
.spec-tabs input:checked + label { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px var(--gray-alpha-16); }
.spec-tabs input:focus-visible + label { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.spec-ans { padding: var(--space-16) var(--space-24) var(--space-8); }
/* Both answers sit in one grid cell, so the card keeps the taller one's height
   and does not jump between tabs. visibility: hidden also keeps the answer that
   is not showing out of the accessibility tree and the tab order. */
.spec-panels { display: grid; }
.spec-panels > .spec-ans { grid-area: 1 / 1; min-width: 0; }
.spec-ans-sep { visibility: hidden; }
.specimen:has(#spec-sep:checked) .spec-ans-sep { visibility: visible; }
.specimen:has(#spec-sep:checked) .spec-ans-oct { visibility: hidden; }
.spec-ans .spec-more { margin: 0 0 var(--space-8); font-size: var(--fs-xs-82); color: var(--muted); }
.spec-count { display: flex; align-items: center; gap: var(--space-12); margin: 0 0 var(--space-12); font-weight: 700; font-size: var(--fs-sm-95); color: var(--ink); }
.dots { display: inline-flex; gap: var(--space-4); }
.dots .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gray-300); }
.dots .dot.is-named { background: var(--action-primary); border-color: var(--action-primary); }
.spec-text { margin: 0; padding: 0; font-size: var(--fs-sm-95); line-height: 1.6; color: var(--ink-2); }
.spec-text p { margin: 0 0 var(--space-12); }
.spec-text strong { color: var(--ink); }
.spec-text mark { background: color-mix(in srgb, var(--action-primary) 14%, transparent); color: var(--text-accent); padding: 0 0.2em; border-radius: var(--radius-4); }
.redact { display: inline-block; width: 7.5em; height: 0.9em; vertical-align: -0.05em; background: var(--gray-900); border-radius: var(--radius-2); }
.specimen figcaption { padding: var(--space-8) var(--space-24) var(--space-16); font-size: var(--fs-xs-82); color: var(--muted); }
.specimen figcaption span { display: block; }
.specimen figcaption span + span { margin-top: var(--space-4); }

.proof { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); margin-top: var(--space-32); max-width: 760px; }
.proof .nums { display: flex; flex-wrap: wrap; gap: var(--space-24) var(--space-40); margin: var(--space-8) 0 var(--space-12); }
.proof .num { font-family: var(--display); font-weight: 800; font-size: var(--fs-3xl-190); letter-spacing: -0.02em; color: var(--text-accent); }
.proof .num small { display: block; font-family: var(--body); font-weight: 500; font-size: var(--fs-xs-85); color: var(--muted); letter-spacing: 0; }

.steps { display: grid; gap: var(--space-16); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--space-24); counter-reset: step; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); }
.steps .card { position: relative; padding-top: var(--space-32); }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--action-primary); color: var(--text-inverted); font-weight: 800; position: absolute; top: -16px; left: var(--space-24); margin: 0; box-shadow: 0 0 0 4px var(--bg); }
.gets { display: grid; gap: var(--space-12) var(--space-32); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 0; list-style: none; margin: var(--space-24) 0 0; }
.gets li { padding-left: var(--space-32); position: relative; }
.gets li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: var(--radius-4); background: var(--icon-accent); }

/* FAQ: each question row is a 44px-plus tap target. */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-12); padding: 0 var(--space-16); margin-bottom: var(--space-12); }
.faq details[open] { padding-bottom: var(--space-16); }
.faq summary { font-weight: 700; cursor: pointer; min-height: 44px; padding: var(--space-12) 0; }
.faq details p { margin: 0; color: var(--ink-2); }

/* Form */
form.apply { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-32); margin-top: var(--space-24); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-24); }
legend { font-family: var(--display); font-weight: 800; font-size: var(--fs-lg-115); margin-bottom: var(--space-4); }
.hint { font-size: var(--fs-sm-90); color: var(--muted); margin: 0 0 var(--space-12); }
.grid2 { display: grid; gap: var(--space-16); grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: var(--space-16); grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 680px) { .grid2, .grid3 { grid-template-columns: 1fr; } form.apply { padding: var(--space-24); } }
label { display: block; font-weight: 600; font-size: var(--fs-sm-95); color: var(--text-label); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  display: block; width: 100%; margin-top: var(--space-8); font: inherit; font-size: var(--fs-base-100); color: var(--ink);
  background: var(--surface-input); border: 1.5px solid var(--border-input); border-radius: var(--radius-12); padding: var(--space-12);
  transition: border-color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease), box-shadow var(--dur-color) var(--ease);
}
:is(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea):hover { border-color: var(--border-input-hover); }
::placeholder { color: var(--text-placeholder); opacity: 1; }
/* Error: set by the page ([aria-invalid]) or by the browser once the person has
   touched the field (:user-invalid). */
:is(input, select, textarea)[aria-invalid="true"], :is(input, select, textarea):user-invalid { border-color: var(--border-error); }
textarea { min-height: 70px; resize: vertical; }
.checks { display: grid; gap: var(--space-8) var(--space-16); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; gap: var(--space-12); align-items: flex-start; font-weight: 500; }
.check input { margin-top: 0.3em; width: 18px; height: 18px; flex: none; accent-color: var(--action-primary); }
.consent { border-top: 1px solid var(--line); padding-top: var(--space-16); display: grid; gap: var(--space-12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.msg { padding: var(--space-80) var(--space-24); }

footer { padding: var(--space-40) 0 var(--space-48); color: var(--muted); font-size: var(--fs-sm-92); border-top: 1px solid var(--line); }
footer a { color: var(--text-link-quiet); }
footer a:hover { color: var(--text-link-quiet-hover); }
/* Standalone footer links are 44px tap targets; links inside a sentence stay inline. */
.fnav a, footer .wrap > p:last-child a { display: inline-flex; align-items: center; min-height: 44px; }

/* Band mode surfaces */
section.band { background: var(--bg); color: var(--ink-2); border-top: 0; }
section.band + section, section + section.band { border-top: 0; }
body:not(.report) > footer { background: var(--bg); border-top: 0; padding: var(--space-48) 0; }

/* Report pages */
.report-hdr { background: var(--bg); color: var(--ink); padding: var(--space-40) 0 var(--space-32); }
.report-hdr h1 { font-size: var(--fs-h1-report); }
.report-hdr .meta { color: var(--text-label); font-size: var(--fs-sm-95); margin: 0; }
/* Published reports carry an inline kicker color (#aeb6ff, retired into Primary/200). */
.report-hdr .kicker { color: var(--text-kicker) !important; }
.report section { padding: var(--space-40) 0; }
.score-grid { display: grid; gap: var(--space-16); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: var(--space-16); }
.score { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-16); }
.score .eng { font-weight: 700; color: var(--ink-2); font-size: var(--fs-sm-95); }
.score .pct { font-family: var(--display); font-weight: 800; font-size: var(--fs-3xl-220); letter-spacing: -0.02em; line-height: 1.1; margin: var(--space-4) 0; }
.score .of { font-size: var(--fs-sm-88); color: var(--muted); }
/* Ask dots (Phase 3): one dot per answer, filled when it named the client.
   Score cards get a field of them; question cells get a strip. Reports built
   before 2026-11-03 still use .bar below. */
.asks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-12); }
.asks i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gray-300); }
.asks i.hit { background: var(--action-primary); border-color: var(--action-primary); }
.tbl td .asks { justify-content: flex-end; gap: 3px; margin-top: var(--space-4); max-width: 5.5rem; margin-left: auto; }
.tbl td .asks i { width: 7px; height: 7px; border-width: 1.5px; }
.bar { height: 8px; background: var(--line); border-radius: var(--radius-full); overflow: hidden; margin-top: var(--space-12); }
.bar i { display: block; height: 100%; background: var(--action-primary); border-radius: var(--radius-full); }
.headline { font-size: var(--fs-lg-115); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-12); padding: var(--space-16) var(--space-24); margin: var(--space-24) 0 0; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-12); overflow: hidden; font-size: var(--fs-sm-95); }
.tbl th, .tbl td { text-align: left; padding: var(--space-12); border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: var(--fs-xs-85); font-weight: 600; color: var(--muted); background: var(--surface-subtle); }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.versus .tbl th, .versus .tbl td { padding: var(--space-12) var(--space-8); }
.versus .tbl td:first-child { overflow-wrap: normal; word-break: normal; hyphens: none; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tag { display: inline-block; font-size: var(--fs-xs-78); font-weight: 700; border-radius: var(--radius-full); padding: var(--space-2) var(--space-8); background: var(--surface-muted); color: var(--ink-2); }
.tag.good { background: var(--surface-success-subtle); color: var(--text-success); }
.tag.warn { background: var(--surface-warning-subtle); color: var(--text-warning); }
.tag.bad { background: var(--surface-error-subtle); color: var(--text-error); }
.fix { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-16) var(--space-24); margin-bottom: var(--space-12); overflow-wrap: anywhere; }
.fix h3 { margin-bottom: var(--space-8); }
.fix .why { font-size: var(--fs-sm-92); color: var(--muted); margin: var(--space-8) 0 0; }
blockquote.said { margin: var(--space-12) 0; padding: var(--space-12) var(--space-16); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-12); font-size: var(--fs-sm-95); color: var(--ink-2); }
.trend { width: 100%; max-width: 560px; height: auto; }

/* Trial report: the fix list, locked until the audit. Placeholder bars only. */
.locked { position: relative; border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); overflow: hidden; }
.locked-list { filter: blur(3px); opacity: 0.55; user-select: none; pointer-events: none; }
.locked-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--line); }
.locked-item:last-child { border-bottom: 0; }
.locked-n { font-weight: 800; color: var(--muted); width: 1.5em; }
.locked-bar { display: block; height: 12px; border-radius: var(--radius-6); background: var(--muted); flex: 0 0 auto; max-width: calc(100% - 2.5em); }
.locked-bar.short { height: 9px; opacity: 0.6; margin-left: 2.25em; }
.locked-cta { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--space-24); background: var(--overlay-light); }
.locked-cta p { max-width: 520px; margin: var(--space-8) 0; }
@media (max-width: 480px) { .locked { padding: var(--space-16); } .locked-list { min-height: 320px; } }

/* Report: simple version or full details (2026-10-27). Without JS both views show
   and the switch stays hidden; the script sets body[data-view]. */
.view-switch { display: none; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-12) 0; }
body[data-view] .view-switch { display: block; }
.view-switch .wrap { display: flex; gap: var(--space-8); }
.view-switch button { flex: 0 1 auto; min-height: 44px; padding: var(--space-8) var(--space-16); border: 1.5px solid var(--line); border-radius: var(--radius-full); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease); }
.view-switch button[aria-pressed="true"] { background: var(--surface-inverted); border-color: var(--surface-inverted); color: var(--text-inverted); }
.view-switch button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
body[data-view="simple"] .view-full, body[data-view="full"] .view-simple { display: none; }
/* A paying client's fixes get a third view (2026-10-29). */
body[data-view="simple"] .view-fixes, body[data-view="full"] .view-fixes, body[data-view="fixes"] .view-simple, body[data-view="fixes"] .view-full { display: none; }
.big-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-16) var(--space-24); margin: var(--space-8) 0 var(--space-24); }
.big-stat .n { font-family: var(--display); font-weight: 800; font-size: var(--fs-stat-hero); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 var(--space-8); }
.big-stat p:last-child { margin: 0; }
.simple-points { padding-left: 1.1em; margin: 0 0 var(--space-24); }
.simple-points li { margin-bottom: var(--space-16); }
.simple-fixes { padding-left: 1.3em; margin: 0 0 var(--space-12); font-weight: 600; }
.simple-fixes li { margin-bottom: var(--space-8); }
@media (max-width: 480px) { .view-switch button { flex: 1 1 0; padding: var(--space-8) var(--space-12); } }
/* With the third button on a phone, "Simple version" shortens to "Simple". */
@media (max-width: 480px) { .view-switch .wrap:has(> button:nth-child(3)) .wide { display: none; } .view-switch button { white-space: nowrap; } }

/* Free snapshot: the two paid paths, side by side (stacked on phones). */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-16); margin: var(--space-16) 0; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); display: flex; flex-direction: column; }
.offer h3 { margin: 0 0 var(--space-8); }
.offer-for { color: var(--muted); margin: 0 0 var(--space-12); }
.offer ul { margin: 0 0 var(--space-12); padding-left: 1.1em; }
.offer-price { font-weight: 700; margin: auto 0 var(--space-12); }
.offer .buy { margin: 0; }

/* Report: the first three fixes, ready to paste (2026-10-25). */
.fix details.ready { margin-top: var(--space-12); border-top: 1px solid var(--line); padding-top: var(--space-12); }
.fix details.ready summary { cursor: pointer; color: var(--text-accent); }
.fix details.ready blockquote.said { white-space: normal; }

/* Report: how to do each fix, with copy buttons (2026-10-29). */
.fix h4 { font-size: var(--fs-sm-95); margin: var(--space-16) 0 var(--space-8); }
.fix ol.fix-steps { margin: 0; padding-left: 1.3em; }
.fix ol.fix-steps li { margin-bottom: var(--space-4); }
.fix .go { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-12) 0 0; }
.fix .go a { display: inline-block; border: 1px solid var(--line); border-radius: var(--radius-full); padding: var(--space-4) var(--space-12); font-size: var(--fs-sm-90); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fix .paste { margin-top: var(--space-12); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.fix .paste-item { margin-top: var(--space-12); }
.fix .paste-where { display: flex; justify-content: space-between; align-items: center; gap: var(--space-12); margin: 0 0 var(--space-8); font-size: var(--fs-sm-92); }
.fix .paste-where strong { min-width: 0; overflow-wrap: anywhere; }
.fix .paste pre { margin: 0; padding: var(--space-12) var(--space-16); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-12); font: inherit; font-size: var(--fs-sm-92); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22em; overflow: auto; }
/* Secondary (outline) button */
.fix .copy { flex: none; font: inherit; font-size: var(--fs-xs-85); font-weight: 700; color: var(--text-accent); background: var(--card); border: 1px solid var(--border-accent); border-radius: var(--radius-full); padding: var(--space-4) var(--space-12); cursor: pointer; transition: background-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease); }
.fix .copy:hover { background: var(--action-secondary-hover); color: var(--action-primary-hover); }
.fix .copy:active { background: var(--action-secondary-click); }
.fix.closed { background: transparent; }
.preview-bar { margin: 0; padding: var(--space-8) var(--space-16); text-align: center; font-size: var(--fs-sm-90); font-weight: 700; background: var(--surface-warning-subtle); color: var(--text-warning); }

/* Report: what the research found, and the researched pages (2026-10-29). */
.found { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-16); margin: 0 0 var(--space-16); }
.found summary { cursor: pointer; }
.found h4 { font-size: var(--fs-sm-95); margin: var(--space-16) 0 var(--space-8); }
.found ul { margin: 0; padding-left: 1.2em; }
.found li { margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.page-draft details { margin-top: var(--space-12); }
.page-draft summary { cursor: pointer; color: var(--text-accent); }
.page-body { margin-top: var(--space-12); padding: var(--space-16); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-12); }
.page-body h1 { font-size: var(--fs-xl-135); margin: 0 0 var(--space-12); }
.page-body h2 { font-size: var(--fs-base-110); margin: var(--space-16) 0 var(--space-8); }
.page-body h3 { font-size: var(--fs-base-100); margin: var(--space-12) 0 var(--space-4); }
.page-body a { overflow-wrap: anywhere; }
.page-body .sources { font-size: var(--fs-xs-85); color: var(--muted); }
.page-plan h4 { font-size: var(--fs-sm-95); margin: var(--space-16) 0 var(--space-8); }
.plan-sections { margin: 0; padding-left: 1.3em; }
.plan-sections > li { margin-bottom: var(--space-12); }
.plan-sections .plan-h { font-weight: 700; margin: 0 0 var(--space-4); }
.plan-sections ul { margin: 0 0 var(--space-4); padding-left: 1.1em; }
.plan-sections ul li { margin-bottom: var(--space-4); }
.plan-sections a { font-size: var(--fs-xs-85); overflow-wrap: anywhere; }
.from-you { margin: var(--space-4) 0 0; padding: var(--space-8) var(--space-12); background: var(--surface-warning-subtle); border-radius: var(--radius-8); font-size: var(--fs-sm-92); }
.fix .example { margin-top: var(--space-12); border-top: 1px solid var(--line); padding-top: var(--space-4); }

/* ---------------------------------------------------------------------------
   The refreshed look (2026-10-30), site-wide. Still one accent. Reports
   (body.report) keep their own look.
   - .hl: the accent on a headline's key phrase
   - section.band: a dark section for the offer or the proof on a page, in
     Band mode (above), where the accent is a lighter tint of the same indigo.
   --------------------------------------------------------------------------- */
.hl { color: var(--text-accent); }
/* Phase 4: the hero sits on the page surface, no gradient wash. */
body:not(.report) .card, body:not(.report) .plan, body:not(.report) .buy-box, body:not(.report) form.apply, body:not(.report) .proof { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .btn, .fix .copy, .view-switch button { transition: none; } .btn:hover, .btn:active { transform: none; } }

/* Featured plan: the one plan a page recommends. On the band it glows. */
body .plan.lead-plan, body .buy-box.best { border: 2px solid var(--border-featured); background: var(--surface-featured); box-shadow: var(--shadow-featured); }
.band-note { text-align: center; margin: var(--space-24) auto 0; max-width: 640px; font-size: var(--fs-sm-95); }
.plan .badge { align-self: flex-start; font-size: var(--fs-xs-78); font-weight: 700; color: var(--text-inverted); background: var(--action-primary); border-radius: var(--radius-full); padding: var(--space-4) var(--space-12); margin: 0 0 var(--space-12); }
.plan .who { font-size: var(--fs-sm-90); color: var(--text-label); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-12) 0; margin: 0 0 var(--space-16); }

/* Status page (2026-10-31): four steps, the current one marked. */
.status-steps { list-style: none; padding: 0; margin: var(--space-24) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: st; }
.status-steps li { counter-increment: st; padding: var(--space-12) var(--space-8) var(--space-8); border-top: 4px solid var(--line); color: var(--muted); font-size: var(--fs-xs-85); font-weight: 600; text-align: center; }
.status-steps li::before { content: counter(st); display: block; font-size: var(--fs-xs-75); }
.status-steps li.done { border-color: var(--ink); color: var(--ink); }
.status-steps li.now { border-color: var(--border-accent); color: var(--ink); }
.status-link { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-12); padding: var(--space-12) var(--space-16); }
.wins { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-12); padding: var(--space-4) var(--space-16) var(--space-8); margin: var(--space-16) 0; }
.wins h3 { margin: var(--space-12) 0 var(--space-4); font-size: var(--fs-base-100); }
.wins ul { margin: 0 0 var(--space-8); padding-left: var(--space-24); }

/* Intake workspace (2026-11-02). The snapshot form, the lender form and the
   paid intake read as one calm page: sections split by whitespace and a
   hairline, quiet fields that wake on focus, picks as selectable chips,
   optional parts tagged and folded. The paid intake (body.intake-page, set by
   functions/intake.js) adds an outline rail and what happens next.
   site/intake-ui.js adds the live parts; the form works without it. */
form.apply { padding: var(--space-8) var(--space-32) 0; overflow: hidden; caret-color: var(--action-primary); }
form.apply fieldset[data-step], form.apply details.extras { margin: 0; padding: var(--space-24) 0 var(--space-32); border-top: 1px solid var(--line); scroll-margin-top: 84px; }
form.apply fieldset[data-step]:first-of-type { border-top: 0; }
form.apply legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--space-16); display: flex; align-items: center; gap: var(--space-12); font-family: var(--display); font-weight: 700; font-size: var(--fs-base-108); letter-spacing: -0.012em; color: var(--ink); }
form.apply legend + * { clear: both; }
form.apply legend:has(+ .hint) { margin-bottom: var(--space-4); }
form.apply .hint { font-size: var(--fs-sm-88); color: var(--muted); margin: 0 0 var(--space-16); }
form.apply .hint.count { margin: var(--space-12) 0 0; }
form.apply .tag-opt { font: 500 var(--fs-xs-74)/1 var(--body); letter-spacing: 0; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-full); padding: var(--space-4) var(--space-8); }
form.apply label { font-size: var(--fs-sm-90); font-weight: 600; color: var(--ink-2); }
form.apply label .opt { font-size: var(--fs-xs-86); }
form.apply details.guide { margin-top: var(--space-16); padding: var(--space-12) var(--space-16); background: var(--bg); border-radius: var(--radius-12); font-size: var(--fs-sm-92); }
form.apply details.guide summary { color: var(--ink-2); font-weight: 600; }
form.apply details.guide[open] { padding-bottom: var(--space-12); }
form.apply details.guide ul { margin: var(--space-12) 0 0; padding-left: var(--space-24); color: var(--ink-2); }
form.apply details.guide li { margin-bottom: var(--space-8); }

/* Fields: quiet until touched. Filled fields turn white so the empty ones stand out. */
form.apply input[type=text], form.apply input[type=email], form.apply input[type=tel], form.apply input[type=url], form.apply select, form.apply textarea {
  min-height: 44px; margin-top: var(--space-8); padding: var(--space-8) var(--space-12); background: var(--surface-field); border: 1px solid var(--border-input); border-radius: var(--radius-12);
  font-size: var(--fs-base-100); line-height: 1.45;
}
form.apply textarea { line-height: 1.55; }
form.apply :is(input, select, textarea):hover { border-color: var(--border-input-hover); }
form.apply :is(input, select, textarea):is([data-filled], [placeholder]:not(:placeholder-shown)), form.apply select:has(option:checked:not([value=""])) { background-color: var(--surface-field-focus); }
form.apply :is(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea):focus { outline: none; background-color: var(--surface-field-focus); border-color: var(--border-focus); box-shadow: var(--ring); }
form.apply :is(input, select, textarea):is([aria-invalid="true"], :user-invalid) { border-color: var(--border-error); }
form.apply :is(input, select, textarea):is([aria-invalid="true"], :user-invalid):focus { border-color: var(--border-error); box-shadow: var(--ring-error); }
form.apply select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235d6b82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

/* Picks as chips, and one checkbox look for chips and consent */
form.apply .checks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-8); }
form.apply .checks .check { align-items: center; min-height: 44px; padding: var(--space-8) var(--space-12); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-12); font-size: var(--fs-sm-94); font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease); }
form.apply .checks .check:hover { border-color: var(--border-hover); background: var(--surface-field); }
form.apply .checks .check:has(input:checked) { border-color: var(--border-selected); background: var(--surface-selected); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--action-primary) 30%, transparent); }
form.apply .checks .check:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
form.apply .checks .check:has(input:disabled):hover { border-color: var(--border-default); background: var(--surface-card); }
form.apply .check input[type=checkbox] { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; display: grid; place-content: center; background: var(--surface-input); border: 1.5px solid var(--border-input); border-radius: var(--radius-4); cursor: inherit; transition: background-color var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease); }
form.apply .check input[type=checkbox]:checked { border-color: var(--action-primary); background: var(--action-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
form.apply .check input[type=checkbox]:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--border-focus); }
form.apply .checks .check:has(input:focus-visible) { border-color: var(--border-focus); }

/* Folded parts: a chevron that turns, no browser triangle */
form.apply details > summary { list-style: none; display: flex; align-items: center; gap: var(--space-8); cursor: pointer; border-radius: var(--radius-8); }
form.apply details > summary::-webkit-details-marker { display: none; }
form.apply details > summary::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--dur-color) var(--ease); }
form.apply details[open] > summary::before { transform: rotate(90deg); }
form.apply details > summary:focus-visible { outline: none; box-shadow: var(--ring); }
form.apply details.extras > summary { font-family: var(--display); font-weight: 700; font-size: var(--fs-base-108); letter-spacing: -0.012em; color: var(--ink); }
form.apply details.extras > summary .opt { font-family: var(--body); font-size: var(--fs-sm-88); font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* Send: the consent and the button on a quiet footer */
form.apply .send { margin: 0 calc(-1 * var(--space-32)); padding: var(--space-24) var(--space-32); background: var(--surface-field); border-top: 1px solid var(--line); }
form.apply .send .consent { border-top: none; padding-top: 0; }
form.apply .send .consent .check { font-size: var(--fs-sm-93); font-weight: 500; color: var(--ink-2); align-items: flex-start; }
form.apply .send .consent .check input { margin-top: var(--space-2); }
form.apply .send p:last-child { margin: var(--space-16) 0 0 !important; display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
form.apply .send .btn { min-width: 220px; text-align: center; }
@media (max-width: 680px) {
  form.apply { padding: var(--space-4) var(--space-24) 0; }
  form.apply .send { margin: 0 calc(-1 * var(--space-24)); padding: var(--space-24); }
  form.apply .send .btn { width: 100%; }
}

/* The paid intake: an outline rail beside the page */
.intake-page #apply { padding-top: var(--space-48); }
.intake-page #apply > .wrap { max-width: 1060px; display: grid; grid-template-columns: 252px minmax(0, 1fr); column-gap: var(--space-48); align-items: start; }
.intake-page #apply > .wrap > * { grid-column: 2; min-width: 0; }
.intake-page #apply > .wrap > h2 { font-size: var(--fs-h2-intake); max-width: 22ch; text-wrap: balance; }
.intake-page #apply > .wrap > p { max-width: 62ch; color: var(--ink-2); }
.intake-page #apply > .wrap > .rail { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 84px; }
.rail { font-size: var(--fs-sm-92); }
.rail .outline { margin-bottom: var(--space-24); }
.rail .outline-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-8); margin: 0 0 var(--space-8); font-weight: 600; color: var(--ink); }
.rail .outline-head span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail .bar { height: 4px; border-radius: var(--radius-full); background: var(--line); overflow: hidden; margin: 0 0 var(--space-16); }
/* Progress fills with a transform, not width, so it never triggers layout. intake-ui.js sets scaleX. */
.rail .bar i { display: block; height: 100%; width: 100%; background: var(--action-primary); border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-layout) var(--ease); }
.rail .outline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rail .outline a { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) var(--space-12); margin: 0 calc(-1 * var(--space-12)); border-radius: var(--radius-8); color: var(--ink-2); text-decoration: none; line-height: 1.3; }
.rail .outline a:hover { background: var(--surface-hover); color: var(--ink); }
.rail .outline a:focus-visible { outline: none; box-shadow: var(--ring); }
.rail .outline a.on { background: var(--surface-current); color: var(--ink); font-weight: 600; }
.rail .outline a small { margin-left: auto; font-size: var(--fs-xs-78); color: var(--muted); font-weight: 400; }
.rail .dot { width: 18px; height: 18px; flex: none; border-radius: var(--radius-full); border: 1.5px solid var(--icon-subtle); display: grid; place-content: center; transition: background-color var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease); }
.rail .dot.opt { border-style: dashed; }
.rail .dot svg { width: 11px; height: 11px; stroke: var(--text-inverted); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset var(--dur-color) var(--ease) 0.05s; }
.rail .done .dot { background: var(--icon-success); border-color: var(--icon-success); border-style: solid; }
.rail .done .dot svg { stroke-dashoffset: 0; }
.rail .next { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-16) var(--space-16) var(--space-8); box-shadow: var(--shadow); }
.rail .next h3 { font-size: var(--fs-sm-98); margin: 0 0 var(--space-12); }
.rail .next ol { list-style: none; margin: 0 0 var(--space-16); padding: 0; display: grid; gap: var(--space-12); counter-reset: next; }
.rail .next li { position: relative; padding-left: var(--space-32); color: var(--ink-2); line-height: 1.45; counter-increment: next; }
.rail .next li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--bg); border: 1px solid var(--line); display: grid; place-content: center; font-size: var(--fs-xs-75); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rail .next li strong { color: var(--ink); }
.rail .next .note { border-top: 1px solid var(--line); padding-top: var(--space-12); }
@media (max-width: 960px) {
  .intake-page #apply > .wrap { display: block; max-width: var(--measure); }
  .intake-page #apply > .wrap > .rail { position: static; margin: var(--space-4) 0 var(--space-8); }
  .rail .outline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  form.apply *, .rail *, input, select, textarea { transition: none !important; }
}

/* Home product ladder (2026-11-04): what each one does, in plain words. */
.ladder-list { display: grid; gap: var(--space-16); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--space-24); }
.rung { display: flex; flex-direction: column; gap: var(--space-8); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); }
.rung h3 { margin: 0; font-size: var(--fs-base-105); color: var(--muted); }
.rung .rung-what { margin: 0; font-family: var(--display); font-weight: 800; font-size: var(--fs-xl-130); line-height: 1.2; color: var(--ink); }
.rung p { margin: 0; font-size: var(--fs-sm-95); color: var(--ink-2); }
.rung .rung-price { margin-top: auto; padding-top: var(--space-12); font-weight: 700; color: var(--ink); }
.rung a { font-weight: 600; }
