/* ==========================================================================
   Vitale Signal: concept v2
   The live site's structure, expressed with the Frequency concept's device:
   cool paper, one signal orange, mono readouts, and a wave that resolves.
   CSP note: no inline styles anywhere. Runtime values are set via the CSSOM.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f5f8;
  --bg-2: #eceef3;
  --surface: #ffffff;
  --ink: #14161b;
  --ink-2: #353a45;
  --muted: #565c68;
  --line: #dce0e7;
  --line-2: #c3c9d3;
  --soft: #e9ecf1;
  --signal: #d74418;
  --signal-btn: #c73b19;
  --signal-btn-hover: #a93215;
  --signal-ink: #b5360f;
  --signal-soft: #fbe5dc;
  --signal-cool: #97a0b2;
  --on-signal: #ffffff;
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --grid: rgba(20, 22, 27, 0.06);
  --field: #fbfbfd;
  --field-line: #a3aab6;
  --band: #14161b;
  --band-2: #1d2129;
  --band-fg: #f1f2f5;
  --band-fg-2: #a9b0bd;
  --band-line: rgba(241, 242, 245, 0.13);
  --band-signal: #ff7643;
  --ok: #1f7a4a;
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, 0.05), 0 4px 14px -6px rgba(20, 22, 27, 0.1);
  --shadow: 0 1px 2px rgba(20, 22, 27, 0.05), 0 16px 36px -16px rgba(20, 22, 27, 0.2);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 20px;
  --r-sm: 12px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0d11;
  --bg-2: #10131a;
  --surface: #141820;
  --ink: #f1f2f5;
  --ink-2: #c9ced8;
  --muted: #a1a8b5;
  --line: #262c36;
  --line-2: #363e4b;
  --soft: #1a1f28;
  --signal: #ff7643;
  --signal-btn: #ff7643;
  --signal-btn-hover: #ff8c5f;
  --signal-ink: #ff9068;
  --signal-soft: rgba(255, 118, 67, 0.13);
  --signal-cool: #4f5869;
  --on-signal: #160803;
  --glass: rgba(20, 24, 32, 0.74);
  --glass-strong: rgba(20, 24, 32, 0.94);
  --grid: rgba(241, 242, 245, 0.05);
  --field: #10131a;
  --field-line: #4a5260;
  --band: #05070a;
  --band-2: #12161d;
  --ok: #5fd39a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, fill 0.35s ease, stroke 0.35s ease !important;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.no-js .js-only { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-2); }

.mono { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.dim { color: var(--muted); }
.stop { color: var(--signal); }
.nowrap { white-space: nowrap; }

h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 640; text-wrap: balance; }
p { text-wrap: pretty; }

.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.kicker .k-num { color: var(--signal-ink); }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line-2); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.sec-intro { color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.sec-intro a { color: var(--signal-ink); }
.sec-intro .tag + p { margin-top: 12px; }
.sec-head-solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 56.25em) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.fineprint { margin-top: 20px; font-size: 0.875rem; color: var(--muted); max-width: 70ch; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--signal-btn); color: var(--on-signal); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--signal) 80%, transparent); }
.btn-accent:hover { background: var(--signal-btn-hover); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-2);
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: var(--signal); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; flex: none; }
.btn-text { padding: 0; border: 0; background: none; color: var(--signal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background-color 0.2s; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Header: the floating pill ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  padding-inline: 12px;
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  min-height: 60px;
  margin-inline: auto;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled .pill { background: var(--glass-strong); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none; font-size: 1.0625rem; letter-spacing: -0.03em; font-weight: 520; white-space: nowrap; }
.brand b { font-weight: 720; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark path { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .brand-mark { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 0.9375rem; font-weight: 560; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.theme-toggle .ti-sun { display: none; }
[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 0.875rem; font-weight: 600; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-panel { display: none; }

@media (max-width: 68.74em) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-cta { display: none; }
  .nav-panel {
    pointer-events: auto;
    max-width: 1180px;
    margin: 8px auto 0;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav-panel { display: block; }
  .nav-panel ul { display: grid; gap: 2px; }
  .nav-panel a:not(.btn) { display: block; padding: 12px 14px; border-radius: 14px; font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
  .nav-panel a:not(.btn):hover, .nav-panel a[aria-current="page"] { background: var(--soft); }
  .nav-panel .btn { width: 100%; margin-top: 8px; }
}
@media (max-width: 23.75em) {
  .brand-word { font-size: 1rem; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(112px, 12vw, 148px); padding-bottom: clamp(56px, 7vw, 96px); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: clamp(20px, 3vw, 32px); color: var(--muted); font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow .sep { opacity: 0.5; margin-right: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.4s infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.display { font-size: clamp(2.75rem, 7.4vw, 6.25rem); line-height: 0.94; letter-spacing: -0.055em; font-weight: 670; }
.display .line { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: 40px clamp(32px, 5vw, 72px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.lede { max-width: 40ch; color: var(--ink-2); font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted); font-size: 0.875rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--signal); flex: none; }
@media (max-width: 56.25em) {
  .hero-row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
  /* Small screens: headline, lede, CTA, then the tuner, so it still lands in the first screen. */
  .js .hero-copy, .js .hero-row .hero-actions { display: contents; }
  .js .hero-row .lede { order: 1; }
  .js .hero-row .hero-actions .btn { order: 2; justify-self: start; margin-top: 24px; }
  .js .hero-row .instrument { order: 3; margin-top: 28px; }
  .js .hero-row .hero-actions .link-arrow { order: 4; justify-self: start; margin-top: 20px; }
  .js .hero-row .hero-proof { order: 5; margin-top: 20px; }
}
@media (max-width: 36em) {
  .hero { padding-top: 100px; }
  .page-hero { padding-top: 108px; }
  .eyebrow .eyebrow-wide { display: none; }
  .display { font-size: 2.6rem; }
  .hero-row { margin-top: 24px; }
  .lede { font-size: 1.0625rem; }
  .scope { height: 128px; }
  .tuner { padding: 14px 16px 14px; gap: 6px; }
  .tuner-cap { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero .display .line, .js .hero .hero-row > * { animation: rise 0.9s var(--ease) both; }
  .js .hero .display .line:nth-child(2) { animation-delay: 0.06s; }
  .js .hero .display .line:nth-child(3) { animation-delay: 0.12s; }
  .js .hero .hero-row > *:nth-child(2) { animation-delay: 0.2s; }
}
@keyframes rise { from { transform: translateY(20px); opacity: 0.001; } }

/* The instrument: the concept's tuner, sized to support the headline, not replace it. */
.instrument { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.scope { position: relative; height: clamp(150px, 15vw, 190px); border-bottom: 1px solid var(--line); background: var(--bg); }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.scope-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 25%, calc(100% / 10) 100%;
}
.scope-grid::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); }
.tuner { display: grid; gap: 10px; padding: 16px 20px 18px; }
.tuner-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tuner-top label { color: var(--ink); }
.readout { display: flex; align-items: baseline; gap: 8px; }
.snr { font: 600 1.25rem/1 var(--mono); letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; transition: color 0.4s; }
.instrument.is-locked .snr { color: var(--signal-ink); }
.dial-track { display: flex; align-items: center; gap: 12px; }
.dial-track input { flex: 1; min-width: 0; }
.tuner-cap { min-height: 2.9em; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* Range inputs: shared by the tuner and the calculator dials */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 32px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--signal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--signal); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--signal); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 35%, transparent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 35%, transparent); }

/* ---------- Static trace (depth pages): noise resolving into a clean wave ---------- */
.trace { position: relative; margin-top: clamp(40px, 6vw, 72px); height: 56px; }
.trace svg { width: 100%; height: 100%; }
.trace path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.trace .t-noise { stroke: var(--signal-cool); }
.trace .t-clean { stroke: var(--signal); stroke-width: 2.2; }

/* ---------- Before / after compare (ported from the live site) ---------- */
.ba-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }
.ba-head::before { content: ""; width: 7px; height: 7px; background: var(--signal); }
.ba-frame { --pos: 50%; position: relative; border-radius: var(--r); overflow: hidden; background: #e4e7ed; box-shadow: 0 0 0 1px rgba(20, 22, 27, 0.08), var(--shadow); isolation: isolate; }
[data-theme="dark"] .ba-frame { background: #222731; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), var(--shadow); }
.ba-chrome { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(20, 22, 27, 0.08); }
.mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #c6ccd6; }
[data-theme="dark"] .mc-dot { background: #444b57; }
.mc-url { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: min(22rem, 55%); margin-inline: auto; padding: 4px 16px; border-radius: 999px; background: #f6f7f9; color: #646a74; font-size: 0.75rem; font-weight: 500; transform: translateX(-22px); white-space: nowrap; overflow: hidden; }
.mc-url svg { width: 10px; height: 11px; color: #9aa0aa; }
[data-theme="dark"] .mc-url { background: #151920; color: #9ba2ae; }
.ba-stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 47.99em) { .ba-stage { aspect-ratio: 4 / 5; } }
.ba-layer { position: absolute; inset: 0; overflow: hidden; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; }
.ba-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 22, 27, 0.12), 0 0 30px rgba(20, 22, 27, 0.35); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #c73b19; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(20, 22, 27, 0.35); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease); }
.ba-grip svg { width: 21px; height: 21px; stroke: #fff; }
.ba-stage:hover .ba-grip, .ba-frame.is-dragging .ba-grip { transform: translate(-50%, -50%) scale(1.08); }
.ba-range:focus-visible ~ .ba-divider .ba-grip { outline: 3px solid var(--signal); outline-offset: 4px; }
.ba-tag { position: absolute; top: calc(50% + 38px); padding: 5px 10px; border-radius: 999px; font: 600 0.6875rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: opacity 0.25s ease; }
.ba-tag-before { right: 10px; background: rgba(20, 22, 27, 0.84); color: #f4f5f8; }
.ba-tag-after { left: 10px; background: #c73b19; color: #fff; }
.ba-frame.hide-before .ba-tag-before, .ba-frame.hide-after .ba-tag-after { opacity: 0; }
.ba-caption { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 0.9375rem; }
.no-js .ba-range, .no-js .ba-divider { display: none; }

/* After: the rebuild. Sized in em off the stage width so it scales like a screenshot. */
.ta { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.3333cqw; line-height: 1.4; background: #fffdf8; color: #1b1712; font-family: var(--font); }
.ta-nav { display: flex; align-items: center; gap: 2.4em; padding: 1.35em 3.5em; border-bottom: 1px solid #efe7da; }
.ta-logo { display: flex; align-items: baseline; font-size: 1.65em; font-weight: 850; letter-spacing: -0.045em; line-height: 1; }
.ta-logo i { width: 0.26em; height: 0.26em; margin-left: 0.06em; border-radius: 50%; background: #c4421f; }
.ta-links { display: flex; gap: 2.2em; margin-left: auto; font-size: 0.95em; font-weight: 600; color: #4a443c; }
.ta-order { padding: 0.75em 1.4em; border-radius: 999px; background: #1b1712; color: #fffdf8; font-size: 0.9em; font-weight: 700; }
.ta-burger { display: none; }
.ta-hero { flex: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 2em; padding: 0 3.5em; min-height: 0; }
.ta-eyebrow { font-size: 0.78em; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: #c4421f; }
.ta-head { margin-top: 0.45em; font-size: 4.7em; line-height: 0.95; font-weight: 820; letter-spacing: -0.05em; }
.ta-rating { display: flex; align-items: center; gap: 0.55em; margin-top: 1.2em; color: #5a5248; }
.ta-rating b { color: #1b1712; }
.ta-stars { display: flex; gap: 0.12em; color: #e8a013; }
.ta-stars svg { width: 1em; height: 1em; }
.ta-cta { display: flex; flex-wrap: wrap; gap: 0.75em; margin-top: 1.7em; }
.ta-btn { padding: 0.95em 1.65em; border-radius: 999px; background: #c4421f; color: #fff; font-weight: 700; white-space: nowrap; }
.ta-btn-2 { background: transparent; color: #1b1712; box-shadow: inset 0 0 0 1.5px #1b1712; }
.ta-art { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.ta-plate { position: absolute; width: 27em; height: 27em; border-radius: 50%; background: #f4e5cf; }
.ta-pizza { position: relative; width: 23em; height: 23em; filter: drop-shadow(0 1.2em 1.4em rgba(90, 45, 10, 0.28)); }
@media (prefers-reduced-motion: no-preference) { .ta-pizza { animation: pizza-turn 90s linear infinite; } }
@keyframes pizza-turn { to { transform: rotate(360deg); } }
.ta-badge { position: absolute; left: 0.5em; bottom: 13%; display: grid; padding: 0.8em 1.15em; border-radius: 0.9em; background: #fff; box-shadow: 0 0.6em 1.8em rgba(40, 20, 0, 0.14); font-size: 0.92em; line-height: 1.3; }
.ta-badge b { font-weight: 750; }
.ta-badge span { font-size: 0.85em; color: #6b645a; }
.ta-meta { display: flex; justify-content: space-between; gap: 3.5em; padding: 1.3em 3.5em; border-top: 1px solid #efe7da; font-size: 0.95em; color: #5a5248; }
.ta-meta b { margin-right: 0.45em; color: #1b1712; }
@container (max-width: 34rem) {
  .ta { font-size: 3.7cqw; }
  .ta-nav { padding: 1em 1.3em; gap: 1em; }
  .ta-links, .ta-order { display: none; }
  .ta-burger { display: grid; gap: 0.32em; margin-left: auto; width: 1.4em; }
  .ta-burger i { height: 0.13em; background: #1b1712; border-radius: 1em; }
  .ta-hero { grid-template-columns: 1fr; align-content: start; gap: 0.5em; padding: 0.6em 1.3em 0; }
  .ta-art { order: -1; height: 11.5em; }
  .ta-plate { width: 12em; height: 12em; }
  .ta-pizza { width: 10em; height: 10em; }
  .ta-badge { left: auto; right: 0; bottom: 0.4em; font-size: 0.8em; }
  .ta-head { font-size: 2.35em; }
  .ta-rating { margin-top: 0.7em; font-size: 0.85em; }
  .ta-cta { flex-direction: column; margin-top: 1em; gap: 0.5em; }
  .ta-btn { text-align: center; padding: 0.85em 1em; }
  .ta-meta { display: none; }
}
/* Before: the dated site. Deliberately not responsive. */
.tb { position: absolute; inset: 0; font-size: 1.3333cqw; line-height: 1.3; font-family: "Times New Roman", Times, serif; color: #000; background-color: #bdbdbd; background-image: linear-gradient(45deg, #b3b3b3 25%, transparent 25%, transparent 75%, #b3b3b3 75%), linear-gradient(45deg, #b3b3b3 25%, transparent 25%, transparent 75%, #b3b3b3 75%); background-size: 2em 2em; background-position: 0 0, 1em 1em; }
.tb-page { width: 62em; margin: 1.4em auto 0; background: #fffff0; border: 0.25em outset #e0e0e0; }
.tb-banner { padding: 1.1em 1em 0.9em; text-align: center; background: linear-gradient(#a31414, #6b0000); border-bottom: 0.3em ridge #c9a800; }
.tb-title { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive; font-size: 3em; font-weight: bold; line-height: 1.1; color: #ffe600; text-shadow: 0.06em 0.06em 0 #000; }
.tb-sub { margin-top: 0.25em; font-size: 1.15em; font-style: italic; color: #fff; }
.tb-marquee { overflow: hidden; padding: 0.3em 0; background: #000080; color: #ffff00; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1.05em; white-space: nowrap; }
.tb-marquee span { display: inline-block; padding-left: 2em; }
@media (prefers-reduced-motion: no-preference) {
  .tb-marquee span { padding-left: 100%; animation: marquee 16s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
.tb-body { display: grid; grid-template-columns: 13em 1fr; }
.tb-side { padding: 0.9em 1em; background: #e2e2e2; border-right: 0.15em solid #999; }
.tb-side p { font-size: 1.15em; line-height: 1.75; color: #0000ee; text-decoration: underline; }
.tb-main { padding: 0.9em 1.6em 1.1em; }
.tb-h { font-size: 2em; font-weight: bold; color: #cc0000; }
.tb-p { margin-top: 0.35em; font-size: 1.12em; line-height: 1.35; }
.tb-row { display: flex; align-items: center; gap: 1.5em; margin-top: 0.9em; }
.tb-img { display: flex; align-items: flex-start; gap: 0.4em; width: 13em; height: 8em; padding: 0.4em; border: 0.15em inset #ccc; background: #f2f2f2; font-size: 0.9em; color: #555; }
.tb-broken { flex: none; width: 1.2em; height: 1.4em; border: 0.1em solid #999; background: #fff linear-gradient(135deg, transparent 44%, #c33 44%, #c33 56%, transparent 56%); }
.tb-construct { flex: 1; padding: 0.35em; background: repeating-linear-gradient(-45deg, #ffd400 0 1em, #111 1em 2em); }
.tb-construct span { display: block; padding: 0.7em 0.5em; background: #ffd400; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1.05em; text-align: center; }
.tb-foot { padding: 0.8em; text-align: center; border-top: 0.15em solid #999; font-size: 0.95em; color: #333; }
.tb-foot p + p { margin-top: 0.15em; }
.tb-counter { padding: 0 0.3em; background: #000; color: #3f3; font-family: "Courier New", monospace; letter-spacing: 0.1em; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.svc-num { color: var(--muted); }
.svc-num b { color: var(--signal-ink); font-weight: 600; }
.svc h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.035em; }
.pull { position: relative; padding-left: 18px; border-left: 2.5px solid var(--signal); color: var(--ink); font-size: 1.0625rem; font-weight: 560; line-height: 1.45; font-style: normal; }
.svc-body { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 0.8125rem; font-weight: 560; }
.svc .link-arrow { align-self: flex-start; margin-top: auto; }
@media (max-width: 62em) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.calc-controls { display: grid; align-content: start; gap: 14px; padding: clamp(22px, 3vw, 36px); background: var(--surface); }
.dials-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 6px; color: var(--ink); }
.dials-label span:last-child { color: var(--muted); }
.dial { padding: 14px 16px 6px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.dial-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dial-top label { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.dial output { font: 600 1.125rem/1 var(--mono); color: var(--signal-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dial input { width: 100%; }
.dial-scale { display: flex; justify-content: space-between; color: var(--muted); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.04em; }
.dial-ticks { height: 6px; margin: -2px 0 2px; background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 20) 100%; opacity: 0.8; }
.calc-result { display: flex; flex-direction: column; gap: 6px; padding: clamp(22px, 3vw, 36px); background: var(--band); color: var(--band-fg); }
.calc-label { color: var(--band-fg-2); }
.calc-number { font-size: clamp(2.75rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; font-weight: 680; }
.calc-per { margin-left: 4px; font-size: 0.35em; letter-spacing: 0; color: var(--band-fg-2); font-weight: 500; }
.calc-year { color: var(--band-fg-2); }
.calc-year strong { color: var(--band-fg); }
.calc-dots { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin-top: auto; padding-top: 22px; max-width: 380px; }
.calc-dots span { aspect-ratio: 1; border-radius: 2px; background: var(--band-line); transition: background-color 0.3s; }
.calc-dots span.on { background: var(--band-signal); }
.calc-dots-cap { margin-top: 10px; color: var(--band-fg-2); font-size: 0.875rem; }
.calc-dots-cap b { color: var(--band-fg); }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 24px; }
.calc-note { max-width: 62ch; color: var(--muted); font-size: 0.9375rem; }
.calc-note strong { color: var(--ink); }
@media (max-width: 56.25em) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Example journey (tabs) ---------- */
.journey-tabs { display: none; }
.journey.is-tabbed .journey-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.jt { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 620; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.jt .mono { color: var(--muted); }
.jt:hover { color: var(--ink); border-color: var(--ink); }
.jt[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.jt[aria-selected="true"] .mono { color: var(--signal); }
.jt-arrow { color: var(--line-2); }
.jt-arrow svg { width: 18px; height: 18px; }
.jpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.journey:not(.is-tabbed) .jpanel + .jpanel { margin-top: 20px; }
.jpanel-step { margin-bottom: 14px; color: var(--signal-ink); }
.jpanel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.jpanel-text > p { margin-top: 14px; color: var(--muted); }
.jpanel .ticks { margin-top: 20px; }
.jpanel .link-arrow { margin-top: 20px; }
@media (max-width: 56.25em) { .jpanel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30em) {
  .journey.is-tabbed .journey-tabs { gap: 6px; }
  .jt { padding: 8px 14px; font-size: 0.9375rem; }
  .jt .mono, .jt-arrow { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .journey.is-tabbed .jpanel:not([hidden]) { animation: fade-in 0.35s ease both; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg) translateY(-2px); }
.ticks strong { font-weight: 650; }
.ticks-lg { gap: 14px; font-size: 1.0625rem; }

/* Mini illustrations inside the journey (sample, not client data) */
.mock { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 18px; display: grid; gap: 12px; }
.mock-search { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.mock-search svg { width: 16px; height: 16px; flex: none; }
.mock-card { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mock-card.is-you { border-color: color-mix(in srgb, var(--signal) 60%, var(--line)); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--signal) 70%, transparent); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-name { font-weight: 680; }
.mock-open { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.mock-meta { margin-top: 4px; color: var(--muted); font-size: 0.8125rem; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mock-actions span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; }
.mock-actions .is-primary { background: var(--signal-btn); border-color: var(--signal-btn); color: var(--on-signal); }
.sk { display: block; height: 9px; border-radius: 9px; background: var(--soft); }
.sk + .sk { margin-top: 8px; }
.sk-60 { width: 60%; }
.sk-40 { width: 40%; }
.sk-90 { width: 90%; }
.sk-70 { width: 70%; }
.mock-card.is-dim { opacity: 0.7; }
.flow-list { display: grid; gap: 10px; }
.flow-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.flow-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.flow-ico svg { width: 17px; height: 17px; }
.flow-list .is-human .flow-ico { background: var(--signal-btn); border-color: var(--signal-btn); color: var(--on-signal); }
.flow-list .is-done .flow-ico { color: var(--ok); }
.flow-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.875rem; }
.flow-top span { color: var(--muted); white-space: nowrap; }
.flow-quote { margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); }
.flow-btns { display: flex; gap: 6px; margin-top: 10px; }
.flow-btns span { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; border: 1px solid var(--line); }
.flow-btns span:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.score-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score-head b { display: block; }
.score-head span { color: var(--muted); font-size: 0.8125rem; }
.bars { display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3ch; gap: 10px; align-items: center; font-size: 0.8125rem; }
.bars .bar { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 8px; background: var(--signal); }
.bars .bar.is-unk i { background: var(--signal-cool); }
.bars .val { text-align: right; font-family: var(--mono); color: var(--muted); }
.w38 { width: 38%; } .w26 { width: 26%; } .w19 { width: 19%; } .w12 { width: 12%; } .w5 { width: 5%; }
.funnel { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.funnel p { display: grid; text-align: center; font-size: 0.75rem; color: var(--muted); }
.funnel b { font-size: 1.375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel .is-key b { color: var(--signal-ink); }
.funnel svg { width: 16px; height: 16px; color: var(--line-2); flex: none; }
.review { display: flex; gap: 2px; color: #e8a013; }
.review svg { width: 15px; height: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); }
.about-lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.015em; font-weight: 560; }
.about-main p + p { margin-top: 16px; }
.about-main p:not(.about-lead) { color: var(--ink-2); }
.about-main .link-arrow { margin-top: 24px; }
.detail-label { margin-bottom: 16px; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.card { padding: clamp(22px, 3vw, 32px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: center; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.why .trace { margin-top: 0; }
.why-text p { color: var(--ink-2); }
@media (max-width: 56.25em) {
  .about, .why { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.step-num { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--signal-ink); font: 600 0.8125rem/1 var(--mono); letter-spacing: 0.06em; }
.step-num::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 62em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .steps { grid-template-columns: minmax(0, 1fr); } }
.in-writing { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: center; margin-top: 24px; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-2); }
.in-writing ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.in-writing li { display: inline-flex; align-items: center; gap: 8px; font-weight: 580; }
.in-writing svg { width: 17px; height: 17px; color: var(--signal); flex: none; }
@media (max-width: 47.99em) { .in-writing { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Care plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.03em; }
.plan > p { color: var(--muted); }
.plan .ticks { font-size: 0.9375rem; }
.plan-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; }
.plans-foot p { max-width: 62ch; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 47.99em) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; font-size: 1.125rem; font-weight: 620; letter-spacing: -0.01em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; border-color: var(--signal); }
.faq-list summary:hover { color: var(--signal-ink); }
.faq-a { padding: 0 0 24px; color: var(--ink-2); max-width: 66ch; }
.faq-a p + p { margin-top: 12px; }
.faq-a a { color: var(--signal-ink); }
.faq-more { margin-top: 24px; }
@media (max-width: 56.25em) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-2); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
.contact-intro { margin-top: 20px; max-width: 44ch; color: var(--ink-2); font-size: 1.125rem; }
.contact-promises { display: grid; gap: 12px; margin-top: 28px; }
.contact-promises li { display: flex; gap: 12px; align-items: flex-start; font-weight: 580; }
.contact-promises svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--signal); }
.contact-alt { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-email { margin-top: 6px; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-email a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 0.9375rem; }
.copy-status { color: var(--muted); }
.contact-start { margin-top: 24px; }
.email-help { margin-top: 10px; color: var(--muted); font-size: 0.875rem; max-width: 44ch; }
.contact-form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-head .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.form-head .mono i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.form-title { font-size: 1.25rem; font-weight: 660; letter-spacing: -0.02em; }
.form-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #c4291f; box-shadow: 0 0 0 3px rgba(196, 41, 31, 0.14); }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #ff7b72; }
.field-check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--signal-btn); }
.field-check label { font-weight: 500; color: var(--ink-2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(196, 41, 31, 0.1); color: #a1231a; font-size: 0.9375rem; font-weight: 560; }
[data-theme="dark"] .form-error { color: #ff9b93; background: rgba(255, 123, 114, 0.12); }
.form-note { margin-top: 14px; color: var(--muted); font-size: 0.8125rem; }
.form-note a { color: inherit; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 0.9375rem; }
.form-status p + p { margin-top: 8px; }
.form-status.is-success { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.form-status.is-error { background: rgba(196, 41, 31, 0.1); }
.form-status a { color: var(--signal-ink); }
@media (max-width: 56.25em) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 36em) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 88px) 32px; background: var(--band); color: var(--band-fg); }
.site-footer a { color: var(--band-fg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.footer-tagline { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 650; }
.footer-tagline .stop { color: var(--band-signal); }
.footer-sub { margin-top: 14px; color: var(--band-fg-2); font-size: 0.9375rem; max-width: 36ch; }
.footer-cta { margin-top: 22px; }
.site-footer .btn-accent { background: var(--band-signal); color: #160803; }
.site-footer .btn-accent:hover { background: #ff8c5f; }
.footer-label { margin-bottom: 14px; color: var(--band-fg-2); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.signup p { color: var(--band-fg-2); font-size: 0.9375rem; }
.signup-row { display: flex; gap: 8px; margin-top: 14px; }
.signup-row input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--band-line); background: var(--band-2); color: var(--band-fg); font-size: 0.9375rem; }
.signup-row input::placeholder { color: var(--band-fg-2); }
.signup-row input:focus { outline: none; border-color: var(--band-signal); }
.signup-row input[aria-invalid="true"] { border-color: #ff7b72; }
.signup-row .btn { min-height: 46px; padding: 10px 18px; flex: none; }
.signup-status { min-height: 1.4em; margin-top: 10px; font-size: 0.875rem; color: var(--band-fg-2); }
.signup-status.is-error { color: #ff9b93; }
.signup-fine { margin-top: 6px; font-size: 0.8125rem; color: var(--band-fg-2); }
.footer-wave { margin-top: clamp(40px, 6vw, 64px); height: 40px; }
.footer-wave svg { width: 100%; height: 100%; }
.footer-wave path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.footer-wave .t-noise { stroke: #4f5869; }
.footer-wave .t-clean { stroke: var(--band-signal); stroke-width: 2; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--band-line); color: var(--band-fg-2); font-size: 0.875rem; }
.footer-meta a { color: var(--band-fg-2); text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--band-fg); }
.site-footer :focus-visible { outline-color: var(--band-signal); }
@media (max-width: 62em) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Depth pages ---------- */
.page-hero { padding-top: clamp(120px, 13vw, 168px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero .display { font-size: clamp(2.5rem, 6.4vw, 5.25rem); }
.page-hero .lede { margin-top: clamp(22px, 3vw, 32px); max-width: 52ch; }
.section-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); }
.index { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.index-num { color: var(--signal-ink); font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 600; }
.section-grid h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
.section-grid .section-intro { margin-top: 18px; max-width: 60ch; color: var(--ink-2); font-size: 1.125rem; }
.section-grid .ticks { margin-top: 28px; max-width: 68ch; }
.section-grid .steps { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subhead { margin-top: 36px; font-size: 1.25rem; }
.subhead + .ticks { margin-top: 16px; }
.callout { margin-top: 28px; padding: 18px 22px; border-radius: var(--r-sm); border-left: 3px solid var(--signal); background: var(--surface); color: var(--ink-2); max-width: 68ch; }
.quote-big { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; max-width: 30ch; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.grid-cards .card h3 { font-size: 1.25rem; }
.grid-cards .card p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.grid-cards .card .ticks { margin-top: 16px; font-size: 0.9375rem; }
.grid-cards .card .mono { margin-bottom: 12px; color: var(--signal-ink); }
.plans-in-page { margin-top: 32px; }
@media (max-width: 62em) { .grid-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 56.25em) {
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .index { flex-direction: row; align-items: baseline; gap: 12px; }
  .index-num { font-size: 1rem; }
}
@media (max-width: 36em) { .section-grid .steps { grid-template-columns: minmax(0, 1fr); } }

/* Privacy and 404 */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 40px; font-size: 1.5rem; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; color: var(--ink-2); }
.prose a { color: var(--signal-ink); }
.notfound { min-height: 70vh; }
.notfound p.lede { margin-top: 24px; }

/* ---------- Motion: scroll reveals (JS adds .reveal-ready; reduced motion never arms it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .instrument, .ba, .calc, .contact-form, .site-footer, .journey-tabs { display: none !important; }
  .jpanel[hidden] { display: grid !important; }
  body { background: #fff; color: #000; }
}
