/* Homepage-only styles: hero + channel flow */
/* ===== HERO ===== */
.hero{position:relative;overflow:hidden;padding:88px 0 0;background:radial-gradient(120% 70% at 88% -10%, var(--blue-50), transparent 58%), #fff}
.hero-copy{max-width:1040px}
.hero h1{margin:0 0 22px}
.hero h1 .serif{display:block;color:var(--brand-primary);font-weight:500}
.hero-row{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;flex-wrap:wrap}
.hero .lede{font-size:18px;color:var(--muted);max-width:32em;margin:0}
.hero-links{display:flex;gap:28px;flex-wrap:wrap;align-items:center;padding-bottom:4px}
.hl{display:inline-flex;align-items:center;gap:6px;font-size:15.5px;font-weight:500;color:var(--muted);transition:color var(--duration-base) var(--ease-standard)}
.hl svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;transition:transform var(--duration-base) var(--ease-standard)}
.hl:hover{color:var(--ink)}
.hl:hover svg{transform:translateX(3px)}
.hl-main{color:var(--ink);font-weight:600}
.hl-main:hover{color:var(--brand-primary)}
@media(max-width:760px){.hero{padding-top:64px}}

/* ===== LIVE DOT ===== */
.livedot{width:8px;height:8px;border-radius:50%;background:var(--green-200);box-shadow:0 0 0 0 rgba(0,166,81,.5);animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(0,166,81,.4)}70%{box-shadow:0 0 0 8px rgba(0,166,81,0)}100%{box-shadow:0 0 0 0 rgba(0,166,81,0)}}
@media(prefers-reduced-motion:reduce){.livedot{animation:none}}

/* ===== PRODUCT STAGE (hero) =====
   The app is laid out on a fixed 1200 x 700 canvas and scaled to the stage width by hero-app.js,
   so it looks identical at every breakpoint (narrow screens crop to the right-hand side). */
.app-stage{position:relative;margin-top:64px;
  /* break out of the 1200px grid: up to 1400px wide, always 16px from the viewport edge */
  width:min(1400px, calc(100vw - 32px));margin-left:calc(50% - min(700px, 50vw - 16px))}
.app-stage::before{content:"";position:absolute;left:8%;right:8%;top:6%;height:70%;border-radius:50%;
  background:radial-gradient(closest-side, rgba(0,0,160,.22), rgba(0,0,255,.08) 60%, transparent);filter:blur(48px);z-index:0;pointer-events:none}
.app-frame{position:relative;z-index:1;padding:10px;border-radius:24px;background:rgba(255,255,255,.55);border:1px solid rgba(20,20,20,.07);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 30px 60px -20px rgba(0,0,78,.25),0 12px 24px -12px rgba(20,20,20,.12);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  -webkit-mask-image:linear-gradient(#000 84%,transparent);mask-image:linear-gradient(#000 84%,transparent)}
.app-clip{position:relative;height:calc(700px * var(--s, 1));overflow:hidden;border-radius:16px}
.app-hint{position:relative;z-index:1;display:flex;width:max-content;max-width:calc(100% - 32px);margin:6px auto 0;align-items:center;gap:8px;font-size:13px;color:var(--grey-300);background:#fff;border:1px dashed var(--grey-50);border-radius:var(--radius-pill);padding:7px 14px}
.app-hint svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:var(--brand-primary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.app-stage{margin-top:44px}.app-frame{padding:6px;border-radius:18px}.app-clip{border-radius:12px}}
/* phones: the shrunken demo starts at the page gutter and bleeds off the right edge of the screen (linear.app style) */
@media(max-width:600px){
  .app-stage{width:calc(100vw - 16px);margin-left:calc(50% - 50vw + 16px)}
  .app-frame{border-radius:14px 0 0 14px;border-right:0;padding-right:0}
  .app-clip{border-radius:10px 0 0 10px}
  .app-stage::before{left:0;right:0}
  .app-hint{display:none}
}
.app{--cat-general:#2E70E5;--cat-general-bg:#EDF3FD;--cat-records:#D6245B;--cat-records-bg:#FDEEF3;--cat-billing:#0B8A57;--cat-billing-bg:#E8F6EF;
  --cat-rx:#6A4BF0;--cat-rx-bg:#F1EEFE;--cat-appt:#B26B00;--cat-appt-bg:#FFF5DE;--cat-imm:#0A7F9E;--cat-imm-bg:#E6F5F9;--cat-enroll:#0B7A70;--cat-enroll-bg:#E3F6F3;
  position:absolute;top:0;left:0;width:1200px;height:700px;transform:scale(var(--s, 1));transform-origin:top left;
  background:#F9FAFB;border:1px solid var(--line);border-radius:16px;overflow:hidden;font-size:13px;color:var(--ink);text-align:left}
.app svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-top{height:56px;display:flex;align-items:center;gap:28px;padding:0 22px;background:#fff;border-bottom:1px solid var(--line)}
.app-logo{height:26px;width:auto}
.app-tabs{margin-left:auto;display:flex;gap:26px;font-size:14px;font-weight:500;color:var(--grey-300)}
.app-tabs button,.app-tabs span{font:inherit;color:inherit;background:none;border:0;padding:4px 0;cursor:default}
.app-tabs button{cursor:pointer;transition:color var(--duration-base) var(--ease-standard)}
.app-tabs button:hover{color:var(--ink)}
.app-tabs .on,.app-tabs .on:hover{color:var(--brand-primary);font-weight:600}
.app-tabs button:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px;border-radius:4px}
.app-me{width:30px;height:30px;border-radius:50%;background:#FFF1DE;color:#B45A00;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}
.app-body{display:flex;height:calc(100% - 56px)}
.app-board{flex:1;min-width:0;padding:18px 20px}
.app-tools{display:flex;gap:8px;margin-bottom:18px}
.app-tools span{width:34px;height:34px;border-radius:9px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--grey-500)}
.app-tools svg{width:16px;height:16px}
.cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.col-head{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:15px;font-weight:500;margin-bottom:12px}
.col-head i{margin-left:auto;font-style:normal;color:var(--grey-200);letter-spacing:1px}
.cnt{min-width:22px;height:22px;padding:0 6px;border-radius:11px;font-family:var(--font-body);font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;transition:transform var(--duration-slow) var(--ease-emphasized)}
.cnt.bump{transform:scale(1.25)}
.c-blue{background:#DCE8FC;color:#2E70E5}.c-pink{background:#FDE3EC;color:#D6245B}.c-yellow{background:#FFF3C4;color:#8A6D00}.c-purple{background:#ECE8FE;color:#6A4BF0}
.col-cards{display:flex;flex-direction:column;gap:10px}
/* inquiry card */
.pc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 12px 11px;box-shadow:var(--shadow-xs);transition:box-shadow var(--duration-slow) var(--ease-standard),border-color var(--duration-slow) var(--ease-standard),opacity .4s var(--ease-standard)}
.pc.enter{animation:pcIn .5s var(--ease-emphasized) both}
@keyframes pcIn{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}
.pc.leave{opacity:0}
.pc{cursor:pointer}
.pc:hover{border-color:var(--grey-50);box-shadow:var(--shadow-md)}
.pc:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
.pc.sel{border-color:var(--blue-100);box-shadow:0 0 0 3px rgba(0,0,255,.08),var(--shadow-md)}
.pc .dob{font-size:10.5px;color:var(--grey-200);margin-bottom:7px}
.pc .via{background:var(--surface-sunken);border-radius:7px;padding:6px 8px;font-size:10.5px;color:var(--grey-300);margin-bottom:7px;line-height:1.4}
.pc .via b{color:var(--grey-500);font-weight:600}
.pc .nm{display:flex;align-items:center;gap:5px;font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden}
.pc .nm .ok{width:14px;height:14px;flex:0 0 auto;color:#12A37A}
.pc .nm .ok svg{width:14px;height:14px;fill:#12A37A;stroke:#fff;stroke-width:2.4}
.pc .pill{font-size:10px;font-weight:600;padding:1px 6px;border-radius:5px;background:var(--pink-50);color:var(--pink-500)}
.pc .ph{display:flex;align-items:center;gap:6px;color:var(--grey-300);font-size:12.5px;margin:3px 0 9px}
.pc .ph svg{width:13px;height:13px}
.pc .own{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:500;margin-bottom:9px}
.pc .own img,.pc .own .ini{width:20px;height:20px;border-radius:50%;flex:0 0 auto}
.pc .own .ini,.ini{font-size:8.5px;font-weight:700;display:flex;align-items:center;justify-content:center;border-radius:50%}
.ini.hs{background:#FFF1DE;color:#B45A00}.ini.pn{background:#E7F5EC;color:#1C7A45}.ini.km{background:#FDE8F0;color:#B8175A}
.pc .own small{font-weight:400;color:var(--grey-300);margin-left:2px}
.pc .tags{display:flex;gap:5px;flex-wrap:wrap;min-height:22px}
.tg{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:500;padding:3px 7px;border-radius:6px;border:1px solid var(--line);color:var(--grey-500);background:#fff;white-space:nowrap}
.tg svg{width:11px;height:11px;flex:0 0 auto}
.tg{max-width:100%;min-width:0}
.tg .l{overflow:hidden;text-overflow:ellipsis}
.pc .nm{min-width:0}
.pc .pill{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg.pop{animation:tgPop .45s var(--ease-emphasized) both}
@keyframes tgPop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.tg.live{border-color:#C9F0DA;background:var(--status-success-bg);color:var(--green-300)}
.tg.live .livedot{width:6px;height:6px}
.tg.cat-general{color:var(--cat-general);background:var(--cat-general-bg);border-color:transparent}
.tg.cat-records{color:var(--cat-records);background:var(--cat-records-bg);border-color:transparent}
.tg.cat-billing{color:var(--cat-billing);background:var(--cat-billing-bg);border-color:transparent}
.tg.cat-rx{color:var(--cat-rx);background:var(--cat-rx-bg);border-color:transparent}
.tg.cat-appt{color:var(--cat-appt);background:var(--cat-appt-bg);border-color:transparent}
.tg.cat-imm{color:var(--cat-imm);background:var(--cat-imm-bg);border-color:transparent}
.tg.cat-enroll{color:var(--cat-enroll);background:var(--cat-enroll-bg);border-color:transparent}
/* dashboard view */
.app-dash{flex:1;min-width:0;padding:24px 40px;overflow:hidden;animation:feedIn .35s var(--ease-out) both}
.app-dash[hidden]{display:none}
.app.dash-on .app-board,.app.dash-on .app-panel{display:none}
.dash-hi{font-size:24px;font-weight:600;letter-spacing:-.02em;color:#374151;margin-bottom:16px}
.dash-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:4px;border:1px solid var(--line);border-radius:12px;background:#F3F4F6;margin-bottom:16px}
.dash-tabs span{text-align:center;padding:8px 0;font-size:13px;font-weight:500;color:var(--grey-500);border-radius:9px}
.dash-tabs .on{background:#fff;color:var(--blue-900);font-weight:600;box-shadow:var(--shadow-xs)}
.dash-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.dash-range{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#F9FAFB}
.dash-range button{font:inherit;font-size:12.5px;font-weight:500;color:var(--grey-500);background:none;border:0;border-right:1px solid var(--line);padding:9px 14px;cursor:pointer}
.dash-range button:last-child{border-right:0}
.dash-range button:hover{color:var(--ink)}
.dash-range .on{background:#fff;color:var(--ink);font-weight:600;box-shadow:var(--shadow-xs)}
.dash-export{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:#374151;border:1px solid var(--line);border-radius:10px;padding:8px 14px;background:#fff}
.dash-export svg{width:15px;height:15px}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 22px 12px}
.dash-card-head{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#374151}
.dash-q{width:17px;height:17px;border-radius:50%;border:1.5px solid var(--grey-100);color:var(--grey-200);font-size:10px;font-weight:700;font-style:normal;display:inline-flex;align-items:center;justify-content:center}
.dash-legend{display:flex;justify-content:flex-end;gap:22px;font-size:12px;color:var(--grey-500);margin:8px 0 6px}
.dash-legend span{display:inline-flex;align-items:center;gap:7px}
.dash-legend i{width:7px;height:7px;border-radius:50%}
.dash-legend .h{background:var(--brand-primary)}.dash-legend .a{background:#FF6FA8}
.dash-chart{display:block;width:100%;height:190px;overflow:visible}
.dash-chart .grid{stroke:#F1F2F4;stroke-width:1}
.dash-chart .hl{fill:none;stroke:var(--brand-primary);stroke-width:2;stroke-linejoin:round}
.dash-chart .ar{fill:url(#dashFill);opacity:0;transition:opacity .8s var(--ease-out) .5s}
.dash-chart .al{fill:none;stroke:#FF6FA8;stroke-width:1.8;stroke-linejoin:round}
.dash-chart.drawn .ar{opacity:1}
.dash-x{display:flex;justify-content:space-between;font-size:10.5px;color:var(--grey-300);padding:6px 0 0}
.dash-h{font-size:19px;font-weight:500;color:#374151;margin:18px 0 12px}
.dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.dash-stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.dash-stat span{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;font-weight:500;color:#374151}
.dash-stat b{display:block;font-family:var(--font-display);font-size:32px;font-weight:500;color:#374151;margin-top:14px;letter-spacing:-.02em}
/* Heron AI panel */
.app-panel{width:348px;flex:0 0 auto;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:16px 18px}
.ap-head{display:flex;align-items:center;gap:9px;font-size:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.ap-head img{width:24px;height:24px}
.ap-status{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--green-300);background:var(--status-success-bg);padding:4px 10px;border-radius:var(--radius-pill);transition:opacity var(--duration-base)}
.ap-status .livedot{width:6px;height:6px}
.ap-status.idle{color:var(--grey-300);background:var(--surface-sunken)}
.ap-who{padding:14px 0 6px;min-height:62px}
.ap-who .t{font-size:10.5px;color:var(--grey-200)}
.ap-who h4{font-size:19px;margin:3px 0 0;display:flex;align-items:center;gap:6px}
.ap-who h4 svg{width:16px;height:16px;fill:#12A37A;stroke:#fff;stroke-width:2.4}
.ap-feed{flex:1;display:flex;flex-direction:column;gap:9px;overflow:hidden;padding-top:6px}
.ap-feed > *{animation:feedIn .4s var(--ease-out) both}
@keyframes feedIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg{max-width:86%;font-size:12.5px;line-height:1.45;padding:8px 11px;border-radius:12px}
.msg.p{align-self:flex-end;background:var(--surface-sunken);border-bottom-right-radius:4px}
.msg.h{align-self:flex-start;background:var(--blue-50);color:var(--blue-900);border-bottom-left-radius:4px}
.typing{display:inline-flex;gap:4px;align-items:center;padding:3px 0}
.typing i{width:5px;height:5px;border-radius:50%;background:var(--blue-200);animation:typing 1.2s infinite}
.typing i:nth-child(2){animation-delay:.18s}.typing i:nth-child(3){animation-delay:.36s}
@keyframes typing{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.worked{font-size:11px;color:var(--grey-300);display:flex;align-items:center;gap:6px}
.worked::before{content:"";width:12px;height:1px;background:var(--grey-100)}
.result{border:1px solid var(--blue-100);border-radius:12px;padding:12px 13px;background:#fff;box-shadow:0 0 0 3px rgba(0,0,255,.04)}
.result h5{font-size:13.5px;margin-bottom:3px;display:flex;align-items:center;gap:7px}
.result h5 .tg{margin-left:auto}
.result p{font-size:12px;color:var(--grey-300);margin-bottom:9px}
.result dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:12px;border-top:1px solid var(--line);padding-top:9px}
.result dt{color:var(--grey-300)}
.result dd{font-weight:500}
.pms-ok{display:flex;align-items:center;gap:7px;margin-top:10px;padding:7px 10px;border-radius:8px;background:var(--status-success-bg);color:var(--green-300);font-size:12px;font-weight:600}
.pms-ok svg{width:14px;height:14px;stroke-width:2.4}
.pms-ok small{margin-left:auto;font-weight:500;color:var(--green-300);opacity:.8}
.sysline{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--grey-300)}
.sysline img{width:16px;height:16px}
.sysline .tg{padding:1px 7px}
/* live call: Heron doesn't stream the conversation, so show the call bar + agent steps, then a summary */
.callbar{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:var(--surface-sunken);font-size:12px}
.callbar b{font-weight:600}
.callbar small{display:block;color:var(--grey-300);font-size:10.5px;margin-top:1px}
.wave{display:flex;align-items:center;gap:2px;height:18px;flex:0 0 auto}
.wave i{width:3px;border-radius:2px;background:var(--brand-primary);animation:wave 1s ease-in-out infinite}
.wave i:nth-child(1){height:6px;animation-delay:-.2s}.wave i:nth-child(2){height:14px;animation-delay:-.5s}.wave i:nth-child(3){height:10px;animation-delay:-.1s}.wave i:nth-child(4){height:16px;animation-delay:-.7s}.wave i:nth-child(5){height:8px;animation-delay:-.35s}
@keyframes wave{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
.callbar.ended .wave i{animation:none;background:var(--grey-100);transform:scaleY(.45)}
.step{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--grey-500);line-height:1.35}
.step .si{width:18px;height:18px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;background:var(--surface-sunken);color:var(--grey-300)}
.step .si svg{width:11px;height:11px;stroke-width:2.2}
.step.run .si{background:transparent;border:1.5px solid var(--blue-50);border-top-color:var(--brand-primary);animation:hubspin .7s linear infinite}
.step.run .si svg{display:none}
@keyframes hubspin{to{transform:rotate(360deg)}}
.step.done .si{background:var(--status-success-bg);color:var(--green-300)}
.verify{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px;border-radius:10px;border:1px solid #C9F0DA;background:#F4FCF7;font-size:12px}
.verify > b{display:inline-flex;align-items:center;gap:6px;color:var(--green-300);font-weight:600;margin-right:4px}
.verify > b svg{width:14px;height:14px;stroke-width:2}
.vc{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;background:#fff;border:1px solid #D6F2E1;color:var(--grey-500);font-size:11px;font-weight:500}
.vc svg{width:10px;height:10px;stroke-width:3;color:var(--green-200)}
.vc.pop{animation:tgPop .35s var(--ease-emphasized) both}
.kb{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;border:1px solid var(--blue-50);background:#F7F7FF;font-size:12px;color:var(--grey-500)}
.kb svg{width:14px;height:14px;color:var(--brand-primary);flex:0 0 auto}
.kb b{color:var(--blue-900);font-weight:600}
.summary{font-size:12.5px;line-height:1.5;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--grey-700)}
.summary .lbl{display:block;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--grey-300);margin-bottom:4px}
.ap-feed.settled > *:not(.result):not(.sysline){animation:none}
@media(prefers-reduced-motion:reduce){.pc.enter,.tg.pop,.vc.pop,.ap-feed > *{animation:none}.typing i,.wave i,.step.run .si{animation:none}}


.hero-note a{color:var(--brand-primary);font-weight:600}

/* ===== HOW IT WORKS: channel flow, full-width layout (base styles in flow.css) ===== */
.how-flow{margin-top:56px;position:relative;padding:48px 56px 36px;border-radius:var(--radius-xl);background:var(--surface-sunken);border:1px solid var(--line)}
.how-flow .flow{grid-template-columns:auto auto auto minmax(260px,380px);justify-content:space-between;column-gap:48px;row-gap:28px;max-width:1000px;margin:0 auto}
.how-flow .flow::before{inset:-40px -48px}
.how-flow .flow-patient .av{width:56px;height:56px}
.how-flow .flow-patient .av svg{width:24px;height:24px}
.how-flow .chan{font-size:14px;padding:8px 16px 8px 8px}
.how-flow .flow-in{gap:14px}
.how-flow .flow-hub{width:84px;height:84px}
.how-flow .flow-hub img{width:56px;height:56px}
.how-flow .out{font-size:13.5px;padding:6px 12px 6px 6px}
.how-flow .flow-now{grid-column:1/-1;justify-self:center;display:inline-flex;align-items:center;gap:9px;position:relative;z-index:1;font-size:13.5px;font-weight:500;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:var(--radius-pill);padding:7px 16px;box-shadow:var(--shadow-xs);transition:opacity var(--duration-base) var(--ease-standard)}
.how-flow .flow-now-dot{width:8px;height:8px;border-radius:50%;background:var(--brand-primary)}
.how-flow .flow-now.outb .flow-now-dot{background:var(--pink-300)}
.how-flow .flow-now.swap{opacity:0}
.how-flow .flow-legend{justify-content:center}
@container (max-width: 720px){
  .how-flow .flow{grid-template-columns:1fr;row-gap:40px}
  .how-flow .flow-patient{flex-direction:row;justify-self:center}
  .how-flow .flow-in{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .how-flow .flow-in .flow-label{grid-column:1/-1}
  .how-flow .chan{padding-right:10px}
  .how-flow .hub-label{top:100%;left:50%;transform:translateX(-50%);margin:10px 0 0}
  .how-flow .flow-core{flex-direction:row;gap:40px}
  .how-flow .flow-legend{flex-direction:column;row-gap:6px}
}
@media(max-width:860px){.how-flow{padding:32px 20px 24px;overflow:hidden}}

/* ===== FEATURES: hover a feature, watch Heron handle it (features.js) ===== */
.fx{display:grid;grid-template-columns:minmax(0,0.78fr) minmax(0,1.22fr);gap:36px;align-items:start}
.fx-list{display:flex;flex-direction:column;gap:6px}
.fx-item{display:flex;align-items:flex-start;gap:14px;width:100%;text-align:left;font:inherit;color:inherit;background:transparent;border:1px solid transparent;border-radius:var(--radius-lg);padding:14px 16px;cursor:pointer;transition:background var(--duration-base) var(--ease-standard),border-color var(--duration-base) var(--ease-standard),box-shadow var(--duration-base) var(--ease-standard)}
.fx-item .cico{width:38px;height:38px;border-radius:var(--radius-md);background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:background var(--duration-base),border-color var(--duration-base)}
.fx-item .cico svg{width:19px;height:19px;stroke:var(--grey-500);stroke-width:1.7;transition:stroke var(--duration-base)}
.fx-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.fx-t{font-family:var(--font-display);font-weight:600;font-size:16px;color:var(--ink);display:flex;align-items:center;gap:8px}
.fx-d{font-size:14px;color:var(--muted);line-height:1.5;max-height:0;overflow:hidden;opacity:0;transition:max-height var(--duration-slow) var(--ease-standard),opacity var(--duration-slow) var(--ease-standard)}
.fx-badge{font-style:normal;font-family:var(--font-body);font-size:10.5px;font-weight:600;letter-spacing:.04em;padding:2px 8px;border-radius:var(--radius-pill);background:var(--pink-50);color:var(--pink-500)}
.fx-item:hover{background:var(--surface-sunken)}
.fx-item.on{background:#fff;border-color:var(--line);box-shadow:var(--shadow-md)}
.fx-node{box-shadow:var(--shadow-xs)}
/* feature icons: each feature has a brand colour and a cropped brand shape in the corner of its tile;
   the selected feature fills with its colour */
.fx-item{--c:var(--blue-500);--c2:var(--blue-200)}
.fx-item:nth-child(4n+2){--c:var(--teal-500);--c2:var(--teal-200)}
.fx-item:nth-child(4n+3){--c:var(--orange-500);--c2:var(--orange-200)}
.fx-item:nth-child(4n+4){--c:var(--magenta-500);--c2:var(--magenta-200)}
.fx-item:nth-child(5n+1){--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 100H10A90 90 0 0 1 100 10Z'/%3E%3C/svg%3E")}
.fx-item:nth-child(5n+2){--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 20V100H20Z'/%3E%3C/svg%3E")}
.fx-item:nth-child(5n+3){--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='96' cy='96' r='52'/%3E%3C/svg%3E")}
.fx-item:nth-child(5n+4){--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100 0H66A34 34 0 0 0 66 68H100Z'/%3E%3C/svg%3E")}
.fx-item:nth-child(5n+5){--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M42 100V74A30 30 0 0 1 72 44H100V100Z'/%3E%3C/svg%3E")}
.fx-item .cico{position:relative;overflow:hidden}
.fx-item .cico::before{content:"";position:absolute;inset:0;background:var(--c2);opacity:.5;-webkit-mask:var(--shape) center/100% 100% no-repeat;mask:var(--shape) center/100% 100% no-repeat;transition:background var(--duration-base),opacity var(--duration-base),transform .5s var(--ease-emphasized)}
.fx-item .cico svg{position:relative}
.fx-item:hover .cico::before{opacity:.8;transform:rotate(-8deg) scale(1.08)}
.fx-item.on .cico{background:var(--c);border-color:var(--c)}
.fx-item.on .cico::before{background:#fff;opacity:.24;transform:none}
.fx-item.on .cico svg{stroke:#fff}
.fx-item.on .fx-d{max-height:5em;opacity:1}
.fx-item.pinned{border-color:var(--blue-100);box-shadow:0 0 0 3px rgba(0,0,255,.06),var(--shadow-md)}
.fx-stage{position:sticky;top:100px}
/* swimlane flowchart: Patient | Heron | Your clinic */
/* same backdrop as the How it works diagram: light grey panel, fading dot grid, no heavy shadow */
.fx-chart{position:relative;overflow:hidden;background:var(--surface-sunken);border:1px solid var(--line);border-radius:var(--radius-xl);padding:20px 20px 16px;display:flex;flex-direction:column}
.fx-chart::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(20,20,20,.08) 1px,transparent 1px);background-size:18px 18px;-webkit-mask-image:radial-gradient(closest-side,#000 55%,transparent);mask-image:radial-gradient(closest-side,#000 55%,transparent);pointer-events:none}
.fx-chart > *{position:relative}
.fx-lanes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:6px}
.fx-lanes span{text-align:center;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--grey-300);padding-bottom:10px;border-bottom:1px solid var(--line)}
.fx-body{position:relative;flex:1;min-height:470px;display:grid;grid-template-columns:repeat(3,1fr);column-gap:10px;row-gap:15px;align-content:start;padding:14px 0 10px;
  background-image:linear-gradient(var(--line),var(--line)),linear-gradient(var(--line),var(--line));background-size:1px 100%,1px 100%;background-position:33.6% 0,66.4% 0;background-repeat:no-repeat}
.fx-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.fx-lines path{fill:none;stroke:var(--grey-50);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fx-lines path.on{stroke:var(--blue-100)}
.fx-lines .arrow{fill:var(--grey-100)}
.fx-lines .dot{fill:var(--brand-primary);filter:drop-shadow(0 0 4px rgba(0,0,255,.35))}
.fx-node{position:relative;z-index:1;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:12.5px;line-height:1.35;color:var(--ink);opacity:.18;transform:translateY(4px);transition:opacity .4s var(--ease-out),transform .4s var(--ease-out),box-shadow var(--duration-slow),border-color var(--duration-slow)}
.fx-node.show{opacity:1;transform:none}
.fx-node.now{box-shadow:0 0 0 4px rgba(0,0,255,.08),var(--shadow-md)}
.fx-node .ni{width:24px;height:24px;border-radius:7px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.fx-node .ni svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fx-node .ni img{width:24px;height:24px;border-radius:50%}
.fx-node .ni.ini{border-radius:50%;font-size:9px;font-weight:700}
.fx-node.patient{background:#fff}
.fx-node.patient .ni{background:var(--surface-sunken);color:var(--grey-500)}
.fx-node.heron{background:#F6F6FF;border-color:var(--blue-50)}
.fx-node.heron.now{border-color:var(--blue-100)}
.fx-node.team{background:#FFF8EF;border-color:#FBE3C6}
.fx-node.team .ni{background:#FFE9CC;color:#B45A00}
.fx-node.team.now{box-shadow:0 0 0 4px rgba(224,138,0,.12),var(--shadow-md);border-color:#F5C48A}
.fx-node.pms{background:#F4FCF7;border-color:#C9F0DA}
.fx-node.pms .ni{background:var(--status-success-bg);color:var(--green-300)}
.fx-node.pms.now{box-shadow:0 0 0 4px rgba(0,166,81,.1),var(--shadow-md);border-color:var(--green-100)}
.fx-node.pbx{background:#fff;border-style:dashed;border-color:var(--grey-100)}
.fx-node.pbx .ni{background:var(--surface-sunken);color:var(--grey-500)}
.fx-node.either{flex-direction:column;align-items:stretch;gap:0;padding:6px;background:#fff}
.fx-node.either .alt{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:9px}
.fx-node.either .alt.kb{background:#F7F7FF}.fx-node.either .alt.kb .ni{background:var(--blue-50);color:var(--brand-primary)}
.fx-node.either .alt.pms{background:#F4FCF7}.fx-node.either .alt.pms .ni{background:var(--status-success-bg);color:var(--green-300)}
.fx-node.either .either-lbl{align-self:flex-start;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--grey-300);padding:2px 6px 4px}
.fx-node.either .or{align-self:center;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--grey-300);padding:2px 0}
.fx-node.either .alt.appt{background:#F7F7FF}.fx-node.either .alt.appt .ni{background:var(--blue-50);color:var(--brand-primary)}
.fx-node.either .alt.list{background:#F7F7FF}.fx-node.either .alt.list .ni{background:var(--blue-50);color:var(--brand-primary)}
.fx-node.either .alt.team{background:#FFF8EF}.fx-node.either .alt.team .ni{background:#FFE9CC;color:#B45A00}
.fx-callout{display:flex;gap:9px;align-items:flex-start;margin-top:6px;padding:10px 12px;border-radius:10px;background:#FFF8EF;border:1px solid #FBE3C6;font-size:12.5px;line-height:1.45;color:#6B3A00;opacity:0;transition:opacity .4s var(--ease-out)}
.fx-callout[hidden]{display:none}
.fx-callout.show{opacity:1}
.fx-callout .ci{width:18px;height:18px;flex:0 0 auto;border-radius:50%;background:#F5C48A;color:#fff;font-size:11px;font-weight:700;font-style:italic;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif}
.fx-node.decide{flex-direction:column;align-items:stretch;gap:0;padding:6px;background:#F6F6FF;border-color:var(--blue-50)}
.fx-node.decide .alt{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:9px;background:#fff}
.fx-node.decide .alt .ni{background:var(--blue-50);color:var(--brand-primary)}
.fx-node.decide .or{align-self:center;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--grey-300);padding:2px 0}
.fx-node.pharmacy{background:#F0FAFB;border-color:#CDEEF2}
.fx-node.pharmacy .ni{background:#DDF3F6;color:#0A7F9E}
.fx-callout .goto{font:inherit;font-weight:600;color:var(--brand-primary);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.fx-node.kb{background:#F7F7FF;border-color:var(--blue-50)}
.fx-node.kb .ni{background:var(--blue-50);color:var(--brand-primary)}
.fx-node small{display:block;font-size:10.5px;color:var(--grey-300);margin-top:1px}
.fx-out{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;border-top:1px solid var(--line);padding-top:14px;margin-top:6px;min-height:44px;font-size:12.5px;color:var(--grey-500);opacity:0;transition:opacity .4s var(--ease-out)}
.fx-out.show{opacity:1}
.fx-out b{color:var(--ink);font-weight:600}
.fx-out .pms-ok{margin:0;padding:5px 10px}
.fx-out .pms-ok svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fx-out .chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;background:var(--surface-sunken);font-weight:500}
.fx-out .chip.beta{background:var(--pink-50);color:var(--pink-500)}
.fx-out .heron-ok{display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 6px;border-radius:8px;background:var(--blue-50);color:var(--blue-900);font-size:12px;font-weight:600}
.fx-out .heron-ok img{width:16px;height:16px}
.fx-out .note{color:var(--grey-300);overflow:hidden;text-overflow:ellipsis}
@media(prefers-reduced-motion:reduce){.fx-node{transition:none}}
.team-hand{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:10px;border:1px solid #FBE3C6;background:#FFF8EF;font-size:12px;color:var(--grey-500)}
.team-hand svg{width:14px;height:14px;color:#B45A00}
.team-hand b{color:#8A4600;font-weight:600;margin-right:6px}
@media(max-width:940px){
  .fx{grid-template-columns:1fr;gap:24px}
  .fx-stage{position:relative;top:0;order:-1}
  .fx-chart{min-height:0}
  .fx-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .fx-item{padding:12px}
  .fx-d{display:none}
}
/* phones: the three lanes become one column of full-width steps, each tagged with its lane */
@media(max-width:560px){
  .fx-list{grid-template-columns:1fr}
  .fx-chart{padding:14px 12px}
  .fx-lanes{display:none}
  .fx-body{grid-template-columns:minmax(0,1fr);row-gap:20px;min-height:0;padding-top:18px;background-image:none}
  .fx-body .fx-node{grid-column:1 !important;padding:12px 12px 10px}
  .fx-node::before{content:attr(data-lane);position:absolute;top:-8px;left:10px;padding:1px 7px;border-radius:var(--radius-pill);background:#fff;border:1px solid var(--line);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--grey-300);line-height:1.4}
  .fx-node.heron::before{color:var(--brand-primary);border-color:var(--blue-50)}
  .fx-out{flex-wrap:wrap;white-space:normal}
}

/* ===== SECURITY (highlights from /security) ===== */
#security .sec-row-head .sec-head p{max-width:36em}
.sec-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.proof{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px 20px}
.proof img{width:52px;height:52px;flex:0 0 auto}
.proof .cico{width:52px;height:52px;border-radius:50%;background:var(--blue-50);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.proof .cico svg{width:24px;height:24px;stroke:var(--brand-primary);stroke-width:1.7}
.proof span{display:flex;flex-direction:column;font-size:13.5px;color:var(--muted);line-height:1.4}
.proof b{font-family:var(--font-display);font-size:17px;font-weight:600;color:var(--ink);margin-bottom:2px}
.sec-compliance{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:28px}
.sec-compliance .lbl{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--grey-300);margin-right:4px}
.chip-c{font-size:13.5px;font-weight:500;padding:7px 14px;border-radius:var(--radius-pill);background:#fff;border:1px solid var(--line)}
.sec-compliance .btn-link{margin-left:auto}
@media(max-width:860px){.sec-proof{grid-template-columns:1fr}.sec-compliance .btn-link{margin-left:0}}
.sec-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px;margin-top:40px;border-top:1px solid var(--line)}
.sec-item{display:flex;gap:14px;align-items:flex-start;padding:22px 0;border-bottom:1px solid var(--line)}
.sec-item .cico{width:36px;height:36px;border-radius:var(--radius-md);background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.sec-item .cico svg{width:18px;height:18px;stroke:var(--brand-primary);stroke-width:1.7}
.sec-item h3{font-size:15.5px;margin-bottom:4px}
.sec-item p{font-size:14px;color:var(--muted);line-height:1.5}
@media(max-width:860px){.sec-list{grid-template-columns:1fr}}

/* ===== INTEGRATIONS: centred rows, so any number of logos lines up ===== */
#integrations .logo-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
#integrations .logo-tile{flex:0 0 calc((100% - 3 * 14px) / 4);aspect-ratio:auto;height:92px}
#integrations .logo-tile img{max-height:40px}
#integrations .logo-text span{font-family:var(--font-display);font-weight:600;font-size:19px;letter-spacing:-.01em;color:var(--grey-500)}
@media(max-width:560px){#integrations .logo-tile{flex-basis:calc((100% - 14px) / 2)}}

