/* =========================================================
   Patient Front Desk — BuildspaceLabs
   Design system: "The paperwork is done before the patient
   walks in." Clinical-operations, calm-blue, schedule-driven.
   ========================================================= */

:root {
  /* Palette */
  --base: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --ink: #0F1B2D;
  --ink-2: #5A6B80;
  --hair: #E5EAF1;
  --hair-strong: #D6DEEA;

  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-soft: #EEF3FF;
  --blue-tint: #DCE7FF;

  --green: #16A34A;
  --green-soft: #E7F6ED;
  --amber: #B45309;
  --amber-bg: #FDF2E2;
  --amber-line: #F0C98A;

  /* Type */
  --serif: 'Manrope', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15, 27, 45, .05), 0 1px 1px rgba(15, 27, 45, .03);
  --sh-md: 0 4px 14px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .05);
  --sh-lg: 0 18px 44px -14px rgba(15, 27, 45, .16), 0 6px 16px -8px rgba(15, 27, 45, .10);
  --sh-xl: 0 40px 80px -24px rgba(15, 27, 45, .22), 0 12px 28px -12px rgba(15, 27, 45, .12);
  --sh-blue: 0 12px 30px -10px rgba(37, 99, 235, .40);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

::selection { background: var(--blue-tint); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 12.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 44px); margin-top: 16px; }
.section-head p { color: var(--ink-2); font-size: clamp(16px, 2vw, 18.5px); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(37, 99, 235, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hair-strong);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hair); background: rgba(247, 249, 252, .9); }
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 16px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blue), #4F86FF);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-blue);
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand small { display: block; font-size: 11.5px; font-weight: 550; color: var(--ink-2); letter-spacing: .02em; }
.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.built-by {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.built-by:hover { color: var(--blue); border-color: var(--blue-tint); }
.built-by svg { width: 13px; height: 13px; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .built-by { display: inline-flex; }
}
@media (min-width: 640px) { .nav-right .btn { display: inline-flex; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 76px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 460px at 78% -8%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(620px 420px at 4% 8%, rgba(22, 163, 74, .06), transparent 58%);
  pointer-events: none;
}
.hero::after {
  /* subtle scheduling grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 68%);
  opacity: .5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 5vw, 60px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.02fr 1.15fr; }
}
.hero-copy { max-width: 560px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--sh-sm);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}
.pill b { color: var(--ink); font-weight: 650; }
.pill .dot {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--green-soft);
  display: grid; place-items: center;
}
.pill .dot svg { width: 13px; height: 13px; color: var(--green); }
h1.hero-title {
  font-size: clamp(38px, 6.6vw, 66px);
  margin-top: 22px;
  line-height: 1.02;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--blue) 20%, #5B93FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16.5px, 2.2vw, 19.5px);
  color: var(--ink-2);
  max-width: 500px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--blue); flex: none; }
.hero-trust .sep { width: 1px; height: 15px; background: var(--hair-strong); }

/* ---------- Signature: Waiting-room board ---------- */
.board {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: 18px;
  overflow: hidden;
}
.board::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,99,235,.03), transparent 40%);
  pointer-events: none;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid var(--hair);
}
.board-title { display: flex; align-items: center; gap: 11px; }
.board-title .ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue);
}
.board-title .ic svg { width: 18px; height: 18px; }
.board-title h3 { font-size: 15px; }
.board-title p { font-size: 12px; color: var(--ink-2); font-family: var(--sans); font-weight: 500; }
.board-counter {
  text-align: right;
  font-family: var(--serif);
}
.board-counter .big {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.board-counter .big em { color: var(--ink-2); font-style: normal; font-weight: 700; }
.board-counter small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-family: var(--sans); font-weight: 600; margin-top: 4px; }

.board-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--hair);
  margin: 14px 8px 6px;
  overflow: hidden;
}
.board-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #34C56E);
  transition: width 1.4s var(--ease);
}

.board-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 8px 8px;
}
@media (min-width: 480px) { .board-cols { grid-template-columns: 1.5fr 1fr; } }
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  padding: 0 2px;
}
.col-head .tag { font-family: var(--sans); }
.col-head .cnt {
  font-variant-numeric: tabular-nums;
  background: var(--hair);
  color: var(--ink-2);
  padding: 2px 8px; border-radius: 999px; font-size: 11px;
}
.col-exceptions .col-head .cnt { background: var(--amber-bg); color: var(--amber); }

.queue { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }

.appt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.appt.in { opacity: 1; transform: none; }
.appt .time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  width: 46px; flex: none;
  font-family: var(--serif);
}
.appt .who { flex: 1; min-width: 0; }
.appt .who b { font-size: 12.5px; font-weight: 650; display: block; }
.appt .who span { font-size: 11px; color: var(--ink-2); }
.appt .status {
  width: 24px; height: 24px; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  background: var(--hair);
  color: var(--ink-2);
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.appt .status svg { width: 13px; height: 13px; }
.appt .status .spin { animation: spin 1s linear infinite; }
/* handled state */
.appt.handled { border-color: rgba(22,163,74,.32); background: linear-gradient(180deg, var(--green-soft), var(--surface)); }
.appt.handled .status { background: var(--green); color: #fff; transform: scale(1.06); }
.appt.handled .who b::after {
  content: "AI-handled";
  margin-left: 7px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--green);
  background: rgba(22,163,74,.12);
  padding: 1px 6px; border-radius: 999px;
  vertical-align: middle;
}
/* flip pulse */
.appt.flip { animation: flip .5s var(--ease); }
@keyframes flip {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(-14deg) translateY(-2px); }
  100% { transform: rotateX(0); }
}
.appt.exception { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-bg), var(--surface)); }
.appt.exception .status { background: var(--amber-bg); color: var(--amber); }
.appt.exception .who b::after {
  content: "needs review";
  margin-left: 7px;
  font-size: 9.5px; font-weight: 700;
  color: var(--amber);
  background: rgba(180,83,9,.10);
  padding: 1px 6px; border-radius: 999px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.board-foot {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 8px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 11.5px; color: var(--ink-2); font-weight: 500;
}
.board-foot svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.board-foot b { color: var(--ink); font-weight: 650; }

/* Floating chips near board */
.board-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--sh-lg);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px; font-weight: 600;
  z-index: 3;
}
.board-chip svg { width: 15px; height: 15px; flex: none; }
.board-chip.c-ins { top: -14px; right: 22px; color: var(--blue); }
.board-chip.c-ins svg { color: var(--blue); }
.board-chip.c-time { bottom: -14px; left: 18px; color: var(--green); }
.board-chip.c-time svg { color: var(--green); }
@media (max-width: 560px) { .board-chip { display: none; } }
.board-wrap { position: relative; }

/* =========================================================
   STATS BAND
   ========================================================= */
.band {
  border-block: 1px solid var(--hair);
  background: var(--surface);
}
.band .wrap { padding-block: clamp(38px, 5vw, 56px); }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: 12px clamp(6px, 3vw, 30px);
  position: relative;
}
@media (min-width: 720px) {
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--hair);
  }
}
.stat .k {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.stat .k .sm { font-size: .5em; color: var(--blue); vertical-align: super; margin-left: 2px; }
.stat.green .k { color: var(--green); }
.stat .lbl { margin-top: 12px; font-weight: 650; font-size: 15px; }
.stat .sub { margin-top: 4px; color: var(--ink-2); font-size: 14px; }

/* =========================================================
   FEATURES — "What it handles before arrival"
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 52px;
}
@media (min-width: 720px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--hair-strong); }
.feature:hover::after { transform: scaleX(1); }
.feature .ficon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue);
  margin-bottom: 20px;
}
.feature .ficon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.feature ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.feature li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink); align-items: flex-start; }
.feature li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 2px; }

/* =========================================================
   HOW THE DAY RUNS — flow
   ========================================================= */
.flow-section { background: var(--surface); border-block: 1px solid var(--hair); }
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 52px;
  counter-reset: step;
}
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  counter-increment: step;
  overflow: hidden;
}
.step .snum {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 13px;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
}
.step .snum::before {
  content: "0" counter(step);
  font-variant-numeric: tabular-nums;
  background: var(--blue);
  color: #fff;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px;
}
.step.last .snum, .step.last .snum::before { }
.step.last .snum { color: var(--amber); }
.step.last .snum::before { background: var(--amber); }
.step .sic { margin: 18px 0 14px; color: var(--ink); }
.step .sic svg { width: 26px; height: 26px; }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.step .arrow {
  display: none;
}
@media (min-width: 1000px) {
  .step:not(.last) .arrow {
    display: block;
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--hair-strong);
  }
  .step .arrow svg { width: 22px; height: 22px; }
}
.step.last { background: linear-gradient(180deg, var(--amber-bg), var(--surface-2)); border-color: var(--amber-line); }

/* =========================================================
   PRODUCT TOUR — screenshots
   ========================================================= */
.tour { display: flex; flex-direction: column; gap: clamp(52px, 8vw, 92px); margin-top: 60px; }
.shot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 940px) {
  .shot-row { grid-template-columns: 1fr 1.35fr; }
  .shot-row.flip { grid-template-columns: 1.35fr 1fr; }
  .shot-row.flip .shot-copy { order: 2; }
}
.shot-copy .knum {
  font-family: var(--serif); font-weight: 800; font-size: 13px; color: var(--blue);
  letter-spacing: .04em;
}
.shot-copy h3 { font-size: clamp(22px, 3vw, 30px); margin-top: 12px; }
.shot-copy p { color: var(--ink-2); margin-top: 14px; font-size: 16px; }
.shot-copy .feat-line { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; font-weight: 550; }
.shot-copy .feat-line svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.frame-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface-2);
}
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--hair-strong); display: block; }
.frame-bar .url {
  flex: 1;
  font-size: 11.5px; color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 7px;
  padding: 4px 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  max-width: 320px; margin-inline: auto;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.frame-bar .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); font-weight: 600; }
.frame-bar .live i { width: 7px; height: 7px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.frame img { width: 100%; display: block; }
.shot-cap {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 8px;
}
.shot-cap svg { width: 15px; height: 15px; color: var(--blue); flex: none; margin-top: 2px; }

/* =========================================================
   EXCEPTIONS BAND
   ========================================================= */
.exc-band {
  background:
    radial-gradient(700px 300px at 85% 10%, rgba(37,99,235,.14), transparent 60%),
    linear-gradient(135deg, #0F1B2D, #16233A);
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.exc-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 20% 30%, #000, transparent 70%);
}
.exc-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
}
@media (min-width: 900px) { .exc-grid { grid-template-columns: 1.1fr .9fr; } }
.exc-copy .eyebrow { color: #7FA9FF; }
.exc-copy h2 { color: #fff; font-size: clamp(28px, 4.4vw, 42px); margin-top: 16px; }
.exc-copy p { color: rgba(255,255,255,.72); margin-top: 18px; font-size: 17px; max-width: 460px; }
.exc-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.exc-points li { display: flex; gap: 12px; font-size: 15px; color: rgba(255,255,255,.9); }
.exc-points svg { width: 20px; height: 20px; color: #34C56E; flex: none; margin-top: 1px; }

/* funnel viz */
.funnel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.funnel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
  font-weight: 600;
}
.funnel-row .fnum { font-family: var(--serif); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.funnel-row .flbl { font-size: 13.5px; opacity: .9; }
.funnel-row.f1 { background: rgba(255,255,255,.08); width: 100%; }
.funnel-row.f2 { background: rgba(22,163,74,.22); border: 1px solid rgba(52,197,110,.4); width: 84%; }
.funnel-row.f3 { background: rgba(180,131,9,.20); border: 1px solid rgba(240,201,138,.4); width: 40%; margin-bottom: 0; }
.funnel-row .fnum.g { color: #58E08A; }
.funnel-row .fnum.a { color: #F5C87E; }
.funnel-cap { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; }

/* =========================================================
   TECH CHIPS
   ========================================================= */
.tech-inner { text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--blue-tint); }
.chip svg { width: 16px; height: 16px; color: var(--blue); }

/* =========================================================
   CTA
   ========================================================= */
.cta-section .wrap { }
.cta-card {
  position: relative;
  background:
    radial-gradient(500px 300px at 80% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, var(--blue), #1E40AF);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 90% 90%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 90% 90%, #000, transparent 65%);
}
.cta-card .inner { position: relative; max-width: 560px; }
.cta-card h2 { font-size: clamp(28px, 4.6vw, 44px); color: #fff; }
.cta-card p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.86); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-card .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-card .btn-primary:hover { background: #fff; color: var(--blue-hover); }
.cta-card .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.cta-card .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note { margin-top: 20px; font-size: 13.5px; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; }
.cta-note svg { width: 15px; height: 15px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--hair);
  padding-block: clamp(48px, 7vw, 72px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--ink-2); font-size: 14.5px; max-width: 320px; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 11px; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--blue); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.credit { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.bs-lockup {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink);
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--hair);
  background: var(--surface-2);
  transition: border-color .2s var(--ease);
}
.bs-lockup:hover { border-color: var(--blue-tint); }
.bs-lockup .bs {
  font-family: var(--serif); font-weight: 800; font-size: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 6px; border-radius: 6px;
}
.credit-line { font-size: 13px; color: var(--ink-2); }
.foot-bottom .legal { font-size: 13px; color: var(--ink-2); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.page-hero {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(20px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 340px at 80% -10%, rgba(37,99,235,.1), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 54px); margin-top: 18px; max-width: 12ch; }
.page-hero p { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 19px); margin-top: 18px; max-width: 500px; }

.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: clamp(64px, 9vw, 110px);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--sh-lg);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.field label .req { color: var(--blue); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 15.5px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #97A4B5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; gap: 18px; } }
.form-card .btn-primary { width: 100%; margin-top: 6px; }
.form-reassure {
  margin-top: 16px; font-size: 13px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; justify-content: center; text-align: center;
}
.form-reassure svg { width: 15px; height: 15px; color: var(--green); flex: none; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}
.aside-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.aside-card h3 .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.aside-card h3 .ic svg { width: 18px; height: 18px; }
.aside-card p { color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.aside-card a.link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; font-weight: 650; color: var(--blue); font-size: 14.5px;
}
.aside-card a.link svg { width: 15px; height: 15px; }
.aside-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.aside-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); align-items: flex-start; }
.aside-list svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
.thanks {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.thanks::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% 0%, rgba(22,163,74,.09), transparent 60%);
  pointer-events: none;
}
.thanks .inner { position: relative; max-width: 520px; }
.success-badge {
  width: 84px; height: 84px; border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(22,163,74,.25);
  display: grid; place-items: center;
  margin: 0 auto 28px;
  color: var(--green);
  animation: pop .6s var(--ease);
}
.success-badge svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.thanks h1 { font-size: clamp(30px, 5vw, 46px); }
.thanks p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.thanks .email-line { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.thanks .email-line a { color: var(--blue); font-weight: 600; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal, .appt, .board-progress i { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .appt { opacity: 1 !important; transform: none !important; }
  .appt .status .spin { animation: none !important; }
  .success-badge { animation: none !important; }
  .appt.flip { animation: none !important; }
}
