/* =========================================================
   HALDEN — Dental AI Receptionist
   Design tokens, base styles, components
   ========================================================= */

:root {
  /* Palette — warm clinical, deep teal, gold restraint */
  --cream-50: #FBF8F1;          /* page bg */
  --cream-100: #F5EFE3;         /* surface */
  --cream-200: #ECE4D2;         /* surface alt */
  --line: #D9CFB8;              /* border */
  --line-strong: #C2B596;

  --ink-900: #0E2A30;           /* deep teal/navy — primary brand */
  --ink-800: #143A41;
  --ink-700: #1F4F58;
  --ink-600: #2C6772;
  --ink-500: #3F8390;
  --ink-300: #7AA5AD;

  --text: #1A2A2D;
  --text-muted: #5E6B6D;
  --text-faint: #94999B;

  --accent: #C68B3B;            /* gold/amber accent (restraint) */
  --accent-soft: #E5C58A;
  --accent-deep: #9A6724;

  --success: #2F7A55;
  --alert: #B14B2A;

  --shadow-sm: 0 1px 2px rgba(20,30,40,.06), 0 1px 1px rgba(20,30,40,.04);
  --shadow-md: 0 4px 14px rgba(20,30,40,.06), 0 2px 6px rgba(20,30,40,.04);
  --shadow-lg: 0 18px 44px -16px rgba(14,42,48,.30), 0 8px 22px -10px rgba(14,42,48,.18);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-display: "Cabinet Grotesk", "General Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "General Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --pad-x: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink-900); color: var(--cream-50); }

a { color: var(--ink-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
.display, .h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0;
}
.display { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.h-display { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.display__alt {
  display: block;
  color: var(--ink-600);
  font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.section--dark .kicker { color: var(--accent-soft); }
.section--dark .section__head--dark .kicker { color: var(--accent-soft); }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--cream-100); }
.section--accent { background: linear-gradient(180deg, var(--cream-100), var(--cream-50)); }
.section--dark {
  background: var(--ink-900);
  color: #E9DFC9;
  border-top: 1px solid var(--ink-800);
}
.section--dark .h-display,
.section--dark .display { color: var(--cream-50); }
.section--dark .section__sub { color: #B3BFC2; }

.section__head { max-width: 760px; margin: 0 0 56px; }
.section__head--dark .h-display { color: var(--cream-50); }
.section__sub {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--primary {
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--shadow-md);
}
.btn--primary:hover { background: var(--ink-800); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--cream-100); border-color: var(--ink-700); }
.section--dark .btn--ghost { color: var(--cream-50); border-color: rgba(255,255,255,.25); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.06); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-900);
}
.brand__mark { flex: 0 0 auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: var(--ink-900);
}
.brand--footer .brand__word { color: var(--cream-50); }

.nav__links {
  display: flex; gap: 28px;
  font-size: .96rem;
}
.nav__links a { color: var(--text); font-weight: 500; }
.nav__links a:hover { color: var(--ink-900); }

.nav__cta { display: flex; gap: 10px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad-x) 24px;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.nav__mobile a:last-child {
  margin-top: 12px; border-bottom: none;
  justify-content: center;
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 88px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream-100);
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(47,122,85,.18);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 22px;
}
.hero__bullets {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 10px;
  color: var(--text-muted);
  font-size: .96rem;
}
.hero__bullets li { display: flex; align-items: center; gap: 10px; }
.hero__bullets svg { width: 18px; height: 18px; color: var(--success); flex: 0 0 auto; }

/* hero panel */
.hero__panel {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.panel__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-200);
  font-size: .82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.panel__dots { display: inline-flex; gap: 5px; }
.panel__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.panel__dots span:first-child { background: var(--accent); }
.panel__title { color: var(--ink-900); font-weight: 500; }

.panel__body { padding: 22px; display: grid; gap: 16px; }

.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.metric {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}
.metric__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); font-family: var(--font-mono);
}
.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink-900);
  line-height: 1;
  margin: 8px 0 6px;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.metric__delta {
  font-size: .78rem; color: var(--text-muted);
}
.delta-up { color: var(--success); }

.callcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--cream-50);
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: start;
}
.callcard--alt {
  background: #FFF6EE;
  border-color: #E9C9A8;
}
.callcard__time {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  padding-top: 6px;
}
.callcard__row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag {
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 500;
}
.tag--new { background: var(--ink-900); color: var(--cream-50); border-color: transparent; }
.tag--alert { background: var(--alert); color: #fff; border-color: transparent; }
.callcard__line {
  margin: 4px 0 8px;
  font-size: .95rem;
  color: var(--text);
}
.callcard__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .metric__value { font-size: 1.6rem; }
  .callcard { grid-template-columns: 62px 1fr; }
}
@media (max-width: 520px) {
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric:last-child { grid-column: span 2; }
}

/* logo strip */
.logo-strip {
  border-top: 1px dashed var(--line);
  padding: 28px 0 0;
  margin-bottom: 0;
}
.logo-strip__label {
  text-align: center; margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.logo-strip__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px; padding-bottom: 36px;
  color: var(--ink-800);
  font-weight: 500;
  font-size: 1rem;
}
.logo-strip__row .dot-sep { color: var(--line-strong); }

/* ---------- problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.problem-card__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent-deep);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-900);
  line-height: 1.25;
}
.problem-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }

@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-soft);
  font-size: 1.7rem;
  margin-bottom: 8px;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin: 0 0 6px; color: var(--cream-50);
}
.step p { margin: 0; color: #B3BFC2; font-size: .92rem; }

@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .steps { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover { transform: translateY(-2px); border-color: var(--ink-700); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 28px; height: 28px;
  color: var(--ink-700);
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin: 0 0 8px; color: var(--ink-900);
}
.feature p { margin: 0; color: var(--text-muted); font-size: .95rem; }

@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- ROI ---------- */
.roi {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.roi__assumptions {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 10px;
  font-size: .94rem; color: var(--text-muted);
  border-top: 1px solid var(--line); padding-top: 18px;
}
.roi__assumptions strong { color: var(--ink-900); font-weight: 600; }

.roi__calc {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.roi__head {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 18px;
  color: var(--ink-900);
}

.field {
  display: block; margin-bottom: 18px;
}
.field__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .94rem; color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}
.field__hint { color: var(--text-faint); font-weight: 400; font-size: .85rem; }
.field__label output {
  font-family: var(--font-mono);
  background: var(--ink-900);
  color: var(--cream-50);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .85rem;
}
.field__scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint);
  margin-top: 4px;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--cream-200);
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 3px solid var(--cream-50);
  box-shadow: 0 0 0 1px var(--ink-900), var(--shadow-md);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 3px solid var(--cream-50);
  cursor: pointer;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }

.select, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(20,58,65,.12);
}
textarea { resize: vertical; min-height: 88px; }

.roi__results {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 20px 0 4px;
}
.roi__stat {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.roi__stat-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.roi__stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink-900);
  margin: 6px 0 4px;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.roi__stat-value--accent { color: var(--accent-deep); }
.roi__stat-sub { font-size: .82rem; color: var(--text-muted); }

.roi__cta { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .roi { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .roi__results { grid-template-columns: 1fr; }
}

/* ---------- pricing ---------- */
.billing-toggle {
  display: inline-flex;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 20px;
}
.billing-toggle__btn {
  border: 0; background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.billing-toggle__btn.is-active {
  background: var(--ink-900);
  color: var(--cream-50);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plan {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.plan:hover { transform: translateY(-2px); border-color: var(--ink-700); box-shadow: var(--shadow-md); }
.plan--featured {
  background: var(--ink-900);
  color: var(--cream-50);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__amount { color: var(--cream-50); }
.plan--featured .plan__tag,
.plan--featured .plan__setup,
.plan--featured .plan__overage { color: rgba(255,255,255,.7); }
.plan--featured .plan__list li { color: rgba(255,255,255,.92); }
.plan--featured .plan__list li::before { background: var(--accent); }
.plan--featured .btn--primary { background: var(--accent); color: var(--ink-900); }
.plan--featured .btn--primary:hover { background: var(--accent-soft); }

.plan--quiet { background: transparent; border-style: dashed; }

.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink-900);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(154,103,36,.35);
}
.plan--featured { padding-top: 36px; }
.plan__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.plan__tag {
  font-size: .86rem; color: var(--text-muted); margin: 0 0 18px;
}
.plan__price {
  display: flex; align-items: baseline; gap: 2px;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.plan__price--quiet .plan__amount { font-size: 1.6rem; }
.plan__currency { font-size: 1.4rem; font-weight: 600; }
.plan__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.plan__per { color: var(--text-muted); margin-left: 6px; font-size: .92rem; }
.plan__setup {
  font-size: .85rem; color: var(--text-muted); margin: 0 0 18px;
}
.plan__list {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; gap: 10px;
  font-size: .94rem;
}
.plan__list li {
  position: relative; padding-left: 22px;
  color: var(--text);
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
}
.plan__overage {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.plan__cta { margin-top: auto; justify-content: center; }

.pricing__note {
  text-align: center;
  margin: 36px auto 0;
  max-width: 64ch;
  font-size: .94rem;
  color: var(--text-muted);
}

@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- compare table ---------- */
.compare-table {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.compare-row:first-child { border-top: 0; }
.compare-row--head {
  background: var(--cream-100);
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.compare-row--head .compare-mine {
  color: var(--ink-900);
  font-weight: 700;
}
.compare-label {
  font-weight: 600; color: var(--ink-900);
  font-size: .98rem;
}
.compare-mine { font-weight: 600; }

.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  background: var(--cream-200);
  color: var(--text);
  border: 1px solid var(--line);
}
.pill--yes { background: #DCEDE3; color: #1F5A3D; border-color: #B7D5C3; }
.pill--no { background: #F2E0DA; color: #8A3A21; border-color: #E0BFB3; }
.pill--partial { background: #F1E6CB; color: #715318; border-color: #DCC691; }

@media (max-width: 900px) {
  .compare-row {
    grid-template-columns: 1fr 1fr;
    padding: 16px 18px;
  }
  .compare-row--head { display: none; }
  .compare-label { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
  .compare-mine::before { content: "Halden: "; color: var(--text-muted); font-weight: 500; }
  .compare-row [role="cell"]:nth-child(3)::before { content: "Generic AI: "; color: var(--text-muted); font-weight: 500; }
  .compare-row [role="cell"]:nth-child(4)::before { content: "Answering svc: "; color: var(--text-muted); font-weight: 500; }
  .compare-row [role="cell"]:nth-child(5)::before { content: "Voicemail: "; color: var(--text-muted); font-weight: 500; }
}

/* ---------- niches ---------- */
.niches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.niche {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.niche:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.niche__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(198,139,59,.10);
  border: 1px solid rgba(198,139,59,.30);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.niche h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 0 0 8px;
  color: var(--ink-900);
  line-height: 1.2;
}
.niche p { margin: 0 0 14px; color: var(--text-muted); font-size: .95rem; }
.niche__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
  font-size: .9rem; color: var(--text);
}
.niche__list li {
  position: relative; padding-left: 16px;
}
.niche__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--accent);
}

@media (max-width: 900px) { .niches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .niches { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.timeline__item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.timeline__item--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-900);
}
.timeline__item--accent .timeline__day { color: rgba(14,42,48,.7); }
.timeline__item--accent h3 { color: var(--ink-900); }
.timeline__item--accent p { color: rgba(14,42,48,.78); }
.timeline__day {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.timeline__item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--cream-50);
}
.timeline__item p {
  margin: 0; color: #B3BFC2; font-size: .92rem;
}

@media (max-width: 1080px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .timeline { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: grid; gap: 10px;
}
.faq__item {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq__item[open] { background: var(--cream-50); border-color: var(--ink-300); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-700);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { content: "−"; }
.faq__body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
}
.faq__body p { margin: 0; }

/* ---------- contact ---------- */
.section--contact {
  background: var(--cream-100);
}
.contact {
  display: grid;
  grid-template-columns: .85fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact__list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
  font-size: .96rem;
  color: var(--text-muted);
}
.contact__list strong { color: var(--ink-900); font-weight: 600; }

.contact__form {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field__error {
  display: block;
  font-size: .82rem;
  color: var(--alert);
  margin-top: 6px;
  min-height: 1em;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--alert);
  box-shadow: 0 0 0 3px rgba(177,75,42,.12);
}
.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 8px; flex-wrap: wrap;
}
.form-foot__alt { font-size: .9rem; color: var(--text-muted); margin: 0; }
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: #DCEDE3;
  border: 1px solid #B7D5C3;
  color: #1F5A3D;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink-900);
  color: #B3BFC2;
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}
.footer__tag { margin: 16px 0 0; max-width: 38ch; font-size: .96rem; color: #B3BFC2; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer__cols h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream-50);
  margin: 0 0 14px;
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer__cols a { color: #B3BFC2; }
.footer__cols a:hover { color: var(--cream-50); }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0 32px;
  font-size: .85rem;
  color: #8A9699;
}
.footer__legal-inner {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__legal p { margin: 0; max-width: 64ch; }
.footer__disclaimer { font-size: .78rem; color: #6F7C7F; }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; padding-bottom: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- entry animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}
