/* ============================================================
   SECTIONS — page-level compositions built from components
   ============================================================ */

/* ---------- Hero ---------- */
/* Measured against synthesia.io: badge sits 40px below the nav, not a
   screenful of dead air. Internal gaps are unequal: 16 / 16 / 24. */
.hero {
  position: relative;
  padding-block: var(--space-5) var(--space-6);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -140px 0 auto 0;
  height: 900px;
  background:
    radial-gradient(70% 55% at 50% 8%, rgba(178, 184, 166, 0.28), rgba(255,255,255,0) 72%),
    linear-gradient(180deg, var(--tint-honey) 0%, rgba(255, 255, 255, 0) 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; }
/* Four distinct, tightening gaps: badge bonds to the headline, air grows downward */
.hero-copy .hero-sub { margin-top: var(--space-1); }
.hero-copy .hero-actions { margin-top: var(--space-2); }
.hero-title { max-width: var(--measure-display); }
.hero-title .text-highlight { white-space: nowrap; }
.hero-sub {
  max-width: var(--measure-lead);
  color: var(--text-muted);
  font-size: var(--fs-subheading-sm);
  line-height: var(--lh-subheading-sm);
  letter-spacing: var(--ls-subheading-sm);
  font-weight: var(--fw-regular);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust { margin-top: 4px; }
.hero-media { margin-top: var(--space-7); }
.hero-video {
  isolation: isolate;
  background: var(--bg-inverse);
  box-shadow: 0 22px 60px rgba(20, 48, 63, 0.18), var(--shadow-card-border);
}
.wistia_responsive_padding {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.wistia_responsive_wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wistia_embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-inverse);
}

/* Hero variant: copy left, media right */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  align-items: center;
}
.hero-split .hero-copy { align-items: flex-start; text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; }
@media (max-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* ---------- Section heading block ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-head .section-title { max-width: var(--measure-heading); }
.section-head .section-sub { max-width: var(--measure-lead); color: var(--text-muted); }
.section-head-left { align-items: flex-start; text-align: left; }

/* Row head: heading left, action right, on one baseline */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  text-align: left;
  margin-bottom: var(--space-6);
}
.section-head-row .section-title { max-width: var(--measure-heading); }
.section-head-row .section-sub { max-width: var(--measure-lead); color: var(--text-muted); }
@media (max-width: 720px) {
  .section-head-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* Column rules instead of card chrome - a different band composition */
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.rule-grid > * { padding: 0 var(--space-4); border-left: 1px solid var(--border); }
.rule-grid > *:first-child { padding-left: 0; border-left: 0; }
.rule-grid > *:last-child { padding-right: 0; }
.rule-grid .btn-ghost { align-self: flex-start; }
.split .stack > .btn-ghost { align-self: flex-start; }
@media (max-width: 900px) {
  .rule-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .rule-grid > * { padding: 0 0 var(--space-4); border-left: 0; border-bottom: 1px solid var(--border); }
  .rule-grid > *:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- Pain grid ----------
   A 2x2 pain-point block. Measured against bar-struggle.md: four equal cards,
   32px gutter and row gap, three type sizes only, interior rhythm 32/24/16. */
.section-head-tight { margin-bottom: var(--space-6); }
.section-head-tight .section-title { max-width: var(--measure-heading); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  /* Narrower than the 1216 column on purpose: at full width the cards stretch
     to a 2.7:1 letterbox with a dead third to the right of every line. */
  max-width: 1104px;  /* 1216 - 56 each side, both on the 8 grid */
  margin-inline: auto;
}
.pain-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-5);
}
/* .card-title inherits the 1.5 body line-height and .card-body the 16px
   tracking; both are pinned here to their own rows of the type scale. */
.pain-card .card-title { margin-top: var(--space-3); line-height: var(--lh-subheading-sm); }
.pain-card .card-body { margin-top: var(--space-2); letter-spacing: var(--ls-body-sm); }

@media (max-width: 1024px) {
  .pain-card { padding: var(--space-4); }
  .pain-grid { padding-inline: var(--space-2); }
}
@media (max-width: 860px) {
  /* the extra edge clearance is a two-column concern only */
  .pain-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); max-width: 640px; padding-inline: 0; }
  .pain-card { padding: var(--space-4); }
}
/* The global heading tokens step to 44px at 900 and 32px at 720, neither of
   which is a row of the scale; this section walks down real rows instead. */
@media (max-width: 900px) {
  .section-head-tight .section-title {
    font-size: 3.5rem; line-height: 1.04; letter-spacing: -2.24px;
  }
}
@media (max-width: 720px) {
  .section-head-tight .section-title {
    max-width: none;
    font-size: 2.5rem; line-height: 1.1; letter-spacing: -1.6px;
  }
}

/* Dark variant of the pain grid: value contrast instead of a shadow, exactly
   as the system requires on dark surfaces (sage accents, never steel). */
.section-inverse .pain-card {
  background: var(--navy-800);
  box-shadow: 0 0 0 1px rgba(178, 184, 166, 0.18);
}
.section-inverse .pain-card .card-title { color: var(--white); }
.section-inverse .pain-card .card-body { color: var(--text-inverse-mu); }
/* Solid sage chip so the accent registers across the band; the glyph is
   --accent, whose licensed use is icon accents. It sits on the sage chip,
   not on the navy ground, so it clears contrast at 4.5:1. */
.section-inverse .pain-card .icon-tile {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: center;
}

/* ---------- Founder story ---------- */
.founder-story {
  position: relative;
  overflow: hidden;
}
.founder-story::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -220px;
  border-radius: var(--radius-full);
  background: rgba(178, 184, 166, 0.22);
  pointer-events: none;
}
.founder-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
  gap: clamp(var(--space-6), 8vw, 112px);
  align-items: center;
}
.founder-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.founder-copy .eyebrow {
  gap: 8px;
}
.founder-copy .eyebrow svg {
  width: 14px;
  height: 14px;
}
.founder-title {
  max-width: 780px;
  margin-top: var(--space-4);
}
.founder-narrative {
  display: grid;
  gap: 12px;
  max-width: 670px;
  margin-top: var(--space-4);
  color: var(--text-body);
  font-size: var(--fs-subheading-sm);
  line-height: 1.55;
}
.founder-conviction {
  margin-top: var(--space-3);
  color: var(--accent);
  font-size: var(--fs-subheading-sm);
  line-height: var(--lh-subheading-sm);
  font-weight: var(--fw-medium);
}
.founder-promise {
  position: relative;
  max-width: 680px;
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6);
  overflow: hidden;
  border: 1px solid rgba(42, 75, 101, 0.14);
  border-radius: var(--radius-btn);
  background: linear-gradient(110deg, var(--steel-200), rgba(255, 255, 255, 0.68));
  color: var(--text-body);
  font-size: var(--fs-subheading-sm);
  line-height: 1.5;
}
.founder-promise::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.founder-promise-mark {
  position: absolute;
  top: 11px;
  left: 18px;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.7;
}
.founder-card {
  width: 100%;
  max-width: 410px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.founder-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 4.15;
  overflow: hidden;
  background: var(--steel-200);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  transform: scale(1.07);
}
.founder-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(20, 48, 63, 0.35));
  pointer-events: none;
}
.founder-photo-label {
  position: absolute;
  z-index: 1;
  left: var(--space-2);
  bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.founder-photo-label svg {
  width: 13px;
  height: 13px;
}
.founder-card-body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
}
.founder-name {
  color: var(--text-strong);
  font-size: var(--fs-subheading);
  line-height: var(--lh-subheading);
  font-weight: var(--fw-medium);
}
.founder-role,
.founder-card-note {
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}
.founder-card-note {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.founder-cta {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .founder-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: var(--space-5);
  }
  .founder-title { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
  .founder-narrative,
  .founder-conviction,
  .founder-promise { font-size: var(--fs-body); }
}

@media (max-width: 760px) {
  .founder-layout { grid-template-columns: minmax(0, 1fr); }
  .founder-card { max-width: 520px; justify-self: stretch; }
  .founder-photo-wrap { aspect-ratio: 4 / 3.6; }
}

@media (max-width: 520px) {
  .founder-title { margin-top: var(--space-3); }
  .founder-narrative { margin-top: var(--space-3); }
  .founder-promise { padding: var(--space-3) var(--space-3) var(--space-3) 42px; }
  .founder-promise-mark { left: 14px; }
  .founder-photo-wrap { aspect-ratio: 1 / 1.02; }
}
.split-reverse .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .split-reverse .split-media { order: 0; }
}

/* ---------- Feature card grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- System showcase ---------- */
.system-showcase {
  position: relative;
  overflow: hidden;
}
.system-showcase::before,
.system-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  width: 320px;
  height: 190px;
  opacity: 0.32;
  background-image: radial-gradient(circle, var(--accent-soft) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  pointer-events: none;
}
.system-showcase::before { left: 0; }
.system-showcase::after { right: 0; transform: scaleX(-1); }
.system-showcase > .container { position: relative; }
.system-showcase-head { margin-bottom: var(--space-7); }
.system-showcase-head .eyebrow { gap: 8px; }
.system-showcase-head .eyebrow svg { width: 14px; height: 14px; }
.system-showcase-head .section-title { max-width: 830px; }
.system-showcase-head .section-title span { color: var(--accent-soft); }
.system-showcase-head .section-sub { max-width: 720px; }

.system-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.system-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 184, 166, 0.22);
  border-radius: 18px;
  background: var(--navy-800);
}
.system-visual {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 278px;
  padding: var(--space-4);
  overflow: hidden;
  border-bottom: 1px solid rgba(178, 184, 166, 0.16);
  background:
    radial-gradient(circle at 50% 45%, rgba(178, 184, 166, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
}
.system-visual::before {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border-radius: var(--radius-full);
  background: rgba(178, 184, 166, 0.07);
  filter: blur(34px);
  pointer-events: none;
}
.system-card-copy {
  min-height: 152px;
  padding: var(--space-3);
}
.system-card-copy h3 {
  color: var(--white);
  font-size: var(--fs-subheading);
  line-height: var(--lh-subheading);
  letter-spacing: var(--ls-subheading);
}
.system-card-copy p {
  margin-top: 10px;
  color: var(--text-inverse-mu);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}
.system-visual svg { width: 16px; height: 16px; }
.ui-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(178, 184, 166, 0.18);
  color: var(--accent-soft);
}

/* Calendar */
.mini-calendar { position: relative; z-index: 1; display: grid; gap: 12px; width: 100%; }
.calendar-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.calendar-days span {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  padding: 10px 3px;
  border: 1px solid rgba(178, 184, 166, 0.15);
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
  color: var(--text-inverse-mu);
  font-size: var(--fs-caption);
}
.calendar-days small { opacity: 0.7; font-size: 9px; text-transform: uppercase; }
.calendar-days .is-active { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--navy-900); font-weight: var(--fw-medium); }
.calendar-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 184, 166, 0.22);
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
.calendar-alert > span:nth-child(2) { display: grid; flex: 1; font-size: 12px; line-height: 1.4; }
.calendar-alert small { color: var(--accent-soft); font-size: 10px; font-weight: var(--fw-medium); text-transform: uppercase; }
.calendar-alert > svg { color: var(--accent-soft); }
.calendar-match { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--text-inverse-mu); font-size: 11px; }
.calendar-match span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(178,184,166,0.12); }

/* Outcome ledger */
.outcome-ledger {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(178, 184, 166, 0.2);
  border-radius: 14px;
  background: var(--navy-900);
  box-shadow: 0 16px 38px rgba(0,0,0,0.16);
}
.ledger-head,
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ledger-head { margin-bottom: 12px; color: var(--white); font-size: 12px; font-weight: var(--fw-medium); }
.ledger-status { padding: 4px 7px; border-radius: var(--radius-pill); background: rgba(178,184,166,0.16); color: var(--accent-soft); font-size: 9px; text-transform: uppercase; }
.ledger-row { padding: 9px 0; color: var(--text-inverse-mu); font-size: 11px; }
.ledger-row span { display: flex; align-items: center; gap: 7px; }
.ledger-row svg { width: 14px; height: 14px; }
.ledger-row strong { color: var(--text-inverse-mu); font-size: 10px; font-weight: var(--fw-medium); }
.ledger-row.is-billable { margin-top: 3px; padding: 11px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--navy-900); }
.ledger-row.is-billable strong { color: var(--navy-900); text-transform: uppercase; }
.ledger-rule { height: 1px; margin: 12px 0; background: rgba(178,184,166,0.15); }
.ledger-note { display: flex; align-items: center; gap: 7px; color: var(--accent-soft); font-size: 10px; }
.ledger-note svg { width: 14px; height: 14px; }

/* Connected system stack */
.system-stack { position: relative; z-index: 1; display: grid; gap: 7px; width: 100%; }
.system-stack > div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - var(--stack-offset));
  margin-left: var(--stack-offset);
  padding: 8px 10px;
  border: 1px solid rgba(178, 184, 166, 0.18);
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 11px;
  box-shadow: 0 7px 16px rgba(0,0,0,0.12);
}
.system-stack .ui-icon { width: 28px; height: 28px; border-radius: 8px; }
.system-stack .ui-icon svg { width: 14px; height: 14px; }
.system-stack > div > span:nth-child(2) { flex: 1; }
.system-stack > div > svg { width: 13px; height: 13px; color: var(--accent-soft); }

/* Human messaging */
.message-visual { align-content: center; gap: 10px; }
.prospect-context,
.message-composer { position: relative; z-index: 1; }
.prospect-context {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 90%;
  margin: 0 auto -2px;
  padding: 9px 11px;
  border-radius: 11px 11px 7px 7px;
  background: rgba(178,184,166,0.13);
  color: var(--white);
  font-size: 10px;
}
.context-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--navy-900); }
.prospect-context > span:nth-child(2) { display: grid; flex: 1; }
.prospect-context small { color: var(--text-inverse-mu); font-size: 9px; text-transform: uppercase; }
.context-ready { padding: 3px 6px; border-radius: var(--radius-pill); background: rgba(178,184,166,0.18); color: var(--accent-soft); font-size: 9px; }
.message-composer { padding: 14px; border: 1px solid rgba(178,184,166,0.22); border-radius: 12px; background: var(--navy-900); box-shadow: 0 14px 30px rgba(0,0,0,0.16); }
.composer-meta,
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer-meta { color: var(--white); font-size: 10px; font-weight: var(--fw-medium); }
.composer-meta span:last-child { display: flex; align-items: center; gap: 4px; color: var(--accent-soft); }
.composer-meta svg { width: 12px; height: 12px; }
.message-composer p { margin: 12px 0; color: var(--text-inverse-mu); font-size: 11px; line-height: 1.5; }
.composer-footer { justify-content: flex-start; }
.composer-footer span { padding: 4px 6px; border-radius: 5px; background: rgba(178,184,166,0.12); color: var(--text-inverse-mu); font-size: 9px; }
.composer-footer svg { margin-left: auto; padding: 5px; width: 27px; height: 27px; border-radius: 7px; background: var(--accent-soft); color: var(--navy-900); }

/* Qualification filter */
.filter-visual { align-content: center; }
.filter-visual > * { position: relative; z-index: 1; }
.lead-source,
.qualified-output { display: flex; align-items: center; gap: 9px; width: 86%; margin-inline: auto; padding: 9px 11px; background: rgba(255,255,255,0.05); color: var(--white); font-size: 10px; }
.lead-source { border-radius: 11px 11px 0 0; }
.lead-source > span:nth-child(2),
.qualified-output span { display: grid; flex: 1; }
.lead-source small,
.qualified-output small { color: var(--text-inverse-mu); font-size: 9px; text-transform: uppercase; }
.lead-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: rgba(178,184,166,0.18); color: var(--accent-soft); font-size: 9px; font-weight: var(--fw-medium); }
.filter-gate { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--navy-900); font-size: 10px; font-weight: var(--fw-medium); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.criteria-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 10px; border-inline: 1px solid rgba(178,184,166,0.16); background: var(--navy-900); }
.criteria-grid span { display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 6px; background: rgba(178,184,166,0.09); color: var(--text-inverse-mu); font-size: 9px; }
.criteria-grid svg { width: 11px; height: 11px; color: var(--accent-soft); }
.qualified-output { border-radius: 0 0 11px 11px; background: rgba(178,184,166,0.16); color: var(--white); }
.qualified-output > svg { color: var(--accent-soft); }

/* Learning loop */
.improve-visual { align-content: center; }
.improve-visual > * { position: relative; z-index: 1; }
.cycle-tabs { display: flex; gap: 5px; margin-bottom: 14px; }
.cycle-tabs span { flex: 1; padding: 6px; border-radius: 6px; background: rgba(255,255,255,0.045); color: var(--text-inverse-mu); text-align: center; font-size: 9px; }
.cycle-tabs .is-current { background: rgba(178,184,166,0.18); color: var(--accent-soft); }
.metric-row { display: grid; grid-template-columns: 82px 1fr 18px; gap: 8px; align-items: center; margin-top: 10px; color: var(--text-inverse-mu); font-size: 10px; }
.metric-row > div { height: 10px; padding: 2px; border-radius: var(--radius-pill); background: var(--navy-900); }
.metric-row > div i { display: block; width: var(--metric-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--steel-600), var(--accent-soft)); }
.metric-row strong { color: var(--accent-soft); }
.metric-row strong svg { width: 14px; height: 14px; }
.learning-loop { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px; border: 1px solid rgba(178,184,166,0.18); border-radius: 9px; background: rgba(255,255,255,0.035); color: var(--text-inverse-mu); font-size: 9px; line-height: 1.4; }
.learning-loop svg { flex: none; color: var(--accent-soft); }

@media (max-width: 1040px) {
  .system-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .system-showcase::before,
  .system-showcase::after { width: 180px; height: 120px; opacity: 0.22; }
  .system-showcase-head { margin-bottom: var(--space-5); }
  .system-card-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .system-visual { min-height: 250px; padding: var(--space-3); }
  .system-card-copy { min-height: 0; }
}

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.stat-band > div { padding: var(--space-3) 0; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }
.quote-text { font-size: var(--fs-subheading-sm); line-height: 1.5; letter-spacing: var(--ls-subheading-sm); color: var(--text-strong); }
.quote-meta { display: flex; align-items: center; gap: 12px; margin-top: var(--space-3); }
.quote-name { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.quote-role { font-size: var(--fs-body-sm); color: var(--text-muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: stretch; }
.price-grid > .card { display: flex; flex-direction: column; }
.price-grid > .card > .btn { margin-top: auto; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price-amount { font-size: var(--fs-heading); line-height: 1.1; letter-spacing: var(--ls-heading); font-weight: var(--fw-medium); color: var(--text-strong); }
.price-period { font-size: var(--fs-body-sm); color: var(--text-muted); }
/* Same shadow geometry as its siblings so the row reads one baseline;
   only the ring colour marks it as featured. */
.price-featured { box-shadow: 0px 2px 10px 0px rgba(20, 48, 63, 0.10), 0 0 0 1px var(--accent); }

/* ---------- ROI calculator ---------- */
.roi-section {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(42, 75, 101, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 75, 101, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.roi-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
  margin-bottom: var(--space-5);
}
.roi-heading .eyebrow { gap: 8px; }
.roi-heading .eyebrow svg { width: 14px; height: 14px; }
.roi-heading h2 { margin-top: var(--space-3); }
.roi-heading .subheading { max-width: 690px; margin-top: var(--space-2); }
.roi-calculator {
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(0, 1.35fr);
  gap: var(--space-3);
  align-items: stretch;
}
.roi-input-panel,
.roi-results {
  border-radius: var(--radius-card);
  overflow: hidden;
}
.roi-input-panel {
  padding: var(--space-3);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.roi-panel-head,
.roi-results-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn-sm);
  color: var(--text-strong);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}
.roi-panel-head svg,
.roi-results-label svg { width: 14px; height: 14px; }
.roi-panel-head > span { display: flex; align-items: center; gap: 8px; }
.roi-reset {
  margin-left: auto;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--steel-200);
  color: var(--accent);
  cursor: pointer;
  font-size: 10px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
}
.roi-reset:hover { background: var(--steel-300); }
.roi-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: var(--space-2);
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.roi-field:last-child { border-bottom: 0; padding-bottom: 0; }
.roi-field label {
  display: block;
  color: var(--text-strong);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
.roi-field p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}
.roi-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn-sm);
  background: var(--tint-smoke);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.roi-input-shell:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus-ring);
}
.roi-input-shell.has-prefix { grid-template-columns: 34px minmax(0, 1fr); }
.roi-input-shell.has-suffix { grid-template-columns: minmax(0, 1fr) 34px; }
.roi-input-shell span {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
.roi-input-shell.has-prefix span { border-right: 1px solid var(--border); }
.roi-input-shell.has-suffix span { border-left: 1px solid var(--border); }
.roi-input-shell input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  text-align: right;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.roi-input-shell input::-webkit-inner-spin-button,
.roi-input-shell input::-webkit-outer-spin-button { margin: 0; appearance: none; }

.roi-results {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--bg-inverse);
  color: var(--text-inverse-mu);
}
.roi-results-label {
  border-color: rgba(178,184,166,0.26);
  color: var(--white);
}
.roi-results-label strong { font-weight: 700; }
.roi-primary-result { padding: var(--space-3) 0; border-bottom: 1px solid rgba(178,184,166,0.2); }
.roi-primary-result > span,
.roi-section-label {
  display: block;
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.roi-primary-result output {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}
.roi-primary-result p { margin-top: 8px; color: var(--text-inverse-mu); font-size: var(--fs-caption); }
.roi-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(178,184,166,0.2);
}
.roi-flow-item {
  position: relative;
  display: grid;
  gap: 3px;
  padding-right: var(--space-3);
}
.roi-flow-item:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: 12px;
  top: 4px;
  color: rgba(178,184,166,0.48);
}
.roi-flow-item strong { color: var(--white); font-size: var(--fs-heading-sm); line-height: 1.1; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.roi-flow-item span { color: var(--text-inverse-mu); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.roi-over-time { padding: var(--space-3) 0; border-bottom: 1px solid rgba(178,184,166,0.2); }
.roi-time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.roi-time-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(178,184,166,0.22);
  border-radius: var(--radius-btn-sm);
  background: rgba(255,255,255,0.025);
}
.roi-time-grid span,
.roi-summary-grid span { color: var(--text-inverse-mu); font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; }
.roi-time-grid strong { color: var(--white); font-size: var(--fs-subheading); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.roi-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-3) 0; }
.roi-summary-grid > div { display: grid; gap: 5px; }
.roi-summary-grid strong { color: var(--accent-soft); font-size: var(--fs-subheading); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.roi-results-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(178,184,166,0.2);
}
.roi-results-footer p { display: flex; align-items: flex-start; gap: 7px; flex: 1; font-size: 10px; line-height: 1.45; }
.roi-results-footer p svg { flex: none; width: 13px; height: 13px; margin-top: 1px; color: var(--accent-soft); }
.roi-results-cta { flex: none; background: var(--accent-soft); color: var(--navy-900); box-shadow: none; }
.roi-results-cta:hover { background: var(--sage-300); }

@media (max-width: 1040px) {
  .roi-calculator { grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr); }
  .roi-results { padding: var(--space-3); }
  .roi-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .roi-flow-item:not(:last-child)::after { display: none; }
  .roi-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 820px) {
  .roi-calculator { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .roi-heading { margin-bottom: var(--space-4); }
  .roi-input-panel,
  .roi-results { border-radius: 18px; padding: var(--space-2); }
  .roi-field { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .roi-input-shell { width: 100%; }
  .roi-time-grid { grid-template-columns: minmax(0, 1fr); }
  .roi-results-footer { align-items: stretch; flex-direction: column; }
  .roi-results-cta { width: 100%; }
}

/* ---------- Steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; }
@media (max-width: 900px) { .step-grid { grid-template-columns: minmax(0, 1fr); } }
.step-num {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--steel-200);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}
.section-inverse .step-num, .on-dark .step-num { background: rgba(178,184,166,0.20); color: var(--accent-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-inverse);
  border-radius: var(--radius-card-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 420px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(178,184,166,0.26), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* ---------- Booking widget on the dark CTA band ---------- */
.booking {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-card-lg);
  overflow: hidden;          /* holds the iframe inside the 24px corners */
  box-shadow: none;          /* dark surfaces take no shadow */
}
/* The vendor snippet hard-codes min-width:320px inline. Once the container
   gutter and band padding are subtracted there is less than that at 375px,
   so it would push the whole page sideways. */
.booking .calendly-inline-widget {
  min-width: 0 !important;
  width: 100%;
  /* Sized so the calendar view fits with no internal scroll. Calendly's
     time-slot list scrolls inside its own column by design once a date is
     picked - that is inherent to the widget, not a sizing problem. */
  height: 780px !important;
}
@media (max-width: 900px) {
  .booking .calendly-inline-widget { height: 720px !important; }
}

@media (max-width: 720px) {
  .cta-band { padding: var(--space-7) var(--space-2); }
}

/* ---------- Footer columns ---------- */
.footer-inner {
  border-inline: 1px solid rgba(255,255,255,0.08);
  padding-inline: clamp(24px, 5vw, 72px);
}
.footer-grid { display: flex; justify-content: center; text-align: center; }
.footer-brand { align-items: center; width: 100%; }
.footer-logo {
  color: var(--white);
  gap: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: -0.04em;
}
.footer-logo .nav-logo-image {
  width: clamp(48px, 5vw, 64px);
  height: clamp(40px, 4vw, 52px);
}
.footer-tagline {
  max-width: 58ch;
  margin: 0;
  color: var(--text-inverse-mu);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .footer { padding-block: var(--space-5) var(--space-3); }
  .footer-inner { border-inline: 0; }
  .footer-bottom { margin-top: var(--space-3); }
}


/* ---------- Mobile hero: one CTA, full width, no competing secondary ---------- */
@media (max-width: 720px) {
  .hero { padding-block: var(--space-4) var(--space-7); }
  .hero-actions { flex-direction: column; align-items: center; gap: var(--space-1); }
  .hero-actions .btn { width: auto; min-width: 240px; }
  .hero-actions .btn-secondary { display: none; }
  .hero-media { margin-top: var(--space-5); }
}
