/* Carter Digital — marketing site
 * Design notes:
 *   - Product-page palette (white + deep slate + emerald accent) so it
 *     doesn't look like a dental practice site. Dental specifics live
 *     in the copy, not the design language.
 *   - Generous whitespace, Inter at 16-18px, max-width 1100px.
 *   - No JavaScript. Pure HTML/CSS — drop the two files anywhere.
 */

:root {
  --bg: #faf9f5;            /* warm off-white, not stark */
  --bg-alt: #f3f1ea;        /* warm beige for alt sections */
  --text: #0f172a;          /* slate-900 */
  --muted: #475569;         /* slate-600 */
  --line: #e6e2d6;           /* warm line tone to harmonize with cream bg */
  --accent: #1e3a8a;        /* deep navy stays — looks good on cream */
  --accent-soft: #e4eaf6;    /* softened so it pops on cream instead of fighting it */
  --accent-dark: #1e2a6f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Headlines use Inter Tight — narrower letterforms than Inter, more
 * editorial / less "bulky big text". Body stays on Inter for readability. */
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(250,249,245,0.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: white;
  font-weight: 800;
}
nav.primary {
  display: flex; gap: 28px; align-items: center;
}
nav.primary a {
  color: var(--muted); font-weight: 500; font-size: 15px;
}
nav.primary a:hover { color: var(--text); text-decoration: none; }
nav.primary a.cta {
  background: var(--text); color: white;
  padding: 9px 18px; border-radius: 8px;
  font-weight: 600;
}
nav.primary a.cta:hover { background: #1e293b; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 144px 0; }
section.alt { background: var(--bg-alt); }
section.hero {
  padding-top: 120px;
  padding-bottom: 128px;
  background:
    radial-gradient(1400px 600px at 50% -20%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(800px 400px at 90% 20%, rgba(217, 119, 6, 0.06) 0%, transparent 60%),
    var(--bg);
}
@media (max-width: 700px) {
  section { padding: 96px 0; }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 960px;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}
h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}
.lede {
  font-size: 22px;
  color: var(--muted);
  max-width: 740px;
  margin: 0 0 36px;
  line-height: 1.55;
}
section .section-head {
  max-width: 780px;
  margin-bottom: 64px;
}
section .section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn.primary {
  background: var(--accent);
  color: white;
}
.btn.primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: var(--text);
  text-decoration: none;
}

/* ── Grids ────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.15s ease;
}
section.alt .card { background: white; }
.card:hover { border-color: #cbd5e1; }
.card p {
  color: var(--muted);
  margin: 0;
}

.card.pain { position: relative; padding-top: 32px; }
.pain-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.card.cap .cap-icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-soft);
  width: 48px; height: 48px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}

ul.check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: var(--muted);
}
ul.check li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
ul.check li:last-child { border-bottom: none; }
ul.check li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--accent);
  font-weight: 700;
}
ul.check.muted li::before {
  content: "—";
  color: var(--muted);
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */
footer.site {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 0;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  footer.site .wrap {
    grid-template-columns: 1fr;
  }
}
footer.site p { color: var(--muted); margin: 8px 0; font-size: 15px; }
footer.site h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 12px;
}
footer.site .copy {
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
}

/* ── Mockups: chrome + UI primitives ──────────────────────────
 * Static HTML/CSS recreations of real product surfaces, populated
 * with Crestline synthetic data. Used in the gallery section so
 * agency owners can see what they'd actually be reselling.
 */

.mockup-section section { padding: 80px 0; }

.mockup-row {
  display: block;
  margin-bottom: 96px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.mockup-row:last-child { margin-bottom: 0; }

.mockup-copy {
  text-align: left;
  margin-bottom: 28px;
  max-width: 720px;
}
.mockup-copy h3 {
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 4px 0 12px;
}
.mockup-copy p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.6;
}
.mockup-copy p:last-child { margin-bottom: 0; }
.mockup-copy .caption {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 16px;
}

.mockup-frame {
  border-radius: 14px;
  background: white;
  box-shadow:
    0 1px 0 rgba(15,23,42,0.04),
    0 6px 16px -2px rgba(15,23,42,0.08),
    0 12px 40px -8px rgba(15,23,42,0.12);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Browser chrome (URL bar style) */
.mockup-browser-bar {
  height: 36px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}
.mockup-browser-dots {
  display: inline-flex;
  gap: 6px;
}
.mockup-browser-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cbd5e1;
}
.mockup-browser-dots span:nth-child(1) { background: #ef4444; opacity: 0.6; }
.mockup-browser-dots span:nth-child(2) { background: #f59e0b; opacity: 0.6; }
.mockup-browser-dots span:nth-child(3) { background: #10b981; opacity: 0.6; }
.mockup-browser-url {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* App chrome (sidebar + topbar) */
.mockup-app { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.mockup-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.mockup-sidebar .brand-row {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.mockup-sidebar .brand-row span.dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.mockup-sidebar .nav-item {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.mockup-sidebar .nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
.mockup-sidebar .nav-item .ico {
  width: 14px; height: 14px;
  background: currentColor;
  opacity: 0.6;
  border-radius: 3px;
  flex-shrink: 0;
}
.mockup-app-main { padding: 18px 24px; min-width: 0; }
.mockup-app-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mockup-app-title { font-weight: 700; font-size: 16px; }
.mockup-app-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Stat tiles */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mockup-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.mockup-stat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mockup-stat .val { font-size: 22px; font-weight: 700; margin-top: 2px; }
.mockup-stat .delta { font-size: 11px; color: var(--accent); font-weight: 600; }
.mockup-stat .delta.neg { color: #dc2626; }

/* Generic list row */
.mockup-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mockup-list .row {
  display: flex; gap: 12px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-size: 13px;
  align-items: center;
}
.mockup-list .row:last-child { border-bottom: none; }
.mockup-list .row .label { color: var(--text); flex: 1; }
.mockup-list .row .meta { color: var(--muted); font-size: 12px; }
.mockup-list .row .chip {
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.mockup-list .row .chip.warn { background: #fef3c7; color: #92400e; }
.mockup-list .row .chip.neutral { background: #e2e8f0; color: var(--muted); }

/* Chat panel (Ask MAYA) */
.mockup-chat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fafafa;
}
.mockup-chat-msg {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.mockup-chat-msg.user {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  margin-left: 40px;
}
.mockup-chat-msg .who {
  font-size: 11px; font-weight: 600; color: var(--muted);
  margin-bottom: 4px;
}
.mockup-chat-msg.user .who { color: rgba(255,255,255,0.7); }
.mockup-chat-msg pre {
  font-family: inherit; white-space: pre-wrap; margin: 0;
  font-size: 13px;
}
.mockup-chat-input {
  display: flex; gap: 8px; padding: 8px 10px;
  background: white; border: 1px solid var(--line);
  border-radius: 8px; margin-top: 6px;
  font-size: 12px; color: var(--muted);
}

/* Call timeline (swimlane) */
.mockup-timeline {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.mockup-turn {
  display: grid;
  grid-template-columns: 70px 1fr;
  border-bottom: 1px solid var(--line);
}
.mockup-turn:last-child { border-bottom: none; }
.mockup-turn .ts {
  background: #f8fafc;
  padding: 10px 8px;
  font-size: 11px; color: var(--muted);
  font-family: ui-monospace, monospace;
  border-right: 1px solid var(--line);
  text-align: center;
}
.mockup-turn .content { padding: 10px 14px; font-size: 13px; }
.mockup-turn .who {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700;
  color: var(--muted); margin-bottom: 3px;
}
.mockup-turn.caller .who { color: var(--accent-dark); }
.mockup-turn.maya .content { background: rgba(30,58,138,0.03); }
.mockup-turn.system .ts, .mockup-turn.system .content {
  background: #fffbeb; color: #92400e; font-size: 11px;
  font-style: italic;
}

/* Phone frame (SMS preview) */
.mockup-phone {
  width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  box-shadow: 0 12px 36px -8px rgba(15,23,42,0.18);
}
.mockup-phone-screen {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  min-height: 460px;
}
.mockup-phone-statusbar {
  display: flex; justify-content: space-between;
  font-size: 11px; padding: 8px 16px 4px;
  color: var(--text); font-weight: 600;
}
.mockup-phone-header {
  text-align: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
}
.mockup-phone-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.sms-bubble {
  max-width: 76%; padding: 8px 12px;
  border-radius: 14px; font-size: 13px;
  line-height: 1.35;
}
.sms-bubble.in {
  background: #e9eef5; color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.sms-bubble.out {
  background: var(--accent); color: white;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.sms-time {
  font-size: 10px; color: var(--muted);
  text-align: center; margin: 6px 0;
}

/* Form widget mockup (web-page-embedded) */
.mockup-webpage-body {
  min-height: 280px; padding: 24px;
  background: linear-gradient(180deg, #fafbfc 0%, white 80%);
  position: relative;
}
.mockup-webpage-h {
  font-size: 18px; font-weight: 700; margin: 0 0 8px;
}
.mockup-webpage-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.mockup-chat-widget {
  position: absolute; bottom: 14px; right: 14px;
  width: 260px; border-radius: 12px;
  border: 1px solid var(--line); background: white;
  box-shadow: 0 8px 20px -4px rgba(15,23,42,0.12);
  overflow: hidden;
}
.mockup-chat-widget .head {
  background: var(--accent); color: white;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.mockup-chat-widget .head .dot-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
}
.mockup-chat-widget .body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mockup-chat-widget .msg {
  font-size: 12px; padding: 7px 10px; border-radius: 10px;
  max-width: 86%;
}
.mockup-chat-widget .msg.bot { background: #f1f5f9; color: var(--text); align-self: flex-start; }
.mockup-chat-widget .msg.usr { background: var(--accent); color: white; align-self: flex-end; }
.mockup-chat-widget .input {
  border-top: 1px solid var(--line); padding: 8px 10px;
  font-size: 11px; color: var(--muted);
}

/* Section header tweaks for the mockup gallery */
section.gallery .section-head { max-width: 760px; }
section.gallery h2 { margin-bottom: 12px; }

/* ── Vendor consolidation diagram (the "What we replace" section)
 * Layout-breaker: 4 stacked vendor chips collapse via an arrow into
 * one big Bowtie tile. Visually distinct from every other section's
 * card-grid rhythm — that's the point. */
.consolidation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin: 16px auto 0;
  max-width: 980px;
}
@media (max-width: 820px) {
  .consolidation {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cons-arrow { transform: rotate(90deg); margin: 0 auto; }
}
.cons-side {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.cons-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}
.cons-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cons-chip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.cons-arrow {
  font-size: 56px;
  color: var(--accent);
  font-weight: 200;
  line-height: 1;
  user-select: none;
}
.cons-bowtie {
  background: var(--accent);
  color: white;
  border-radius: 14px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.cons-bowtie .brand-mark {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 12px;
  background: white;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.cons-bowtie .b-name { font-size: 22px; font-weight: 700; }
.cons-bowtie .b-tag {
  font-size: 13px;
  opacity: 0.85;
  text-align: center;
  margin-top: 4px;
}
.cons-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.5;
}

/* ── Strikethrough vs emphasized comparison
 * For the 'What doesn't / What does create lock-in' thesis.
 * Left side: muted, struck through (these don't work).
 * Right side: bright, checked (these do). Same two-column shape,
 * very different visual weight. */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .comparison { grid-template-columns: 1fr; }
}
.comparison .col-doesnt,
.comparison .col-does {
  padding: 32px;
  border-radius: 14px;
}
.comparison .col-doesnt {
  background: transparent;
  border: 1px dashed var(--line);
}
.comparison .col-does {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -4px rgba(15,23,42,0.08);
}
.comparison .col-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 18px;
}
.comparison .col-doesnt .col-label { color: var(--muted); }
.comparison .col-does .col-label { color: var(--accent); }
.comparison ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison ul li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.comparison ul li:last-child { border-bottom: none; }
.comparison .col-doesnt li {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #cbd5e1;
}
.comparison .col-doesnt li::before {
  content: "✕";
  position: absolute; left: 4px; top: 10px;
  color: #cbd5e1;
  font-weight: 700;
}
.comparison .col-does li { color: var(--text); }
.comparison .col-does li::before {
  content: "✓";
  position: absolute; left: 4px; top: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

/* ── Big-stat divider — three large numbers across the page,
 * minimal copy. Used between sections to break vertical rhythm. */
section.stat-divider { padding: 96px 0; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; gap: 48px; }
}
.stat-row .stat-item .stat-num {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.stat-row .stat-item .stat-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}
.stat-row .stat-item .stat-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Horizontal timeline — for the onboarding three-step
 * progression. Cards arranged on a line with connecting bars
 * between them instead of three identical card tiles. */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
  margin-top: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16%; right: 16%;
  top: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft));
  z-index: 0;
}
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { display: none; }
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.timeline-step .step-dot {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--bg);
}
.timeline-step h3 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 8px;
}
.timeline-step p {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  margin: 0;
}
section.alt .timeline-step .step-dot { box-shadow: 0 0 0 8px var(--bg-alt); }

/* ── Integrations logo grid — uniform tiles for partner/integration
 * logos. Currently rendered with text wordmarks as placeholders;
 * swap each <span class="int-wordmark">…</span> for
 * <img src="img/integrations/<name>.svg" class="int-logo"> once
 * the official SVGs are dropped into marketing-site/img/integrations/.
 * Monochrome + soft opacity at rest; color + full opacity on hover.
 * This is the standard polished "trusted by / integrates with" pattern. */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) { .integrations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .integrations-grid { grid-template-columns: repeat(2, 1fr); } }

.int-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
}
.int-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(15,23,42,0.10);
}
.int-tile .int-wordmark {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #94a3b8;
  text-align: center;
  transition: color 0.2s ease;
}
.int-tile:hover .int-wordmark { color: var(--text); }

/* Real-logo variant — full color at rest (let the brand marks
 * carry their own color), slight saturation lift on hover. The
 * tile chrome (border + lift + shadow on hover) already provides
 * the interaction signal, so the logo doesn't need to change much. */
.int-tile .int-logo {
  max-width: 75%;
  max-height: 52px;
  opacity: 0.92;
  transition: all 0.2s ease;
  object-fit: contain;
}
.int-tile:hover .int-logo {
  opacity: 1;
  transform: scale(1.03);
}

/* Category caption strip above the grid (optional, lighter than the
 * earlier per-category-card approach). */
.int-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.int-caption span { white-space: nowrap; }

/* ── API callout — slotted after the integrations grid to surface
 * the inverse story: not just 'we read from your tools' but 'you
 * can read from us.' Developer-grade signal for bigger agencies
 * with their own engineering teams. */
.api-callout {
  background: var(--text);
  color: white;
  border-radius: 16px;
  padding: 40px 44px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .api-callout { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
}
.api-callout .api-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.api-callout h3 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: white;
}
.api-callout p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.api-callout .api-code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.90);
  white-space: pre;
  overflow-x: auto;
}
.api-callout .api-code .verb {
  color: #4ade80;
  font-weight: 700;
  margin-right: 10px;
}
.api-callout .api-code .verb-post { color: #60a5fa; }
.api-callout .api-code .path { color: rgba(255,255,255,0.95); }
.api-callout .api-code .comment {
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ── Hero banner — eyebrow + H1 sit above the grid so the H1
 * gets the full container width instead of being squeezed into a
 * column with the preview card. */
.hero-banner {
  margin-bottom: 64px;
}
.hero-banner h1 {
  max-width: 100%;
}

/* Hero grid — lede + CTAs on the left, preview card on the
 * right. Asymmetric (1fr / 1.15fr) so the preview gets slightly
 * more room since the left column is now light. Stacks on mobile. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-banner { margin-bottom: 32px; }
}

/* Hero visual stack — preview card with a second card peeking
 * behind it (depth + suggests "this is one of many briefs") and
 * floating status chips around it. Avoids the static-card-on-bg
 * feel by layering and motion. */
.hero-stack {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  padding: 24px 24px 24px 0;
}
.hero-stack::before {
  /* Card peeking behind */
  content: '';
  position: absolute;
  top: 36px; right: 12px; left: 40px; bottom: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px -8px rgba(15,23,42,0.08);
  z-index: 0;
}
.hero-stack::after {
  /* Soft gradient blob anchoring the visual */
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Floating Ask MAYA preview card in the hero — stylized output,
 * not a screenshot. Acts as the visual hook the hero was missing. */
.hero-preview {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 12px 32px -6px rgba(15,23,42,0.15),
    0 24px 64px -12px rgba(15,23,42,0.10);
  z-index: 2;
}

/* Floating status chips around the preview */
.hero-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 6px 16px -4px rgba(15,23,42,0.12);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
  white-space: nowrap;
}
.hero-chip .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.hero-chip .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.4; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hero-chip.chip-tl { top: -14px; left: -12px; }
.hero-chip.chip-br { bottom: -14px; right: 16px; }
@media (max-width: 900px) {
  .hero-stack { max-width: none; margin: 0; padding: 24px 0; }
  .hero-chip.chip-tl { left: 8px; }
  .hero-chip.chip-br { right: 8px; }
}
.hero-preview .hp-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.hero-preview .hp-dot {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.hero-preview .hp-title {
  font-size: 14px; font-weight: 700; color: var(--text);
}
.hero-preview .hp-sub {
  font-size: 12px; color: var(--muted);
}
.hero-preview .hp-greet {
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
  font-weight: 500;
}
.hero-preview .hp-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0;
  font-size: 13px; color: var(--text);
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.hero-preview .hp-line:first-of-type { border-top: none; padding-top: 0; }
.hero-preview .hp-name {
  font-weight: 700; color: var(--accent-dark); white-space: nowrap;
}
.hero-preview .hp-foot {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Manifesto — for the 'Where we are today' section.
 * Replaces the 2-card structure with a single confident
 * statement + small list of dental-specific anchors below. */
.manifesto {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.manifesto h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  margin: 0 0 24px;
}
.manifesto .m-lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto 48px;
  max-width: 720px;
}
.manifesto .m-anchors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 700px) {
  .manifesto .m-anchors { grid-template-columns: 1fr; }
}
.manifesto .m-anchors div {
  padding: 12px 16px 12px 40px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.manifesto .m-anchors div::before {
  content: "✓";
  position: absolute; left: 14px; top: 12px;
  color: var(--accent);
  font-weight: 800;
}

/* Real screenshot wrapper — show enough to prove the depth,
 * not the entire 2000-px page. ~1050px shows the meaty top of
 * each surface (stat tiles, first chart, opening rows). The
 * fade at the bottom signals "more below in the product." */
.mockup-screenshot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-height: 1050px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -4px rgba(15,23,42,0.10);
  border: 1px solid var(--line);
  background: white;
}
.mockup-screenshot.is-cropped::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, white 100%);
}
/* QBR 2x2 grid — four focused crops from different sections of
 * the auto-generated report rather than one giant cropped image.
 * Mirrors the incident.io / Foreplay pattern of multiple small
 * focused product shots per feature instead of one tall capture. */
.qbr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .qbr-grid { grid-template-columns: 1fr; }
}
.qbr-grid .qbr-tile {
  display: flex;
  flex-direction: column;
}
.qbr-grid .qbr-tile .mockup-screenshot {
  max-height: none;
  margin-bottom: 12px;
}
.qbr-grid .qbr-tile .mockup-screenshot img {
  width: 100%;
  height: auto;
}
.qbr-grid .qbr-tile .tile-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.qbr-grid .qbr-tile .tile-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.mockup-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Group sub-section header inside the gallery */
.gallery-group-head {
  margin: 80px 0 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.gallery-group-head:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}
.gallery-group-head .group-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.gallery-group-head h3 {
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.gallery-group-head p {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  font-size: 17px;
}

/* 3-column grid for smaller per-practice config screenshots */
.mockup-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .mockup-grid-3 { grid-template-columns: 1fr; gap: 20px; }
}
.mockup-grid-3 .grid-item .item-copy {
  margin-top: 14px;
}
.mockup-grid-3 .grid-item .item-copy h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.mockup-grid-3 .grid-item .item-copy p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
