/* ============================================================
   DocsDocs homepage — bespoke tooth-spine build (Opus)
   Isolated: only index.html loads this. styles.css untouched.
   ============================================================ */
@property --hpbob { syntax: '<length>'; inherits: false; initial-value: 0px; }

.hp {
  --wrap: 1200px; --pad: clamp(20px, 5vw, 64px);
  /* one signature easing for the whole page */
  --ease: cubic-bezier(.2,.8,.2,1);
  /* scoped palette aliases (never leak past .hp) */
  --peri: #5a82c2; --peri-1: #7f9ad6; --peri-2: #9fb4ff;
  --teal: #2f9e8f; --teal-1: #46e0c8; --teal-2: #4fd0bf;
  --violet: #6b6fd6;
  --d-bg: #0a0f20; --d-panel: #0c1226; --d-line: rgba(120,150,210,.16);
  --d-text: #e8eef8; --d-mut: #9fb0d0; --d-faint: #7a86a8;
  --beam: linear-gradient(100deg, var(--peri-1), var(--teal-1));
  /* x-ray teaser svg stroke needs --neon resolvable on the homepage */
  --neon: #8fa6ff; --neon2: #46e0c8;
}
.hp section { position: relative; }
.hp-h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; color: var(--ink); margin: 0; }
.hp-h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; color: var(--ink); margin: 14px 0 0; }
.hp-lead { font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-60); margin: 18px 0 0; }
.hp-lead b { color: var(--ink); font-weight: 600; }
.hp .eyebrow { display: inline-block; }

/* generic reveal helper (mirrors .ios in app.js but for hp-only blocks already covered) */

/* ===================== HERO ===================== */
.hp-hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: clamp(110px,16vh,180px) var(--pad) 0;
  --mx: 50%; --my: 42%;
  background: radial-gradient(120% 80% at 50% -10%, #eef2fb, transparent 60%), linear-gradient(180deg, #eaeef7, #e7ebf5); }
.hp-hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hp-hero-aurora { position: absolute; inset: -25% -10%; z-index: 0; pointer-events: none; filter: blur(48px); opacity: .85;
  background:
    radial-gradient(28% 36% at 32% 30%, rgba(90,130,194,.34), transparent 70%),
    radial-gradient(30% 38% at 70% 28%, rgba(47,158,143,.26), transparent 70%),
    radial-gradient(36% 44% at 60% 78%, rgba(108,111,214,.26), transparent 70%);
  animation: hpAurora 26s ease-in-out infinite alternate; }
@keyframes hpAurora { 0%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(2%,-2%) scale(1.06);} 100%{ transform: translate(-2%,2%) scale(1.02);} }
.hp-hero-spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: background .2s;
  background: radial-gradient(460px 460px at var(--mx) var(--my), rgba(255,255,255,.5), transparent 60%); }

/* faint perspective grid — depth without noise */
.hp-hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 18%, #000 28%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 18%, #000 28%, transparent 72%);
  background-image:
    linear-gradient(rgba(120,150,210,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,210,.10) 1px, transparent 1px);
  background-size: 64px 64px; }

/* signature kinetic beam — a light sweeps the wordmark */
.hp-hero-titlewrap { position: relative; display: inline-block; overflow: hidden; padding: 6px 4px; }
.hp-beam { position: absolute; top: -25%; left: 0; width: 22%; height: 150%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(159,180,255,.0) 18%, rgba(159,180,255,.55) 48%, rgba(70,224,200,.5) 58%, transparent 86%);
  filter: blur(13px); mix-blend-mode: screen; transform: translateX(-180%) skewX(-12deg); }
.hp-hero.in .hp-beam { animation: hpBeam 4.6s var(--ease) 1.2s infinite; }
@keyframes hpBeam { 0% { transform: translateX(-180%) skewX(-12deg); } 52%, 100% { transform: translateX(620%) skewX(-12deg); } }

.hp-hero-inner { position: relative; z-index: 3; max-width: 1180px; display: flex; flex-direction: column; align-items: center; }
.hp-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-60);
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 8px 15px; border-radius: 99px; box-shadow: 0 8px 22px -16px rgba(20,40,70,.5); }
.hp-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(25,184,134,.5); animation: hpDot 1.8s infinite; }
@keyframes hpDot { 0%{ box-shadow: 0 0 0 0 rgba(25,184,134,.5);} 70%{ box-shadow: 0 0 0 7px rgba(25,184,134,0);} 100%{ box-shadow: 0 0 0 0 rgba(25,184,134,0);} }

.hp-hero-title { margin: 26px 0 0; font-size: clamp(48px, 8.4vw, 124px); font-weight: 600; letter-spacing: -.045em; line-height: .92; color: var(--ink); }
.hp-tline { display: block; overflow: visible; }
.hp-tline-mid { display: flex; align-items: center; justify-content: center; gap: clamp(10px,1.8vw,26px); }
.hp-hero-title [data-word] { display: inline-block; transform: translateY(115%); opacity: 0; }
.hp-hero-title em { font-style: normal; background: linear-gradient(100deg, var(--indigo), #2f9e8f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-hero.in [data-word] { animation: hpWordUp .9s cubic-bezier(.2,.85,.25,1) forwards; }
.hp-tline:nth-child(1) [data-word]:nth-child(1){ animation-delay: .05s; }
.hp-tline:nth-child(1) [data-word]:nth-child(2){ animation-delay: .12s; }
.hp-tline:nth-child(1) [data-word]:nth-child(3){ animation-delay: .19s; }
.hp-tline-mid [data-word]:nth-child(1){ animation-delay: .26s; }
.hp-tline-mid em{ animation-delay: .40s; }
@keyframes hpWordUp { to { transform: translateY(0); opacity: 1; } }

/* big hero protagonist — tooth as the product, luminous, between type and copy */
.hp-hero-stage { position: relative; z-index: 3; width: clamp(190px, 22vw, 290px); height: clamp(220px, 26vw, 340px); margin: clamp(6px,1.5vh,18px) auto 0; pointer-events: none; }
.hp-hero-stage .hp-tooth { width: 100%; height: 100%; will-change: transform; }
.hp-hero-stage .hp-tooth-glow { inset: -28%; opacity: 1; background: radial-gradient(circle, rgba(130,160,235,.55), rgba(90,130,194,.22) 46%, transparent 70%); filter: blur(34px); }

.hp-hero-sub { position: relative; z-index: 3; max-width: 60ch; margin: 26px auto 0; font-size: clamp(16px,1.3vw,19px); line-height: 1.6; color: var(--ink-60); }
.hp-hero-sub b { color: var(--ink); font-weight: 600; }
.hp-hero-cta { position: relative; z-index: 3; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hp-ghost { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 13px 22px; border-radius: 99px; transition: background .2s, transform .2s; }
.hp-ghost:hover { background: #fff; }
.hp-pl { color: var(--indigo); font-size: 11px; }

.hp-hero-foot { position: relative; z-index: 3; width: 100%; max-width: 1180px; margin: clamp(46px,7vh,86px) auto 0;
  display: flex; align-items: flex-end; gap: clamp(24px,5vw,64px); padding-bottom: 30px; }
.hp-stat { display: flex; flex-direction: column; text-align: left; }
.hp-stat b { font-size: clamp(26px,2.6vw,36px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.hp-stat span { font-size: 12.5px; color: var(--ink-40); margin-top: 8px; max-width: 16ch; line-height: 1.35; }
.hp-scroll { margin-left: auto; }
.hp-mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink-40); display: grid; justify-items: center; padding-top: 6px; }
.hp-mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--ink-40); animation: hpScrollDot 1.6s ease-in-out infinite; }
@keyframes hpScrollDot { 0%{ transform: translateY(0); opacity: 1;} 70%{ transform: translateY(8px); opacity: 0;} 100%{ opacity: 0;} }

.hp-hero [data-r] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hp-hero.in [data-r] { opacity: 1; transform: none; }
.hp-hero.in .hp-badge { transition-delay: .12s; }
.hp-hero.in .hp-hero-sub { transition-delay: .5s; }
.hp-hero.in .hp-hero-cta { transition-delay: .62s; }
.hp-hero.in .hp-hero-foot { transition-delay: .72s; }

/* ===================== THE TOOTH (reusable SVG protagonist) ===================== */
.hp-tooth { position: relative; width: 100%; height: 100%; }
.hp-tooth svg { width: 100%; height: 100%; overflow: visible; display: block; }
.hp-tooth .t-enamel { transition: fill .6s ease, opacity .6s ease; }
.hp-tooth .t-scan { opacity: 0; }
.hp-tooth .t-find { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .5s ease; }
.hp-tooth .t-find.lit { opacity: 1; animation: hpFindPulse 1.8s ease-in-out infinite; }
@keyframes hpFindPulse { 0%,100%{ opacity: .6; } 50%{ opacity: 1; } }
/* x-ray mode (used in dark day scene) */
.hp-tooth.xray .t-enamel { fill: url(#tXray); }
.hp-tooth.xray .t-scan { opacity: 1; }
.hp-tooth-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(90,130,194,.5), transparent 65%); filter: blur(26px); opacity: .55; z-index: -1; }

/* ===================== PRODUCT RAIL (draggable deck) ===================== */
.hp-rail { padding: clamp(80px,11vh,140px) 0 clamp(28px,4vh,52px); position: relative; isolation: isolate; }
/* seamless handoff from the hero — a soft light pool bleeds down into the rail behind the heading */
.hp-rail::before { content: ""; position: absolute; left: 50%; top: -6%; z-index: -1; width: min(1100px, 92%);
  height: 62%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%, color-mix(in srgb, var(--peri) 26%, transparent), transparent 70%); }
.hp-rail-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.hp-rail-head .hp-h2 { margin-top: 16px; }
.hp-rail-head .hp-lead { margin-left: auto; margin-right: auto; max-width: 58ch; }
.hp-deck { margin-top: 48px; }
/* entrance: the whole deck rises + fades in as the section arrives (seamless handoff from the hero) */
.hp-deck.ios { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.hp-deck.ios.in { opacity: 1; transform: none; }
/* seamless auto-marquee: viewport clips + soft-fades both edges so cards melt in/out, not hard-cut */
.hp-deck-vp { overflow: hidden; padding: 8px 0 24px; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hp-deck.dragging .hp-deck-vp { cursor: grabbing; }
.hp-deck-track { display: flex; gap: 20px; padding: 0 var(--pad); will-change: transform; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; }
.hp-deck-track > .hp-prod img, .hp-deck-track > .hp-prod { -webkit-user-drag: none; }
.hp-prod { flex: 0 0 clamp(260px, 30vw, 332px); position: relative; isolation: isolate;
  display: flex; flex-direction: column; min-height: 280px; padding: 24px; border-radius: 22px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s; }
.hp-prod::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 16%, #fff), #fff 60%); }
.hp-prod:hover { transform: translateY(-8px); box-shadow: 0 36px 70px -36px color-mix(in srgb, var(--c) 55%, rgba(20,40,70,.5)); border-color: transparent; }
/* whole card is the link — no default focus box on click; keep a ring only for keyboard nav */
.hp-prod:focus { outline: none; }
.hp-prod:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; }
.hp-prod:hover::before { opacity: 1; }
.hp-prod-n { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #999); letter-spacing: .1em; }
.hp-prod-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; margin-top: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.hp-prod-t { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.hp-prod-t .tag-new { font-size: 9px; }
.hp-prod-d { font-size: 13.5px; color: var(--ink-60); line-height: 1.5; margin-top: 9px; }
.hp-prod-go { margin-top: auto; padding-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.hp-prod-go i { transition: transform .3s; } .hp-prod:hover .hp-prod-go i { transform: translateX(4px); }
.hp-deck-ui { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--pad) 0; display: flex; align-items: center; gap: 18px; }
.hp-deck-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink);
  transition: background .2s, transform .2s, border-color .2s; flex: none; }
.hp-deck-btn:hover { background: var(--periwinkle); border-color: var(--indigo-300); transform: scale(1.05); }
.hp-deck-btn:focus-visible, .hp-spine-node:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; }
.hp-deck-vp:focus-visible { outline: 2px solid var(--peri); outline-offset: 4px; border-radius: 16px; }
.hp-deck-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hp-deck-bar span { display: block; height: 100%; width: 20%; border-radius: 99px; background: linear-gradient(90deg, var(--peri), var(--teal)); will-change: transform; }

/* ===================== ★ THE MORNING — luminous spine (pinned, cinematic) ===================== */
.hp-morning { min-height: 320vh;
  background: radial-gradient(120% 60% at 50% 0%, #16223e, transparent 55%), linear-gradient(180deg, #0b1124, #080c1a 55%, #0b1226); color: #fff; }
.hp-morning-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .85; }
.hp-morning-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px,9vh,104px) var(--pad) clamp(28px,5vh,56px); overflow: hidden; }
.hp-morning-head { position: relative; z-index: 3; text-align: center; }
.hp-morning-eye { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--peri-1); font-weight: 700; }
.hp-morning-title { font-size: clamp(25px,3.3vw,44px); font-weight: 600; letter-spacing: -.025em; margin: 12px 0 0; line-height: 1.06; }

.hp-morning-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center;
  gap: clamp(16px,3.5vw,52px); width: 100%; max-width: 1040px; margin: clamp(20px,4vh,46px) auto 0; }

/* protagonist */
.hp-morning-stage { position: relative; display: grid; place-items: center; justify-self: center;
  width: clamp(170px,22vw,290px); height: clamp(170px,22vw,290px); }
.hp-morning .hp-tooth { width: 100%; height: 100%; filter: drop-shadow(0 26px 60px rgba(20,40,90,.6)); will-change: transform; }
.hp-morning-halo { position: absolute; inset: -22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(127,154,214,.45), rgba(70,224,200,.14) 48%, transparent 70%); filter: blur(30px); }

/* the spine */
.hp-spine { position: relative; justify-self: center; height: clamp(220px,40vh,400px); width: 26px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.hp-spine-track { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 2px; margin-left: -1px;
  background: rgba(120,150,210,.18); border-radius: 2px; overflow: hidden; }
.hp-spine-fill { position: absolute; top: 0; left: 0; right: 0; height: 0%;
  background: linear-gradient(180deg, var(--peri-1), var(--teal-1)); box-shadow: 0 0 14px rgba(127,154,214,.7); }
.hp-spine-bead { position: absolute; top: 0; left: 50%; width: 13px; height: 13px; margin: -6px 0 0 -6.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(127,154,214,.25), 0 0 22px var(--peri-1); will-change: transform; z-index: 3; }
.hp-spine-node { position: relative; z-index: 2; width: 13px; height: 13px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid rgba(120,150,210,.45); background: #0c1226; transition: transform .4s var(--ease), background .4s, border-color .4s, box-shadow .4s; }
.hp-spine-node.on { border-color: var(--teal-1); background: var(--teal-1); box-shadow: 0 0 16px var(--teal-1); transform: scale(1.25); }
.hp-spine-node.done { border-color: var(--peri-1); background: var(--peri-1); }

/* stations */
.hp-morning-cards { position: relative; justify-self: start; width: 100%; max-width: 420px; min-height: clamp(220px,38vh,300px); }
.hp-mcard { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease); }
.hp-mcard.on { opacity: 1; transform: none; }
.hp-mc-time { font-size: 12px; font-weight: 700; color: var(--peri-1); letter-spacing: .06em; }
.hp-mcard h3 { font-size: clamp(20px,2.2vw,29px); font-weight: 600; letter-spacing: -.02em; margin: 8px 0 0; line-height: 1.08; }
.hp-mcard p { font-size: 14.5px; line-height: 1.6; color: var(--d-mut); margin: 12px 0 0; max-width: 40ch; }
.hp-mc-pill { display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 600; color: #cdd7f0;
  background: rgba(120,150,210,.16); border: 1px solid rgba(120,150,210,.24); padding: 7px 14px; border-radius: 99px; }
.hp-morning-disclaim { position: relative; z-index: 3; text-align: center; font-size: 12px; color: #6b769a; max-width: 60ch; margin: clamp(18px,3vh,30px) auto 0; }

/* ---- "The Morning" → live room-by-room clinic tour ---- */
.hp-morning.hp-tour { min-height: 760vh; }
.hp-tour-grid { grid-template-columns: 2.2fr 30px 1fr; max-width: min(1660px, 96vw); gap: clamp(20px,3vw,56px); align-items: center; }
.hp-tour-stage { position: relative; width: 100%; aspect-ratio: 1720 / 1020; overflow: hidden; border-radius: 20px; justify-self: stretch;
  background: radial-gradient(120% 120% at 50% 8%, #12213e, #0a1122);
  box-shadow: 0 50px 130px -50px rgba(0,0,0,.7), inset 0 0 0 1px rgba(130,155,215,.16); }
.hp-tour-clinic { position: absolute; inset: 0; transform-box: border-box; transform-origin: 0 0; pointer-events: none; will-change: transform;
  transform: translate(0px,0px) scale(1); transition: transform 1.1s cubic-bezier(.16,.84,.29,1); }
.hp-tour-clinic .hp-tour-office { width: 100%; }
/* the clinic's own in-SVG toasts get magnified huge by the zoom — hide them; the tour has its own toast */
.hp-tour .of-noti-layer, .hp-tour .of-card { display: none !important; }
.hp-tour-vignette { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 90px 24px rgba(8,12,26,.5); }
.hp-tour-spine { height: clamp(300px,58vh,560px); }
.hp-tour-cards { max-width: 440px; min-height: clamp(330px,50vh,480px); }
/* overview → the section title + ecosystem line live in the right panel (not a top heading) */
.hp-tour-head-min { min-height: 0; }
.hp-tour-intro .hp-tour-intro-title { font-size: clamp(27px,2.7vw,42px); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.06; color: var(--ink); margin: 12px 0 0; }
.hp-tour-intro p { font-size: clamp(14.5px,1.05vw,16px); line-height: 1.62; margin: 16px 0 0; max-width: 42ch; }
/* ecosystem lead + view toggle */
.hp-tour-lead { max-width: 62ch; margin: 14px auto 0; font-size: clamp(14px,1.05vw,16px); line-height: 1.6; color: var(--d-mut); text-align: center; }
.hp-tour-lead b { color: #dbe6ff; font-weight: 600; }
.hp-tour-modes { display: inline-flex; gap: 4px; margin: 22px auto 0; padding: 4px; border-radius: 99px;
  background: rgba(120,150,210,.1); border: 1px solid rgba(120,150,210,.2); }
.hp-tour-mode { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: #aab7dc; padding: 8px 17px; border-radius: 99px; background: transparent; transition: background .25s, color .25s; }
.hp-tour-mode.on { background: linear-gradient(100deg, var(--peri-1), var(--teal-1)); color: #0b1226; }
.hp-tour-mode:hover:not(.on) { color: #e6ecfb; }
/* per-room feature chips */
.hp-tc-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; padding: 0; }
.hp-tc-feats li { font-size: 11.5px; font-weight: 500; color: #cdd7f0; background: rgba(120,150,210,.12);
  border: 1px solid rgba(120,150,210,.2); padding: 5px 10px; border-radius: 8px; }
/* FOCUS mode → isolate one room: hide the rest of the clinic, show just the active room big + centred */
.of-stage.of-cutout .of-building > :not(.of-room) { opacity: 0; transition: opacity .5s ease; }
.of-stage.of-cutout .of-room { opacity: 0; transition: opacity .5s ease; }
.of-stage.of-cutout .of-room.is-active { opacity: 1; }

/* live per-room automation toast (top-left of the clinic panel, both modes) */
.hp-tour-noti { position: absolute; left: 16px; top: 16px; z-index: 4; max-width: min(72%, 350px);
  display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: start; padding: 10px 13px; border-radius: 13px;
  background: #fff; border: 1px solid #dbe4f2; box-shadow: 0 16px 34px -18px rgba(40,64,110,.4);
  opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.hp-tour-noti.show { opacity: 1; transform: none; }
.hp-tour-noti .tn-ic { grid-row: 1 / span 2; align-self: center; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; background: #eef3fb; }
.hp-tour-noti .tn-tx { font-size: 12px; line-height: 1.35; color: var(--ink-60); }
.hp-tour-noti .tn-tx b { color: var(--peri); font-weight: 600; }
.hp-tour-noti .tn-auto { display: flex; width: max-content; align-items: center; gap: 4px; margin-top: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1f9e7f; }
.hp-tour-noti .tn-auto i { width: 11px; height: 11px; border-radius: 50%; background: var(--teal-1); display: grid; place-items: center; }
.hp-tour-noti .tn-auto i::after { content: "✓"; color: #fff; font-size: 8px; line-height: 1; }

/* ===== the tour adopts the site-wide SAND-BLUE (light) scheme, not the dark set-piece look ===== */
.hp-morning.hp-tour { background: linear-gradient(180deg, #e6f2ec, #d6e9de 55%, #e6f2ec); color: var(--ink); }
/* tighter handoff from the carousel: less lead-in air; clinic sits high + large (no toggle) */
.hp-morning.hp-tour .hp-morning-sticky { padding-top: clamp(16px,2.4vh,34px); padding-bottom: clamp(16px,2.6vh,36px); }
.hp-tour .hp-tour-grid { margin-top: 0; }
.hp-tour .hp-morning-particles { display: none; }
.hp-tour .hp-morning-eye { color: #3d63a4; }
.hp-tour .hp-morning-title { color: var(--ink); }
.hp-tour .hp-tour-lead { color: var(--ink-60); }
.hp-tour .hp-tour-lead b { color: #3d63a4; }
.hp-tour .hp-morning-disclaim { color: #8792ab; }
.hp-tour .hp-tour-modes { background: #fff; border-color: var(--line); box-shadow: 0 8px 22px -16px rgba(40,64,110,.35); }
.hp-tour .hp-tour-mode { color: var(--ink-60); }
.hp-tour .hp-tour-mode.on { background: linear-gradient(100deg, #5a82c2, #3d63a4); color: #fff; }
.hp-tour .hp-tour-mode:hover:not(.on) { color: var(--ink); }
.hp-tour .hp-tour-stage { background: linear-gradient(160deg, #f5f8fd, #e7edf7);
  box-shadow: 0 40px 100px -48px rgba(40,64,110,.4), inset 0 0 0 1px #dbe4f2; }
.hp-tour .hp-tour-vignette { box-shadow: inset 0 0 80px 22px rgba(226,233,246,.55); }
.hp-tour .hp-mcard .hp-mc-time { color: #3d63a4; }
.hp-tour .hp-mcard h3 { color: var(--ink); }
.hp-tour .hp-mcard p { color: var(--ink-60); }
.hp-tour .hp-mcard p b { color: #3d63a4; font-weight: 600; }
.hp-tour .hp-mc-pill { color: #3d63a4; background: #eaf0fb; border-color: #d3e0f5; }
.hp-tour .hp-tc-feats li { color: #3d63a4; background: #eef3fb; border-color: #dbe6f6; }
.hp-tour .hp-spine-track { background: rgba(90,130,194,.2); }
.hp-tour .hp-spine-fill { background: linear-gradient(180deg, #5a82c2, #3d63a4); box-shadow: 0 0 12px rgba(90,130,194,.5); }
.hp-tour .hp-spine-node { border-color: rgba(90,130,194,.5); background: #eef1f7; }
.hp-tour .hp-spine-node.on { border-color: #3d63a4; background: #3d63a4; box-shadow: 0 0 14px rgba(61,99,164,.55); }
.hp-tour .hp-spine-node.done { border-color: #5a82c2; background: #5a82c2; }
@media (prefers-reduced-motion: reduce), (max-width: 700px){
  /* no scrub: show the whole clinic + all room features as a simple list */
  .hp-tour-clinic { transition: none; }
  .hp-tour-cards .hp-mcard { position: relative; opacity: 1; transform: none; margin-bottom: 18px; }
  .hp-tour-cards { min-height: 0; }
}
@media (max-width: 860px){
  .hp-morning.hp-tour { min-height: 0; }
  .hp-tour-grid { grid-template-columns: 1fr; }
  .hp-tour-spine { display: none; }
  .hp-tour-stage { max-width: 560px; margin: 0 auto; }
  .hp-tour-cards { max-width: 520px; min-height: 0; }
  .hp-tour-cards .hp-mcard { position: relative; opacity: 1; transform: none; margin-bottom: 16px; text-align: center; }
  .hp-tour-cards .hp-mcard p { margin-left: auto; margin-right: auto; }
}

/* ===================== FRAGMENTATION ===================== */
.hp-frag { padding: clamp(80px,11vh,140px) var(--pad); max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }
.hp-frag-head { max-width: 62ch; }
.hp-frag-head .hp-lead b { color: var(--ink); }
.hp-frag-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 46px; }
.hp-pain { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 24px; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.hp-pain:hover { transform: translateY(-7px); box-shadow: 0 34px 64px -34px rgba(20,40,70,.45); }
.hp-pain-top { display: flex; justify-content: space-between; align-items: center; }
.hp-tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; }
.tag-red { color: #c2566f; background: rgba(194,86,111,.12); }
.tag-amber { color: #b0823a; background: rgba(176,130,58,.15); }
.tag-indigo { color: var(--indigo); background: var(--periwinkle); }
.tag-teal { color: #2f9e8f; background: rgba(47,158,143,.14); }
.hp-pain-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--ink-40); background: #f1f3f8; }
.hp-pain-viz { height: 98px; margin: 18px 0 16px; border-radius: 14px; background: #f6f8fc; border: 1px solid var(--line); position: relative; overflow: hidden; }
.hp-pain-h { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 0; line-height: 1; }
.hp-pain-h .mono { font-variant-numeric: tabular-nums; }
.hp-pain-u { font-size: 15px; color: var(--ink-40); font-weight: 500; margin-left: 2px; }
.hp-pain p { font-size: 13.5px; color: var(--ink-60); line-height: 1.55; margin: 9px 0 0; }
.hp-viz-err { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 14px; }
.terr { position: relative; display: flex; align-items: center; font-size: 11px; height: 24px; }
.terr span { color: var(--ink-60); font-weight: 600; }
.terr b { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 3px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.s-ok { color: #2f9e8f; background: rgba(47,158,143,.14); animation: errOk 4.2s ease-in-out infinite; }
.s-bad { color: #c2566f; background: rgba(194,86,111,.16); opacity: 0; animation: errBad 4.2s ease-in-out infinite; }
.terr.d2 .s-ok, .terr.d2 .s-bad { animation-delay: .8s; }
@keyframes errOk { 0%,38%{ opacity: 1; } 50%,92%{ opacity: 0; } 100%{ opacity: 1; } }
@keyframes errBad { 0%,38%{ opacity: 0; transform: translateY(-50%) translateX(0);} 46%{ transform: translateY(-50%) translateX(-3px);} 52%{ transform: translateY(-50%) translateX(3px);} 56%,92%{ opacity: 1; transform: translateY(-50%) translateX(0);} 100%{ opacity: 0;} }
.hp-viz-cost { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 14px 16px; }
.hp-viz-cost i { width: 14px; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#d9a14a,#b0823a); transform: scaleY(.18); transform-origin: bottom; opacity: .5; animation: barGrow .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hp-viz-cost i:nth-child(2){animation-delay:.08s} .hp-viz-cost i:nth-child(3){animation-delay:.16s} .hp-viz-cost i:nth-child(4){animation-delay:.24s} .hp-viz-cost i:nth-child(5){animation-delay:.32s} .hp-viz-cost i:nth-child(6){animation-delay:.4s}
@keyframes barGrow { to { transform: scaleY(1); opacity: 1; } }
.hp-viz-frag { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 9px; padding: 18px 22px; }
.hp-viz-frag i { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); opacity: .3; animation: fragPulse 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fragPulse { 0%,100%{ opacity: .22; transform: scale(.8);} 50%{ opacity: .9; transform: scale(1.12);} }
.hp-frag-break { position: absolute; bottom: 6px; right: 9px; font-size: 9.5px; color: #c2566f; font-weight: 600; opacity: .9; }
.hp-viz-time { display: grid; place-items: center; }
.tclock { position: relative; width: 62px; height: 62px; }
.tclock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tc-track { fill: none; stroke: #e2e7f0; stroke-width: 3; }
.tc-fill { fill: none; stroke: #2f9e8f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; animation: tcDrain 4s ease-in-out infinite; }
@keyframes tcDrain { 0%{ stroke-dashoffset: 97.4;} 100%{ stroke-dashoffset: 12;} }
.tc-hand { position: absolute; left: 50%; top: 50%; width: 2px; height: 20px; background: var(--ink); border-radius: 2px; transform-origin: bottom center; transform: translate(-50%,-100%); animation: tcSpin 3s linear infinite; }
@keyframes tcSpin { to { transform: translate(-50%,-100%) rotate(360deg); } }

.hp-collapse { margin-top: 32px; display: grid; grid-template-columns: 1fr auto 1.12fr; align-items: center; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; box-shadow: 0 22px 50px -36px rgba(20,40,70,.4); }
.hp-col-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.hp-col-stack span { font-size: 11.5px; color: var(--ink-60); background: #f1f3f8; border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; transition: transform .35s, opacity .35s; }
.hp-collapse:hover .hp-col-stack span { opacity: .45; transform: scale(.95); }
.hp-col-fold { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); font-weight: 600; }
.hp-col-one { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--indigo), var(--indigo-300)); border-radius: 16px; padding: 16px 18px; color: #fff; box-shadow: 0 24px 50px -26px var(--indigo); }
.hp-col-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 18px; flex: none; }
.hp-col-tx b { display: block; font-size: 15px; font-weight: 600; }
.hp-col-tx span { display: block; font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 2px; }
.hp-col-cta { margin-left: auto; flex: none; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.hp-col-cta i { transition: transform .3s; } .hp-col-cta:hover i { transform: translateX(4px); }

/* ===================== AI TEAM CONSOLE ===================== */
.hp-team { padding: clamp(80px,11vh,140px) var(--pad); max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }
.hp-team-head { max-width: 50ch; }
.hp-team-console { --tint: #5a82c2; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 18px; margin-top: 44px; }

/* --- roster rail (light) --- */
.hp-team-roster { display: flex; flex-direction: column; gap: 10px; }
.hp-trole { --tint: #5a82c2; position: relative; display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; column-gap: 13px; align-items: center;
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px; cursor: pointer; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, background .35s; }
.hp-trole::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tint); border-radius: 0 3px 3px 0; transform: scaleY(0); transition: transform .35s; }
.hp-trole > * { position: relative; z-index: 1; }
.hp-trole-ava { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px;
  background: color-mix(in srgb, var(--tint) 14%, #fff); color: var(--tint); transition: background .35s, color .35s, transform .35s, box-shadow .35s; }
.hp-trole-tx b { font-size: 15px; font-weight: 600; color: var(--ink); display: block; line-height: 1.2; }
.hp-trole-tx i { font-size: 12px; color: var(--ink-40); font-style: normal; }
.hp-trole-st { grid-column: 2 / -1; display: none; align-items: center; gap: 7px; font-size: 12px; color: var(--tint); font-weight: 600; margin-top: 7px; }
.hp-trole-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tint) 55%, transparent); animation: hpDot 1.8s infinite; }
.hp-trole-go { grid-row: 1 / span 2; align-self: center; font-size: 16px; line-height: 1; color: var(--tint); opacity: 0; transform: translateX(-5px); transition: opacity .35s, transform .35s; }
.hp-trole:hover { transform: translateX(3px); box-shadow: 0 18px 38px -28px rgba(20,40,70,.4); border-color: color-mix(in srgb, var(--tint) 38%, var(--line)); }
.hp-trole:hover .hp-trole-go { opacity: .55; transform: translateX(0); }
.hp-trole.on { border-color: color-mix(in srgb, var(--tint) 42%, transparent); box-shadow: 0 24px 46px -28px color-mix(in srgb, var(--tint) 60%, transparent); transform: translateX(3px);
  background: color-mix(in srgb, var(--tint) 7%, #fff); }
.hp-trole.on::before { transform: scaleY(1); }
.hp-trole.on .hp-trole-ava { background: var(--tint); color: #fff; transform: scale(1.05); box-shadow: 0 14px 26px -12px var(--tint); }
.hp-trole.on .hp-trole-st { display: flex; }
.hp-trole.on .hp-trole-go { opacity: 0; }

/* --- live stage (dark canvas, adopts per-desk --tint) --- */
.hp-team-stage { position: relative; isolation: isolate; border: 1px solid rgba(120,150,210,.18); border-radius: 22px; padding: 24px 26px 26px; overflow: hidden;
  box-shadow: 0 34px 70px -40px rgba(10,20,45,.6); display: flex; flex-direction: column;
  background: linear-gradient(165deg, color-mix(in srgb, var(--tint) 24%, #0d1326), #0b1020); transition: background .6s; }
.hp-team-glow { position: absolute; top: -34%; right: -18%; width: 72%; height: 92%; pointer-events: none; z-index: -1; filter: blur(64px); opacity: .6;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 85%, transparent), transparent 70%); transition: background .6s; }
.hp-ts-head { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(140,165,220,.16); }
.hp-ts-ava { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; color: #fff;
  background: color-mix(in srgb, var(--tint) 80%, #fff); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--tint) 85%, #000); transition: background .5s, box-shadow .5s; }
.hp-ts-meta b { display: block; font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.hp-ts-meta span { display: block; font-size: 12.5px; color: #aeb8d4; margin-top: 2px; }
.hp-ts-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tint) 34%, #fff); background: color-mix(in srgb, var(--tint) 24%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 42%, transparent); padding: 6px 13px; border-radius: 99px; transition: color .5s, background .5s, border-color .5s; }
.hp-ts-live i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 40%, #fff); box-shadow: 0 0 8px color-mix(in srgb, var(--tint) 60%, #fff); animation: hpDot 1.6s infinite; }
.hp-ts-feed { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 18px 0 4px; min-height: 244px; }
.hp-ts-item { position: relative; display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.045); border: 1px solid rgba(140,165,220,.14); border-radius: 14px; padding: 12px 15px 12px 17px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, background .5s; }
.hp-ts-item::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--tint); opacity: .7; transition: background .5s; }
.hp-ts-item.enter { opacity: 0; transform: translateY(-14px) scale(.98); }
.hp-ts-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; flex: none;
  background: color-mix(in srgb, var(--tint) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 34%, transparent); }
.hp-ts-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.hp-ts-body b { font-size: 13.5px; font-weight: 600; color: #f3f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-ts-body span { font-size: 12.5px; color: #a7b2ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-ts-pill { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--tint) 36%, #fff);
  background: color-mix(in srgb, var(--tint) 26%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 38%, transparent); padding: 4px 12px; border-radius: 99px; white-space: nowrap; transition: color .5s, background .5s; }
.hp-ts-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(140,165,220,.16); }
.hp-ts-lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8695ba; font-weight: 600; }
.hp-ts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hp-ts-tag { font-size: 12px; color: #c3cce4; background: rgba(255,255,255,.05); border: 1px solid rgba(140,165,220,.16); padding: 6px 12px; border-radius: 9px; transition: border-color .35s, color .35s; }
.hp-ts-tag:hover { border-color: color-mix(in srgb, var(--tint) 45%, transparent); color: #fff; }

/* ===================== CAPABILITY BANDS ===================== */
.hp-bands { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px,7vh,90px) var(--pad); display: flex; flex-direction: column; gap: clamp(40px,7vh,96px); }
.hp-band { position: relative; padding: clamp(30px,4vw,56px); border-radius: 28px; overflow: hidden; max-width: 760px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -44px rgba(20,40,70,.4); }
.hp-band-alt { margin-left: auto; background: linear-gradient(160deg, #0d1326, #0b1020); border-color: rgba(120,150,210,.16); color: #fff; }
.hp-band-mark { position: absolute; top: clamp(24px,3vw,44px); right: clamp(24px,3vw,44px); font-size: clamp(48px,7vw,96px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); opacity: .06; line-height: 1; }
.hp-band-alt .hp-band-mark { color: #fff; opacity: .1; }
.hp-band .eyebrow { position: relative; }
.hp-band-alt .eyebrow { color: #7f9ad6; }
.hp-band-alt .hp-h2 { color: #fff; }
.hp-band-alt .hp-lead { color: #aeb8d4; }
.hp-band-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.hp-band-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--ink-60); }
.hp-band-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); }
.hp-band-list b { color: var(--ink); font-weight: 600; }
.hp-band-alt .hp-band-list li { color: #aeb8d4; }
.hp-band-alt .hp-band-list b { color: #fff; }
.hp-band-alt .hp-band-list li::before { background: #6f8fce; }
.hp-ledger { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.hp-ledger-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.hp-ledger-row b { margin-left: auto; font-weight: 600; }
.hp-ledger-row .ok { color: var(--mint); }
.hp-ledger-row.bad { border-color: rgba(194,86,111,.4); background: #fff6f7; }
.hp-ledger-row.bad span { color: #c2566f; }
.hp-ledger-row .ap { color: #c2566f; font-size: 11px; font-weight: 700; }

/* ===================== COMMAND BAR ===================== */
.hp-cmd { padding: clamp(80px,11vh,140px) var(--pad); }
.hp-cmd-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hp-cmd-inner .hp-h1 { margin-top: 16px; }
.hp-cmd-inner .hp-lead { margin-left: auto; margin-right: auto; max-width: 52ch; }
.hp-cmd-box { margin-top: 34px; text-align: left; background: #0d1326; border-radius: 18px; padding: 22px; box-shadow: 0 40px 90px -50px rgba(13,19,38,.9); border: 1px solid rgba(120,150,210,.16); }
.hp-cmd-line { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #fff; }
.hp-k { font-size: 11px; font-weight: 600; color: #9fb0e0; background: rgba(120,150,210,.16); border: 1px solid rgba(120,150,210,.24); padding: 4px 8px; border-radius: 7px; }
.hp-typed { font-family: inherit; }
.hp-caret { width: 2px; height: 18px; background: #7f9ad6; animation: hpCaret 1s step-end infinite; }
@keyframes hpCaret { 50% { opacity: 0; } }
.hp-cmd-out { margin-top: 16px; min-height: 56px; }
.hp-cmd-out .row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cdd7f0; padding: 8px 0; border-top: 1px solid rgba(120,150,210,.12); opacity: 0; transform: translateY(6px); }
.hp-cmd-out .row.in { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hp-cmd-out .row .ok { color: var(--teal-1); }
/* interactive command chips — tap one to run it */
.hp-cmd-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(120,150,210,.12); }
.hp-cmd-chip { font: inherit; font-size: 13px; font-weight: 600; color: #cdd7f0; cursor: pointer;
  background: rgba(120,150,210,.12); border: 1px solid rgba(120,150,210,.22); padding: 9px 15px; border-radius: 99px;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.hp-cmd-chip:hover { color: #fff; background: rgba(120,150,210,.2); transform: translateY(-1px); }
.hp-cmd-chip.on { color: #fff; background: linear-gradient(120deg, var(--peri), var(--teal)); border-color: transparent; box-shadow: 0 12px 26px -14px var(--peri); }
.hp-cmd-chip:focus-visible { outline: 2px solid var(--peri-2); outline-offset: 2px; }
.hp-cmd-stats { display: flex; justify-content: center; gap: clamp(28px,5vw,60px); margin-top: 30px; }
.hp-cmd-stats b { display: block; font-size: clamp(24px,2.4vw,32px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.hp-cmd-stats span { font-size: 12.5px; color: var(--ink-40); margin-top: 6px; display: block; }

/* ===================== X-RAY TEASER ===================== */
.hp-xray { max-width: 860px; margin: 0 auto; padding: clamp(40px,6vh,80px) var(--pad) clamp(80px,11vh,140px); text-align: center; }
.hp-xray-inner { display: flex; flex-direction: column; align-items: center; }
.hp-xray-inner .hp-xray-title { font-size: clamp(34px,4.4vw,58px); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 16px 0 0; color: var(--ink); }
.hp-xray-inner .hp-lead { max-width: 56ch; }
.hp-xray-inner .btn { margin-top: 26px; }
.hp-disc { font-size: 12px; color: var(--ink-40); margin-top: 18px; max-width: 52ch; }
.hp-xray-scan { width: 100%; margin: 44px auto 0; }
.hp-xray-readout { width: 100%; max-width: 620px; margin: 40px auto 0; text-align: left; }
.hp-xray-readout { background: linear-gradient(160deg,#0d1326,#0a0f1f); border-radius: 20px; padding: 22px; border: 1px solid rgba(120,150,210,.16); box-shadow: 0 40px 90px -50px rgba(13,19,38,.9); }
.hp-ro-head { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .14em; color: #7f9ad6; font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid rgba(120,150,210,.14); }
.hp-ro-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: hpDot 1.6s infinite; }
.hp-ro-head span { margin-left: auto; color: #9fb0e0; }
.hp-ro-row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #cdd7f0; padding: 14px 0; border-bottom: 1px solid rgba(120,150,210,.1); }
.hp-ro-row:last-child { border-bottom: 0; }
.hp-ro-row b { margin-left: auto; font-weight: 600; color: #fff; }
.hp-ro-row .sw { width: 12px; height: 12px; border-radius: 4px; }

/* ===================== WHY ===================== */
.hp-why { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: clamp(70px,9vh,120px) var(--pad); }
.hp-why-head { max-width: 34ch; }
.hp-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.hp-why-card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; text-decoration: none; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s; }
.hp-why-card:hover { transform: translateY(-7px); box-shadow: 0 34px 64px -34px rgba(20,40,70,.42); border-color: var(--indigo-300); }
.hp-why-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--periwinkle); color: var(--indigo); }
.hp-why-m { font-size: 38px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-top: 22px; line-height: 1; }
.hp-why-m i { font-size: 15px; font-style: normal; color: var(--ink-40); font-weight: 500; }
.hp-why-card h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 16px 0 0; }
.hp-why-card p { font-size: 14px; color: var(--ink-60); line-height: 1.55; margin: 9px 0 0; }
.hp-why-go { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--indigo); }
.hp-why-go i { transition: transform .3s; } .hp-why-card:hover .hp-why-go i { transform: translateX(4px); }

/* ===================== MIGRATION ===================== */
.hp-mig { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px,6vh,80px) var(--pad) clamp(70px,9vh,120px); }
.hp-mig-head { max-width: 40ch; }
.hp-mig-track { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 44px; }
.hp-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; transition: transform .4s, box-shadow .4s; }
.hp-step:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -34px rgba(20,40,70,.4); }
.hp-step-n { font-size: 13px; font-weight: 700; color: var(--indigo); letter-spacing: .08em; }
.hp-step h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 12px 0 0; }
.hp-step p { font-size: 13px; color: var(--ink-60); line-height: 1.5; margin: 8px 0 0; }

/* ===================== FAQ ===================== */
.hp-faq { max-width: calc(880px + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px,6vh,80px) var(--pad) clamp(80px,11vh,140px); }
.hp-faq-head { text-align: center; max-width: 100%; }
.hp-faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.hp-qa { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.hp-qa[open] { border-color: var(--indigo-300); box-shadow: 0 22px 50px -36px rgba(20,40,70,.4); }
.hp-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-size: clamp(15px,1.4vw,17.5px); font-weight: 600; color: var(--ink); }
.hp-qa summary::-webkit-details-marker { display: none; }
.hp-qa-n { font-size: 13px; font-weight: 700; color: var(--indigo-300); flex: none; }
.hp-qa summary i { margin-left: auto; flex: none; width: 22px; height: 22px; position: relative; }
.hp-qa summary i::before, .hp-qa summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink-40); transform: translate(-50%,-50%); transition: transform .3s; }
.hp-qa summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.hp-qa[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.hp-qa p { padding: 0 22px 22px 52px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }

/* ===================== CTA ===================== */
.hp-ctaS { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) clamp(80px,11vh,140px); }
.hp-cta { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(44px,7vw,90px); text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, var(--indigo) 0%, var(--indigo-300) 45%, #243a63 100%); box-shadow: 0 50px 100px -50px var(--indigo); }
.hp-cta-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hp-cta-glow { position: absolute; inset: -40% -10% auto -10%; height: 90%; pointer-events: none; opacity: .8; filter: blur(50px);
  background: radial-gradient(40% 60% at 22% 30%, rgba(127,154,214,.55), transparent 70%), radial-gradient(40% 60% at 80% 20%, rgba(70,224,200,.4), transparent 70%);
  animation: hpAurora 22s ease-in-out infinite alternate; }
.hp-cta-title { position: relative; font-size: clamp(30px,4vw,54px); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; margin: 0; }
.hp-cta p { position: relative; font-size: clamp(15px,1.3vw,18px); color: rgba(255,255,255,.85); margin: 18px auto 0; max-width: 50ch; }
.hp-cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--indigo-300); }
.btn-light:hover { background: #eef1f7; }
.hp-cta-ghost { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); transition: background .2s; }
.hp-cta-ghost:hover { background: rgba(255,255,255,.12); }

/* ===================== responsive ===================== */
@media (max-width: 1040px){
  .hp-frag-grid { grid-template-columns: repeat(2,1fr); }
  .hp-why-grid { grid-template-columns: 1fr; }
  .hp-team-console { grid-template-columns: 1fr; }
  .hp-team-roster { flex-direction: row; flex-wrap: wrap; }
  .hp-trole { flex: 1 1 240px; }
  .hp-xray { grid-template-columns: 1fr; }
  .hp-mig-track { grid-template-columns: repeat(2,1fr); }
  .hp-band, .hp-band-alt { max-width: 100%; margin: 0; }
  /* morning: drop the central spine column, stack tooth over stations */
  .hp-morning-grid { grid-template-columns: 1fr; justify-items: center; gap: clamp(18px,3vh,30px); }
  .hp-spine { display: none; }
  .hp-morning-cards { justify-self: center; text-align: center; max-width: 460px; min-height: clamp(200px,34vh,260px); }
  .hp-mcard p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px){
  .hp-collapse { grid-template-columns: 1fr; }
  .hp-hero-foot { flex-wrap: wrap; gap: 22px; }
  .hp-hero-foot .hp-scroll { display: none; }
}
@media (max-width: 560px){
  .hp-frag-grid { grid-template-columns: 1fr; }
  .hp-mig-track { grid-template-columns: 1fr; }
  .hp-morning { min-height: 300vh; }
  .hp-morning-stage { width: clamp(150px,42vw,210px); height: clamp(150px,42vw,210px); }
}
@media (prefers-reduced-motion: reduce), (max-width: 700px){
  .hp-hero-aurora, .hp-badge i, .hp-trole-dot, .hp-ts-live i, .tc-fill, .tc-hand, .hp-viz-frag i, .s-ok, .s-bad, .hp-viz-cost i, .hp-mouse i, .hp-ro-head i, .hp-tooth .t-find, .hp-beam { animation: none !important; }
  .hp-hero [data-word], .hp-hero [data-r] { opacity: 1 !important; transform: none !important; }
  .hp-morning-particles, .hp-hero-particles { display: none; }
}

/* ---- morning protagonist: 3D perspective + radiograph scan sweep ---- */
.hp-morning-stage { perspective: 1100px; }
.hp-morning .hp-tooth { transform-style: preserve-3d; }
.hp-tooth.xray .t-scan { opacity: 1; animation: tScanMove 2.1s cubic-bezier(.4,0,.4,1) infinite; }
@keyframes tScanMove { 0%{ transform: translateY(-150px);} 100%{ transform: translateY(170px);} }
.hp-tooth .t-scan { transform-box: view-box; }
@media (prefers-reduced-motion: reduce), (max-width: 700px){ .hp-morning { min-height: 0; } .hp-morning-sticky { height: auto; } .hp-tooth.xray .t-scan { animation: none; } }

/* ============================================================
   HERO — dark cinematic (reference-grade, v2)
   ============================================================ */
.hp-hero { background:
  radial-gradient(120% 80% at 50% -8%, #1a2746, transparent 52%),
  radial-gradient(80% 60% at 80% 30%, rgba(47,158,143,.12), transparent 60%),
  linear-gradient(180deg, #0c1226 0%, #0a0f20 58%, #0b1124 100%); }
.hp-hero-aurora { opacity: .65; filter: blur(54px);
  background:
    radial-gradient(26% 34% at 30% 28%, rgba(90,130,194,.5), transparent 70%),
    radial-gradient(28% 36% at 72% 26%, rgba(47,158,143,.34), transparent 70%),
    radial-gradient(34% 42% at 60% 80%, rgba(108,111,214,.4), transparent 70%); }
.hp-hero-spot { background: radial-gradient(440px 440px at var(--mx) var(--my), rgba(150,180,255,.1), transparent 60%); }
.hp-hero-title { color: #fff; font-size: clamp(42px, 6.6vw, 96px); }
.hp-hero-title em { background: linear-gradient(100deg, #7f9ad6, #4fd0bf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #c2cde4; box-shadow: 0 8px 30px -18px rgba(0,0,0,.6); }
.hp-hero-sub { color: #aab4d2; }
.hp-hero-sub b { color: #fff; }
.hp-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.hp-ghost:hover { background: rgba(255,255,255,.15); }
.hp-pl { color: #7f9ad6; }
.hp-stat b { color: #fff; }
.hp-stat span { color: #8b96b6; }
.hp-mouse { border-color: rgba(255,255,255,.4); }
.hp-mouse i { background: rgba(255,255,255,.6); }
/* luminous hero tooth: white-on-dark, findings lit, scan sweeping, strong glow */
.hp-hero-stage .hp-tooth { filter: drop-shadow(0 26px 64px rgba(90,130,210,.6)); }
.hp-hero-stage .t-find { opacity: 1; }
.hp-hero-stage .f-caries { animation: hpFindPulse 1.8s ease-in-out infinite; }
.hp-hero-stage .f-calc { animation: hpFindPulse 1.8s ease-in-out .4s infinite; }
.hp-hero-stage .f-bone { animation: hpFindPulse 1.8s ease-in-out .8s infinite; }
.hp-hero-stage .t-scan { opacity: 1; animation: tScanMove 2.6s cubic-bezier(.4,0,.4,1) infinite; }
.hp-hero-stage .t-canal { opacity: .35; }
@media (prefers-reduced-motion: reduce), (max-width: 700px){ .hp-hero-stage .t-scan, .hp-hero-stage .t-find { animation: none; } }

/* ============================================================
   v2 REWORK — centered section heads (kill left-aligned default)
   ============================================================ */
.hp-frag-head, .hp-team-head, .hp-why-head, .hp-mig-head {
  text-align: center; margin-left: auto; margin-right: auto; }
.hp-frag-head { max-width: 64ch; }
.hp-team-head { max-width: 60ch; }
.hp-why-head  { max-width: 30ch; }
.hp-mig-head  { max-width: 56ch; }
.hp-frag-head .hp-lead, .hp-team-head .hp-lead, .hp-mig-head .hp-lead {
  margin-left: auto; margin-right: auto; max-width: 58ch; }

/* ============================================================
   v2 REWORK — CAPABILITIES interactive set-piece (dark, centered)
   ============================================================ */
.hp-caps { position: relative; margin: clamp(40px,7vh,96px) auto; padding: clamp(56px,8vh,108px) clamp(26px,5vw,72px);
  max-width: calc(var(--wrap) + 2 * var(--pad)); }
.hp-caps::before { content: ""; position: absolute; inset: 0 clamp(8px,2vw,22px); z-index: -1; border-radius: 36px;
  background: radial-gradient(120% 78% at 50% -4%, #18243f, transparent 56%), radial-gradient(70% 60% at 84% 110%, rgba(47,158,143,.14), transparent 60%), linear-gradient(180deg, #0c1226, #0a0f20 70%, #0b1124);
  border: 1px solid rgba(120,150,210,.16); box-shadow: 0 60px 130px -64px rgba(0,0,0,.75); }
.hp-caps-head { text-align: center; max-width: 42ch; margin: 0 auto; }
.hp-caps-head .eyebrow { color: #7f9ad6; }
.hp-caps-head .hp-h1 { color: #fff; }
.hp-caps-head .hp-lead { color: #aab4d2; margin: 18px auto 0; max-width: 56ch; }
.hp-caps-head .hp-lead b { color: #fff; }

.hp-caps-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 38px auto 0; }
.hp-captab { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 14.5px; font-weight: 600; color: #aab4d2;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); padding: 11px 20px; border-radius: 99px; cursor: pointer;
  transition: color .3s, background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.hp-captab:hover { color: #fff; background: rgba(255,255,255,.1); }
.hp-captab-ic { font-size: 16px; }
.hp-captab.on { color: #fff; background: linear-gradient(120deg, var(--indigo), var(--indigo-300)); border-color: transparent;
  box-shadow: 0 16px 38px -18px var(--indigo); transform: translateY(-1px); }

.hp-caps-stage { position: relative; margin-top: 40px; }
.hp-cappanel { display: none; }
.hp-cappanel.on { display: block; animation: hpCapIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes hpCapIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hp-cap-copy { text-align: center; max-width: 50ch; margin: 0 auto; }
.hp-cap-copy h3 { font-size: clamp(22px,2.7vw,36px); font-weight: 600; letter-spacing: -.022em; color: #fff; line-height: 1.07; margin: 0; }
.hp-cap-copy p { font-size: 15px; line-height: 1.6; color: #aab4d2; margin: 14px auto 0; max-width: 52ch; }
.hp-cap-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 22px auto 0; }
.hp-cap-chips span { font-size: 12.5px; font-weight: 500; color: #cdd7f0; background: rgba(120,150,210,.14); border: 1px solid rgba(120,150,210,.22); padding: 7px 13px; border-radius: 99px; }
.hp-cap-demo { margin: 36px auto 0; width: min(560px, 100%); }

/* shared mock shell */
.hp-mock { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hp-mock-h { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hp-mock-ava { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; flex: none; background: rgba(90,130,194,.2); color: #9fb0e0; }
.hp-mock-h b { font-size: 13.5px; color: #fff; display: block; line-height: 1.25; }
.hp-mock-h span { font-size: 12px; color: #8b96b6; }
.hp-mock-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.hp-mock-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: hpDot 1.6s infinite; }

/* comms — message thread */
.hp-thread-body { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; min-height: 210px; }
.hp-bub { max-width: 80%; font-size: 13.5px; line-height: 1.45; padding: 10px 14px; border-radius: 15px; opacity: 0; }
.hp-bub.in { background: rgba(255,255,255,.08); color: #e7ecfb; border-bottom-left-radius: 5px; align-self: flex-start; }
.hp-bub.out { background: linear-gradient(120deg, var(--indigo), var(--indigo-300)); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.hp-bub.stamp { align-self: center; background: rgba(47,158,143,.16); color: #7fe0c8; font-weight: 600; font-size: 12px; border-radius: 99px; padding: 7px 15px; }
.hp-cappanel.on .hp-bub { animation: hpBubIn .55s cubic-bezier(.2,.85,.25,1) forwards; }
.hp-cappanel.on .hp-bub:nth-child(1){ animation-delay: .25s; }
.hp-cappanel.on .hp-bub:nth-child(2){ animation-delay: .85s; }
.hp-cappanel.on .hp-bub:nth-child(3){ animation-delay: 1.5s; }
.hp-cappanel.on .hp-bub:nth-child(4){ animation-delay: 2.1s; }
@keyframes hpBubIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* clinical — voice charting */
.hp-voice { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 210px; justify-content: center; }
.hp-voice-mic { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: #cdd7f0; background: rgba(120,150,210,.14); border: 1px solid rgba(120,150,210,.22); padding: 9px 16px; border-radius: 99px; }
.hp-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.hp-wave i { width: 3px; border-radius: 2px; background: #7f9ad6; height: 100%; transform: scaleY(.3); transform-origin: center; }
.hp-cappanel.on .hp-wave i { animation: hpWave 1s ease-in-out infinite; }
.hp-wave i:nth-child(2){ animation-delay: .12s; } .hp-wave i:nth-child(3){ animation-delay: .24s; } .hp-wave i:nth-child(4){ animation-delay: .36s; } .hp-wave i:nth-child(5){ animation-delay: .48s; } .hp-wave i:nth-child(6){ animation-delay: .6s; }
@keyframes hpWave { 0%,100%{ transform: scaleY(.28); } 50%{ transform: scaleY(1); } }
.hp-voice-said { font-size: clamp(16px,1.8vw,20px); color: #fff; font-style: italic; text-align: center; opacity: 0; }
.hp-cappanel.on .hp-voice-said { animation: hpSaid .6s ease forwards .3s; }
@keyframes hpSaid { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hp-perio { display: flex; gap: 7px; }
.hp-perio-cell { width: 38px; height: 46px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 17px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; opacity: 0; }
.hp-cappanel.on .hp-perio-cell { animation: hpCell .42s cubic-bezier(.2,.85,.25,1) forwards; }
.hp-cappanel.on .hp-perio-cell:nth-child(1){ animation-delay: .9s; } .hp-cappanel.on .hp-perio-cell:nth-child(2){ animation-delay: 1.1s; } .hp-cappanel.on .hp-perio-cell:nth-child(3){ animation-delay: 1.3s; }
.hp-cappanel.on .hp-perio-cell:nth-child(4){ animation-delay: 1.5s; } .hp-cappanel.on .hp-perio-cell:nth-child(5){ animation-delay: 1.7s; } .hp-cappanel.on .hp-perio-cell:nth-child(6){ animation-delay: 1.9s; }
@keyframes hpCell { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.hp-perio-lbl { font-size: 12px; color: #8b96b6; letter-spacing: .03em; }

/* back office — claims ledger */
.hp-claims-body { padding-top: 6px; min-height: 210px; }
.hp-claim-row { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #e7ecfb; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.045); margin-top: 9px; opacity: 0; }
.hp-claim-row .tk { color: #7fe0c8; font-weight: 700; flex: none; }
.hp-claim-row b { margin-left: auto; color: #fff; font-weight: 600; }
.hp-claim-row.bad { background: rgba(194,86,111,.12); border: 1px solid rgba(194,86,111,.32); }
.hp-claim-row.bad .fl { color: #ff8da0; flex: none; }
.hp-claim-row.bad b { color: #ff8da0; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.hp-cappanel.on .hp-claim-row { animation: hpRowIn .5s cubic-bezier(.2,.85,.25,1) forwards; }
.hp-cappanel.on .hp-claim-row:nth-child(1){ animation-delay: .3s; } .hp-cappanel.on .hp-claim-row:nth-child(2){ animation-delay: .7s; } .hp-cappanel.on .hp-claim-row:nth-child(3){ animation-delay: 1.1s; } .hp-cappanel.on .hp-claim-row:nth-child(4){ animation-delay: 1.5s; }
@keyframes hpRowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.hp-claim-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #aab4d2; opacity: 0; }
.hp-claim-total b { color: #fff; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-cappanel.on .hp-claim-total { animation: hpRowIn .5s ease forwards 1.9s; }

@media (max-width: 560px){ .hp-perio-cell { width: 32px; height: 40px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce), (max-width: 700px){
  .hp-cappanel.on { animation: none; }
  .hp-cappanel.on .hp-bub, .hp-cappanel.on .hp-perio-cell, .hp-cappanel.on .hp-claim-row, .hp-cappanel.on .hp-claim-total, .hp-cappanel.on .hp-voice-said { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hp-cappanel.on .hp-wave i { animation: none !important; transform: scaleY(.6); }
}

/* ============================================================
   SECOND-HALF ELEVATION — carry the art direction to the end:
   signature eyebrow tick, card beam-sweep, gradient metrics,
   dark "journey" migration, tighter rhythm. (.hp-scoped only)
   ============================================================ */

/* signature eyebrow: a periwinkle→teal tick before every section label */
.hp .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hp .eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--peri), var(--teal)); }

/* signature card hover: a light beam sweeps across (echoes the hero) */
.hp-prod, .hp-why-card, .hp-pain { position: relative; }
.hp-prod::after, .hp-why-card::after, .hp-pain::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(159,180,255,.16) 48%, rgba(70,224,200,.13) 56%, transparent 72%);
  transform: translateX(-26%); transition: opacity .35s var(--ease), transform 1s var(--ease); }
.hp-prod:hover::after, .hp-why-card:hover::after, .hp-pain:hover::after { opacity: 1; transform: translateX(26%); }

/* WHY: gradient metric numbers + crisper cards */
.hp-why-m span { background: linear-gradient(120deg, var(--peri), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-why-ic { background: linear-gradient(140deg, var(--periwinkle), #fff); color: var(--peri); }

/* FRAGMENTATION: stronger "becomes one" — gradient join rule */
.hp-col-fold { position: relative; }

/* ===== MIGRATION → dark journey spine (rhythm break before FAQ) ===== */
.hp-mig { position: relative; padding-top: clamp(56px,8vh,100px); padding-bottom: clamp(56px,8vh,100px); margin-top: clamp(40px,6vh,80px); margin-bottom: clamp(40px,6vh,80px); }
.hp-mig::before { content: ""; position: absolute; inset: 0 clamp(8px,2vw,22px); z-index: -1; border-radius: 36px;
  background:
    radial-gradient(120% 78% at 50% -6%, #18243f, transparent 56%),
    radial-gradient(70% 60% at 86% 112%, rgba(47,158,143,.14), transparent 60%),
    linear-gradient(180deg, #0c1226, #0a0f20 70%, #0b1124);
  border: 1px solid var(--d-line); box-shadow: 0 60px 130px -64px rgba(0,0,0,.75); }
.hp-mig .eyebrow { color: var(--peri-1); }
.hp-mig .hp-h1 { color: #fff; }
.hp-mig .hp-lead { color: var(--d-mut); }
.hp-mig .hp-lead b { color: #fff; }
.hp-mig-track { position: relative; padding-top: 36px; gap: 16px; }
.hp-mig-track::before { content: ""; position: absolute; top: 16px; left: 9%; right: 9%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--peri-1) 18%, var(--teal-1) 82%, transparent);
  box-shadow: 0 0 14px rgba(127,154,214,.5); }
.hp-step { position: relative; background: rgba(255,255,255,.04); border: 1px solid var(--d-line); border-radius: 18px;
  padding: 32px 18px 22px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, background .4s; }
.hp-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.06); border-color: rgba(127,154,214,.42);
  box-shadow: 0 28px 56px -34px rgba(0,0,0,.7); }
.hp-step-n { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: #0b1124;
  background: linear-gradient(120deg, var(--peri-1), var(--teal-1)); box-shadow: 0 0 14px rgba(127,154,214,.6); }
.hp-step h3 { color: #fff; margin-top: 4px; }
.hp-step p { color: var(--d-mut); }

@media (max-width: 1040px){
  .hp-mig-track { grid-template-columns: repeat(2,1fr); padding-top: 40px; }
  .hp-mig-track::before { display: none; }
  .hp-step { padding-top: 30px; }
}
@media (max-width: 560px){
  .hp-mig-track { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce), (max-width: 700px){
  .hp-prod::after, .hp-why-card::after, .hp-pain::after { transition: none; }
}

/* ============================================================
   THIRD PASS — ASYMMETRIC EDITORIAL REWORK OF THE SECOND HALF
   Carries the first-half art direction (tour's off-centre split
   grids + luminous spine) through frag → CTA. Nothing centred by
   default anymore: heads sit to one side, panels split and
   ALTERNATE, migration becomes a vertical journey spine.
   Pure layout — every JS/animation hook is preserved.
   ============================================================ */

/* shared: kill the forced-centre heads from the v2 pass */
.hp-frag .hp-frag-head, .hp-team .hp-team-head, .hp-why .hp-why-head,
.hp-mig .hp-mig-head, .hp-caps .hp-caps-head, .hp-faq .hp-faq-head {
  text-align: left; margin-left: 0; margin-right: 0; }
.hp-frag .hp-frag-head .hp-lead, .hp-team .hp-team-head .hp-lead,
.hp-mig .hp-mig-head .hp-lead, .hp-caps .hp-caps-head .hp-lead {
  margin-left: 0; margin-right: 0; }
/* a signature left tick under section eyebrows echoes the spine */

/* ---- FRAGMENTATION → sticky head left, staggered bento right ---- */
.hp-frag { display: grid; grid-template-columns: minmax(268px, 350px) 1fr;
  grid-template-areas: "head cards" "foot foot"; column-gap: clamp(28px,4vw,64px); row-gap: 40px; align-items: start; }
.hp-frag .hp-frag-head { grid-area: head; align-self: center; max-width: none; }
.hp-frag-grid { grid-area: cards; margin-top: 0; grid-template-columns: repeat(2,1fr); gap: 16px; }
/* masonry stagger via margin (won't fight the hover transform) */
.hp-frag-grid .hp-pain:nth-child(even) { margin-top: 38px; }
.hp-orbit-wrap { grid-area: foot; margin-top: 8px; }

/* ---- FRAGMENTATION FOOTER → hub-and-spoke: one platform, tools around it, your clinic on the side ---- */
.hp-orbit-cap { text-align: center; max-width: 56ch; margin: 0 auto; font-size: clamp(15px,1.3vw,17.5px);
  line-height: 1.55; color: var(--ink-60); }
.hp-orbit-cap b { color: var(--indigo); font-weight: 600; }
.hp-orbit { position: relative; width: 100%; max-width: 880px; margin: clamp(24px,4vw,44px) auto 0; aspect-ratio: 1.72 / 1; }

/* each tool pill */
.hp-orb { position: absolute; transform: translate(-50%,-50%); display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap; font-size: clamp(12.5px,.98vw,14.5px); font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 17px 8px 8px; z-index: 3;
  box-shadow: 0 18px 34px -20px rgba(20,40,70,.4), 0 2px 6px -3px rgba(20,40,70,.16);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.hp-orb-chip { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, #fff); }
.hp-orb-chip i { font-style: normal; font-size: 15px; line-height: 1; }
.hp-orb:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: 0 24px 44px -20px color-mix(in srgb, var(--c) 45%, rgba(20,40,70,.5)); }
/* positions — a tight ring hugging the core, 3 o'clock left open for the clinic line */
.hp-orb--1 { left: 42%; top: 11%; }   /* Insurance */
.hp-orb--2 { left: 25%; top: 21%; }   /* AI Analytics */
.hp-orb--3 { left: 59%; top: 21%; }   /* Insurance Estimator */
.hp-orb--4 { left: 17%; top: 40%; }   /* 24/7 AI Receptionist */
.hp-orb--5 { left: 63%; top: 40%; }   /* Automatic EOB Posting */
.hp-orb--6 { left: 17%; top: 60%; }   /* Voice-Based Charting */
.hp-orb--7 { left: 62%; top: 60%; }   /* Denial Management */
.hp-orb--8 { left: 23%; top: 80%; }   /* Call Intelligence */
.hp-orb--9 { left: 55%; top: 80%; }   /* Comms Assistant */
.hp-orb--10 { left: 39%; top: 90%; }  /* X-Ray AI */

/* connector: core → your clinic (short) */
.hp-orb-link { position: absolute; top: 50%; left: 52%; right: 9%; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--indigo) 50%, transparent), var(--indigo-300)); z-index: 1; }
.hp-orb-dot { position: absolute; left: 40%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(58,90,150,.16); }
.hp-orb-flow { position: absolute; top: 50%; left: 0; width: 24px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .9; }
.hp-orbit-wrap.in .hp-orb-flow { animation: orbFlow 2.6s var(--ease) infinite; }
@keyframes orbFlow { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: .95; } 88% { opacity: .95; }
  100% { transform: translateX(min(230px,22vw)); opacity: 0; } }

/* the core — centered logo disc + soft glow */
.hp-orb-core { position: absolute; left: 42%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  display: grid; place-items: center; }
.hp-orb-core::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(90,130,194,.28), transparent 68%); filter: blur(22px); }
.hp-orb-brand { position: relative; display: grid; place-items: center; gap: 4px; text-align: center;
  width: clamp(120px,14vw,158px); aspect-ratio: 1; border-radius: 50%; color: #fff;
  background: radial-gradient(120% 120% at 32% 24%, #3a5c9c, #223f74 52%, #14294d);
  box-shadow: 0 34px 66px -26px rgba(20,41,77,.85), inset 0 1px 0 rgba(255,255,255,.24), inset 0 0 0 1px rgba(255,255,255,.06); }
.hp-orb-logo { width: 72%; max-width: 118px; height: auto; display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.hp-orb-brand i { font-style: normal; font-size: clamp(8px,.78vw,10px); font-weight: 700; letter-spacing: .22em;
  color: rgba(255,255,255,.66); margin-top: 2px; }

/* your clinic — the destination on the side */
.hp-orb-clinic { position: absolute; left: 90%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none;
  font-size: clamp(13px,1.05vw,15.5px); font-weight: 600; color: #fff; padding: 13px 22px; border-radius: 99px;
  background: linear-gradient(120deg, #24427a, #16305a);
  box-shadow: 0 22px 46px -22px rgba(20,41,77,.85); transition: transform .3s var(--ease), box-shadow .3s; }
.hp-orb-clinic:hover { transform: translate(-50%,-50%) scale(1.04); box-shadow: 0 28px 54px -22px rgba(20,41,77,.9); }
.hp-orb-cross { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; font-size: 12px;
  background: rgba(255,255,255,.2); }

/* staggered pop-in on reveal */
.hp-orb, .hp-orb-clinic { opacity: 0; }
.hp-orbit-wrap.in .hp-orb, .hp-orbit-wrap.in .hp-orb-clinic { animation: orbPop .6s cubic-bezier(.2,.85,.25,1) forwards; }
.hp-orbit-wrap.in .hp-orb--1 { animation-delay: .05s; } .hp-orbit-wrap.in .hp-orb--2 { animation-delay: .1s; }
.hp-orbit-wrap.in .hp-orb--3 { animation-delay: .15s; } .hp-orbit-wrap.in .hp-orb--4 { animation-delay: .2s; }
.hp-orbit-wrap.in .hp-orb--5 { animation-delay: .25s; } .hp-orbit-wrap.in .hp-orb--6 { animation-delay: .3s; }
.hp-orbit-wrap.in .hp-orb--7 { animation-delay: .35s; } .hp-orbit-wrap.in .hp-orb--8 { animation-delay: .4s; }
.hp-orbit-wrap.in .hp-orb--9 { animation-delay: .45s; } .hp-orbit-wrap.in .hp-orb--10 { animation-delay: .5s; }
.hp-orbit-wrap.in .hp-orb-clinic { animation-delay: .58s; animation-name: orbPopC; }
@keyframes orbPop { from { opacity: 0; transform: translate(-50%,-50%) scale(.86); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes orbPopC { from { opacity: 0; transform: translate(-50%,-50%) scale(.86); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

/* ---- AI TEAM → left-aligned head; console stays split ---- */
.hp-team .hp-team-head { max-width: 52ch; }

/* ---- CAPABILITIES → head full-width, vertical tab rail left, split panel right ---- */
.hp-caps { display: grid; grid-template-columns: minmax(196px,236px) 1fr;
  grid-template-areas: "head head" "tabs stage"; column-gap: clamp(24px,3vw,52px); align-items: start; }
.hp-caps-head { grid-area: head; text-align: left; max-width: 60ch; margin: 0 0 6px; }
.hp-caps-head .hp-lead { margin-left: 0; margin-right: 0; }
.hp-caps-tabs { grid-area: tabs; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 8px; margin: 26px 0 0; position: sticky; top: 96px; }
.hp-caps-tabs .hp-captab { justify-content: flex-start; }
.hp-caps-stage { grid-area: stage; margin-top: 26px; }
/* split each panel: copy one side, live demo the other */
.hp-cappanel.on { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,46px); align-items: center; }
.hp-cap-copy { text-align: left; max-width: none; margin: 0; }
.hp-cap-copy p { margin-left: 0; margin-right: 0; max-width: 46ch; }
.hp-cap-chips { justify-content: flex-start; margin-left: 0; margin-right: 0; }
.hp-cap-demo { margin: 0; width: 100%; }
/* alternate: the clinical panel flips the demo to the left */
.hp-cappanel[data-cap="1"] .hp-cap-demo { order: -1; }

/* ---- COMMAND BAR → copy left, terminal right ---- */
.hp-cmd-inner { max-width: var(--wrap); text-align: left; display: grid;
  grid-template-columns: .92fr 1.08fr; gap: clamp(28px,4vw,60px); align-items: center; }
.hp-cmd-copy .hp-h1 { margin-top: 14px; }
.hp-cmd-copy .hp-lead { margin: 16px 0 0; max-width: 44ch; }
.hp-cmd-stats { justify-content: flex-start; margin-top: 30px; }
.hp-cmd-box { margin-top: 0; }

/* ---- X-RAY TEASER → scan left, copy right (flips the cmd split) ---- */
.hp-xray { max-width: calc(var(--wrap) + 2 * var(--pad)); text-align: left; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; }
.hp-xray-inner { order: 2; align-items: flex-start; text-align: left; }
.hp-xray-inner .hp-lead { margin-left: 0; margin-right: 0; }
.hp-xray-inner .hp-disc { margin-left: 0; }
.hp-xray-scan { order: 1; margin: 0; }

/* ---- WHY → left head + stair-stepped cards ---- */
.hp-why .hp-why-head { max-width: 30ch; }
.hp-why-grid .hp-why-card:nth-child(2) { margin-top: 42px; }
.hp-why-grid .hp-why-card:nth-child(3) { margin-top: 84px; }

/* ---- MIGRATION → vertical luminous JOURNEY SPINE (the tour callback) ---- */
.hp-mig { display: grid; grid-template-columns: minmax(258px,360px) 1fr;
  grid-template-areas: "head track"; column-gap: clamp(30px,5vw,80px); align-items: start; }
.hp-mig .hp-mig-head { grid-area: head; position: sticky; top: 112px; max-width: none; }
.hp-mig-track { grid-area: track; display: flex; flex-direction: column; gap: 0;
  padding: 6px 0 6px 54px; position: relative; }
/* the rail: vertical, glowing, peri→teal — same DNA as the morning spine */
.hp-mig-track::before { content: ""; display: block; position: absolute;
  top: 26px; bottom: 26px; left: 17px; right: auto; width: 2px; height: auto;
  background: linear-gradient(180deg, transparent, var(--peri-1) 12%, var(--teal-1) 88%, transparent);
  box-shadow: 0 0 14px rgba(127,154,214,.5); }
.hp-mig-track .hp-step { text-align: left; padding: 20px 22px; margin-bottom: 16px; }
.hp-mig-track .hp-step:last-child { margin-bottom: 0; }
/* the numbered node sits ON the rail, in the left gutter */
.hp-mig-track .hp-step-n { top: 24px; left: -52px; transform: none; }

/* ---- FAQ → sticky head left, list right ---- */
.hp-faq { max-width: calc(var(--wrap) + 2 * var(--pad)); display: grid;
  grid-template-columns: minmax(258px,360px) 1fr; column-gap: clamp(30px,5vw,80px); align-items: start; }
.hp-faq-head { text-align: left; max-width: none; position: sticky; top: 112px; }
.hp-faq-list { margin-top: 0; }

/* ---- CTA → left-weighted content, glow breathes on the right ---- */
.hp-cta { text-align: left; }
.hp-cta-title { max-width: 18ch; }
.hp-cta p { margin-left: 0; margin-right: auto; }
.hp-cta-actions { justify-content: flex-start; }

/* ---- responsive: collapse every asymmetric grid back to one column ---- */
@media (max-width: 1040px){
  .hp-frag { grid-template-columns: 1fr; grid-template-areas: "head" "cards" "foot"; }
  .hp-frag .hp-frag-head { position: static; }
  .hp-frag-grid { grid-template-columns: repeat(2,1fr); }
  .hp-caps { grid-template-columns: 1fr; grid-template-areas: "head" "tabs" "stage"; }
  .hp-caps-tabs { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; position: static; margin-top: 20px; }
  .hp-cappanel.on { grid-template-columns: 1fr; gap: 26px; }
  .hp-cappanel[data-cap="1"] .hp-cap-demo { order: 0; }
  .hp-cmd-inner { grid-template-columns: 1fr; gap: 30px; }
  .hp-xray { grid-template-columns: 1fr; }
  .hp-xray-inner { order: 1; }
  .hp-xray-scan { order: 2; }
  .hp-why-grid .hp-why-card:nth-child(2),
  .hp-why-grid .hp-why-card:nth-child(3) { margin-top: 0; }
  .hp-mig { grid-template-columns: 1fr; grid-template-areas: "head" "track"; }
  .hp-mig .hp-mig-head { position: static; margin-bottom: 12px; }
  .hp-mig-track::before { display: block; }
  .hp-faq { grid-template-columns: 1fr; }
  .hp-faq-head { position: static; }
}
@media (max-width: 640px){
  .hp-frag-grid { grid-template-columns: 1fr; }
  .hp-frag-grid .hp-pain:nth-child(even) { margin-top: 0; }
}
/* orbit → collapse to a tidy wrapped cluster on small screens (absolute layout would overlap) */
@media (max-width: 820px){
  /* the spoke layout would overlap — fall back to a centred wrapped cluster */
  .hp-orbit { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 9px; max-width: 520px; }
  .hp-orb { position: static; left: auto; top: auto; transform: none; opacity: 1; order: 1; }
  .hp-orb-core { position: static; transform: none; order: 0; flex-basis: 100%; margin: 0 auto 14px; }
  .hp-orb-core .hp-orb-brand { margin: 0 auto; }
  .hp-orb-clinic { position: static; transform: none; order: 2; flex-basis: 100%; margin: 14px auto 0; }
  .hp-orb-clinic:hover { transform: scale(1.04); }
  .hp-orb-link { display: none; }
}
@media (prefers-reduced-motion: reduce), (max-width: 700px){
  .hp-orbit-wrap.in .hp-orb, .hp-orbit-wrap.in .hp-orb-clinic { animation: none !important; opacity: 1 !important; }
  .hp-orb-flow { animation: none !important; }
}

/* ============================================================
   FOURTH PASS — feedback fixes
   · capabilities: light section + dark demo "device" + Learn more
   · why: horizontal (no stair-step, no tree-wrap head)
   · team: unified console card
   ============================================================ */

/* ---- CAPABILITIES → drop the near-black panel for a light surface ---- */
.hp-caps::before { background:
    radial-gradient(120% 78% at 50% -4%, #eaf1fb, transparent 58%),
    linear-gradient(180deg, #f4f7fd, #eef2fa 72%, #f1f5fc);
  border: 1px solid var(--line); box-shadow: 0 44px 100px -64px rgba(40,64,110,.42); }
.hp-caps-head .eyebrow { color: var(--indigo); }
.hp-caps-head .hp-h1 { color: var(--ink); }
.hp-caps-head .hp-lead { color: var(--ink-60); }
.hp-caps-head .hp-lead b { color: var(--ink); }
.hp-captab { color: var(--ink-60); background: #fff; border-color: var(--line); }
.hp-captab:hover { color: var(--ink); background: #fff; border-color: var(--indigo-300); }
.hp-captab.on { color: #fff; background: linear-gradient(120deg, var(--indigo), var(--indigo-300)); border-color: transparent; }
.hp-cap-copy h3 { color: var(--ink); }
.hp-cap-copy p { color: var(--ink-60); }
.hp-cap-chips span { color: var(--indigo); background: var(--periwinkle); border-color: #d3e0f5; }
/* the demo stays a dark self-contained "device" so its live UI still pops on the light surface */
.hp-mock { background: linear-gradient(165deg, #101a35, #0b1020); border-color: rgba(120,150,210,.18);
  box-shadow: 0 30px 60px -34px rgba(13,19,38,.7); }
/* Learn more → per-capability page */
.hp-cap-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--indigo); text-decoration: none; }
.hp-cap-more i { font-style: normal; transition: transform .3s var(--ease); }
.hp-cap-more:hover i { transform: translateX(4px); }

/* ---- WHY → clean horizontal row, full-width head (kill the stair-step + tree-wrap) ---- */
.hp-why .hp-why-head { max-width: none; }
.hp-why-grid .hp-why-card:nth-child(2),
.hp-why-grid .hp-why-card:nth-child(3) { margin-top: 0; }

/* ---- AI TEAM → one unified console card (roster rail + live stage) ---- */
.hp-team-console { grid-template-columns: minmax(0,296px) minmax(0,1fr); gap: 0; margin-top: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 46px 100px -56px rgba(20,40,70,.5); }
.hp-team-roster { padding: 15px; gap: 5px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f4f7fd); }
.hp-trole { background: transparent; border: 1px solid transparent; box-shadow: none; border-radius: 13px; padding: 13px 14px; }
.hp-trole:hover { background: #fff; border-color: var(--line); box-shadow: 0 12px 26px -20px rgba(20,40,70,.4); transform: none; }
.hp-trole.on { background: color-mix(in srgb, var(--tint) 9%, #fff);
  border-color: color-mix(in srgb, var(--tint) 32%, var(--line)); box-shadow: none; transform: none; }
.hp-team-stage { border: 0; border-left: 1px solid rgba(140,165,220,.14); border-radius: 0; box-shadow: none; padding: 24px 28px 26px; }
.hp-ts-feed { min-height: 208px; }

@media (max-width: 1040px){
  .hp-team-roster { border-right: 0; border-bottom: 1px solid var(--line); }
}
