/* get.ilai.health shared polish system (2026-10-27, Barry: "polish every page … flair, pizazz, modern touches").
   Linked LAST in every page's <head>; script ilai-polish.js (defer). Spec: marketing/site/POLISH_SPEC.md.
   Rules: calm motion that runs once; everything visible without JS; all motion off under prefers-reduced-motion.
   Components: .ilai-btn · .ip-launch · .ip-sheen · .ip-frame(-phone|-window|-sheet) · .ip-pin · .ip-cards · .ip-glow
               .ip-band-sage · .ip-band-night · [data-reveal] · .ip-rail · .ip-quote · .ip-steps
   Tokens: forest #173C31 · forest-hi #22503F · gold #A67B22 · gold-lt #E2BF77 · leaf #4F6B45 · cream #F6F4ED · sage #EEF1E8 · line #DDDCD3 */
:root{--ip-forest:#173C31;--ip-forest-hi:#22503F;--ip-gold:#A67B22;--ip-gold-lt:#E2BF77;--ip-leaf:#4F6B45;--ip-cream:#F6F4ED;--ip-sage:#EEF1E8;--ip-line:#DDDCD3;--ip-ink:#173C31;--ip-muted:#5A5D55}

/* 0. One header button, forest, on every page */
html body .hd-cta,html body .hd.v5-clear .hd-cta,html body .hd .hd-cta{background:var(--ip-forest)!important;color:#fff!important}
html body .hd-cta:hover,html body .hd.v5-clear .hd-cta:hover,html body .hd .hd-cta:hover{background:var(--ip-forest-hi)!important}

/* 1. The ILAI button: forest pill, a gold hairline that turns slowly, a light sweep, an arrow that slides on hover.
      Markup: <a class="ilai-btn" href="/start"><span>Join the waitlist</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6"/></svg></a>
      .ilai-btn.on-dark = cream pill for forest/night bands. */
@property --ipa{syntax:'<angle>';initial-value:0deg;inherits:false}
html body a.ilai-btn,html body button.ilai-btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:0 26px 0 30px;border:0;border-radius:999px;cursor:pointer;
  font:600 17px/1 var(--font-sans,'DM Sans',sans-serif);text-decoration:none;background-color:var(--ip-forest);color:#fff;box-shadow:0 12px 28px -14px rgba(23,60,49,.6);transition:transform .25s ease,box-shadow .25s ease;
  background-image:linear-gradient(105deg,transparent 38%,rgba(255,234,186,.30) 50%,transparent 62%);background-size:260% 100%;background-position:130% 0;background-repeat:no-repeat;animation:ipShine 6s ease-in-out 1.4s infinite}
html body .ilai-btn::before{content:'';position:absolute;inset:-4px;border-radius:999px;padding:1.5px;z-index:-1;pointer-events:none;
  background:conic-gradient(from var(--ipa),rgba(166,123,34,.18) 0 58%,var(--ip-gold-lt) 72%,var(--ip-gold) 80%,rgba(166,123,34,.18) 92%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:ipSpin 7s linear infinite}
html body .ilai-btn svg{width:20px;height:20px;fill:none;stroke:var(--ip-gold-lt);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease;flex:none}
html body .ilai-btn:hover,html body .ilai-btn:focus-visible{transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(23,60,49,.7),0 0 0 6px rgba(226,191,119,.16)}
html body .ilai-btn:hover svg,html body .ilai-btn:focus-visible svg{transform:translateX(4px)}
html body .ilai-btn.on-dark{background-color:var(--ip-cream);color:var(--ip-forest)}
html body .ilai-btn.on-dark svg{stroke:var(--ip-gold)}
html body .ilai-btn.sm{min-height:46px;font-size:15px;padding:0 20px 0 22px}
@keyframes ipSpin{to{--ipa:360deg}}
@keyframes ipShine{0%,62%{background-position:130% 0}100%{background-position:-30% 0}}

/* 2. Launch countdown chip. Markup: <span class="ip-launch" data-launch><i></i><b>Opens Nov 15</b></span>; the script writes "N days to launch · Nov 15". */
.ip-launch{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 10px;border:1px solid rgba(166,123,34,.35);border-radius:999px;background:rgba(255,255,255,.7);font:500 13.5px/1.3 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-muted);vertical-align:1px}
.ip-launch b{font-weight:600;color:var(--ip-forest)}
.ip-launch i{position:relative;width:8px;height:8px;border-radius:50%;background:var(--ip-gold);flex:none}
.ip-launch i::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:1.5px solid rgba(166,123,34,.55);animation:ipPing 2.4s ease-out infinite}
@keyframes ipPing{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.8);opacity:0}}
.ip-band-night .ip-launch{background:rgba(255,255,255,.08);border-color:rgba(226,191,119,.4);color:#D8DED5}.ip-band-night .ip-launch b{color:#fff}

/* 3. Heading turn + sheen. Any heading with class .ip-sheen: its <em> is the italic leaf turn; a gold light passes once when it scrolls in. */
.ip-sheen em{font-style:italic;background:linear-gradient(100deg,var(--ip-leaf) 0%,var(--ip-leaf) 38%,#B8892B 50%,var(--ip-leaf) 62%,var(--ip-leaf) 100%);background-size:250% 100%;background-position:0 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-right:.08em}
html.ip-js .ip-sheen:not(.ip-in) em{background-position:100% 0}
html.ip-js .ip-sheen.ip-in em{animation:ipSheen 2.6s .3s ease-out both}
@keyframes ipSheen{from{background-position:100% 0}to{background-position:0 0}}
.ip-band-night .ip-sheen em{background-image:linear-gradient(100deg,var(--ip-gold-lt) 0%,var(--ip-gold-lt) 38%,#fff 50%,var(--ip-gold-lt) 62%,var(--ip-gold-lt) 100%)}

/* 4. Frames. <a class="ip-frame ip-frame-phone|ip-frame-window|ip-frame-sheet" …><img …></a> (or a <div>). Never a raw crop on the page. */
.ip-frame{display:block;position:relative;color:inherit;transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.ip-frame img{display:block;width:100%;height:auto}
.ip-frame-phone{background:#1E2420;border-radius:34px;padding:9px;box-shadow:0 28px 56px -26px rgba(23,60,49,.6)}
.ip-frame-phone img{border-radius:26px}
.ip-frame-window{background:#fff;border:1px solid #DCE2D3;border-radius:16px;padding:10px;box-shadow:0 26px 54px -30px rgba(23,60,49,.5)}
.ip-frame-window img{border-radius:10px}
.ip-frame-window.chrome{padding-top:30px}
.ip-frame-window.chrome::before{content:'';position:absolute;left:16px;top:12px;width:42px;height:8px;background:radial-gradient(circle at 4px 4px,#E3DED2 4px,transparent 4.5px) 0 0/14px 8px repeat-x}
.ip-frame-sheet{background:#fff;border:1px solid #DCE2D3;border-radius:18px;padding:8px;box-shadow:0 28px 56px -26px rgba(23,60,49,.6)}
.ip-frame-sheet img{border-radius:12px}
@media (hover:hover){a.ip-frame:hover{transform:translateY(-6px)}}
@media (max-width:620px){.ip-frame-phone{border-radius:28px;padding:7px}.ip-frame-phone img{border-radius:22px}}

/* 5. Callout pins: labelled chips with a pulsing gold dot, placed over a showcase. Parent needs position:relative.
      <span class="ip-pin" style="left:4%;top:12%" aria-hidden="true"><i></i>3 days after the step to 0.5 mg</span>. Hidden under 900 px. */
.ip-pin{position:absolute;z-index:4;display:flex;align-items:center;gap:8px;padding:8px 14px 8px 10px;border-radius:999px;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);border:1px solid rgba(166,123,34,.35);box-shadow:0 14px 30px -14px rgba(23,60,49,.45);font:600 13.5px/1.2 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-ink);white-space:nowrap;pointer-events:none}
.ip-pin i{position:relative;width:9px;height:9px;border-radius:50%;background:var(--ip-gold);flex:none}
.ip-pin i::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid rgba(166,123,34,.55);animation:ipPing 2.4s ease-out infinite}
html.ip-js .ip-in .ip-pin{animation:ipBob 6s ease-in-out 2s infinite}
@keyframes ipBob{0%,100%{translate:0 0}50%{translate:0 -6px}}
@media (max-width:900px){.ip-pin{display:none}}

/* 6. Feature cards. <ul class="ip-cards"><li><i class="ip-ic"><svg …/></i><b>Lead</b><span>One sentence.</span></li>…</ul> (2–4 per row) */
.ip-cards{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.ip-cards li{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:12px;row-gap:4px;align-content:start;background:#fff;border:1px solid var(--ip-line);border-radius:16px;padding:18px 18px 18px 16px;overflow:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
.ip-cards li::before{content:"";position:absolute;left:0;top:0;height:3px;width:100%;background:linear-gradient(90deg,var(--ip-gold),#D0AA55 50%,var(--ip-leaf));transform:scaleX(.18);transform-origin:left;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.ip-cards .ip-ic{grid-row:1/3;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#EEF1E8,#E2E8DA);box-shadow:inset 0 0 0 1px rgba(23,60,49,.06)}
.ip-cards .ip-ic svg{width:20px;height:20px;fill:none;stroke:var(--ip-forest);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ip-cards .ip-ic svg .a{stroke:var(--ip-gold)}
.ip-cards b{grid-column:2;font:600 15px/1.3 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-ink)}
.ip-cards span{grid-column:2;font-size:14.5px;line-height:1.5;color:var(--ip-muted)}
.ip-cards li:not(:has(.ip-ic)){grid-template-columns:minmax(0,1fr)}.ip-cards li:not(:has(.ip-ic)) b,.ip-cards li:not(:has(.ip-ic)) span{grid-column:1}
@media (hover:hover){.ip-cards li:hover{transform:translateY(-4px);box-shadow:0 22px 40px -26px rgba(23,60,49,.45);border-color:rgba(166,123,34,.45)}.ip-cards li:hover::before{transform:scaleX(1)}}

/* the glow and full-bleed bands reach past the page width: clip sideways overflow without making a scroll container (keeps sticky rails working) */
html body main,html body #main-content{overflow-x:clip}

/* 7. Glow behind a showcase (instead of grey bands). <div class="ip-glow"> … </div> */
.ip-glow{position:relative;isolation:isolate}
.ip-glow::before{content:"";position:absolute;inset:-6% -8% -10%;z-index:-1;pointer-events:none;background:radial-gradient(40% 48% at 24% 58%,rgba(198,150,52,.30),transparent 70%),radial-gradient(50% 55% at 64% 38%,rgba(95,128,84,.26),transparent 72%),radial-gradient(32% 36% at 90% 80%,rgba(198,150,52,.22),transparent 70%);filter:blur(14px);animation:ipDrift 18s ease-in-out infinite alternate}
@keyframes ipDrift{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(2%,-2%,0) scale(1.05)}}

/* 8. Bands: full-bleed with soft edges. Put on a <section>; content stays in the page's own wrap. At most one night band per page. */
.ip-band-sage,.ip-band-night{position:relative;isolation:isolate}
.ip-band-sage::before,.ip-band-night::before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;pointer-events:none}
.ip-band-sage::before{background:linear-gradient(180deg,rgba(238,241,232,0) 0,#EEF1E8 80px,#EEF1E8 calc(100% - 80px),rgba(238,241,232,0) 100%)}
.ip-band-night{color:#D8DED5}
.ip-band-night::before{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 64px,#000 calc(100% - 64px),transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 64px,#000 calc(100% - 64px),transparent 100%);background:radial-gradient(60% 70% at 20% 30%,rgba(198,150,52,.18),transparent 70%),radial-gradient(50% 60% at 85% 70%,rgba(95,128,84,.25),transparent 72%),linear-gradient(180deg,#132E26,#0F241E);border-radius:0}
.ip-band-night h1,.ip-band-night h2,.ip-band-night h3,.ip-band-night b{color:#F6F4ED}
.ip-band-night p,.ip-band-night li,.ip-band-night span:not(.ip-pin):not(.ip-launch *):not(.win *):not(.ip-frame *){color:#C9D1C6}
.ip-band-night .ip-pin,.ip-band-night .ip-pin *{color:var(--ip-ink)}
.ip-band-night a:not(.ilai-btn){color:var(--ip-gold-lt)}
.ip-band-night .ip-cards li{background:rgba(255,255,255,.05);border-color:rgba(226,191,119,.22)}
.ip-band-night .ip-cards span{color:#C9D1C6}
.ip-band-night .ip-cards .ip-ic{background:rgba(226,191,119,.12)}.ip-band-night .ip-cards .ip-ic svg{stroke:var(--ip-gold-lt)}

/* 9. Reveal once: add data-reveal to any block (data-reveal="left|right|up", default up; data-delay="1..6" staggers by .1 s).
      The script arms it only for blocks still below the fold, so no-JS and above-the-fold content are never hidden. */
html.ip-js [data-reveal].ip-arm:not(.ip-in){opacity:0}
html.ip-js [data-reveal].ip-arm.ip-in{animation:ipRiseUp .9s cubic-bezier(.2,.7,.2,1) backwards}
html.ip-js [data-reveal="left"].ip-arm.ip-in{animation-name:ipRiseLeft}
html.ip-js [data-reveal="right"].ip-arm.ip-in{animation-name:ipRiseRight}
@keyframes ipRiseUp{from{opacity:0;transform:translateY(28px)}}
@keyframes ipRiseLeft{from{opacity:0;transform:translateX(-40px) rotate(-3deg)}}
@keyframes ipRiseRight{from{opacity:0;transform:translateX(40px) rotate(3deg)}}
/* stagger: an animation delay, so hover transitions on the same element are never delayed */
html.ip-js [data-reveal].ip-in[data-delay="1"]{animation-delay:.1s}html.ip-js [data-reveal].ip-in[data-delay="2"]{animation-delay:.2s}html.ip-js [data-reveal].ip-in[data-delay="3"]{animation-delay:.3s}html.ip-js [data-reveal].ip-in[data-delay="4"]{animation-delay:.4s}html.ip-js [data-reveal].ip-in[data-delay="5"]{animation-delay:.5s}html.ip-js [data-reveal].ip-in[data-delay="6"]{animation-delay:.6s}
/* cream sheen for headings on any forest band, not only .ip-band-night: add .on-dark to the heading */
.ip-sheen.on-dark em{background-image:linear-gradient(100deg,var(--ip-gold-lt) 0%,var(--ip-gold-lt) 38%,#fff 50%,var(--ip-gold-lt) 62%,var(--ip-gold-lt) 100%)}

/* 10. Chapter rail under a page's hero: <nav class="ip-rail" aria-label="On this page"><a href="#doses">Dose steps</a>…</nav>.
       Sticks under the header on wide screens; the script lights the chapter in view; sideways scroll on phones. */
.ip-rail{position:sticky;top:var(--ip-rail-top,96px);z-index:20;display:flex;gap:6px;justify-content:center;flex-wrap:wrap;width:max-content;max-width:calc(100% - 32px);margin:28px auto 0;padding:6px;border-radius:999px;background:rgba(246,244,237,.82);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);border:1px solid var(--ip-line);box-shadow:0 12px 30px -20px rgba(23,60,49,.45)}
.ip-rail a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;font:600 14px/1 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-ink);text-decoration:none;transition:background-color .25s,color .25s}
.ip-rail a:hover{background:#fff}
.ip-rail a.on{background:var(--ip-forest);color:#fff}
@media (max-width:1200px){.ip-rail{--ip-rail-top:84px}}
/* a chapter the rail jumps to lands below the header + the stuck rail */
html:has(.ip-rail) [id]{scroll-margin-top:150px}
@media (max-width:760px){html:has(.ip-rail) [id]{scroll-margin-top:156px}}
/* phones (Barry, 2026-10-30: the rail scrolled under the floating header): it docks just under the header, still a sideways scroller */
@media (max-width:760px){.ip-rail{position:sticky;top:calc(env(safe-area-inset-top,0px) + 88px);flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;max-width:calc(100% - 32px);scrollbar-width:none}.ip-rail::-webkit-scrollbar{display:none}.ip-rail a{flex:none}}

/* 11. Pull quote. <figure class="ip-quote"><blockquote><p>Words, <em>the turn.</em></p></blockquote><figcaption><b>Name</b>Role</figcaption></figure> */
.ip-quote{margin:40px auto;max-width:820px;text-align:center}
.ip-quote blockquote{margin:0;position:relative;padding-top:30px}
.ip-quote blockquote::before{content:'\201C';position:absolute;left:50%;top:-14px;transform:translateX(-50%);font:400 104px/1 var(--hm-serif,'Newsreader',serif);color:var(--ip-gold);opacity:.35}
.ip-quote p{margin:0;font-family:var(--hm-serif,'Newsreader',serif);font-weight:400;font-size:clamp(26px,3.4vw,42px);line-height:1.15;letter-spacing:-.01em;color:var(--ip-ink);text-wrap:balance}
.ip-quote p em{font-style:italic;color:var(--ip-gold)}
.ip-quote figcaption{display:inline-flex;flex-direction:column;margin-top:16px;padding-top:12px;border-top:1px solid rgba(166,123,34,.35);font:400 14px/1.35 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-muted)}
.ip-quote figcaption b{font-weight:600;color:var(--ip-ink);font-size:15px}

/* 12. Stepper. <ol class="ip-steps"><li><b>Say it in one sentence</b><span>…</span></li>…</ol> — numbered gold nodes on a line. */
.ip-steps{list-style:none;counter-reset:ips;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;position:relative}
.ip-steps::before{content:"";position:absolute;left:18px;right:18px;top:17px;height:2px;background:linear-gradient(90deg,#D9CFB4,var(--ip-gold) 60%,var(--ip-leaf))}
.ip-steps li{position:relative;counter-increment:ips;padding-top:50px}
.ip-steps li::before{content:counter(ips);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid var(--ip-gold);font:700 15px/1 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-forest);box-shadow:0 0 0 6px var(--ip-cream)}
.ip-steps li.on::before{background:var(--ip-forest);border-color:var(--ip-forest);color:#fff}
.ip-steps b{display:block;font:600 15px/1.3 var(--font-sans,'DM Sans',sans-serif);color:var(--ip-ink)}
.ip-steps span{display:block;margin-top:4px;font-size:14.5px;line-height:1.5;color:var(--ip-muted)}
@media (max-width:620px){.ip-steps{grid-template-columns:1fr}.ip-steps::before{left:17px;right:auto;top:18px;bottom:18px;width:2px;height:auto;background:linear-gradient(180deg,#D9CFB4,var(--ip-gold) 60%,var(--ip-leaf))}.ip-steps li{padding:0 0 0 54px;min-height:36px}}

/* 13. Line art slot: <figure class="ip-art" aria-hidden="true"><svg …/></figure> — gold hairline drawings (stroke var(--ip-gold), 1.2 px). */
.ip-art{margin:0;color:var(--ip-gold)}
.ip-art svg{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.ip-art svg .f{stroke:var(--ip-leaf)}

@media (prefers-reduced-motion:reduce){
  html body .ilai-btn,html body .ilai-btn::before,.ip-launch i::after,.ip-pin i::after,html.ip-js .ip-in .ip-pin,.ip-glow::before,html.ip-js .ip-sheen.ip-in em{animation:none!important}
  .ip-sheen em,html.ip-js .ip-sheen:not(.ip-in) em{background-position:0 0}
  html.ip-js [data-reveal].ip-arm{opacity:1!important;transform:none!important;animation:none!important}
  .ip-frame,.ip-cards li,.ip-cards li::before,html body .ilai-btn,html body .ilai-btn svg{transition:none!important}
}

/* ── Floating header (get.ilai.health only: the consumer header is the one with "Who it's for"), Barry 2026-10-28:
   "something more modern … the sign in button should be more obvious and enticing". The bar becomes a frosted pill that
   floats over the page; links get pill hovers; Sign in is a real button with a person icon beside the waitlist button. */
html body .hd:has(.hd-who){background:#FAF8F1!important;border-bottom:0!important;box-shadow:none!important;height:88px!important;padding-top:12px;pointer-events:none}
html body .hd:has(.hd-who) .hd-wrap{pointer-events:auto;height:64px;max-width:1240px;margin:0 auto;padding:0 10px 0 22px;border-radius:999px;
  background:rgba(250,248,241,.74);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
  border:1px solid rgba(23,60,49,.10);box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 12px 32px -22px rgba(23,60,49,.45);transition:box-shadow .3s,background .3s}
html body .hd:has(.hd-who).ip-scrolled .hd-wrap{background:#FFFFFF;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 40px -20px rgba(23,60,49,.5)}
/* Scrolled, the whole band frosts too (Barry 2026-10-30: the hero headline showed through around the pill): a clean strip over the page, the pill inside it. */
html body .hd:has(.hd-who).ip-scrolled{background:#FAF8F1!important;border-bottom:1px solid rgba(23,60,49,.08)!important;transition:background .3s}
html body .hd:has(.hd-who) .hd-nav{gap:4px!important}
html body .hd:has(.hd-who) .hd-nav>a:not(.hd-cta):not(.hd-signin),html body .hd:has(.hd-who) .hd-whob{height:40px;padding:0 14px!important;border-radius:999px;display:inline-flex;align-items:center;transition:background .18s,color .18s}
html body .hd:has(.hd-who) .hd-nav>a:not(.hd-cta):not(.hd-signin):hover,html body .hd:has(.hd-who) .hd-whob:hover,html body .hd:has(.hd-who) .hd-whob[aria-expanded="true"]{background:rgba(23,60,49,.07)}
html body .hd:has(.hd-who) .hd-nav a::after{display:none!important}
html body .hd:has(.hd-who) a.hd-signin{display:inline-flex!important;align-items:center;gap:8px;height:44px;margin-left:10px;padding:0 18px 0 14px!important;border-radius:999px;
  background:#fff;color:#173C31!important;font-weight:600;text-decoration:none;border:1px solid rgba(23,60,49,.22);box-shadow:0 6px 16px -12px rgba(23,60,49,.5);transition:border-color .18s,box-shadow .18s,transform .18s}
html body .hd:has(.hd-who) a.hd-signin::before{content:"";width:22px;height:22px;border-radius:50%;flex:none;
  background:#E8EDE4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173C31' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='3.6'/%3E%3Cpath d='M5.5 19.5c1.3-3.1 3.7-4.6 6.5-4.6s5.2 1.5 6.5 4.6'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow:0 0 0 1.5px rgba(198,150,52,.55)}
html body .hd:has(.hd-who) a.hd-signin:hover{border-color:rgba(166,123,34,.6);box-shadow:0 10px 22px -12px rgba(23,60,49,.55);transform:translateY(-1px)}
html body .hd:has(.hd-who) a.hd-cta{height:44px;min-height:44px;border-radius:999px!important;padding:0 20px!important;margin-left:6px;box-shadow:0 8px 20px -12px rgba(23,60,49,.7)}
html body .hd:has(.hd-who) .hd-menu{border-radius:999px;background:#fff;border-color:rgba(23,60,49,.18)}
html body .hd:has(.hd-who) .hd-panel{pointer-events:auto;margin:8px 12px 0;border-radius:22px;border:1px solid rgba(23,60,49,.1);box-shadow:0 24px 48px -28px rgba(23,60,49,.5)}
html body .hd:has(.hd-who) .hd-panel a.hd-signin{display:flex!important;justify-content:center;margin:6px 0 0;border:1px solid rgba(23,60,49,.22);border-radius:999px;background:#fff;color:#173C31!important;font-weight:600}
@media(max-width:1199px){html body .hd:has(.hd-who){height:76px!important;padding-top:8px}
  html body .hd:has(.hd-who) .hd-wrap{height:60px;margin:0 12px;padding:0 8px 0 16px}}
@media(max-width:520px){html body .hd:has(.hd-who) .hd-wrap{height:56px;margin:0 8px;padding:0 6px 0 14px}}
@media(prefers-reduced-motion:reduce){html body .hd:has(.hd-who) a.hd-signin:hover{transform:none}}
html body .hd:has(.hd-who) .hd-brand{display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;height:100%;padding:0!important}
html body .hd:has(.hd-who) .hd-brand img{height:30px!important;width:auto!important;margin:0!important}
html body .hd:has(.hd-who) .hd-brand .hd-desc{position:static!important;margin:0!important;padding:0!important;font-size:11.5px!important;line-height:1.1!important;letter-spacing:.01em;white-space:nowrap}
@media(max-width:520px){html body .hd:has(.hd-who) .hd-brand img{height:26px!important}html body .hd:has(.hd-who) .hd-brand .hd-desc{font-size:10px!important}}
@media(min-width:1200px){html body .hd:has(.hd-who) .hd-wrap{height:68px}html body .hd:has(.hd-who) .hd-brand img{height:34px!important}html body .hd:has(.hd-who) .hd-brand .hd-desc{font-size:12px!important}}
@media(max-width:1199px){html body .hd:has(.hd-who) .hd-nav>a:not(.hd-cta),html body .hd:has(.hd-who) .hd-nav>.hd-who{display:none!important}}
@media(max-width:1199px){html body .hd:has(.hd-who) .hd-nav>a.hd-signin{display:inline-flex!important;height:40px;margin-left:0}
  html body .hd:has(.hd-who) a.hd-cta{height:40px;min-height:40px}}
@media(max-width:620px){html body .hd:has(.hd-who) .hd-brand .hd-desc{display:none!important}
  html body .hd:has(.hd-who) .hd-nav>a.hd-signin{width:40px;padding:0!important;justify-content:center;font-size:0!important;gap:0}
  html body .hd:has(.hd-who) .hd-nav>a.hd-signin::before{width:26px;height:26px;background-size:18px}}

/* ── Floating header on ilai.health (the practice header has no "Who it's for"), same treatment as get.ilai.health (Barry 2026-10-28) */
html body .hd:not(:has(.hd-who)){background:transparent!important;border-bottom:0!important;box-shadow:none!important;height:88px!important;padding-top:12px;pointer-events:none}
html body .hd:not(:has(.hd-who)) .hd-wrap{pointer-events:auto;height:68px;max-width:1240px;margin:0 auto;padding:0 10px 0 22px;border-radius:999px;
  background:rgba(250,248,241,.74);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
  border:1px solid rgba(23,60,49,.10);box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 12px 32px -22px rgba(23,60,49,.45);transition:box-shadow .3s,background .3s}
html body .hd:not(:has(.hd-who)).ip-scrolled .hd-wrap{background:rgba(250,248,241,.9);box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 40px -20px rgba(23,60,49,.5)}
html body .hd:not(:has(.hd-who)) .hd-brand{display:flex!important;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;height:100%;padding:0!important}
html body .hd:not(:has(.hd-who)) .hd-brand img{height:34px!important;width:auto!important;margin:0!important}
html body .hd:not(:has(.hd-who)) .hd-brand .hd-desc{position:static!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.1!important;white-space:nowrap}
html body .hd:not(:has(.hd-who)) .hd-nav{gap:4px!important}
html body .hd:not(:has(.hd-who)) .hd-nav>a:not(.hd-cta){height:40px;padding:0 14px!important;border-radius:999px;display:inline-flex;align-items:center;transition:background .18s}
html body .hd:not(:has(.hd-who)) .hd-nav>a:not(.hd-cta):hover,html body .hd:not(:has(.hd-who)) .hd-nav>a[aria-current]{background:rgba(23,60,49,.07)}
html body .hd:not(:has(.hd-who)) .hd-nav a::after{display:none!important}
html body .hd:not(:has(.hd-who)) a.hd-cta{height:44px;min-height:44px;border-radius:999px!important;padding:0 20px!important;margin-left:8px;box-shadow:0 8px 20px -12px rgba(23,60,49,.7)}
html body .hd:not(:has(.hd-who)) .hd-menu{border-radius:999px;background:#fff;border-color:rgba(23,60,49,.18)}
html body .hd:not(:has(.hd-who)) .hd-panel{pointer-events:auto;margin:8px 12px 0;border-radius:22px;border:1px solid rgba(23,60,49,.1);box-shadow:0 24px 48px -28px rgba(23,60,49,.5)}
@media(max-width:1199px){html body .hd:not(:has(.hd-who)){height:76px!important;padding-top:8px}
  html body .hd:not(:has(.hd-who)) .hd-wrap{height:60px;margin:0 12px;padding:0 8px 0 16px}
  html body .hd:not(:has(.hd-who)) a.hd-cta{height:40px;min-height:40px}}
@media(max-width:620px){html body .hd:not(:has(.hd-who)) .hd-brand .hd-desc{display:none!important}
  html body .hd:not(:has(.hd-who)) .hd-wrap{height:56px;margin:0 8px;padding:0 6px 0 14px}
  html body .hd:not(:has(.hd-who)) .hd-brand img{height:26px!important}}

/* 14. Site footer (2026-10-28, both sites; markup from site_footer.py): a brand cell + three columns of ~five links grouped by
       what a visitor came for. Privacy and terms only in the legal row (.sf-base). Desktop 4 across, tablet 2 across, phones stacked
       with 44 px rows. */
html body footer.sf .wrap.sf-grid{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));gap:36px 40px;align-items:start}
html body footer.sf .sf-grid .sf-brand{grid-column:auto;display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
html body footer.sf .sf-grid .sf-brand p{margin:14px 0 0;font-size:15px;line-height:1.5;max-width:30ch;color:var(--ip-muted)}
html body footer.sf .sf-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:22px}
html body footer.sf .sf-act a.ilai-btn{color:#fff;text-decoration:none}
html body footer.sf .sf-act a.ilai-btn:hover{text-decoration:none}
html body footer.sf .sf-act a.sf-quiet{font-size:15px;color:var(--ip-muted);text-decoration:underline;text-decoration-color:var(--ip-line);text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
html body footer.sf .sf-act a.sf-quiet:hover{color:var(--ip-ink);text-decoration-color:currentColor}
html body footer.sf .sf-grid .sf-col{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
html body footer.sf .sf-grid .sf-col b{display:block;margin:0 0 10px;font:600 13px/1.3 var(--font-sans,'DM Sans',sans-serif);letter-spacing:.02em;text-transform:none;color:var(--ip-ink)}
html body footer.sf .sf-grid .sf-col a{display:inline-block;padding:5px 0;font-size:15px;line-height:1.45;color:var(--ip-muted)}
html body footer.sf .sf-grid .sf-col a:hover{color:var(--ip-ink)}
html body footer.sf .sf-grid .sf-col a.sf-ext::after{content:"\2197";margin-left:5px;font-size:.85em;color:#85641C}
html body footer.sf .sf-grid .sf-col .sf-k{display:block;margin:14px 0 2px;font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:#85641C}
html body footer.sf .sf-grid .sf-col b+.sf-k{margin-top:0}
html body footer.sf .sf-base{margin-top:40px;font-size:13px}
@media(max-width:1100px){
  html body footer.sf .wrap.sf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 32px}}
@media(max-width:600px){
  html body footer.sf .wrap.sf-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  html body footer.sf .sf-grid .sf-col b{margin-bottom:2px}
  html body footer.sf .sf-grid .sf-col a{display:flex;align-items:center;min-height:44px;padding:0}
  html body footer.sf .sf-grid .sf-col .sf-k{margin-top:10px}
  html body footer.sf .sf-grid .sf-logo{display:inline-flex;align-items:center;min-height:44px}
  html body footer.sf .sf-base{flex-direction:column;gap:10px}
  html body footer.sf .sf-base a{display:inline-flex;align-items:center;min-height:44px}}
