/* Hivety — homepage styles, v2: colour blocks, option A (claude/colour-family-v2.md)
   Solid blocks: aubergine and petrol only. Green and warm appear as tints only.
   Tokens from the Hivety design system. Spacing and radius scales are new (approved in the mockup). */

:root {
  --paper: #f7f3ec;
  --surface: #fffdf9;
  --panel: #e6ddcc;          /* revised: a clearer step below paper */
  --soft: #f2ede4;           /* patient bubble */
  --border: #cfc3ad;
  --ink: #231f20;
  --text-body: #3b3635;
  --text-soft: #4a443f;      /* neutral-700 */
  --muted: #6b6355;
  --aubergine: #5c2a63;
  --aubergine-hover: #4c2252;
  --aubergine-50: #f2e4f3;    /* the one aubergine tint (colour family v2) */
  --aubergine-100: var(--aubergine-50);   /* retired: points at the single tint */
  --aubergine-200: #ccb0d1;
  --aubergine-700: #3f1c45;
  --aubergine-900: #24102a;
  --ochre: #b5751a;
  --ochre-deep: #7a4a06;
  --ochre-wash: #f4e6d8;      /* now clay 50 */

  --font-display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: Geist, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(120px, 14vw, 200px);
  --r-panel: 32px;
  --r-card: 24px;
  /* Brown shadows: grey reads as dirt on a warm page */
  --sh-1: 0 1px 2px rgba(92,62,24,.07);
  --sh-2: 0 2px 4px rgba(92,62,24,.05), 0 10px 24px rgba(92,62,24,.09);
  --sh-3: 0 6px 12px rgba(92,62,24,.07), 0 28px 60px rgba(92,62,24,.14);
  --shadow: var(--sh-2);

  /* Block colours: same lightness and chroma as aubergine, hue rotated. White text only. */
  --petrol: #004c55;
  /* Tints: ink reads at 13.3:1 on all four */
  --aubergine-tint: var(--aubergine-50);   /* retired alias */
  --petrol-50: #d3edee;
  --moss-50: #dfecdd;
  --clay-50: #f4e6d8;
  --sand: #efe9de;           /* v1 panel: calm single colour for the inbox cards and the clinics band */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--aubergine); text-underline-offset: 3px; }
a:hover { color: var(--aubergine-hover); }
b { font-weight: 600; color: var(--ink); }
button, input, select, textarea { font-family: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--aubergine); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; color: var(--paper); }

:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .tab:focus-visible { border-radius: 999px; }
.safety :focus-visible, .cta :focus-visible { outline-color: var(--paper); }
:where(section[id], [id]) { scroll-margin-top: 96px; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.panel, .wrap.try, .wrap.cta { max-width: calc(1120px - 2 * 48px); margin-left: auto; margin-right: auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-mid { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-faq { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.section { padding-top: var(--section); }
.intro { max-width: 720px; margin: 0 auto; text-align: center; }
.intro .lead { margin: 24px auto 0; max-width: 560px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--aubergine); margin-bottom: 28px; }
.h1 { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.h1 .line-inner { display: inline-block; }
.mark { position: relative; display: inline-block; }
.mark-bar { position: absolute; left: 2px; right: 2px; bottom: 0; height: 5px; border-radius: 999px; background: var(--ochre); transform-origin: left center; }
.h2 { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.h2-sm { font-size: clamp(26px, 3.2vw, 40px); }
.h2-lg { font-size: clamp(32px, 4.4vw, 56px); }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.lead { text-wrap: pretty; font-size: 17px; line-height: 1.65; color: var(--text-soft); }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.accent { color: var(--ochre-deep); }
.note { margin-top: 32px; font-size: 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.center-actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; font-family: var(--font-body); font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-primary { background: var(--aubergine); color: var(--paper); }
.btn-primary:hover { background: var(--aubergine-hover); color: var(--paper); }
.btn-soft { background: var(--panel); color: var(--ink); }
.btn-soft:hover { background: #e7e0d3; color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--aubergine); }
.btn-paper:hover { background: #fff; color: var(--aubergine-hover); }
.btn-ghost-light { color: var(--paper); padding: 0 20px; text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost-light:hover { color: #fff; }

/* Header */
.site-header { position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 40px; padding-top: 22px; padding-bottom: 22px; max-width: 1200px; }
.logo { flex-shrink: 0; }
.logo img { width: 140px; height: auto; }
.nav-main { flex: 1; display: flex; justify-content: center; gap: 32px; font-size: 16.5px; font-weight: 500; }
.nav-main a, .nav-quiet { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-main a:hover, .nav-quiet:hover { color: var(--aubergine); }
.nav-quiet { color: var(--muted); font-size: 16px; font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.wa-head { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 999px; background: var(--panel); align-items: center; justify-content: center; }
.wa-head .brand-logo { width: 26px; height: 26px; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--panel); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg path { transition: transform .25s ease; transform-origin: center; transform-box: fill-box; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { padding: 8px var(--gutter) 32px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; padding: 12px 0; }
.mobile-nav .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .nav-main, .nav-actions { display: none; }
  .header-row { gap: 10px; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .wa-head { display: inline-flex; }
}

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 128px); text-align: center; }
.hero .wrap-narrow { max-width: 1080px; }
.hero .h1 { font-size: clamp(40px, 5.6vw, 72px); }
.hero-lead { margin: 32px auto 0; max-width: 620px; }
.hero .small { margin-top: 20px; }
.panel { background: var(--panel); border-radius: var(--r-panel); }
.hero-panel { margin-top: clamp(64px, 8vw, 104px); padding: clamp(24px, 5vw, 72px) clamp(16px, 4vw, 48px); }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); text-align: left; }
.card-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.card-head .muted { font-weight: 400; }

.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; margin-bottom: 32px; }
.tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--text-body); font: 500 14px var(--font-body); cursor: pointer; transition: background-color .2s ease, color .2s ease; touch-action: manipulation; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); font-weight: 600; }

.conv { max-width: 520px; margin: 0 auto; }
.conv[hidden] { display: none; }
.conv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.conv-head > span:first-child { display: flex; flex-direction: column; line-height: 1.35; }
.conv-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.conv-ch { font-size: 13px; color: var(--muted); }
.conv-time { font-weight: 600; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.conv-body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.conv-foot { padding: 16px 24px 20px; font-size: 14px; font-weight: 600; color: var(--aubergine-hover); border-top: 1px solid var(--panel); }

.msg { max-width: 84%; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.msg-p { align-self: flex-start; background: var(--soft); color: var(--ink); border-radius: 18px 18px 18px 6px; }
.msg-c { align-self: flex-end; background: var(--aubergine); color: var(--paper); border-radius: 18px 18px 6px 18px; }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--aubergine-100); border-radius: 18px 18px 6px 18px; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--aubergine); opacity: .4; }

.channels { margin-top: clamp(56px, 7vw, 80px); max-width: 900px; }
.channel-list { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(24px, 4vw, 48px); }
.channel-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--text-body); }
.ch-icon { width: 52px; height: 52px; border-radius: 999px; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; }
.ch-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Problem */
.moments { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px 64px; text-align: center; }
.moment-time { font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
.moments p:last-child { max-width: 280px; margin: 0 auto; color: var(--text-soft); }
.statement { margin: clamp(72px, 9vw, 112px) auto 0; max-width: 680px; text-align: center; font-family: var(--font-body); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }

/* Inbox: four demo cards */
.bento { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.b-card { min-width: 0; background: var(--panel); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.b-wide { grid-column: span 3; }
.b-narrow { grid-column: span 2; }
.b-card .h3 { margin-top: 28px; }
.b-card > p { margin-top: 8px; color: var(--text-soft); max-width: 460px; }
.b-demo { position: relative; height: 280px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .b-wide, .b-narrow { grid-column: auto; } .b-demo { height: 300px; } }

.demo-inbox { padding: 20px 20px 0; }
.demo-inbox .card-head { padding: 0 4px; margin-bottom: 4px; }
.d-inbox-rows li { display: flex; gap: 14px; align-items: center; padding: 10px 4px; overflow: hidden; }
.avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--aubergine-100); color: var(--aubergine); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; font-size: 14px; }
.row-text { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-inbox-rows li.is-new { background: var(--aubergine-50); border-radius: 12px; }

.demo-chat { height: 100%; padding: 20px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; }
.demo-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-chat .msg { font-size: 14px; max-width: 88%; }
.d-voice { display: flex; align-items: center; gap: 10px; }
.play { width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; border-radius: 999px; background: var(--muted); height: 40%; }
.wave i:nth-child(3n) { height: 90%; } .wave i:nth-child(3n+1) { height: 60%; } .wave i:nth-child(4n) { height: 100%; }
.dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.demo-call { height: 100%; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.call-ring { position: relative; width: 64px; height: 64px; border-radius: 999px; background: var(--aubergine-50); display: inline-flex; align-items: center; justify-content: center; }
.call-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 999px; border: 2px solid var(--aubergine-200); opacity: 0; }
.call-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-states { position: relative; width: 100%; min-height: 72px; }
.call-state { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-soft); }
.call-state b { font-size: 14px; }
.cs-1, .cs-2 { visibility: hidden; }

.b-demo-auto { height: auto !important; min-height: 280px; display: flex; }
.demo-handover { flex: 1; }
.demo-handover .d-a { margin-bottom: 16px; }
.toast { margin-top: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--ink); color: var(--paper); border-radius: 16px; font-size: 13px; line-height: 1.45; }
.toast b { display: block; color: var(--paper); font-size: 14px; }
.toast span span { color: var(--border); }
.toast-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: #7fd1a6; }

.bento-controls { margin-top: 20px; }
.pause-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pause-btn:hover { color: var(--ink); }

.result { margin: clamp(64px, 8vw, 96px) auto 0; max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 18px; color: var(--ink); }
.result-num { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; color: var(--ochre-deep); }

/* How a booking happens */
.flow-grid { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 48px clamp(48px, 7vw, 112px); align-items: center; }
.flow-steps { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.flow-steps li { position: relative; padding-left: 23px; color: var(--muted); }
.flow-steps li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 999px; background: var(--border); transition: background-color .3s ease; }
.step-title { display: block; font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: -.015em; color: var(--ink); margin-bottom: 4px; }
.flow-steps li.is-active::before { background: var(--aubergine); }
.flow-steps li.is-active { color: var(--text-body); }
.flow-frame { flex: 1 1 460px; min-width: 0; padding: clamp(24px, 4vw, 48px); }
.flow-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.f-diary { margin: 8px 0; padding: 16px; background: var(--paper); border-radius: 18px; }
.d-row { display: flex; gap: 16px; align-items: center; min-height: 48px; }
.d-time { width: 44px; flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-strong { color: var(--ink); font-weight: 600; }
.d-line { flex: 1; height: 1px; background: var(--border); }
.d-slot { flex: 1; position: relative; min-height: 64px; display: flex; align-items: center; }
.d-empty { position: absolute; inset: 0; border: 1.5px dashed var(--border); border-radius: 14px; }
.d-booked { position: relative; width: 100%; border-radius: 14px; background: var(--aubergine); color: var(--paper); padding: 12px 16px; display: flex; flex-direction: column; line-height: 1.4; font-size: 13px; }
.d-booked b { color: var(--paper); font-size: 14px; }
.d-booked span { color: var(--aubergine-100); }
.f-confirm { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.f-note { font-size: 13px; color: var(--muted); }
.flow-card .msg { max-width: 88%; }
.f-q, .f-a { display: flex; flex-direction: column; }

/* Safety */
.safety { margin-top: var(--section); background: var(--aubergine-900); color: var(--paper); padding: clamp(112px, 13vw, 184px) 0; }
.safety .h2 { color: var(--surface); }
.safety .lead { color: var(--aubergine-100); }
.safety-grid { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.safety-grid dt { font-family: var(--font-body); font-weight: 600; font-size: 18px; color: var(--surface); }
.safety-grid dd { margin-top: 8px; color: var(--aubergine-200); }
.safety-close { margin-top: clamp(72px, 9vw, 112px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(40px, 6vw, 80px); }
.safety-close .photo { flex: 1 1 360px; min-width: 0; max-width: 480px; }
.safety-close-text { flex: 1 1 320px; min-width: 0; }
.safety-close .soft { margin-top: 12px; font-size: 14px; color: var(--aubergine-200); }
.link-light { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--surface); font-weight: 600; }
.link-light:hover { color: #fff; }

/* Photos */
.photo { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--panel); }
.photo-wide { margin-top: clamp(56px, 7vw, 88px); border-radius: var(--r-panel); aspect-ratio: 1920 / 823; object-fit: cover; }

/* Done for you */
.build-steps { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 64px; text-align: center; }
.num { display: inline-flex; width: 40px; height: 40px; border-radius: 999px; background: var(--panel); color: var(--aubergine); align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.build-steps .h3 { margin: 20px 0 8px; }
.build-steps p { max-width: 280px; margin: 0 auto; color: var(--text-soft); }
.build-steps + .note { margin-top: 56px; }

/* Doors */
.doors { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 8px; }
.door { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px; border-radius: var(--r-card); color: var(--text-soft); text-decoration: none; transition: background-color .2s ease; }
.door:hover { background: var(--panel); color: var(--text-soft); }
.door-text { flex: 1 1 300px; min-width: 0; }
.door-img { flex: 0 0 176px; width: 176px; height: 132px; object-fit: cover; border-radius: 16px; }
.door-title { display: block; font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: -.015em; color: var(--ink); margin-bottom: 6px; }
.door-link { font-weight: 600; color: var(--aubergine); white-space: nowrap; }
.arrow { display: inline-block; transition: transform .2s ease; }
.door:hover .arrow { transform: translateX(4px); }
.groups { margin-top: 32px; color: var(--text-soft); }
.groups a { font-weight: 600; }

/* Try it */
.try { background: var(--ochre-wash); border-radius: var(--r-panel); padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 64px); text-align: center; }
.try .lead { margin: 24px auto 0; max-width: 540px; color: var(--ink); }

/* FAQ */
.faqs { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 8px; }
.faqs details { background: var(--panel); border-radius: 20px; padding: 0 28px; }
.faqs summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; min-height: 44px; font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary:focus-visible { border-radius: 8px; }
.plus { flex-shrink: 0; font-size: 24px; font-weight: 400; color: var(--aubergine); transition: transform .2s ease; }
.faqs details[open] .plus { transform: rotate(45deg); }
.faqs details p { padding: 0 32px 24px 0; color: var(--text-soft); }

/* Final CTA */
.cta-wrap { padding-top: var(--section); }
.cta { background: var(--aubergine); color: var(--paper); border-radius: var(--r-panel); padding: clamp(72px, 10vw, 136px) clamp(24px, 5vw, 64px); text-align: center; }
.cta .h2 { color: var(--surface); }
.cta .lead { margin: 24px auto 0; max-width: 540px; color: var(--aubergine-50); }

/* Footer */
.site-footer { padding: clamp(96px, 10vw, 136px) 0 48px; font-size: 14px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.foot-brand { flex: 1 1 260px; }
.foot-brand img { width: 140px; height: auto; }
.foot-brand p { margin-top: 20px; max-width: 260px; }
.foot-cols nav { flex: 0 1 180px; }
.foot-h { font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.foot-cols ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-body); text-decoration: none; }
.site-footer a:hover { color: var(--aubergine); text-decoration: underline; }
.foot-base { margin-top: 80px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.foot-base ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-base a { color: var(--muted); }

/* Phones */
@media (max-width: 640px) {
  .hero { text-align: left; }
  .hero .center, .hero .center-actions { text-align: left; justify-content: flex-start; }
  .hero-lead { margin-left: 0; }
  .center-actions .btn, .hero .btn { flex: 1 1 100%; }
  .conv-body { min-height: 0; padding: 16px 18px 24px; }
  .conv-head, .conv-foot { padding-left: 18px; padding-right: 18px; }
  .msg { max-width: 90%; }
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; }
  .tab { flex: 1 1 auto; padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .door { padding: 16px; }
  .door-img { flex-basis: 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .faqs details { padding: 0 20px; }
}

/* Motion: initial states only when motion is on (set by the inline head script) */
.motion [data-hero], .motion [data-hero-line], .motion [data-hero-panel] { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.demo-voice .d-typing { display: none; }


/* ================================================================
   v2 — colour blocks
   One block per section; grain over every block; white text on blocks.
   ================================================================ */
.block { position: relative; isolation: isolate; color: #fff; }
.block::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: soft-light;
}
.block-aubergine { background-color: var(--aubergine); }
.block-petrol { background-color: var(--petrol); }
.tint-petrol { background-color: var(--petrol-50); }
.tint-moss { background-color: var(--moss-50); }
.tint-clay { background-color: var(--clay-50); }

/* Hero panel on aubergine */
.hero-panel.block { box-shadow: var(--sh-3); }
.hero-panel .tabs { background: rgba(255,255,255,.12); }
.hero-panel .tab { color: #fff; }
.hero-panel .tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.hero-panel .tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.hero-panel .tab:focus-visible { outline-color: #fff; }
.hero-panel .conv { box-shadow: var(--sh-3); }
.conv-foot { color: var(--aubergine-hover); }

/* Inbox cards: a petrol block and tint on top, two green tints below */
.b-card.block .h3, .b-card.block > p { color: #fff; }
.b-card.block > p { color: rgba(255,255,255,.84); }
.b-card .b-demo { box-shadow: var(--sh-2); }
.b-card.block .b-demo { box-shadow: var(--sh-3); }

/* 3x on the warm tint */
.result.tint-clay { max-width: 760px; padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px); border-radius: var(--r-panel); color: var(--ink); }
.result.tint-clay .result-num { color: var(--aubergine); font-size: clamp(56px, 7vw, 88px); }
.statement .accent { color: var(--aubergine); }

/* Booking section on the green tint */
.flow-card { box-shadow: var(--sh-3); }

/* Safety on petrol, full width */
.safety.block { background-color: var(--petrol); }
.safety .h2, .safety-grid dt, .link-light { color: #fff; }
.safety .lead, .safety-grid dd, .safety-close .soft { color: rgba(255,255,255,.82); }
.safety-close p:first-child { color: #fff; }
.safety .photo { box-shadow: var(--sh-3); }

/* Try it on clay 50, CTA on aubergine */
.try { box-shadow: none; }
.cta.block .h2 { color: #fff; }
.cta.block .lead { color: rgba(255,255,255,.86); }
.cta.block { box-shadow: var(--sh-3); }

/* Small touches from the revised surfaces */
.avatar { background: var(--aubergine-tint); }
.faqs details { background: var(--surface); box-shadow: var(--sh-1); }
.door:hover { background: var(--surface); box-shadow: var(--sh-2); }
.btn-soft { background: var(--surface); box-shadow: var(--sh-1); }
.btn-soft:hover { background: #fff; }
.ch-icon { background: var(--surface); box-shadow: var(--sh-1); }
.num { background: var(--surface); box-shadow: var(--sh-1); }
.photo { box-shadow: var(--sh-2); }


/* ================================================================
   v2.1 — calmer inbox cards, section bands, boxed safety points,
   clinic cards, data and security
   ================================================================ */
/* Inbox cards: one calm colour, as on v1 */
.b-card { background: var(--sand); }
.b-card .b-demo { box-shadow: var(--sh-1); }

/* Full-width bands to separate sections */
.band { margin-top: var(--section); padding-top: clamp(96px, 11vw, 160px); padding-bottom: clamp(96px, 11vw, 160px); }
.band-moss { background: var(--moss-50); }
.band-sand { background: var(--sand); }
.band-petrol { background: var(--petrol-50); }
.flow-frame { padding: 0; background: transparent; }

/* Safety points in their own boxes */
.safety-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safety-grid > div { padding: 28px 24px; border-radius: var(--r-card); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
@media (max-width: 960px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

/* Clinic types as three cards side by side */
.doors { flex-direction: row; gap: 20px; }
.doors > li { flex: 1 1 0; min-width: 0; display: flex; }
.door { flex: 1; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; overflow: hidden; background: var(--surface); box-shadow: var(--sh-2); transition: box-shadow .2s ease, transform .2s ease; }
.door:hover { background: var(--surface); box-shadow: var(--sh-3); transform: translateY(-2px); }
.door-img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.door-text { flex: 1 1 auto; padding: 28px 28px 0; }
.door-link { padding: 20px 28px 28px; }
@media (max-width: 860px) {
  .doors { flex-direction: column; }
  .door { padding: 0; }
  .door-img { flex-basis: auto; }
}

/* Data and security */
.trust-grid { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-card { background: var(--surface); border-radius: var(--r-card); padding: 32px 28px; box-shadow: var(--sh-1); }
.trust-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 999px; align-items: center; justify-content: center; background: var(--petrol); color: #fff; }
.trust-title { margin-top: 20px; font-family: var(--font-body); font-weight: 600; font-size: 19px; letter-spacing: -.015em; color: var(--ink); }
.trust-card p { margin-top: 8px; color: var(--text-soft); font-size: 14px; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.band-moss + .safety { margin-top: 0; }
.trust-title, .safety-grid dt { line-height: 1.3; }

/* ================================================================
   v2.2 — "An AI receptionist that…" section with the channel hub
   ================================================================ */
.agent-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.agent-h { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.14; letter-spacing: -.03em; color: var(--ink); text-wrap: pretty; }
.agent-soft { color: var(--muted); }
.agent-visual { min-width: 0; }
.hub { display: block; width: 100%; height: auto; overflow: visible; }
.hub-frame { fill: none; stroke: var(--border); stroke-width: 1; }
.hub-grid line { stroke: var(--border); stroke-width: 1; opacity: .7; }
.hub-spoke { stroke: var(--aubergine); stroke-width: 1.5; opacity: .45; stroke-dasharray: 4 5; }
.hub-core { fill: var(--surface); stroke: var(--border); }
.hub-mark rect { fill: var(--aubergine); }
.hub-node circle { fill: var(--surface); stroke: var(--aubergine); stroke-width: 1.5; filter: drop-shadow(0 4px 10px rgba(92,62,24,.12)); }
.hub-ico { fill: none; stroke: var(--aubergine); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hub-node.is-live circle { fill: var(--aubergine); }
.hub-node.is-live .hub-ico { stroke: #fff; }
.agent-points { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agent-points li { padding: 4px clamp(24px, 3vw, 40px); border-left: 1px solid var(--border); color: var(--text-soft); }
.agent-points li:first-child { padding-left: 0; border-left: 0; }
.agent-pt { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: -.015em; color: var(--ink); }
.agent-pt svg { flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: var(--aubergine); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .agent-top { grid-template-columns: 1fr; }
  .agent-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .agent-points { grid-template-columns: 1fr; gap: 36px; }
  .agent-points li { padding: 0; border-left: 0; }
}

/* Data and security: a quiet strip under the clinic cards */
.data-strip { margin: clamp(56px, 7vw, 80px) auto 0; max-width: 1024px; padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px); border-radius: var(--r-card); background: var(--petrol-50); }
.data-h { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--petrol); }
.data-list { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; }
.data-list li { display: flex; gap: 12px; align-items: flex-start; }
.data-icon { flex-shrink: 0; display: inline-flex; color: var(--petrol); margin-top: 2px; }
.data-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.data-text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--text-soft); }
@media (max-width: 960px) { .data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .data-list { grid-template-columns: 1fr; } }

/* Seven channels: one row on desktop, 4 + 3 on phones */
.channels { max-width: 1060px; }
.channel-list { gap: 24px clamp(20px, 3vw, 40px); }
@media (max-width: 600px) {
  .channel-list { gap: 20px 4px; }
  .channel-list li { width: 82px; text-align: center; font-size: 13px; }
}

/* ================================================================
   v2.3 — 10pm bar, buttons, testimonials, safety layout,
   before and after card, looping hub
   ================================================================ */
/* The 10pm underline in brand aubergine, not ochre */
.mark-bar { background: var(--aubergine); height: 4px; opacity: .85; }

/* Buttons: a subtle lift on hover, so it's clear what's under the pointer */
.btn { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn-ghost-light:hover, .pause-btn:hover { transform: none; box-shadow: none; }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff, 0 10px 24px rgba(0,0,0,.18); }

/* Try it yourself: a soft ring pulses out three times, then stops */
.btn-try { position: relative; isolation: isolate; }
.btn-try::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(92,42,99,.45); z-index: -1; pointer-events: none; }
.btn-paper.btn-try::after { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
.btn-try::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; pointer-events: none; }
.btn-paper.btn-try::before { background-image: linear-gradient(110deg, transparent 35%, rgba(92,42,99,.12) 50%, transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .btn-try::after { animation: try-ring 1.8s ease-out 1.4s 3; }
  .btn-paper.btn-try::after { animation-name: try-ring-light; }
  .btn-try:hover::before, .btn-try:focus-visible::before { transition: background-position .8s ease; background-position: -30% 0; }
}
@keyframes try-ring { 0% { box-shadow: 0 0 0 0 rgba(92,42,99,.45); } 100% { box-shadow: 0 0 0 14px rgba(92,42,99,0); } }
@keyframes try-ring-light { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }

/* Testimonials */
.quotes { padding-top: clamp(72px, 9vw, 112px); }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1024px; margin: 0 auto; }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 3.5vw, 40px); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-2); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { position: relative; font-family: var(--font-body); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.quote-card blockquote p::before { content: "\201C"; display: block; margin-bottom: 4px; font-size: 56px; line-height: .8; color: var(--aubergine); }
.quote-by { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink); }
.quote-by img { width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0; }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* Safety: tall photo beside the points, stacked */
.safety-layout { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.safety-photo { width: 100%; height: 100%; min-height: 520px; max-height: 760px; object-fit: cover; object-position: 50% 50%; border-radius: var(--r-panel); }
.safety-side { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.safety-layout .safety-grid { margin-top: 0; grid-template-columns: 1fr !important; gap: 12px; }
.safety-layout .safety-grid > div { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; }
.safety-layout .safety-grid dd { margin-top: 0; }
.safety-layout .safety-close-text p:first-child { font-size: 18px; color: #fff; }
@media (max-width: 900px) {
  .safety-layout { grid-template-columns: 1fr; }
  .safety-photo { min-height: 0; height: auto; aspect-ratio: 4 / 5; max-height: 560px; }
}
@media (max-width: 560px) {
  .safety-layout .safety-grid > div { grid-template-columns: 1fr; }
  .safety-photo { aspect-ratio: 4 / 4.4; }
}

/* Before and after: a full-width card */
.b-full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.b-full .b-full-text p { margin-top: 8px; color: var(--text-soft); max-width: 420px; }
.b-full .h3 { margin-top: 0; }
.demo-ba { padding: 24px; gap: 12px; }
.ba-msg { display: flex; flex-direction: column; gap: 12px; max-width: 92% !important; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.ba-before { background: radial-gradient(60% 40% at 50% 58%, #c99a8c 0 55%, transparent 56%), linear-gradient(160deg, #ead9cc, #d9c2b2); }
.ba-after { background: radial-gradient(64% 46% at 50% 58%, #c27f78 0 55%, transparent 56%), linear-gradient(160deg, #efdfd2, #ddc6b6); }
.ba-label { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255,253,249,.92); color: var(--ink); font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .b-full { grid-template-columns: 1fr; } .b-full .b-demo { order: -1; } }

/* Hub loop */
.hub-controls { margin-top: 12px; text-align: right; }
.hub-spoke { transition: opacity .3s ease, stroke-width .3s ease; }
.hub-spoke.is-hot { opacity: 1 !important; stroke-dasharray: none; stroke-width: 2.5; }
.hub-node circle { transition: fill .3s ease; }
.hub-node .hub-ico { transition: stroke .3s ease; }
.hub-dot { fill: var(--aubergine); opacity: 0; }
@media (max-width: 900px) { .hub-controls { text-align: center; } }
.quote-card blockquote p::before { font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: .7; margin-bottom: 8px; }

/* ================================================================
   v2.4 — dark problem band, split safety section, build-step line,
   data points on lines
   ================================================================ */
/* Problem section on deep aubergine */
.band-dark { position: relative; background: var(--aubergine-900); color: #fff; overflow: hidden; }
.band-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.band-dark > .wrap { position: relative; }
.band-dark .h2 { color: #fff; }
.band-dark .lead { color: rgba(255,255,255,.78); }
.band-dark .moments { gap: 0; }
.band-dark .moments li { padding: 8px clamp(24px, 3vw, 40px); border-left: 1px solid rgba(255,255,255,.16); }
.band-dark .moments li:first-child { border-left: 0; }
.band-dark .moment-time { color: #fff; }
.band-dark .moments p:last-child { color: rgba(255,255,255,.74); }
.band-dark .statement { color: #fff; }
.band-dark .statement .accent { color: var(--aubergine-200); }
.band-dark :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .band-dark .moments { gap: 0; }
  .band-dark .moments li { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding: 28px 0; }
  .band-dark .moments li:first-child { border-top: 0; padding-top: 0; }
}
.quotes + .band-dark { margin-top: clamp(72px, 9vw, 112px); }

/* Safety: photo bleeds to the edge, content beside it */
.safety.block { padding: 0; }
.safety-split { position: relative; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: 640px; }
.safety-media { position: relative; min-height: 100%; }
.safety-media .safety-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; object-position: 55% 50%; border-radius: 0; box-shadow: none; }
.safety-content { padding: clamp(72px, 8vw, 120px) clamp(24px, 6vw, 96px); max-width: 720px; }
.safety-content .lead { margin-top: 16px; }
.safety-list { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.18); }
.safety-list > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); align-items: baseline; }
.safety-list dt { display: flex; gap: 14px; align-items: baseline; font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.3; color: #fff; }
.safety-list dd { color: rgba(255,255,255,.82); }
.s-num { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: rgba(255,255,255,.55); }
.safety-content .safety-close-text { margin-top: clamp(28px, 3.5vw, 40px); }
.safety-content .safety-close-text p:first-child { font-size: 18px; color: #fff; }
.safety-content .link-light { display: inline-block; margin-top: 20px; }
@media (max-width: 900px) {
  .safety-split { grid-template-columns: 1fr; min-height: 0; }
  .safety-media { min-height: 0; aspect-ratio: 4 / 3; }
  .safety-content { padding: 56px 20px 72px; }
}
@media (max-width: 560px) { .safety-list > div { grid-template-columns: 1fr; } .safety-list dd { padding-left: 32px; } }

/* Build steps: a line joins 1, 2 and 3 */
.build-steps { position: relative; }
.build-line { display: none; }
@media (min-width: 761px) {
  .build-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .build-line { display: block; position: absolute; top: 19px; left: calc((100% - 128px) / 6); right: calc((100% - 128px) / 6); height: 2px; background-image: linear-gradient(90deg, var(--border) 50%, transparent 50%); background-size: 10px 2px; pointer-events: none; }
  .build-line-fill { position: absolute; inset: 0; background: var(--aubergine); border-radius: 2px; transform-origin: left center; }
  .build-steps > li:not(.build-line) { position: relative; z-index: 1; }
  .build-steps .num { position: relative; box-shadow: 0 0 0 8px var(--paper), var(--sh-1); }
  .build-steps .num.is-on { background: var(--aubergine); color: #fff; transition: background-color .3s ease, color .3s ease; }
}

/* Data points: same background as the section, split by lines */
.data-strip { background: none; padding: clamp(28px, 4vw, 40px) 0 0; border-radius: 0; border-top: 1px solid var(--border); }
.data-list li { padding-left: 24px; border-left: 1px solid var(--border); }
.data-list li:first-child { padding-left: 0; border-left: 0; }
.data-list { gap: 24px; }
@media (max-width: 960px) { .data-list li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .data-list li { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border); } .data-list li:first-child { border-top: 0; padding-top: 0; } }

/* ================================================================
   v2.5 — "It only knows your clinic" block, "Why clinics use Hivety" figures
   ================================================================ */
.trained { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); border-radius: var(--r-panel); background-color: var(--aubergine-900); color: #fff; }
.trained-h { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.trained-head p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.76); max-width: 420px; }
.trained-list { display: flex; flex-direction: column; gap: 18px; }
.trained-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: #fff; }
.tick { flex-shrink: 0; width: 28px; height: 28px; margin-top: -1px; border-radius: 999px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }
.tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .trained { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-head .h2 { text-align: left; }
.why-head .lead { margin-top: 16px; text-align: left; margin-left: 0; }
.why-list { border-top: 1px solid var(--border); }
.why-list > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--border); }
.why-num { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: clamp(56px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; color: var(--aubergine); font-variant-numeric: tabular-nums; }
.why-num small { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.01em; font-weight: 600; }
.why-list dd b { display: block; font-family: var(--font-body); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.why-list dd span { display: block; margin-top: 6px; color: var(--text-soft); font-size: 14px; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why-list > div { grid-template-columns: 1fr; }
}

.ba-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ================================================================
   v2.6 — safety as a hand-over diagram; dotted, moving build-step line
   ================================================================ */
.safety.block { padding: clamp(96px, 11vw, 150px) 0; }
.hand-flow { margin: clamp(56px, 7vw, 80px) auto 0; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1.25fr) 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
.hand-label { grid-column: 1; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hand-in { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.hand-in li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.hand-in b { font-family: var(--font-body); font-size: 18px; font-weight: 600; color: #fff; }
.hand-in span { font-size: 14px; color: rgba(255,255,255,.78); }
/* connectors: a stub from each box, a vertical spine, one arrow out */
.hand-in li::after { content: ""; position: absolute; left: 100%; top: 50%; width: 48px; height: 2px; background: rgba(255,255,255,.45); transform-origin: left center; }
.hand-join { grid-column: 2; grid-row: 2; position: relative; }
.hj-v { position: absolute; left: 47px; width: 2px; top: calc((100% - 36px) / 8); bottom: calc((100% - 36px) / 8); background: rgba(255,255,255,.45); transform-origin: center top; }
.hj-h { position: absolute; left: 48px; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.45); transform-origin: left center; }
.hj-h::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid rgba(255,255,255,.75); border-right: 0; }
.hand-out { grid-column: 3; grid-row: 2; display: flex; align-items: center; }
.hand-card { width: 100%; padding: clamp(28px, 3vw, 36px); border-radius: var(--r-panel); background: var(--surface); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.hand-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 999px; align-items: center; justify-content: center; background: var(--petrol-50); color: var(--petrol); }
.hand-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hand-title { margin-top: 18px; font-family: var(--font-body); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.hand-card p:last-child { margin-top: 8px; color: var(--text-soft); }
.hand-note { margin: clamp(48px, 6vw, 64px) auto 0; max-width: 640px; text-align: center; color: rgba(255,255,255,.82); }
.hand-note .link-light { display: inline-block; margin-left: 6px; }
@media (max-width: 860px) {
  .hand-flow { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hand-label, .hand-in, .hand-join, .hand-out { grid-column: 1; grid-row: auto; }
  .hand-in { grid-template-rows: none; }
  .hand-in li::after { display: none; }
  .hand-join { height: 64px; }
  .hj-v { left: 50%; top: 0; bottom: 0; }
  .hj-h { display: none; }
  .hand-join::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: -2px; border: 6px solid transparent; border-top: 8px solid rgba(255,255,255,.75); border-bottom: 0; }
}

/* Build steps: dotted line with a pulse moving left to right */
@media (min-width: 761px) {
  .build-line { height: 4px; top: 18px; background-image: radial-gradient(circle, var(--border) 1.6px, transparent 2px); background-size: 10px 4px; background-repeat: repeat-x; }
  .build-line-fill { border-radius: 0; background: radial-gradient(circle, var(--aubergine) 1.6px, transparent 2px) 0 0 / 10px 4px repeat-x; }
  .build-pulse { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--aubergine); box-shadow: 0 0 0 5px rgba(92,42,99,.18), 0 0 16px rgba(92,42,99,.45); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .build-line-fill.is-flowing { animation: dots-flow 0.9s linear infinite; }
}
@keyframes dots-flow { from { background-position: 0 0; } to { background-position: 10px 0; } }
.hand-note { line-height: 1.6; }
.hand-note .link-light { margin-top: 0 !important; display: inline; }

/* ================================================================
   v2.7 — safety as "handles / hands over", dashboard
   ================================================================ */
.scope { margin-top: clamp(56px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: stretch; }
.scope-card { padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-panel); }
.scope-do { background: var(--moss-50); }
.scope-pass { background: var(--petrol-50); }
.scope-label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.scope-card ul { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.scope-card li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--ink); }
.sc-ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.sc-ic svg { width: 16px; height: 16px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scope-do .sc-ic svg { stroke: #2C6A33; }
.scope-pass .sc-ic svg { stroke: var(--petrol); }
.scope-line { position: relative; display: flex; align-items: center; justify-content: center; }
.scope-line::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; border-left: 2px dashed var(--border); }
.scope-badge { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); padding: 14px 7px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.scope-note { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 720px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--text-body); }
.sc-bell { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--aubergine-50, #F2E4F3); color: var(--aubergine); margin-top: -6px; }
.sc-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scope-note a { font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
  .scope { grid-template-columns: 1fr; }
  .scope-line { height: 64px; }
  .scope-line::before { top: 0; bottom: 0; }
  .scope-badge { writing-mode: horizontal-tb; transform: none; padding: 6px 14px; }
  .scope-card li { font-size: 16px; }
}

.dash-stage { margin-top: clamp(48px, 6vw, 72px); perspective: 1600px; }
.dash-frame { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-3); transform-origin: 50% 100%; }
.dash-bar { display: flex; gap: 7px; padding: 12px 16px; background: #F3EFE8; border-bottom: 1px solid var(--border); }
.dash-bar span { width: 10px; height: 10px; border-radius: 999px; background: #DCD3C4; }
.dash-frame img { display: block; width: 100%; height: auto; }

/* ================================================================
   v2.8 — wider layout, in line with lummy.ai: 1320px container,
   72px side padding (1176px of content), and roomier text blocks
   ================================================================ */
:root { --gutter: clamp(20px, 5vw, 72px); }
.wrap { max-width: 1320px; }
.wrap.panel, .wrap.try, .wrap.cta { max-width: calc(1320px - 2 * 72px); }
.header-row { max-width: 1320px; }
.hero .wrap-narrow { max-width: 1176px; }
.wrap-mid { max-width: 1320px; }
.wrap-faq { max-width: 880px; }
.intro { max-width: 900px; }
.intro .lead { max-width: 680px; }
.hero-lead { max-width: 720px; }
.channels { max-width: 1176px; }
.moments p:last-child { max-width: 340px; }
.statement { max-width: 820px; }
.b-card > p { max-width: 560px; }
.b-full .b-full-text p { max-width: 480px; }
.build-steps p { max-width: 340px; }
.try .lead, .cta .lead { max-width: 640px; }
.trained-head p { max-width: 480px; }
.data-strip, .quote-grid { max-width: none; }
.scope-note { max-width: 860px; }
.agent-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .agent-top { grid-template-columns: 1fr; } }

/* Build steps: light dotted line, purple dot loops along it */
@media (min-width: 761px) {
  .build-line { background-image: radial-gradient(circle, #E2D9CB 1.6px, transparent 2px); }
  .build-line-fill { display: none; }
}
.build-controls { margin-top: 16px; }

/* ================================================================
   v2.9 — sitemap v9: header with "For your clinic" menu, new footer
   ================================================================ */
.nav-main { gap: 28px; align-items: center; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--aubergine); }
.nav-drop-btn svg { transition: transform .2s ease; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 280px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 60; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop.is-open .nav-drop-menu, .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav-drop-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--aubergine-50); color: var(--aubergine); }
.nav-actions { gap: 20px; }
.nav-login { font-size: 14px; }
.nav-try { font-size: 14px; font-weight: 600; color: var(--aubergine); text-decoration: none; padding: 10px 0; }
.nav-try:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1180px) { .nav-main { gap: 20px; font-size: 16px; } .nav-actions { gap: 16px; } .nav-login { display: none; } }
.mobile-nav-h { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.mobile-nav a.mobile-sub { padding-left: 16px; font-size: 17px; }
.mobile-nav a.mobile-login { color: var(--muted); font-size: 16px; }

.foot-cols nav { flex: 0 1 200px; }
.foot-base ul { gap: 8px 20px; }

.b-more { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--aubergine); white-space: nowrap; }
.call-wrap { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.call-num { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 48px 40px; }
.foot-cols nav { flex: none; }
@media (max-width: 1080px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 1180px) { .nav-login { display: inline; } }
@media (max-width: 1080px) { .nav-login { display: none; } }

/* ================================================================
   v2.10 — everything loops while on screen; pause controls
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .btn-try::after { animation: try-ring 3.2s ease-out 1.2s infinite; }
  .btn-paper.btn-try::after { animation: try-ring-light 3.2s ease-out 1.2s infinite; }
}
@keyframes try-ring { 0% { box-shadow: 0 0 0 0 rgba(92,42,99,.45); } 55%, 100% { box-shadow: 0 0 0 14px rgba(92,42,99,0); } }
@keyframes try-ring-light { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 55%, 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.anim-paused .btn-try::after, .anim-paused .build-line-fill { animation-play-state: paused; }

.hero-controls { margin-top: 20px; text-align: center; }
.pause-light { color: rgba(255,255,255,.75) !important; }
.pause-light:hover { color: #fff !important; }

.scope-card li { padding: 6px 10px; margin: -6px -10px; border-radius: 12px; transition: background-color .35s ease; }
.scope-card ul { gap: 4px; }
.scope-card li + li { margin-top: 12px; }
.scope-card li.is-hl { background: rgba(255,253,249,.85); }
.scope-badge { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.scope-badge.is-hl { background: var(--aubergine); border-color: var(--aubergine); color: #fff; }

/* One page-wide pause control, bottom left (bottom right is kept for the chat widget) */
.motion-toggle-wrap { position: fixed; left: 16px; bottom: 16px; z-index: 80; margin: 0; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,253,249,.92); backdrop-filter: blur(6px); box-shadow: var(--sh-1); color: var(--muted); font: 500 13px var(--font-body); cursor: pointer; transition: color .2s ease, box-shadow .2s ease; }
.motion-toggle:hover { color: var(--ink); box-shadow: var(--sh-2); }
.motion-toggle svg { fill: currentColor; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: inline; }
.scope-card li.is-hl, .scope-badge.is-hl { background: inherit; }
@media (max-width: 600px) { .call-wrap { flex-direction: column; flex-wrap: nowrap; align-items: center; width: 100%; gap: 8px; } .call-wrap .btn { width: 100%; } .call-num { text-align: center; } }

/* v2.11 - cookie consent (all pages) */
.btn-ghost { background: transparent; color: var(--aubergine); box-shadow: inset 0 0 0 1.5px var(--aubergine); }
.btn-ghost:hover { background: var(--aubergine-50); color: var(--aubergine-hover); }
.cc-banner { position: fixed; z-index: 2147483647; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); padding: 24px 24px 20px; border-radius: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(36,16,42,.08), 0 24px 56px rgba(36,16,42,.18); }
.cc-title, .cc-d-title { font-family: var(--font-body); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.cc-text { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-soft); }
.cc-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-actions .btn { min-width: 132px; }
.cc-link { margin-left: 4px; padding: 10px 6px; border: 0; background: none; font: 600 14px var(--font-body); color: var(--aubergine); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cc-link:hover { color: var(--aubergine-hover); }
.cc-open .motion-toggle-wrap { bottom: 16px; }
.cc-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(36,16,42,.28); }
.cc-dialog::backdrop { background: rgba(36,16,42,.55); }
.cc-form { padding: 28px 28px 24px; }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); }
.cc-row:first-of-type { margin-top: 18px; }
.cc-row-h { font-weight: 600; color: var(--ink); }
.cc-row-p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.cc-always { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--petrol); }
.cc-switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #b9ae9b; transition: background-color .2s ease; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.cc-switch input:checked + span { background: var(--aubergine); }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--aubergine); outline-offset: 3px; }
.foot-cookie { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot-base .foot-cookie { text-decoration: none; }
.foot-base .foot-cookie:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .cc-banner { bottom: 0; width: 100%; border-radius: 20px 20px 0 0; padding: 20px 20px 16px; }
  .cc-actions .btn { flex: 1 1 40%; min-width: 0; }
  .cc-link { width: 100%; margin: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cc-switch span, .cc-switch span::after { transition: none; } }

/* v2.12 - compact cookie card (bottom left), pause control moved to the footer */
.cc-banner { left: 16px; bottom: 16px; transform: none; width: min(360px, calc(100% - 32px)); padding: 16px 18px 14px; border-radius: 18px; }
.cc-banner .cc-text { margin-top: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cc-banner .cc-actions { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
.cc-banner .cc-actions .btn { min-width: 0; min-height: 40px; padding: 0 18px; font-size: 14px; }
.cc-banner .cc-link { margin-left: auto; padding: 8px 4px; font-size: 14px; }
@media (max-width: 560px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; border-radius: 18px; padding: 14px 16px 12px; }
  .cc-banner .cc-actions .btn { flex: 1 1 0; }
  .cc-banner .cc-link { width: auto; margin-left: 4px; }
}
.motion-toggle-wrap { display: none; }
.skip-pause-wrap { margin: 0; }
.skip-pause { border: 0; font: 600 16px var(--font-body); cursor: pointer; }
.skip-pause:focus { left: 16px; }
.foot-pause { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.foot-pause:hover .mt-label { text-decoration: underline; text-underline-offset: 3px; }
.foot-pause svg { fill: currentColor; flex-shrink: 0; }
.foot-pause .i-play, .foot-pause[aria-pressed="true"] .i-pause { display: none; }
.foot-pause[aria-pressed="true"] .i-play { display: inline; }
.foot-email { margin-top: 12px; font-size: 14px; }
.foot-email a { color: var(--ink); text-underline-offset: 3px; }
.foot-email a:hover { color: var(--aubergine); }
/* v2.13 - four agent points */
@media (min-width: 1101px) { .agent-points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 901px) {
  .agent-points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .agent-points li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* v2.14 - full-screen mobile menu */
.header-row { position: relative; z-index: 2; }
.mobile-nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 88px var(--gutter) max(24px, env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav[hidden] { display: none; }
.menu-open, .menu-open body { overflow: hidden; }
.mn-list { border-top: 1px solid var(--border); }
.mn-list > li { border-bottom: 1px solid var(--border); }
.mobile-nav .mn-list a, .mn-sub-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; padding: 0; border: 0; background: none; font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 6vw, 26px); letter-spacing: -.01em; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.mobile-nav .mn-list a:hover, .mn-sub-btn:hover { color: var(--aubergine); }
.mn-sub-btn svg { transition: transform .25s ease; }
.mn-sub-btn[aria-expanded="true"] { color: var(--aubergine); }
.mn-sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mn-sub { padding: 0 0 12px 16px; border-left: 2px solid var(--aubergine-200); margin: 0 0 12px 2px; }
.mn-sub[hidden] { display: none; }
.mobile-nav .mn-sub a { min-height: 46px; font-family: var(--font-body); font-weight: 500; font-size: 18px; color: var(--text-soft); }
.mn-foot { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.mobile-nav .mn-foot .btn { margin: 0; min-height: 56px; font-size: 17px; }
.mobile-nav .mn-login { align-self: center; padding: 8px; font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: none; }
@media (min-width: 901px) { .mobile-nav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mn-sub-btn svg { transition: none; } }
@media (max-width: 900px) and (max-height: 740px) {
  .mobile-nav { padding-top: 80px; gap: 16px; }
  .mobile-nav .mn-list a, .mn-sub-btn { min-height: 48px; font-size: 21px; }
  .mobile-nav .mn-sub a { min-height: 38px; font-size: 17px; }
  .mn-sub { padding-bottom: 6px; margin-bottom: 6px; }
  .mn-foot { flex-direction: row; align-items: center; }
  .mobile-nav .mn-foot .btn { flex: 1; min-height: 52px; }
}
/* v2.15 - mobile menu icons + Try it button */
.mobile-nav .mn-list a.mn-prod { justify-content: flex-start; gap: 14px; }
.mn-ic { flex-shrink: 0; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: var(--aubergine-50); }
.mn-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) and (max-height: 740px) {
  .mn-ic { width: 32px; height: 32px; border-radius: 10px; }
  .mn-ic svg { width: 17px; height: 17px; }
  .mn-foot { flex-wrap: wrap; }
  .mobile-nav .mn-foot .btn { flex: 1 1 40%; }
  .mobile-nav .mn-login { flex-basis: 100%; padding: 2px; text-align: center; }
}
.mobile-nav .mn-foot .btn { white-space: nowrap; }
@media (max-width: 900px) and (max-height: 740px) { .mobile-nav .mn-foot .btn { padding: 0 12px; font-size: 14px; } }
/* v2.16 - mobile menu: buttons under the list, smaller main links, lines in sub-menu */
.mobile-nav { justify-content: flex-start; gap: 28px; }
.mobile-nav .mn-list a, .mn-sub-btn { font-size: clamp(20px, 5.4vw, 23px); min-height: 56px; }
.mn-sub { padding-bottom: 4px; margin-bottom: 8px; }
.mn-sub li { border-bottom: 1px solid var(--border); }
.mn-sub li:last-child { border-bottom: 0; }
.mobile-nav .mn-sub a { min-height: 48px; font-size: 17px; }
@media (max-width: 900px) and (max-height: 740px) {
  .mobile-nav { gap: 20px; }
  .mobile-nav .mn-list a, .mn-sub-btn { min-height: 48px; font-size: 20px; }
  .mobile-nav .mn-sub a { min-height: 40px; font-size: 16px; }
}
/* Brand logos (shown as supplied, unaltered) */
.brand-logo { display: block; object-fit: contain; }

/* Safety net: nothing should ever make the page scroll sideways on a phone */
html, body { overflow-x: clip; }

/* ---------- Mobile only (18 Nov) ---------- */
@media (max-width: 900px) {
  /* Header sticks to the top, with a faint line under it */
  .site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid rgba(35, 31, 32, .08); }
  .header-row { padding-top: 18px; padding-bottom: 18px; }
  /* Jump links land below the sticky header */
  :where(section[id], [id]) { scroll-margin-top: 100px; }
  /* Open menu: the whole header becomes the full-screen menu. The logo, WhatsApp and close
     buttons stay in the normal page flow at the top, and the links sit underneath them, so no
     browser (Safari included) can paint the menu over the header. */
  .menu-open .site-header { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border-bottom-color: transparent; }
  .menu-open .header-row { flex: none; width: 100%; box-sizing: border-box; }
  .menu-open .mobile-nav { position: static; inset: auto; z-index: auto; flex: 1 0 auto;
    padding-top: 20px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Icons on the three product links (desktop menu) and on the product page eyebrows */
.nav-main a.nav-prod { display: inline-flex; align-items: center; gap: 8px; }
.nav-ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow-ic { display: inline-flex; align-items: center; gap: 10px; }
.eb-ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Homepage hero on phones: shorter intro so both buttons sit above the fold */
.hero-lead .lead-short { display: none; }
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero .eyebrow { font-size: 11.5px; letter-spacing: 2px; margin-bottom: 18px; }
  .hero .h1 { font-size: clamp(34px, 10vw, 42px); }
  .hero-lead { margin-top: 20px; }
  .hero-lead .lead-full { display: none; }
  .hero-lead .lead-short { display: inline; }
  .hero .actions { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
  .hero .actions .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
  .hero .small { margin-top: 14px; }
}
@media (max-width: 380px) { .hero .eyebrow { font-size: 10.5px; letter-spacing: 1.4px; } }

/* Mobile header: brand "Book a demo" button and a plain menu icon (no round backgrounds) */
.head-demo { display: none; }
@media (max-width: 900px) {
  .head-demo { display: inline-flex; margin-left: auto; }
  .menu-toggle { background: none; width: 40px; height: 44px; margin-right: -8px; }
}
@media (max-width: 900px) { .head-demo { white-space: nowrap; padding-left: 18px; padding-right: 18px; } }
@media (max-width: 380px) { .logo img { width: 118px; } .head-demo { padding-left: 14px; padding-right: 14px; font-size: 14px; } }

/* Phones: rounded full-width blocks get a little space at the sides */
@media (max-width: 640px) {
  .wrap.panel, .wrap.try, .wrap.cta { margin-left: 14px; margin-right: 14px; max-width: none; border-radius: 26px; }
}

/* Phones, every page: same tighter top as the homepage hero */
@media (max-width: 640px) {
  .eyebrow { font-size: 11.5px; letter-spacing: 2px; margin-bottom: 18px; }
  .cp-hero, .ib-hero, .bi-hero, .ab-hero, .bd-top, .faq-hero, .sf-hero { padding-top: 36px; }
  :is(.cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .lead { margin-top: 20px; }
  :is(.cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .actions { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
  :is(.cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .actions .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
@media (max-width: 380px) { .eyebrow { font-size: 10.5px; letter-spacing: 1.4px; } }
/* Mobile-only short intros (any page) */
.lead .lead-short { display: none; }
@media (max-width: 640px) { .lead .lead-full { display: none; } .lead .lead-short { display: inline; } }

/* Phones: no line under the sticky header; a soft shadow appears once you scroll */
@media (max-width: 900px) {
  .site-header { border-bottom: 0; transition: box-shadow .25s ease; }
  .site-header.is-scrolled { box-shadow: 0 6px 18px -8px rgba(35, 31, 32, .18); }
  .menu-open .site-header { box-shadow: none; }
}

/* Phones: a more compact scale, closer to Pancake's (smaller header, logo, headings, text and buttons) */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .logo img { width: 108px; }
  .head-demo { min-height: 38px; font-size: 14px; padding-left: 16px; padding-right: 16px; }
  .h1, .hero .h1 { font-size: clamp(30px, 8.6vw, 36px); }
  .h2, .h2-lg { font-size: 27px; }
  .h2-sm { font-size: 24px; }
  .h3 { font-size: 18.5px; }
  .lead { font-size: 16.5px; line-height: 1.55; }
  .btn { min-height: 46px; font-size: 14px; padding-left: 22px; padding-right: 22px; }
  .btn-sm { min-height: 40px; font-size: 14px; }
}
@media (max-width: 380px) { .logo img { width: 100px; } .head-demo { padding-left: 13px; padding-right: 13px; font-size: 13.5px; } }
/* Phones: every page's main heading on the same compact size (beats the page-specific sizes) */
@media (max-width: 640px) {
  main h1:is(.h1, .cp-h1, .ib-h1, .bi-h1, .faq-h1, .sf-h1, .bd-h1, .try-h1, .legal-h1):is(h1) { font-size: clamp(30px, 8.6vw, 36px); }
  body main .vt-hero .cp-h1 { font-size: clamp(30px, 8.6vw, 36px); }
}
/* Phones: hero buttons sized to their text and aligned left, not stretched */
@media (max-width: 640px) {
  .hero .actions, :is(.cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .actions { justify-content: flex-start; }
  .hero .actions .btn, :is(.cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .actions .btn { flex: 0 0 auto; min-height: 44px; padding-left: 20px; padding-right: 20px; font-size: 14.5px; }
}
/* Phones: the same, roomier gap between the header and the first line of every page */
@media (max-width: 640px) {
  body main :is(.hero, .cp-hero, .ib-hero, .bi-hero, .ab-hero, .bd-top, .faq-hero, .sf-hero, .legal-hero, .try-hero):first-child { padding-top: 64px; }
}
@media (max-width: 640px) {
  body main :is(.hero, .cp-hero, .ib-hero, .bi-hero, .ab-hero, .bd-top, .faq-hero, .sf-hero, .legal-hero, .try-hero) .eyebrow { margin-bottom: 22px; }
  body main :is(.hero, .cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .lead { margin-top: 24px; }
  body main :is(.hero, .cp-hero, .ib-hero, .bi-hero, .ab-hero, .faq-hero, .sf-hero) .actions { margin-top: 28px; }
}

/* Mobile menu: three-line icon that turns into a cross */
.menu-toggle svg .l2 { transition: opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { transform: none; opacity: 0; }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu: products first, a gap, then "For your clinic" with its pages always shown */
.mn-list > li.mn-has-sub { border-bottom: 0; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 14px; }
.mn-list > li:nth-child(3) { border-bottom: 1px solid var(--border); }
.mn-label { margin: 0; padding: 6px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--aubergine); }
.mn-sub, .mn-sub[hidden] { display: block; border-left: 0; padding: 0; margin: 0 0 8px; }
.mn-sub li { border-bottom: 0; }
.mobile-nav .mn-sub a { min-height: 44px; font-family: var(--font-body); font-weight: 600; font-size: 19px; color: var(--ink); }
.mn-list > li.mn-has-sub + li { border-top: 1px solid var(--border); }
.mn-list > li.mn-has-sub { border-top: 0; padding-top: 0; }

/* Mobile menu: About and FAQ as a quieter pair, no lines, after a gap */
.mn-list > li.mn-has-sub + li { border-top: 0; }
.mn-list > li.mn-minor { border-bottom: 0; }
.mn-list > li.mn-minor-first { margin-top: 18px; }
.mobile-nav .mn-list .mn-minor a { min-height: 40px; font-size: 17px; font-weight: 500; color: var(--text-soft); }
/* Mobile menu: FAQ and Log in as small links under the buttons */
.mobile-nav .mn-links { flex-basis: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.mobile-nav .mn-links a { padding: 8px 4px; color: var(--muted); text-decoration: none; }
.mobile-nav .mn-links a:hover { color: var(--aubergine); }
/* Phones: centred heroes keep their buttons centred */
@media (max-width: 640px) { :is(.ib-hero, .bi-hero) .actions { justify-content: center; } }
.foot-base span a { text-decoration: underline; text-underline-offset: 3px; } .foot-base span a:hover { color: var(--aubergine); }

/* Buttons: soft rounded rectangles instead of pills, site-wide */
.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.btn:focus-visible { border-radius: 12px; }
.cp-pay-btn { border-radius: 10px; }

/* Tabs: same rounded-rectangle shape as the buttons */
.tabs { border-radius: 14px; }
.tab, .tab:focus-visible { border-radius: 10px; }
.skip, .menu-toggle { border-radius: 10px; }

/* ---------- Sticky header that floats once you scroll (every page, every size) ---------- */
:root { --hdr-in: max(10px, calc(var(--gutter) - 20px)); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: background-color .3s ease; }
:where(section[id], [id]) { scroll-margin-top: 110px; }
.header-row {
  border: 1px solid transparent; border-radius: 18px;
  transition: padding .3s ease, margin .3s ease, width .3s ease, max-width .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: transparent; box-shadow: none; }
.site-header.is-scrolled .header-row {
  margin-top: 10px;
  width: calc(100% - 2 * var(--hdr-in)); max-width: calc(1320px - 2 * var(--hdr-in));
  padding: 10px calc(var(--gutter) - var(--hdr-in));
  background: rgba(255, 253, 249, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-color: rgba(35, 31, 32, .08);
  box-shadow: 0 10px 30px -12px rgba(36, 16, 42, .22);
}
@media (max-width: 900px) {
  .site-header.is-scrolled .header-row { padding-top: 8px; padding-bottom: 8px; }
  .menu-open .site-header, .menu-open .site-header.is-scrolled { background: var(--paper); }
  .menu-open .site-header .header-row { margin-top: 0; width: 100%; max-width: none; padding: 12px var(--gutter);
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .header-row { transition: none; } }

/* Log in as a soft tinted button beside Book a demo */
.btn-tint { background: var(--aubergine-50); color: var(--aubergine); }
.btn-tint:hover { background: #ead3ec; }
.nav-actions { gap: 10px; }
.nav-actions .nav-login { display: inline-flex; font-size: 14px; }
@media (max-width: 1080px) { .nav-actions .nav-login { display: none; } }

/* ---------- Header tuned to Pancake's proportions ---------- */
/* Lighter contents: smaller logo, menu text and buttons */
.logo img { width: 124px; }
.nav-main { font-size: 14px; }
.nav-actions { gap: 8px; }
.nav-actions .btn, .head-demo { min-height: 40px; padding-left: 18px; padding-right: 18px; font-size: 14.5px; border-radius: 10px; }
/* Floating bar: wide, even 8px around the buttons, corners that sit around the buttons' corners, quiet surface */
:root { --hdr-in: 16px; }
.site-header.is-scrolled .header-row {
  margin-top: 10px;
  width: calc(100% - 2 * var(--hdr-in)); max-width: 1400px;
  padding: 8px 8px 8px 22px;
  border-radius: 18px;
  background: rgba(247, 243, 236, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-color: rgba(35, 31, 32, .1);
  box-shadow: 0 6px 20px -12px rgba(36, 16, 42, .18);
}
@media (max-width: 900px) {
  :root { --hdr-in: 10px; }
  .site-header.is-scrolled .header-row { padding: 6px 6px 6px 14px; border-radius: 16px; }
  .head-demo { min-height: 38px; }
}
@media (max-width: 640px) { .logo img { width: 104px; } }
@media (max-width: 380px) { .logo img { width: 96px; } }
/* Floating bar: narrower, centred, with more room above it */
.site-header.is-scrolled .header-row { max-width: 1180px; margin-top: 16px; }
@media (max-width: 900px) { .site-header.is-scrolled .header-row { margin-top: 12px; } }
/* The gap above the bar has to live on the sticky header itself (a margin on the bar would collapse away) */
.site-header { transition: background-color .3s ease, padding .3s ease; }
.site-header.is-scrolled { padding-top: 16px; }
.site-header.is-scrolled .header-row { margin-top: 0; }
@media (max-width: 900px) { .site-header.is-scrolled { padding-top: 12px; } .menu-open .site-header.is-scrolled { padding-top: 0; } }
/* Desktop: the resting header runs almost full width, then shrinks into a narrow floating bar */
@media (min-width: 901px) {
  .site-header .header-row { width: 100%; max-width: 1760px; padding-left: 32px; padding-right: 32px; }
  .site-header.is-scrolled .header-row { width: calc(100% - 2 * var(--hdr-in)); max-width: 1040px; padding: 8px 8px 8px 22px; }
}
@media (min-width: 901px) { .site-header .header-row { max-width: 1320px; } }

/* Before and after card: compact (21 Nov) */
.b-ba .b-demo { min-height: 0; }
.b-ba .demo-ba { padding: 18px; gap: 10px; }
.b-ba .demo-ba .msg { font-size: 13px; }
.b-ba .ba-msg { max-width: 100% !important; gap: 10px; }
.b-ba .ba-pair { gap: 6px; }
.ib-shot { margin-top: clamp(40px, 5vw, 64px); }

/* Follow-up card (21 Nov) */
.demo-followup { flex: 1; gap: 8px; }
.demo-followup .msg { font-size: 13px; }
.demo-gap { display: flex; align-items: center; gap: 10px; margin: 2px 0; font-size: 12px; color: var(--muted); }
.demo-gap::before, .demo-gap::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-followup .toast { margin-top: 8px; }
.b-ba .b-demo, .demo-followup-wrap { min-height: 356px; }
@media (max-width: 860px) { .b-ba .b-demo, .demo-followup-wrap { min-height: 0; } }

/* Homepage H1 in two tones, like the product and clinic pages; the 10pm bar in the mid tint so it shows on aubergine */
.hero .h1 .line:nth-child(2) .line-inner { color: var(--aubergine); }
.mark-bar { background: #CCB0D1; opacity: 1; }
