/* ==========================================================================
   InnoImprove v2 — "The Receptionist Never Sleeps"
   Ink surfaces · hairline borders · coral as a signal, never decoration
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/sg-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/sg-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink-0: #101116;      /* page ground */
  --ink-1: #16171e;      /* console surfaces */
  --ink-2: #1e2029;      /* hairlines, raised */
  --coral: #FC5C65;      /* the signal */
  --coral-deep: #E64550; /* pressed signal */
  --text-hi: #ffffff;
  --text-body: #D8D9DF;
  --text-dim: #9B9DA9;   /* meta only, never on ink-2 */
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sect: clamp(4rem, 10vh, 8rem);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink-0); color: var(--text-body);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-hi); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--coral); color: var(--ink-0); }

h1, h2, h3 { font-family: var(--display); color: var(--text-hi); font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 65ch; }
.small, small { font-size: 0.875rem; line-height: 1.5; color: var(--text-dim); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); }
.section-tight { padding-block: clamp(2.5rem, 6vh, 4.5rem); }

.kicker {
  font-family: var(--display); font-weight: 500; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--coral); margin: 0 0 1rem;
}
.kicker::before {
  content: ''; display: inline-block; width: 22px; height: 1px;
  background: var(--coral); vertical-align: middle; margin-right: 0.7em;
}
.section-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.section-head p { color: var(--text-dim); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--coral);
  color: var(--ink-0); padding: 0.6rem 1rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--body); font-weight: 600; font-size: 0.9375rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: var(--ink-0); box-shadow: 0 4px 22px rgba(252, 92, 101, 0.22); }
.btn-coral:hover { background: var(--coral-deep); color: var(--ink-0); box-shadow: 0 6px 26px rgba(252, 92, 101, 0.3); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-hi); border-color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--coral); color: var(--text-hi); }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-block { width: 100%; justify-content: center; }

.text-link { font-weight: 600; color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--coral); }
.text-link:hover { color: var(--coral); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: 64px;
  background: color-mix(in srgb, var(--ink-0) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-2);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo img { width: 150px; height: auto; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-body); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--coral); }
.call-pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.9375rem; font-weight: 600; color: var(--text-hi); text-decoration: none;
  border: 1px solid var(--ink-2); border-radius: 999px; padding: 0.5rem 1.1rem;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.call-pill:hover { border-color: var(--coral); color: var(--text-hi); }
.call-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink-2); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text-hi);
  transition: transform .25s var(--ease), opacity .2s; border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu { display: none; }
.mobile-menu[data-open] {
  display: block; position: fixed; inset: 64px 0 0 0; z-index: 99;
  background: var(--ink-0); padding: 2rem var(--gutter);
}
.mobile-menu nav { display: grid; gap: 0.4rem; }
.mobile-menu a {
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  color: var(--text-hi); text-decoration: none; padding: 0.55rem 0;
  border-bottom: 1px solid var(--ink-2);
}
.mobile-menu a:hover { color: var(--coral); }
.mobile-menu .mobile-cta { color: var(--coral); border-bottom: none; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .call-pill { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 11vh, 7.5rem) clamp(3rem, 8vh, 6rem); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 82% 0%, rgba(252, 92, 101, 0.07), transparent 62%),
    radial-gradient(640px 400px at 4% 100%, rgba(252, 92, 101, 0.035), transparent 60%);
}
.hero > .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-sub { color: var(--text-dim); font-size: 1.125rem; margin-top: 1.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Console primitive ---------- */
.console {
  background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: var(--radius);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.6rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--ink-2);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); }
.console-dots span:first-child { background: var(--coral); }
.console-title {
  font-family: var(--display); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.console-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--coral);
  white-space: nowrap;
}
@media (min-width: 640px) {
  .console-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
.console-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.console-body { padding: clamp(1.1rem, 3vw, 1.75rem); }

/* live dot pulse — UK double-ring cadence (400 on, 200 off, 400 on, 2000 off = 3s loop) */
@media (prefers-reduced-motion: no-preference) {
  .dot-ring { animation: ukring 3s infinite; }
  @keyframes ukring {
    0%, 13.3% { opacity: 1; }      /* 0–400ms on */
    13.4%, 19.9% { opacity: .25; } /* 400–600 off */
    20%, 33.3% { opacity: 1; }     /* 600–1000 on */
    33.4%, 100% { opacity: .25; }  /* 1000–3000 off */
  }
}

/* ---------- Transcript ---------- */
.transcript { display: grid; gap: 0.8rem; }
.bubble { max-width: 92%; }
.bubble .speaker {
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
  display: block; margin-bottom: 0.3rem;
}
.bubble .line { font-size: 1rem; line-height: 1.55; color: var(--text-body); margin: 0; }
.bubble-ai { justify-self: start; }
.bubble-ai .line {
  background: var(--ink-2); border-radius: 4px 14px 14px 14px; padding: 0.7rem 0.95rem;
}
.bubble-ai .speaker { color: var(--coral); }
.bubble-caller { justify-self: end; text-align: right; }
.bubble-caller .line { padding: 0.15rem 0; color: var(--text-body); }

/* typed reveal (JS toggles data-shown per line; never hidden without JS) */
html.js .transcript[data-animate] .bubble { visibility: hidden; }
html.js .transcript[data-animate] .bubble[data-shown] { visibility: visible; }
.caret::after {
  content: ''; display: inline-block; width: 2px; height: 1em; background: var(--coral);
  margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .transcript[data-animate] .bubble { visibility: visible; }
  .caret::after { display: none; }
}
.answer-badge {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-dim);
}
.answer-badge b { color: var(--coral); font-variant-numeric: tabular-nums; }

/* ring pulse on the phone card before it answers */
@media (prefers-reduced-motion: no-preference) {
  .console[data-ringing] { animation: ringpulse 3s 2; }
  @keyframes ringpulse {
    0%, 13.3% { box-shadow: 0 0 0 1px var(--coral), 0 0 28px rgba(252,92,101,.35); }
    13.4%, 19.9% { box-shadow: 0 0 0 0 transparent; }
    20%, 33.3% { box-shadow: 0 0 0 1px var(--coral), 0 0 28px rgba(252,92,101,.35); }
    33.4%, 100% { box-shadow: 0 0 0 0 transparent; }
  }
}

/* ---------- Demo facade ---------- */
.demo-frame { position: relative; }
.demo-frame iframe {
  display: block; width: 100%; height: min(72vh, 620px); border: 0; background: var(--ink-1);
}
.facade {
  display: grid; place-items: center; text-align: center;
  padding: clamp(2.5rem, 8vh, 4.5rem) 1.5rem; min-height: 340px;
}
.facade .facade-kicker { color: var(--coral); font-family: var(--display); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.8rem; }
.facade h3 { margin-bottom: 0.4rem; }
.facade p { color: var(--text-dim); margin-bottom: 1.6rem; }
.demo-fallback { margin-top: 0.9rem; font-size: 0.875rem; color: var(--text-dim); }

/* ---------- Ledger split ---------- */
.ledger {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.ledger > .sticky-side { position: sticky; top: 96px; }
@media (max-width: 900px) { .ledger { grid-template-columns: 1fr; } .ledger > .sticky-side { position: static; } }

/* ---------- Cards ----------
   Explicit column counts so four cards never orphan into 3+1. */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color .25s;
}
.card { transition: border-color .25s, transform .3s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--coral) 45%, var(--ink-2)); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .card-tag {
  font-family: var(--display); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); margin: 0;
}
.card h3 { font-size: 1.25rem; margin: 0; }
.card p { color: var(--text-dim); font-size: 0.975rem; margin: 0; flex: 1; }
.card .card-cta {
  font-weight: 600; font-size: 0.9375rem; color: var(--text-hi);
  text-decoration: none; margin-top: 0.6rem;
}
.card .card-cta:hover { color: var(--coral); }

/* feature list (checkmarks) */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.feature-list li { padding-left: 1.7rem; position: relative; max-width: 62ch; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.feature-list b, .feature-list strong { color: var(--text-hi); }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.1rem; counter-reset: step; }
.step { background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: 1.6rem; }
.step .step-num {
  font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--coral);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* ---------- After-hours dial ---------- */
.dial-row { display: grid; gap: 1rem; margin-top: 1.5rem; }
.dial-clock {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--text-hi); font-variant-numeric: tabular-nums; line-height: 1;
}
.dial-clock .ampm-note { font-size: 1rem; font-weight: 500; color: var(--text-dim); margin-left: .5rem; letter-spacing: .04em; }
input[type="range"].dial {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-2) 100%); outline-offset: 6px; cursor: pointer;
}
input[type="range"].dial::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); border: 4px solid var(--ink-0); box-shadow: 0 0 0 1px var(--coral);
}
input[type="range"].dial::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--coral); border: 4px solid var(--ink-0); box-shadow: 0 0 0 1px var(--coral);
}
.dial-labels { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dial-state b { color: var(--coral); }

/* ---------- Scroll scene (homepage) ----------
   Default is the storyboard: every stage stacked and visible (mobile,
   reduced motion, no JS). The pinned scrub is a desktop enhancement. */
.scene { position: relative; }
.scene .sentinel { position: absolute; width: 1px; height: 1px; }
.scene-stage-copy > div { margin-bottom: 1.5rem; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html.js .scene .scene-runway { height: 210vh; }
  html.js .scene .scene-pin {
    position: sticky; top: 64px; min-height: calc(100vh - 64px);
    display: grid; align-content: center;
  }
  html.js .scene-stage-copy { display: grid; }
  html.js .scene-stage-copy > div {
    grid-area: 1 / 1; margin-bottom: 0; opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  html.js .scene[data-stage="0"] .stage-0, html.js .scene[data-stage="1"] .stage-1,
  html.js .scene[data-stage="2"] .stage-2, html.js .scene[data-stage="3"] .stage-3 {
    opacity: 1; visibility: visible; transition: opacity .45s var(--ease);
  }
  /* chips light up as their moment arrives */
  html.js .scene .effect-chip {
    opacity: .14; transform: translateY(6px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  html.js .scene[data-stage="0"] .effect-chip:nth-child(1),
  html.js .scene[data-stage="1"] .effect-chip:nth-child(-n+2),
  html.js .scene[data-stage="2"] .effect-chip:nth-child(-n+3),
  html.js .scene[data-stage="3"] .effect-chip:nth-child(-n+4) { opacity: 1; transform: none; }
}

/* side-effect chips in scene */
.effect-chip {
  display: flex; align-items: center; gap: 0.7rem; background: var(--ink-1);
  border: 1px solid var(--ink-2); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.9375rem;
}
.effect-chip .tick { color: var(--coral); font-weight: 700; }
.effect-chip time { margin-left: auto; color: var(--text-dim); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* ---------- Towns specimen ---------- */
.towns { display: flex; flex-direction: column; gap: 0.1em; }
.towns a {
  font-family: var(--display); font-weight: 700; color: var(--text-hi); text-decoration: none;
  line-height: 1.06; letter-spacing: -0.02em; transition: color .2s, transform .35s var(--ease); width: fit-content;
}
.towns a:hover { color: var(--coral); transform: translateX(10px); }
@media (prefers-reduced-motion: reduce) { .towns a:hover { transform: none; } }
.towns .t-1 { font-size: clamp(3rem, 9vw, 6.5rem); color: var(--coral); }
.towns .t-2 { font-size: clamp(2.2rem, 6.5vw, 4.5rem); }
.towns .t-3 { font-size: clamp(1.9rem, 5.5vw, 3.6rem); }
.towns .t-4 { font-size: clamp(1.7rem, 4.8vw, 3rem); }
.towns .t-5 { font-size: clamp(1.5rem, 4.2vw, 2.5rem); font-weight: 500; }
.towns .t-6 { font-size: clamp(1.35rem, 3.7vw, 2.1rem); font-weight: 500; }
.towns .t-7 { font-size: clamp(1.2rem, 3.2vw, 1.8rem); font-weight: 500; color: var(--text-body); }
.towns .t-8 { font-size: clamp(1.1rem, 2.8vw, 1.5rem); font-weight: 500; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.1rem; align-items: stretch; }
.plan {
  background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem;
}
.plan .plan-name { font-size: 1.4rem; margin: 0; }
.plan .plan-tag { color: var(--coral); font-style: italic; margin: 0; font-size: 0.975rem; }
.plan .plan-for { color: var(--text-dim); font-size: 0.9375rem; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; flex: 1; }
.plan li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
/* the inversion: recommended plan is the only light surface on the site */
.plan-invert { background: #f4f4f6; border-color: #f4f4f6; }
.plan-invert .plan-name, .plan-invert li, .plan-invert b { color: var(--ink-0); }
.plan-invert .plan-tag { color: #B02A35; }
.plan-invert .plan-for { color: #4c4e59; }
.plan-invert li::before { color: #B02A35; }
.plan-invert .btn-ghost { border-color: #c9cad2; color: var(--ink-0); }
.plan-invert .btn-ghost:hover { border-color: var(--coral-deep); color: var(--ink-0); }

.plan-invert :focus-visible { outline-color: #101116; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.7rem; max-width: 780px; }
.faq details { background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; font-weight: 600; color: var(--text-hi); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--coral); font-family: var(--display); font-weight: 700; font-size: 1.3rem; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.25rem 1.2rem; color: var(--text-body); }
.faq .faq-a p { margin: 0 0 0.6em; }

/* ---------- Missed-call calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.1rem; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-field { padding-block: 1.1rem; }
.calc-field + .calc-field { border-top: 1px solid var(--ink-2); }
.calc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.calc-label-row label { font-weight: 600; color: var(--text-hi); font-size: 1rem; }
.calc-label-row output {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--coral);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.calc-hint { font-size: 0.8425rem; color: var(--text-dim); margin: 0.55rem 0 0; }
.calc-result { position: sticky; top: 88px; }
.calc-result-label { color: var(--text-dim); font-size: 0.9375rem; margin-bottom: 0.4rem; }
.calc-big {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 8vw, 5.5rem); color: var(--text-hi); margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.calc-result-sub { color: var(--text-dim); font-size: 0.9375rem; }
.calc-result-sub b { color: var(--coral); font-variant-numeric: tabular-nums; }
.calc-rule { border: 0; border-top: 1px solid var(--ink-2); margin: 1.2rem 0; }
.calc-footnote { font-size: 0.875rem; color: var(--text-dim); margin: 0; }
@media (max-width: 900px) { .calc-result { position: static; } }

/* ---------- Mini console cross-link ---------- */
.mini-console { max-width: 640px; }
.mini-console .transcript { gap: 0.5rem; }
.mini-console .line { font-size: 0.9375rem; }

/* ---------- Positioning strip ---------- */
.strip {
  border-block: 1px solid var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; padding: 1.1rem var(--gutter);
  justify-content: center; font-size: 0.9rem; color: var(--text-dim);
}
.strip b { color: var(--text-body); font-weight: 600; }

/* ---------- Final CTA / contact ---------- */
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 320px at 90% -10%, rgba(252, 92, 101, 0.08), transparent 60%);
}
.cta-panel > * { position: relative; }

/* ---------- Reading progress ---------- */
.progress-line {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--coral); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 120; pointer-events: none;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--text-hi); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; background: var(--ink-1); border: 1px solid var(--ink-2); border-radius: 10px;
  color: var(--text-body); font: inherit; padding: 0.85rem 1rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 0.875rem; color: var(--text-dim); }

/* ---------- Giant tel footer ---------- */
.footer-mega { border-top: 1px solid var(--ink-2); padding-top: clamp(3rem, 8vh, 5rem); }
.footer-mega .closing-bubble { max-width: 560px; margin-bottom: 2.2rem; }
.footer-kicker {
  font-family: var(--display); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.6rem;
}
.tel-mega {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 9.5vw, 7.5rem); letter-spacing: -0.01em; line-height: 1;
  color: var(--text-hi); text-decoration: none; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 4px;
  transition: background-size .35s var(--ease); padding-bottom: 8px;
}
.tel-mega:hover { color: var(--text-hi); background-size: 100% 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink-2); margin-top: clamp(3rem, 8vh, 5rem); padding-block: 2.5rem 6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer .footer-desc { color: var(--text-dim); font-size: 0.9375rem; max-width: 34ch; }
.footer .footer-h { font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin: 0 0 0.8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: var(--text-body); text-decoration: none; font-size: 0.9375rem; }
.footer a:hover { color: var(--coral); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.8125rem; color: var(--text-dim); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } .footer { padding-bottom: 7rem; } }

/* ---------- Mobile sticky bar (first paint, load-bearing) ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-2);
  border-top: 1px solid var(--ink-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95rem 0.5rem; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.sticky-bar .bar-call { background: var(--ink-0); color: var(--text-hi); font-variant-numeric: tabular-nums; }
.sticky-bar .bar-demo { background: var(--coral); color: var(--ink-0); }
@media (max-width: 900px) { .sticky-bar { display: grid; } }

/* ---------- Reveal on scroll ----------
   Hidden state only applies once JS has stamped html.js — content is
   never invisible without a working script to reveal it. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  html.js [data-reveal].in-view { opacity: 1; transform: none; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.875rem; color: var(--text-dim); padding-top: 1.4rem; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }
.crumbs .sep { margin-inline: 0.5em; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: var(--sect) var(--gutter); }
.err-code { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 20vw, 11rem); color: var(--ink-2); line-height: 1; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dim { color: var(--text-dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw { max-width: 68ch; }
