/* Curen Health — public website
   Direction: premium editorial. Large Newsreader display type with italic accents, Public Sans text,
   hairline rules, numbered sections, data set as typography. One green accent; sage neutrals.
   Everything here is self-hosted and CSP-safe (no inline styles anywhere in the HTML). */

/* ---------- Fonts (SIL OFL, see assets/fonts/LICENSE.txt) ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f3f6f4;
  --paper: #fbfcfb;
  --surface: #ffffff;
  --sunk: #e9efeb;
  --ink: #12201b;
  --ink-2: #26352f;
  --muted: #4a5a53;
  --line: #d3ddd8;
  --line-strong: #76887f;
  --field: #6f8078;
  --accent: #0b6b4f;
  --accent-strong: #08573f;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe6;
  --accent-tint: #eef7f2;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a5a00;
  --deep: #0e4a38;
  --deep-2: #0a3528;
  --deep-line: #2a6552;
  --on-deep: #f2f8f5;
  --on-deep-muted: #b9d3c8;
  --bright: #8ee3c0;
  --risk: #f4b19c;
  --shadow: 158 30% 20%;

  --bl-bg: #0e1311;
  --bl-surface: #171e1b;
  --bl-ink: #f4efe2;
  --bl-muted: #c2bcab;
  --bl-gold: #d8b768;
  --bl-gold-ink: #15120a;
  --bl-line: #343c37;
  --bl-danger: #ffa49b;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--2: 0.8125rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --step-3: clamp(2rem, 1.35rem + 2.7vw, 3.6rem);
  --step-hero: clamp(2.85rem, 1.5rem + 5.6vw, 6.4rem);

  --r: 10px;
  --r-sm: 6px;
  --r-pill: 999px;
  --gutter: max(16px, 4vw);
  --maxw: 1280px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 68px;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090a; --paper: #0c0d0e; --surface: #111214; --sunk: #060707; --ink: #f4f6f5; --ink-2: #d2d7d5; --muted: #9aa19e;
    --line: #1e2022; --line-strong: #5c6360; --field: #7b8380; --accent: #5cc9a0; --accent-strong: #84dcb9; --accent-ink: #04120c;
    --accent-soft: #12271f; --accent-tint: #0d1a15; --danger: #ff8a80; --danger-soft: #34110e; --warn: #f0c36b;
    --deep: #0d1513; --deep-2: #090e0d; --deep-line: #1f2b27; --on-deep: #eef4f1; --on-deep-muted: #a7b9b1; --shadow: 200 10% 2%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090a; --paper: #0c0d0e; --surface: #111214; --sunk: #060707; --ink: #f4f6f5; --ink-2: #d2d7d5; --muted: #9aa19e;
  --line: #1e2022; --line-strong: #5c6360; --field: #7b8380; --accent: #5cc9a0; --accent-strong: #84dcb9; --accent-ink: #04120c;
  --accent-soft: #12271f; --accent-tint: #0d1a15; --danger: #ff8a80; --danger-soft: #34110e; --warn: #f0c36b;
  --deep: #0d1513; --deep-2: #090e0d; --deep-line: #1f2b27; --on-deep: #eef4f1; --on-deep-muted: #a7b9b1; --shadow: 200 10% 2%;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0);
  line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "kern", "liga";
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; font-weight: 450; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
em { font-style: italic; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.fine { font-size: var(--step--1); color: var(--muted); line-height: 1.55; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: currentColor; }
.ic-lg { width: 28px; height: 28px; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.notice { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.kicker { font-size: var(--step--2); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tag { display: inline-block; font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: var(--r-pill); vertical-align: 0.15em; }
.tag-assume { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  text-align: center; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 hsl(var(--shadow) / .12), 0 8px 24px -12px hsl(var(--shadow) / .45); }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-gold { background: var(--bl-gold); color: var(--bl-gold-ink); }
.btn-gold:hover { background: #e6c780; }
.btn-lg { min-height: 56px; padding: 0.85rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; height: 44px; padding: 0 .65rem;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; font-size: .875rem;
}
.icon-btn:hover { border-color: var(--line-strong); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.bm-bg { fill: var(--accent); }
.bm-arc { fill: none; stroke: var(--accent-ink); stroke-width: 3.6; stroke-linecap: round; }
.bm-dot { fill: var(--accent-ink); }
.brand-word { font-family: var(--font-display); font-size: 1.5rem; font-weight: 550; letter-spacing: -0.02em; line-height: 1; }
.brand-sub { font-style: italic; font-weight: 400; color: var(--muted); }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: var(--r-pill); }
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-current { color: var(--accent); }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lt-short { display: none; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: inline; }
}
.menu-toggle { display: none; }
.main-nav a.btn-primary { color: var(--accent-ink); }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem; display: none; box-shadow: 0 24px 40px -24px hsl(var(--shadow) / .35); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { font-size: 1.125rem; min-height: 52px; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 .25rem; }
  .main-nav .nav-cta { display: block; margin-top: 1rem; }
  .main-nav .nav-cta a { border-radius: var(--r-pill); border: 0; justify-content: center; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .header-cta { display: none; }
  .lt-long { display: none; }
  .lt-short { display: inline; }
  .brand-sub { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-sunk { background: var(--sunk); }
.section-paper { background: var(--paper); }
.section-deep { background: var(--deep); color: var(--on-deep); }
.sec-head { display: grid; gap: 1.25rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-deep .sec-head { border-top-color: var(--on-deep-muted); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(180px, 1fr) 3fr; gap: 2rem; } }
.sec-num { display: flex; align-items: baseline; gap: .75rem; font-size: var(--step--2); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-deep .sec-num { color: var(--on-deep-muted); }
.sec-n { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
.section-deep .sec-n { color: var(--bright); }
.sec-title { font-size: var(--step-3); max-width: 20ch; font-weight: 420; letter-spacing: -0.03em; line-height: 1.04; }
.sec-title em { color: var(--accent); font-weight: 380; }
.section-deep .sec-title em { color: var(--bright); }
.sec-lede { margin-top: 1.25rem; max-width: 58ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section-deep .sec-lede { color: var(--on-deep-muted); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: end; position: relative; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.45fr 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--step--2); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.75rem; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: var(--step-hero); font-weight: 400; letter-spacing: -0.045em; line-height: .96; max-width: 15.5ch; }
.hero-title em { color: var(--accent); font-weight: 360; letter-spacing: -0.035em; }
.hero-sub { margin-top: 1.75rem; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-teaser { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.hero-teaser a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.hero-teaser a:hover { color: var(--accent); border-color: var(--accent); }
.hero-teaser strong { color: var(--ink); font-weight: 650; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.hero-ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -40px hsl(var(--shadow) / .45); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: .75rem; }
.ledger-title { font-family: var(--font-display); font-size: 1.375rem; font-style: italic; }
.ledger-tag { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger { list-style: none; }
.ledger li { display: grid; grid-template-columns: 4.6rem 1fr; column-gap: 1rem; row-gap: .15rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.ledger-time { grid-row: span 2; font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums lining-nums; line-height: 1.2; }
.ledger-time small { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ledger-svc { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ledger li p { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.ledger li.is-key { background: linear-gradient(90deg, var(--accent-tint), transparent); margin-inline: -1.5rem; padding-inline: 1.5rem; border-bottom: 0; }
.ledger li.is-key p { color: var(--ink); font-weight: 500; }
.ledger-foot { margin-top: .9rem; font-size: .8125rem; color: var(--muted); }

.proof-strip { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.proof-strip li { display: flex; align-items: center; gap: .55rem; font-size: .9375rem; font-weight: 550; color: var(--ink-2); padding: .3rem 0; }
.proof-strip .ic { color: var(--accent); }
@media (min-width: 760px) { .proof-strip { display: flex; flex-wrap: wrap; justify-content: space-between; } }

/* ---------- Problem: stats as typography ---------- */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { margin: 0; padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.stat-num { font-family: var(--font-display); font-weight: 350; font-size: clamp(3.25rem, 2.5rem + 3vw, 5.25rem); line-height: .9; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: lining-nums; }
.stat-unit { font-style: italic; color: var(--accent); font-size: .62em; margin-left: .04em; letter-spacing: -0.02em; }
.stat-text { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.stat-src { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }
.stat-src a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.stat-src a:hover { color: var(--accent); border-color: var(--accent); }
.stat-src a::after { content: " ↗"; }
@media (min-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .stat-lead { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .stats { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; column-gap: 3rem; }
  .stat-lead { grid-column: 1; grid-row: 1 / span 2; border-right: 1px solid var(--line); padding-right: 3rem; align-content: center; }
}
.stat-lead .stat-num { font-size: clamp(6rem, 4rem + 8vw, 12rem); }
.stat-lead .stat-text { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 22ch; }

.pull { margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0; padding: 0 0 0 clamp(1.25rem, 1rem + 2vw, 2.5rem); border-left: 2px solid var(--accent); max-width: 62rem; }
.pull p { font-family: var(--font-display); font-style: italic; font-weight: 380; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.375rem); line-height: 1.22; letter-spacing: -0.02em; }
.pull strong { font-style: normal; font-weight: 500; color: var(--accent); }
.pull footer { margin-top: 1rem; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.pull footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.pull footer a::after { content: " ↗"; }
.pull-deep { border-left-color: var(--bright); margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.pull-deep p { color: var(--on-deep); }

.pains { margin-top: clamp(4rem, 3rem + 3vw, 6rem); }
.pains-title { font-size: var(--step-2); font-style: italic; font-weight: 400; margin-bottom: 1.25rem; }
.pain-list { list-style: none; border-top: 1px solid var(--ink); }
.pain { display: grid; grid-template-columns: 2.5rem 1fr; gap: .4rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pain-n { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted); grid-row: span 2; }
.pain-p { font-size: 1.0625rem; color: var(--ink); line-height: 1.5; }
.pain-f { display: flex; gap: .6rem; color: var(--accent-strong); font-weight: 550; line-height: 1.5; }
.pain-arrow { font-family: var(--font-display); }
@media (min-width: 900px) {
  .pain { grid-template-columns: 3.5rem 1fr 1fr; gap: 2.5rem; align-items: baseline; }
  .pain-n { grid-row: auto; }
  .pain-p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.01em; }
}

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; } }
.calc-inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 1.6rem; }
.calc-field { display: grid; gap: .55rem; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.calc-label-row label { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.calc-num-wrap { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 .6rem; background: var(--paper); min-height: 44px; }
.calc-num-wrap:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-num-wrap .calc-num { border: 0; outline: 0; padding: 0; min-height: 42px; background: transparent; }
.calc-num { width: 6.5ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 1.0625rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 .6rem; min-height: 44px; background: var(--paper); -moz-appearance: textfield; }
.calc-label-row > .calc-num { width: 8ch; }
.calc-num::-webkit-outer-spin-button, .calc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-prefix, .calc-suffix { color: var(--muted); font-weight: 600; }
.calc-help { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.calc-field-assume { border-top: 1px dashed var(--line-strong); padding-top: 1.4rem; }
.calc-defaults { border-top: 1px solid var(--line); padding-top: 1rem; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --pct: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) 0 var(--pct), var(--line) var(--pct) 100%); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 6px hsl(var(--shadow) / .25); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }

.calc-out { background: var(--deep); color: var(--on-deep); border-radius: var(--r); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .calc-out { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.calc-figs { display: grid; gap: 1.1rem; }
.calc-fig { border-bottom: 1px solid var(--deep-line); padding-bottom: 1rem; }
.calc-fig-label { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); }
.calc-at { text-transform: none; letter-spacing: 0; font-weight: 500; }
.calc-fig-num { font-family: var(--font-display); font-weight: 380; font-size: clamp(2.25rem, 1.75rem + 1.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; margin-top: .2rem; }
.calc-fig-big { font-size: clamp(2.75rem, 2rem + 2.8vw, 4.5rem); }
.calc-fig-accent .calc-fig-num { color: var(--bright); font-style: italic; }
.calc-fig-accent { border-bottom: 0; padding-bottom: 0; }
.calc-chart { width: 100%; height: 96px; display: block; }
.cc-track { fill: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.cc-risk { fill: var(--risk); }
.cc-rec { fill: var(--bright); }
@media (prefers-reduced-motion: no-preference) { .cc-risk, .cc-rec { transition: width .35s cubic-bezier(.2,.7,.2,1); } }
.calc-legend { display: flex; gap: 1.25rem; font-size: .8125rem; color: var(--on-deep-muted); margin-top: -.5rem; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .45rem; vertical-align: -1px; }
.lg-risk::before { background: var(--risk); }
.lg-rec::before { background: var(--bright); }
.calc-roi { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; font-style: italic; }
.calc-roi a { color: var(--bright); }
.calc-out .fine { color: var(--on-deep-muted); }
.calc-actions { display: grid; gap: .6rem; }
.calc-actions .btn-primary { background: var(--bright); color: #06140f; }
.calc-actions .btn-primary:hover { background: #a9ecd1; }
.calc-actions .btn-ghost { color: var(--on-deep); border-color: var(--deep-line); justify-self: start; }
.calc-actions .btn-ghost:hover { border-color: var(--on-deep-muted); }
.calc-out :focus-visible { outline-color: var(--bright); }

/* ---------- Services index ---------- */
.svc-index { list-style: none; border-top: 1px solid var(--line); }
.svc { display: grid; gap: 1rem; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.svc-n { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--accent); }
.svc-name { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem); font-weight: 420; letter-spacing: -0.03em; }
.svc-promise { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); color: var(--accent); margin-top: .5rem; }
.svc-short { margin-top: 1rem; color: var(--ink-2); max-width: 56ch; }
.svc-points { list-style: none; display: grid; gap: .65rem; align-content: start; }
.svc-points li { position: relative; padding-left: 1.5rem; color: var(--ink-2); line-height: 1.45; }
.svc-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: .85rem; height: 1px; background: var(--accent); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 5rem 1.5fr 1fr; gap: 2.5rem; }
  .svc-points { padding-top: .75rem; }
}
.svc-foot { margin-top: 2rem; }

/* ---------- Pricing / plan builder ---------- */
.pb { display: grid; gap: 1.5rem; }
@media (min-width: 1080px) { .pb { grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; } }
.pb-main { display: grid; gap: 1.25rem; min-width: 0; }
.pb-controls { display: grid; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .pb-controls { grid-template-columns: 1fr auto; align-items: end; } }
.pb-presets-wrap { border: 0; margin: 0; padding: 0; min-width: 0; }
.pb-label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; padding: 0; }
.pb-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.preset { min-height: 40px; padding: .4rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.preset:hover { border-color: var(--accent); color: var(--accent); }
.preset[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pb-steppers { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stepper-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.step-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.step-btn:disabled { color: var(--line-strong); cursor: not-allowed; }
.step-val { min-width: 2.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }

.pb-services { display: grid; gap: .9rem; }
.pb-svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; transition: border-color .2s, box-shadow .2s; }
.pb-svc.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -30px hsl(var(--shadow) / .5); }
.pb-svc-head { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; cursor: pointer; }
.pb-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-switch { width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.pb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.pb-switch-input:checked + .pb-switch { background: var(--accent); }
.pb-switch-input:checked + .pb-switch::after { transform: translateX(18px); }
.pb-switch-input:focus-visible + .pb-switch { outline: 3px solid var(--accent); outline-offset: 3px; }
.pb-svc-name { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 480; letter-spacing: -0.015em; line-height: 1.2; }
.pb-svc-sub { display: block; font-family: var(--font-body); font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: .15rem; }
.pb-svc-price { text-align: right; white-space: nowrap; }
.amt { font-family: var(--font-display); font-size: 1.75rem; font-weight: 420; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.amt small { font-family: var(--font-body); font-size: .8125rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: .1rem; }
.amt-from { font-family: var(--font-body); font-size: .8125rem; color: var(--muted); letter-spacing: 0; margin-right: .3rem; text-transform: uppercase; font-weight: 650; }
.pill { display: inline-block; font-style: normal; font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: var(--r-pill); vertical-align: .2em; margin-left: .35rem; white-space: nowrap; }
.pill-now { background: var(--accent-soft); color: var(--accent-strong); }
.pill-pilot { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }
.pb-svc-short { margin-top: .75rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 640px) { .pb-svc-short { padding-left: calc(46px + .9rem); } .pb-svc-body { padding-left: calc(46px + .9rem); } }
@media (max-width: 639px) {
  .pb-svc-head { grid-template-columns: auto 1fr; }
  .pb-svc-price { grid-column: 2; text-align: left; }
}
.pb-svc-body { margin-top: 1rem; display: grid; gap: 1rem; }
.pb-tiers { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; min-width: 0; }
.tier { position: relative; display: block; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .7rem .85rem; cursor: pointer; background: var(--paper); }
.tier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier strong { display: block; font-size: .9375rem; }
.tier small { display: block; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.tier:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.tier:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tier.is-checked { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.pb-includes { list-style: none; display: grid; gap: .4rem; }
@media (min-width: 760px) { .pb-includes { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.pb-includes li, .ticks li { display: flex; gap: .55rem; align-items: baseline; line-height: 1.45; font-size: .9375rem; }
.pb-includes .ic, .ticks .ic { color: var(--accent); width: 1em; height: 1em; transform: translateY(.15em); }
.pb-meta { font-size: .8125rem; color: var(--muted); line-height: 1.5; border-top: 1px dashed var(--line); padding-top: .75rem; }
.pb-scale { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem; background: var(--paper); display: grid; gap: .6rem; }
.pb-scale-title { font-weight: 650; }
.pb-scale-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.pb-scale-label { font-size: .9375rem; }
.pb-scale-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-scale-ends { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); }
.pb-scale-now { font-size: .9375rem; color: var(--ink-2); }

.pb-sum-card { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); padding: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 1080px) { .pb-sum { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.pb-sum-title { font-size: 1.5rem; font-style: italic; font-weight: 420; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.pb-lines { list-style: none; display: grid; gap: .6rem; }
.pb-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.pb-lines small { display: block; color: var(--muted); font-size: .8125rem; }
.pb-lines .num { font-weight: 650; white-space: nowrap; }
.pb-totals { border-top: 1px solid var(--ink); padding-top: .9rem; }
.pb-total-label { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pb-total { font-family: var(--font-display); font-size: 3.5rem; font-weight: 380; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; margin-top: .25rem; }
.pb-free { font-size: .875rem; color: var(--accent-strong); font-weight: 600; margin-top: .35rem; }
.pb-worth { display: grid; gap: .45rem; border-top: 1px dashed var(--line); padding-top: .9rem; }
.pb-worth-label { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.pb-worth-field { width: 10rem; }
.pb-worth-field input { border: 0; outline: 0; background: transparent; width: 100%; min-height: 42px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pb-promises { list-style: none; display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.pb-promises li { font-size: .8125rem; color: var(--muted); padding-left: 1rem; position: relative; }
.pb-promises li::before { content: "·"; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }
.pb-copy-status:empty { display: none; }
.pb-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); font-size: .9375rem; }
.pb-mini strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 450; margin-right: auto; }
.pb-mini a { color: var(--bg); font-weight: 600; }
@media (max-width: 1079px) { .pb-mini.is-shown { display: flex; } }

.black { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--bl-bg); color: var(--bl-ink); border-radius: var(--r); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--bl-line); position: relative; overflow: hidden; }
.black::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgb(216 183 104 / .12), transparent); pointer-events: none; }
.black-grid { display: grid; gap: 2rem; position: relative; z-index: 1; }
@media (min-width: 900px) { .black-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.black-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bl-gold); }
.black-title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); font-weight: 380; letter-spacing: -0.04em; margin-top: .75rem; font-style: italic; color: var(--bl-ink); }
.black-lede { margin-top: 1rem; color: var(--bl-muted); max-width: 44ch; }
.black-price { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--bl-gold); }
.black-list { list-style: none; display: grid; gap: .75rem; }
.black-list li { padding: .7rem 0; border-bottom: 1px solid var(--bl-line); color: var(--bl-ink); }
.black-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.link-gold { color: var(--bl-gold); font-weight: 600; }
.black-fine { margin-top: 1rem; font-size: .8125rem; color: var(--bl-muted); }
.black :focus-visible, .dialog-black :focus-visible { outline-color: var(--bl-gold); }

.pb-notes-wrap { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pb-notes-wrap summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.pb-notes-wrap summary::-webkit-details-marker { display: none; }
.pb-notes-wrap summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent); }
.pb-notes-wrap[open] summary::after { content: "–"; }
.pb-notes { list-style: none; display: grid; gap: .6rem; padding-bottom: 1.25rem; max-width: 80ch; }
.pb-notes li { font-size: .875rem; color: var(--muted); padding-left: 1.25rem; position: relative; }
.pb-notes li::before { content: "—"; position: absolute; left: 0; color: var(--line-strong); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; border-top: 1px solid var(--ink); }
.band-text { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; max-width: 32ch; line-height: 1.25; }

/* ---------- Comparison ---------- */
.cmp-wrap { border-top: 1px solid var(--ink); }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 1rem .9rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.cmp thead th { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 1.25rem; }
.cmp thead th.cmp-us { color: var(--accent-strong); font-family: var(--font-display); font-size: 1.5rem; text-transform: none; letter-spacing: -0.02em; font-weight: 500; }
.cmp tbody th { font-family: var(--font-display); font-weight: 480; font-size: 1.125rem; letter-spacing: -0.01em; width: 22%; color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp td.cmp-us { background: var(--accent-tint); color: var(--ink); font-weight: 550; }
.cmp thead th.cmp-us { background: var(--accent-tint); border-top: 3px solid var(--accent); }
.cmp td { display: table-cell; }
.cmp td > .mk { margin-right: .55rem; }
.mk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: 0; }
.mk-yes { background: var(--accent); }
.mk-part { background: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%); border: 1.5px solid var(--line-strong); }
.mk-no { border: 1.5px solid var(--line-strong); background: transparent; }
.mk-na { width: 12px; height: 2px; border-radius: 1px; background: var(--line-strong); vertical-align: .3em; }
.cmp-legend { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; }
.cmp-legend .mk { margin-left: .75rem; }
.cmp-legend .mk:first-child { margin-left: 0; }
.cmp-note { margin-top: .5rem; }
@media (max-width: 860px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .cmp tbody th { width: 100%; padding: 0 0 .75rem; border: 0; font-size: 1.25rem; }
  .cmp td { padding: .55rem 0 .55rem 0; border: 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; align-items: baseline; }
  .cmp td::before { content: attr(data-label); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); grid-row: span 2; }
  .cmp td > .mk { display: none; }
  .cmp td.cmp-us { padding: .7rem .75rem; border-radius: var(--r-sm); margin-bottom: .25rem; }
  .cmp td.cmp-us::before { color: var(--accent-strong); }
}
@media (max-width: 420px) { .cmp td { grid-template-columns: 1fr; gap: .1rem; } .cmp td::before { grid-row: auto; } }

/* ---------- Product: bento demos ---------- */
.bento { display: grid; gap: 1rem; }
@media (min-width: 760px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bento { grid-template-columns: 1.25fr 1fr 1fr; } }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.cell-head { display: flex; align-items: center; gap: .7rem; color: var(--accent); }
.cell-title { font-size: 1.375rem; font-weight: 480; color: var(--ink); }
.cell-text { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.chat { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.chat-log { min-height: 150px; max-height: 280px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 85%; padding: .55rem .85rem; border-radius: 14px; font-size: .9375rem; line-height: 1.45; }
.bubble.bot { background: var(--sunk); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.typing { color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; border-top: 1px solid var(--line); }
.chip { min-height: 36px; padding: .3rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: .875rem; font-weight: 550; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.sample-call summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.call-lines { list-style: none; display: grid; gap: .5rem; margin: .75rem 0; font-size: .9375rem; }
.call-lines b { display: inline-block; min-width: 3.5rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.emergency { display: flex; gap: .5rem; align-items: flex-start; background: var(--danger-soft); color: var(--danger); padding: .65rem .8rem; border-radius: var(--r-sm); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.tri-options { border: 0; margin: 0; padding: 0; display: grid; gap: .35rem; }
.tri-q { font-weight: 650; margin-bottom: .35rem; padding: 0; }
.opt { display: flex; gap: .6rem; align-items: center; min-height: 40px; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .9375rem; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.tri-result { min-height: 3.5rem; font-size: .9375rem; }
.tri-result strong { display: block; color: var(--accent-strong); }
.cost-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.field-sm { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.field-sm select, .field select, .field input, .field textarea, .bk-tz select {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); padding: .5rem .7rem; color: var(--ink); font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.cost-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.cost-range { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.cost-kind { color: var(--muted); font-size: .9375rem; }
.es-sample { position: relative; height: 3.2rem; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; overflow: hidden; }
.es-sample span { position: absolute; inset: 0; transition: opacity .5s, transform .5s; }
.es-b { opacity: 0; transform: translateY(40%); color: var(--accent); }
.cell-es.flip .es-a { opacity: 0; transform: translateY(-40%); }
.cell-es.flip .es-b { opacity: 1; transform: none; }
.cell-es .btn { align-self: flex-start; margin-top: auto; }
.hours-now { font-weight: 650; display: flex; align-items: center; gap: .5rem; min-height: 1.6em; }
.hours-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hours-now.is-open .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.week { display: grid; gap: .3rem; }
.wk-row { display: grid; grid-template-columns: 2.6rem 1fr 6.8rem; gap: .5rem; align-items: center; font-size: .8125rem; }
.wk-row.is-today { font-weight: 700; }
.wk-track { position: relative; height: 8px; background: var(--sunk); border-radius: 4px; }
.wk-bar { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; opacity: .75; }
.wk-row.is-today .wk-bar { opacity: 1; }
.wk-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.wk-hours { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow { list-style: none; display: flex; gap: .5rem; counter-reset: flow; flex-wrap: wrap; }
.flow li { counter-increment: flow; display: flex; align-items: center; gap: .45rem; padding: .4rem .8rem .4rem .45rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .875rem; font-weight: 600; }
.flow li::before { content: counter(flow); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8125rem; }

/* Score / checklist */
.score { margin-top: clamp(3rem, 2rem + 3vw, 5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.score-head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .score-head { grid-template-columns: 1fr auto; } }
.score-title { font-size: var(--step-2); font-weight: 450; }
.score-sub { color: var(--muted); margin-top: .5rem; max-width: 56ch; }
.score-meter { text-align: right; }
.score-num { font-family: var(--font-display); font-size: 4rem; line-height: .9; font-weight: 380; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.score-of { font-size: .4em; color: var(--muted); font-style: italic; }
.score-grade { color: var(--accent-strong); font-weight: 600; font-size: .9375rem; margin-top: .3rem; }
@media (max-width: 759px) { .score-meter { text-align: left; } }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { flex: none; min-height: 44px; padding: .5rem .9rem; border: 0; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count { font-weight: 500; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .2rem; }
.tab-panel:focus-visible { outline-offset: 6px; }
.feature-list { list-style: none; display: grid; gap: .5rem; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .feature-list { grid-template-columns: 1fr 1fr 1fr; } }
.feature-list label { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; height: 100%; transition: border-color .15s, background-color .15s; }
.feature-list label:hover { border-color: var(--line-strong); }
.feature-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fl-box { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 5px; margin-top: .1rem; display: grid; place-items: center; background: var(--paper); }
.fl-box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.feature-list input:checked + .fl-box { background: var(--accent); border-color: var(--accent); }
.feature-list input:checked + .fl-box::after { opacity: 1; }
.feature-list input:focus-visible + .fl-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.feature-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.fl-txt strong { display: block; font-size: .9375rem; }
.fl-txt span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: .15rem; }
.score-gaps { margin-top: 1.25rem; }
.score-gaps:empty { display: none; }
.score-gaps p { font-weight: 650; }
.score-gaps ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.score-gaps li { font-size: .8125rem; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.score-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.score-foot .fine { max-width: 44ch; }

/* System + command demo */
.system { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 2rem; }
@media (min-width: 1000px) { .system { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.system-title { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem); font-weight: 420; letter-spacing: -0.03em; margin-top: .75rem; max-width: 18ch; }
.system-sub { color: var(--muted); margin: 1rem 0 1.5rem; max-width: 52ch; }
.tabs-sm { margin-bottom: 1rem; }
.ticks { list-style: none; display: grid; gap: .6rem; }
.ticks li { font-size: 1rem; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 9px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-.2em); margin-right: .2rem; }
.stat-inline { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.stat-inline strong { font-family: var(--font-display); font-weight: 420; font-size: 2rem; color: var(--accent); letter-spacing: -0.03em; margin-right: .35rem; }
.stat-inline a { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmd-demo { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 1.5rem; display: grid; gap: .75rem; }
.cmd-label { font-weight: 650; }
.cmd-box { display: flex; align-items: center; gap: .6rem; background: color-mix(in srgb, var(--bg) 10%, var(--ink)); border: 1px solid color-mix(in srgb, var(--bg) 25%, var(--ink)); border-radius: var(--r-sm); padding: 0 .75rem; }
.cmd-box:focus-within { outline: 3px solid var(--bright); outline-offset: 2px; }
.cmd-box input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--bg); outline: 0; }
.cmd-box input::placeholder { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.cmd-box kbd { font-family: var(--font-body); font-size: .8125rem; padding: .1rem .45rem; border: 1px solid color-mix(in srgb, var(--bg) 35%, var(--ink)); border-radius: 4px; }
.cmd-list { position: relative; list-style: none; display: grid; gap: .15rem; max-height: 260px; overflow-y: auto; }
.cmd-list:empty { display: none; }
.cmd-group { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); padding: .5rem .5rem .2rem; }
.cmd-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: var(--r-sm); cursor: pointer; font-size: .9375rem; }
.cmd-opt small { margin-left: auto; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); font-size: .8125rem; }
.cmd-opt[aria-selected="true"] { background: color-mix(in srgb, var(--bg) 14%, var(--ink)); }
.cmd-status { min-height: 1.4em; color: var(--bright); font-size: .875rem; }
.cmd-demo .fine { color: color-mix(in srgb, var(--bg) 65%, var(--ink)); }
:root[data-theme="dark"] .cmd-demo { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .cmd-box { background: var(--sunk); border-color: var(--line); }
:root[data-theme="dark"] .cmd-box input { color: var(--ink); }
/* WCAG 1.4.3: muted text and the selected row keep 4.5:1 contrast on the dark panel. */
:root[data-theme="dark"] .cmd-group, :root[data-theme="dark"] .cmd-opt small, :root[data-theme="dark"] .cmd-demo .fine, :root[data-theme="dark"] .cmd-box input::placeholder { color: var(--muted); }
:root[data-theme="dark"] .cmd-opt[aria-selected="true"] { background: var(--sunk); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cmd-demo { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .cmd-box { background: var(--sunk); border-color: var(--line); }
  :root:not([data-theme="light"]) .cmd-box input { color: var(--ink); }
  :root:not([data-theme="light"]) .cmd-group, :root:not([data-theme="light"]) .cmd-opt small, :root:not([data-theme="light"]) .cmd-demo .fine, :root:not([data-theme="light"]) .cmd-box input::placeholder { color: var(--muted); }
  :root:not([data-theme="light"]) .cmd-opt[aria-selected="true"] { background: var(--sunk); color: var(--ink); }
}

.connect { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (min-width: 1000px) { .connect { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.connect-title { font-size: var(--step-2); font-weight: 450; margin-bottom: 1rem; }
.connect-copy p { color: var(--muted); }
.connect-diagram { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 700px) { .connect-diagram { grid-template-columns: 1fr 120px 1fr; gap: 0; } }
.cd-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.cd-ours { border-color: var(--accent); }
.cd-head { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.cd-col ul { list-style: none; display: grid; gap: .4rem; }
.cd-ours li { font-size: .9375rem; padding: .35rem .6rem; background: var(--accent-tint); border-radius: var(--r-sm); }
.cd-yours li { display: grid; font-size: .875rem; color: var(--muted); padding: .35rem 0; border-bottom: 1px solid var(--line); }
.cd-yours li:last-child { border-bottom: 0; }
.cd-yours strong { color: var(--ink); font-size: .9375rem; }
.cd-link { text-align: center; }
.cd-lines { width: 100%; height: 160px; display: block; }
.cd-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.cd-link p { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: -.5rem; }
@media (max-width: 699px) { .cd-lines { display: none; } .cd-link p { margin: 0; } }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3.5rem 1fr; gap: .25rem 1rem; }
.step-n { grid-row: span 2; font-family: var(--font-display); font-size: 2.75rem; line-height: .9; font-weight: 350; color: var(--accent); font-style: italic; }
.step-title { font-size: 1.375rem; font-weight: 480; }
.step p:not(.step-n) { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 1.5rem; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 1.25rem; align-content: start; }
  .step-n { grid-row: auto; font-size: 4rem; margin-bottom: .75rem; }
}
.timeline { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.timeline-title { font-size: var(--step-2); font-weight: 450; font-style: italic; margin-bottom: 1.5rem; }
.tl { list-style: none; display: grid; gap: 1.25rem; margin-bottom: 1.25rem; position: relative; }
.tl li { padding-left: 1.5rem; position: relative; }
.tl li::before { content: ""; position: absolute; left: 0; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-when { font-weight: 700; font-size: .875rem; letter-spacing: .04em; color: var(--accent-strong); }
.tl li p:not(.tl-when) { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 1.75rem; }
  .tl::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
  .tl li { padding-left: 0; }
  .tl li::before { top: -1.75rem; }
}

/* ---------- Security (deep band) ---------- */
.sec-grid { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--deep-line); }
@media (min-width: 700px) { .sec-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1100px) { .sec-grid { grid-template-columns: repeat(4, 1fr); } }
.sec-grid li { padding: 1.75rem 0; border-bottom: 1px solid var(--deep-line); display: grid; gap: .65rem; align-content: start; }
.sec-grid .ic-lg { color: var(--bright); }
.sec-grid h3 { font-size: 1.375rem; font-weight: 450; color: var(--on-deep); }
.sec-grid p { color: var(--on-deep-muted); font-size: .9375rem; line-height: 1.55; }
.std-row { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--deep-line); }
@media (min-width: 760px) { .std-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .std-row { grid-template-columns: repeat(4, 1fr); } }
.std-row h3 { font-size: 1.125rem; font-weight: 500; color: var(--on-deep); font-family: var(--font-body); letter-spacing: 0; }
.std-row p { color: var(--on-deep-muted); font-size: .9375rem; margin-top: .4rem; }
.std-stat { display: block; margin-top: .4rem; color: var(--on-deep); }
.section-deep a { color: var(--bright); }
.section-deep :focus-visible { outline-color: var(--bright); }

/* ---------- Founding ---------- */
.founding { display: grid; gap: 2rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
@media (min-width: 980px) { .founding { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; } }
.founding-num { font-family: var(--font-display); font-weight: 340; font-style: italic; font-size: clamp(9rem, 6rem + 16vw, 22rem); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 85%); -webkit-background-clip: text; background-clip: text; text-align: center; user-select: none; }
.founding-copy .sec-num { margin-bottom: 1rem; }
.founding-copy .sec-title { max-width: 18ch; }
.founding-lede { margin-top: 1.25rem; color: var(--ink-2); font-size: var(--step-1); max-width: 48ch; }
.fp-meter { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.fp-dots { display: flex; gap: 6px; }
.fp-dot { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--accent); background: var(--accent); }
.fp-dot.is-taken { background: linear-gradient(135deg, transparent 46%, var(--line-strong) 46% 54%, transparent 54%); border-color: var(--line-strong); }
.fp-left { font-weight: 600; color: var(--ink-2); }
.fp-left strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.fp-benefits { list-style: none; display: grid; gap: 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.fp-benefits li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.fp-benefits strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 480; letter-spacing: -0.01em; }
.fp-benefits span { color: var(--muted); font-size: .9375rem; }
.fp-terms { margin: 1.25rem 0 1.5rem; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 1fr 1.7fr; gap: 4rem; } .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq-head { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.faq-head .sec-title { margin-top: 1rem; }
.faq-ask { margin-top: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.375rem; }
.faq-contact { display: grid; gap: .5rem; margin-top: 1rem; }
.faq-contact a, .book-alt-links a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; min-height: 32px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); font-weight: 450; line-height: 1.3; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 1.5rem; color: var(--ink-2); max-width: 64ch; }

/* ---------- Booking section ---------- */
.section-book { background: var(--paper); border-top: 1px solid var(--line); }
.book-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1040px) { .book-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; } .book-copy { position: sticky; top: calc(var(--header-h) + 2rem); } }
.book-copy .sec-num { border-top: 1px solid var(--ink); padding-top: 1.25rem; margin-bottom: 1.25rem; }
.book-lede { margin: 1.25rem 0 1.5rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.book-alt { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.book-alt > p:first-child { font-weight: 650; margin-bottom: .5rem; }
.book-alt-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.contact-more { margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-more > summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: var(--accent); }
.contact-form { padding-bottom: 1.5rem; display: grid; gap: 1rem; max-width: 760px; }

/* ---------- Booking widget ---------- */
.booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); box-shadow: 0 30px 70px -50px hsl(var(--shadow) / .55); min-height: 420px; }
.bk-loading { display: grid; place-items: center; min-height: 360px; color: var(--muted); }
.bk-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.bk-type { min-height: 40px; padding: .4rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: .875rem; color: var(--ink-2); }
.bk-type[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bk-type-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1rem; }
.bk-type-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; letter-spacing: -0.015em; }
.bk-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.bk-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.bk-desc { color: var(--muted); font-size: .9375rem; margin: -.25rem 0 1rem; }
.bk-pick { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .bk-pick { grid-template-columns: 1.15fr 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.cal-month { font-family: var(--font-display); font-size: 1.25rem; font-weight: 480; }
.cal-nav { display: flex; gap: .25rem; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .35rem 0; text-align: center; }
.cal-grid td { padding: 2px; text-align: center; }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 46px; border-radius: 50%; border: 0; background: transparent; font-weight: 500; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--muted); position: relative; }
.cal-day:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.cal-day.is-avail { background: var(--accent-tint); color: var(--accent-strong); font-weight: 700; }
.cal-day.is-avail:hover { background: var(--accent-soft); }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-day[aria-pressed="true"], .cal-day[aria-pressed="true"]:hover { background: var(--accent); color: var(--accent-ink); }
.cal-day:focus-visible { outline-offset: 1px; }
.cal-strip { display: none; gap: .4rem; overflow-x: auto; padding: .25rem .1rem .6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cal-strip button { flex: none; scroll-snap-align: start; width: 64px; min-height: 72px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); display: grid; place-content: center; gap: .1rem; font-size: .8125rem; color: var(--muted); }
.cal-strip button strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; color: var(--ink); line-height: 1; }
.cal-strip button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal-strip button[aria-pressed="true"] strong { color: var(--accent-ink); }
@media (max-width: 719px) { .cal-strip { display: flex; } .cal-month-view { display: none; } }
.bk-tz { display: grid; gap: .3rem; margin-top: .75rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.bk-tz select { font-size: .875rem; min-height: 40px; }
.bk-times-head { font-weight: 650; margin-bottom: .6rem; min-height: 1.5em; }
.bk-times { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .45rem; max-height: 340px; overflow-y: auto; padding: 2px; }
.bk-time { width: 100%; min-height: 44px; border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); color: var(--accent-strong); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.bk-time:hover { background: var(--accent-tint); }
.bk-time[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bk-empty { color: var(--muted); font-size: .9375rem; padding: 1rem 0; }
.bk-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: var(--r-sm); padding: .8rem 1rem; margin-bottom: 1.25rem; }
.bk-chosen strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 480; }
.bk-chosen span { font-size: .875rem; color: var(--muted); }
.bk-status { margin-top: .75rem; }
.bk-status:empty { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 400; font-size: .875rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-err { color: var(--danger); font-size: .875rem; font-weight: 600; display: flex; gap: .35rem; }
.field-err:empty { display: none; }
.field-err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: var(--surface); font-size: .8125rem; flex: none; margin-top: .1rem; }
.help { color: var(--muted); font-size: .8125rem; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.alert { padding: .9rem 1rem; border-radius: var(--r-sm); font-size: .9375rem; line-height: 1.5; border: 1px solid; }
.alert-err { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-ok { background: var(--accent-tint); color: var(--ink); border-color: var(--accent-soft); }
.alert a { color: inherit; font-weight: 650; }
.consent { font-size: .8125rem; color: var(--muted); }

/* Confirmation */
.bk-done { display: grid; gap: 1.25rem; }
.bk-done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.bk-done-mark .ic { width: 26px; height: 26px; }
.bk-done h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 420; letter-spacing: -0.03em; }
.bk-when { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--accent-strong); line-height: 1.25; }
.bk-done-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bk-next { list-style: none; display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 1rem; counter-reset: nx; }
.bk-next li { counter-increment: nx; display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; font-size: .9375rem; color: var(--ink-2); }
.bk-next li::before { content: counter(nx); font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.125rem; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: var(--on-deep); padding: clamp(3rem, 2rem + 3vw, 5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }
.brand-light { color: var(--on-deep); }
.brand-light .bm-bg { fill: var(--bright); }
.brand-light .bm-arc { stroke: var(--deep-2); }
.brand-light .bm-dot { fill: var(--deep-2); }
.brand-light .brand-sub { color: var(--on-deep-muted); }
.footer-tag { margin-top: 1rem; color: var(--on-deep-muted); font-size: .9375rem; max-width: 40ch; }
.footer-h { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: .75rem; }
.footer-links { list-style: none; display: grid; gap: .35rem; }
.footer-links a, .footer-links .link-btn { color: var(--on-deep); text-decoration: none; font-size: .9375rem; display: inline-flex; min-height: 32px; align-items: center; }
.footer-links a:hover, .footer-links .link-btn:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--deep-line); font-size: .8125rem; color: var(--on-deep-muted); }
.site-footer :focus-visible { outline-color: var(--bright); }

/* ---------- Mobile CTA, dialog, toast ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
.mobile-cta.is-shown { transform: none; }
@media (min-width: 761px) { .mobile-cta { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

.dialog { border: 0; padding: 0; border-radius: var(--r); max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; }
.dialog::backdrop { background: rgb(5 12 9 / .7); }
.dialog-black { background: var(--bl-surface); color: var(--bl-ink); border: 1px solid var(--bl-line); }
.bl-form { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-close { color: var(--bl-ink); border-color: var(--bl-line); }
.dialog-title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 400; font-style: italic; letter-spacing: -0.03em; }
.dialog-lede { color: var(--bl-muted); font-size: .9375rem; }
.dialog-black .field input, .dialog-black .field select, .dialog-black .field textarea { background: var(--bl-bg); border-color: #59625d; color: var(--bl-ink); }
.dialog-black .field input:focus, .dialog-black .field select:focus, .dialog-black .field textarea:focus { outline-color: var(--bl-gold); border-color: var(--bl-gold); }
.dialog-black .help, .dialog-black .fine { color: var(--bl-muted); }
.dialog-black .fine a { color: var(--bl-gold); }
.dialog-black .field .req, .dialog-black .field-err { color: var(--bl-danger); }
.dialog-black .field-err::before { background: var(--bl-danger); color: var(--bl-bg); }
.dialog-black .field [aria-invalid="true"] { border-color: var(--bl-danger); }
.dialog-black .alert-err { background: #3b201d; color: var(--bl-danger); }
.dialog-black .alert-ok { background: #2b271a; color: var(--bl-ink); border-color: #4a4128; }
.dialog-black .opt { color: var(--bl-muted); border: 0; padding: 0; min-height: 0; display: inline; }
.dialog-actions { display: flex; gap: 1rem; }

.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9375rem; z-index: 80; transition: transform .25s; max-width: calc(100vw - 32px); }
.toast.is-shown { transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Simple pages (book, manage, doc, legal, 404) ---------- */
.page-simple .site-header { position: static; }
.simple-main { padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); }
.simple-head { max-width: 760px; margin-bottom: 2rem; }
.simple-head h1 { font-size: var(--step-3); font-weight: 420; letter-spacing: -0.035em; line-height: 1.04; }
.simple-head h1 em { color: var(--accent); font-weight: 380; }
.simple-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); }
.narrow { max-width: 820px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }
.back-link .ic { transform: rotate(180deg); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1.25rem 0; }
.kv dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.kv dd { margin: 0; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .6rem; } }
.status-pill { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); }
.status-pill.is-cancelled { background: var(--danger-soft); color: var(--danger); }
.actions-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.manage-panel { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.manage-panel h2 { font-size: 1.5rem; font-weight: 450; margin-bottom: 1rem; }

.legal { max-width: 760px; }
.legal h1 { font-size: var(--step-3); font-weight: 420; letter-spacing: -0.035em; }
.legal .updated { margin-top: .75rem; color: var(--muted); font-weight: 600; }
.legal .optout { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.legal .optout p { margin: 0; }
.legal h2 { font-size: 1.625rem; font-weight: 480; margin: 2.75rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.25rem; font-weight: 500; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: .75rem 0; }
.legal ul, .legal ol { padding-left: 1.4rem; display: grid; gap: .45rem; margin: .75rem 0; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.legal .summary h2 { margin-top: 0; border: 0; padding: 0; font-size: 1.25rem; }
.legal .caps { font-size: .9375rem; }
.legal .toc { columns: 2 220px; font-size: .9375rem; }
.legal .lang-note { padding: .75rem 1rem; background: var(--sunk); border-radius: var(--r-sm); font-size: .9375rem; }
.legal address { font-style: normal; line-height: 1.7; }

/* Document viewer */
.doc-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 3vw, 3.5rem); }
.doc-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.doc-kind { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.doc-title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 420; letter-spacing: -0.03em; margin-top: .35rem; }
.doc-parties { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .doc-parties { grid-template-columns: 1fr 1fr; } }
.doc-parties h2 { font-size: .8125rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.doc-items { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.doc-items th, .doc-items td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-items th { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-items .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-items small { display: block; color: var(--muted); }
.doc-totals { margin-left: auto; margin-top: 1rem; width: min(100%, 340px); display: grid; gap: .35rem; }
.doc-totals div { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.doc-totals .grand { border-top: 1px solid var(--ink); padding-top: .6rem; margin-top: .3rem; font-family: var(--font-display); font-size: 1.75rem; }
.doc-notes { margin-top: 2rem; display: grid; gap: 1rem; color: var(--ink-2); font-size: .9375rem; white-space: pre-line; }
.doc-notes h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc-accept { margin-top: 2rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: .15rem; flex: none; }
@media (max-width: 560px) {
  .doc-items thead { display: none; }
  .doc-items, .doc-items tbody, .doc-items tr, .doc-items td { display: block; width: 100%; }
  .doc-items tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .doc-items td { border: 0; padding: .15rem 0; }
  .doc-items .r { text-align: left; }
  .doc-items td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8125rem; }
}
@media print {
  .site-header, .site-footer, .no-print, .mobile-cta, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-sheet { border: 0; padding: 0; }
}

.err-page { text-align: left; }
.err-code { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 4rem + 10vw, 14rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: -0.05em; }

/* Grid children may not grow past their track (long rows like the day strip scroll inside instead). */
.book-grid > *, .hero-grid > *, .calc > *, .pb > *, .system > *, .connect > *, .faq-grid > *, .founding > *, .bk-pick > *, .black-grid > * { min-width: 0; }
.card .alert { margin: 1rem 0; }
#manage > .fine, #doc > .fine { margin-top: 1rem; }
.bk-done .alert { margin: 0; }
.doc-sheet > .alert { margin-bottom: 1.5rem; }

/* ---------- client portal: approvals, onboarding form, reports ---------- */
.pt .doc-top { margin-bottom: 1rem; }
.pt-msg { padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: var(--r-sm); white-space: pre-line; }
.pt-hint { color: var(--muted); font-size: .9375rem; }
.pt-save { font-size: .875rem; color: var(--muted); min-height: 1.2em; }
.pt-save.ok::before { content: "✓ "; color: var(--accent); }
.pt-save.err { color: var(--danger); font-weight: 600; }
.pt-status-row { margin: .5rem 0 0; }
.pt-post { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin: 1rem 0; background: var(--paper, var(--surface)); }
.pt-post.is-ok { border-color: var(--accent); }
.pt-post.is-chg { border-color: var(--warn); }
.pt-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; margin-bottom: .5rem; }
.pt-post-head h2 { font-size: 1.0625rem; margin: 0; flex: 1 1 14rem; min-width: 0; }
.pt-chip { font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .55rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); }
.pt-when { font-size: .875rem; color: var(--muted); }
.pt-captions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem 1.25rem; }
.pt-captions h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .25rem 0; }
.pt-cap { white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.pt-meta { font-size: .9375rem; margin: .5rem 0 0; overflow-wrap: anywhere; }
.pt-choice { border: 0; padding: 0; margin: .9rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pt-radio { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer; font-weight: 600; }
.pt-radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.pt-radio:has(input:checked).approve { background: var(--accent-soft); border-color: var(--accent); }
.pt-radio:has(input:checked).changes { background: color-mix(in srgb, var(--warn) 15%, transparent); border-color: var(--warn); }
.pt-decision { font-weight: 650; margin: .75rem 0 0; }
.pt-decision.ok { color: var(--accent); }
.pt-decision.chg { color: var(--warn); }
.pt-general { margin-top: 1.25rem; }
.pt-submit { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 28rem; }
.pt-progress { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.pt-bar { flex: 1; height: 10px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; }
.pt-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
.pt-bar.full i { background: var(--accent-strong); }
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.pt-steps { list-style: none; margin: 0; padding: 0 0 .35rem; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.pt-steps button { display: flex; align-items: center; gap: .5rem; white-space: nowrap; min-height: 44px; padding: .4rem .6rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pt-steps button:hover { background: var(--sunk); }
.pt-steps li.on button { background: var(--accent-tint); font-weight: 650; }
.pt-n { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .8125rem; }
.pt-steps li.done .pt-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 0; }
.pt-steps li.done .pt-n::before { content: "✓"; font-size: .8125rem; }
.pt-sec-title { margin-top: 0; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.pt-wide, .pt-grid > .pt-list, .pt-grid > .pt-hours { grid-column: 1 / -1; }
.pt-opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; grid-column: 1 / -1; }
.pt-opts legend { font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; padding: 0; }
.pt-opts .check { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.pt-list, .pt-hours { border: 0; padding: 0; margin: 0; min-width: 0; }
.pt-list legend, .pt-hours legend { font-weight: 650; margin-bottom: .5rem; padding: 0; }
.pt-item { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: .75rem; }
.pt-item-n { font-weight: 650; margin: 0 0 .5rem; color: var(--muted); font-size: .875rem; }
.pt-hours-grid { display: grid; gap: .4rem; margin-bottom: .6rem; }
.pt-hrow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.pt-day { font-weight: 600; }
.pt-ranges { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.pt-range { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.pt-range input[type=time] { min-height: 40px; padding: .25rem .4rem; border: 1px solid var(--field, var(--line-strong)); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
.pt-closed { color: var(--muted); font-style: italic; }
.pt-files { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.pt-files li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem .6rem; background: var(--sunk); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.pt-summary { margin: 1rem 0; }
.pt-sum-sec { font-weight: 700; margin-top: 1.25rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.pt-sum-row { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(0, 1fr); gap: .25rem 1rem; padding: .3rem 0; }
.pt-sum-row dt { color: var(--muted); font-size: .9375rem; }
.pt-sum-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.pt-report section { margin-top: 1.75rem; }
.pt-report h2 { font-size: 1.125rem; }
.pt-sum p { margin: .5rem 0; }
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr)); gap: .6rem; }
.pt-kpi { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; display: grid; gap: .15rem; }
.pt-kpi b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.pt-kpi span { font-size: .875rem; color: var(--muted); }
.pt-kpi small { font-size: .8125rem; color: var(--muted); }
.pt-report .pt-bar { margin-top: .75rem; }
.pt-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .pt-steps li:not(.on) button span:not(.pt-n) { display: none; }
  .pt-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-hrow { grid-template-columns: minmax(0, 1fr); }
  .pt-sum-row { grid-template-columns: minmax(0, 1fr); }
}
@media print { .pt-steps, .pt-progress, .pt-hint { display: none; } .pt-layout { display: block; } }
/* Shared-link pages and the client portal */
.page-portal .stack { display: flex; flex-direction: column; gap: 14px; }
.page-portal .portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.page-portal .table-scroll { overflow-x: auto; max-width: 100%; }
.page-portal .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.page-portal .data-table th, .page-portal .data-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line, #ddd); vertical-align: top; }
.page-portal .link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.page-portal .plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.page-portal .field { display: flex; flex-direction: column; gap: 4px; } .page-portal .field input, .page-portal .field textarea { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line, #ccc); background: transparent; color: inherit; }
.page-portal .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; } .page-portal .card.prose { white-space: pre-wrap; padding: 12px 14px; }

/* Headings focused by script (to announce a result to screen readers) don't need a visible box. */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.bk-done h3[tabindex="-1"]:focus { outline: none; }

/* Each plan option lists what it includes, so nothing is hidden until it is picked. */
.pb-tiers { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: stretch; }
.tier { padding: .85rem .95rem; transition: border-color .15s, background .15s; }
.tier:hover { border-color: var(--accent); }
.tier-inc { list-style: none; margin: .65rem 0 0; padding: .65rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .35rem; }
.tier-inc li { display: flex; gap: .45rem; align-items: flex-start; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.tier-inc .ic { width: 14px; height: 14px; flex: none; margin-top: .15rem; color: var(--accent); }
.pb-svc:not(.is-on) .pb-tiers .tier { background: var(--paper); }

/* Black Label: application received */
.bl-done { display: grid; gap: 1rem; }
.bl-done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bl-gold); color: #15110a; }
.bl-done-mark .ic { width: 28px; height: 28px; }
.bl-done .dialog-title[tabindex="-1"]:focus { outline: none; }
.bl-kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: .25rem 0 .5rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); }
.bl-kv dt { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; align-self: center; }
.bl-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.bl-done .bk-next { margin-top: -.25rem; }
.bl-done .dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.dialog-black .bl-kv { border-color: var(--bl-line); } .dialog-black .bl-kv dt { color: var(--bl-muted, #a9b2ad); }
.dialog-black .bl-done .bk-next li, .dialog-black .bl-done .dialog-lede { color: var(--bl-ink); }
.dialog-black .bl-done .bk-next li::before, .dialog-black .bl-done .kicker { color: var(--bl-gold); border-color: var(--bl-line); }
.dialog-black .bl-done .kicker { border-bottom-color: var(--bl-line); }
.dialog-black .bl-done .btn-ghost { color: var(--bl-ink); border-color: var(--bl-line); background: transparent; }
.dialog-black .bl-done .btn-ghost:hover { border-color: var(--bl-gold); }
.dialog-black .bl-done .bk-next { border-top-color: var(--bl-line); }

/* ---------- Sales polish ----------
   Flat surfaces at rest (thin borders and tone, not drop shadows), a reassurance line under the main
   button, and a calm reveal as sections arrive. Content is never hidden if scripts fail. */
.btn-primary, .btn-primary:hover { box-shadow: none; }
.hero-ledger { box-shadow: none; }
.pb-svc.is-on { box-shadow: 0 0 0 1px var(--accent); }
.hero-assure { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .875rem; color: var(--muted); }
.hero-assure span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-assure .ic { width: 15px; height: 15px; color: var(--accent); }
/* Reveal (Linear-style): opacity on a gentle ease-in-out so text fades rather than pops; the lift and a light blur
   settle on a long expo curve. Delays come from site.js only when several things arrive together. */
html.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(5px);
  transition: opacity .9s cubic-bezier(.45,.05,.25,1), transform 1.15s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.45,.05,.25,1);
  transition-delay: var(--rd, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
@keyframes cu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cu-lift { from { transform: translateY(16px); filter: blur(8px); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* The hero comes in from the first paint (pure CSS, so it never flashes visible-then-hidden while scripts load). */
  html.js .hero-copy > *, html.js .hero-ledger { animation: cu-fade .95s cubic-bezier(.45,.05,.25,1) both, cu-lift 1.2s cubic-bezier(.16,1,.3,1) both; }
  html.js .hero-copy > :nth-child(2) { animation-delay: .07s; } html.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
  html.js .hero-copy > :nth-child(4) { animation-delay: .21s; } html.js .hero-copy > :nth-child(5) { animation-delay: .28s; }
  html.js .hero-copy > :nth-child(n+6) { animation-delay: .32s; } html.js .hero-ledger { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; filter: none; transition: none; } }
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.btn:active { transform: translateY(1px); }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.75fr 1fr; } .hero-title { max-width: 16ch; font-size: clamp(3.5rem, 1.6rem + 4.4vw, 5.6rem); } }
.ledger li { grid-template-columns: 5.4rem 1fr; }
.ledger-time { white-space: nowrap; }
.ledger-time small, .ledger-tag, .ledger-svc { font-size: .8125rem; letter-spacing: .06em; }

/* Plan builder: switched off = compact; switched on = full detail, tinted, marked "Added". */
.pb-svc:not(.is-on) { padding: .9rem 1.25rem 1rem; background: var(--paper); }
.pb-svc:not(.is-on) .pb-svc-short { margin-top: .4rem; font-size: .875rem; }
.pb-svc.is-on { background: var(--accent-tint); }
.pb-svc.is-on .tier { background: var(--surface); }
.pb-added { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .8125rem; font-weight: 650; color: var(--accent); }
.pb-added .ic { width: 15px; height: 15px; }
@media (min-width: 640px) { .pb-added, .pb-opts { margin-left: calc(46px + .9rem); } }
.pb-opts { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pb-mini-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; flex: 1 1 170px; min-width: 0; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface); transition: border-color .15s, background .15s; }
.pb-mini-opt:hover { border-color: var(--accent); }
.pb-mini-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pb-mini-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; font-size: .875rem; }
.pb-mini-top strong { font-weight: 650; }
.pb-mini-price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-mini-key { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.pb-mini-line { font-size: .875rem; color: var(--ink-2); margin: 0; }
/* "(optional)" next to a field label is plain text, not the boxed option style used for checklists. */
label .opt, .field label .opt { display: inline; border: 0; padding: 0; min-height: 0; border-radius: 0; cursor: inherit; background: none; }

/* Dark mode, Linear-inspired: near-black neutral surfaces, hairline borders and a soft glow behind the hero. */
:root[data-theme="dark"] .hero::after { content: ""; position: absolute; inset: -30% -10% auto; height: 70%; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(92,201,160,.10), transparent 70%); }
:root[data-theme="dark"] .hero > .wrap { position: relative; z-index: 1; }
/* The page background always follows the theme, even when a browser extension pins a colour on the page
   (it then stayed light in dark mode while everything on it turned dark). */
html, body { background-color: var(--bg) !important; }
@media print { html, body { background-color: #fff !important; } }

/* The integrated EHR as a bonus (or add-on) of the website plan, and bundle savings */
.svc-addon { border-top-style: dashed; }
.svc-n.svc-bonus { font-style: normal; font-family: var(--font-body, inherit); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.svc-addon-note { font-weight: 700; color: var(--accent); margin: 0 0 .35rem; }
.preset-save { display: block; font-size: .75rem; font-weight: 700; color: var(--accent); }
.preset[aria-pressed="true"] .preset-save { color: inherit; opacity: .85; }
.pb-bundle-note { flex-basis: 100%; margin: .4rem 0 0; font-size: .875rem; color: var(--muted); }
.pb-addon { margin-top: .9rem; padding: .85rem 1rem; border-radius: var(--r); border: 1px dashed var(--line-strong); background: var(--bg); }
.pb-addon.is-free { border-color: var(--accent); }
.pb-addon-head { margin: 0; font-weight: 600; }
.pb-addon-head strong { display: inline-block; margin-right: .35rem; padding: .1rem .55rem; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink, #fff); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em; }
.pb-addon-short { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.pb-addon-free { margin: .45rem 0 0; font-weight: 700; color: var(--accent); font-size: .9rem; }
.pb-addon-pick { display: flex; gap: .5rem; align-items: center; margin-top: .55rem; font-weight: 600; cursor: pointer; }
.pb-addon-pick input { width: 18px; height: 18px; accent-color: var(--accent); }
.pb-save-line span:first-child { color: var(--accent); font-weight: 700; }
