/* Xavant website system — Warm Shell, Instrument Core (web) */
:root{--radius:8px;--radius-lg:16px;--shadow:0 18px 40px -28px rgba(0,0,0,.4);--shadow-deep:0 34px 70px -30px rgba(26,27,29,.45);
--sans:'Archivo',system-ui,sans-serif;--label:'Space Grotesk',sans-serif;--mono:'Space Mono',monospace;
/* V3 ground (2026-08-23, Roche's pick off the canvas): porcelain neutrals
   replace the warm sand ramp. Same relationships, yellow pulled out. */
--paper:#F7F7F5;--surface:#FBFBFA;--sand:#E4E4E1;--stage:linear-gradient(160deg,#F0F0ED,#E4E4E1);--band-alt:#F0F0EE;
--ink:#1A1B1D;--ink-2:#3A3D42;--ink-soft:#514F49;--ink-faint:#6A6760;
--line:rgba(26,27,29,.12);--line-soft:rgba(26,27,29,.07);
--accent:#41424A;--red:#970011;--red-bright:#C60E20;--red-text:#D31423;
--graphite:#15171A;--panel:#1C1F23;--steel:#C2C7CE;--steel-dim:#848A93;--cream-ink:#F4F1EA;--hair-dark:rgba(194,199,206,.14);
--btn-bg:#41424A;--btn-ink:#fff;--btn-bg-h:#26292E;
--header-bg:rgba(247,247,245,.86);--tag-bg:rgba(251,251,250,.9);
--footer-bg:#121417}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
/* text-size-adjust: without it, landscape iPhones inflate desktop-sized nav
   text until the links wrap to three lines (seen on-device 2026-07-22). */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased;line-height:1.5}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
img{display:block;max-width:100%}
.wrap{max-width:1280px;margin:0 auto;padding:0 48px}
.eyebrow,.k,.pk,.l,.badge,.foot h4,.foot h5,.chiplbl{font-family:var(--label);font-weight:600}
.eyebrow{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--red);display:inline-flex;align-items:center;gap:11px;white-space:nowrap}
.eyebrow::before{content:'';width:26px;height:1px;background:var(--red)}
/* .cta-band is graphite by definition, so it takes the dark-ground label
   treatment too: mono + steel type, red survives only as the rule mark.
   Red type at 11px on graphite fails contrast (design system §10). */
.on-dark .eyebrow,.cta-band .eyebrow,.eyebrow.mono{font-family:var(--mono);font-weight:500;color:var(--steel)}
.on-dark .eyebrow::before,.cta-band .eyebrow::before,.eyebrow.mono::before{background:var(--red-bright)}
.btn{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:600;padding:13px 22px;border-radius:var(--radius);transition:.2s;cursor:pointer;border:1px solid transparent;white-space:nowrap}
.btn-primary{background:var(--btn-bg);color:var(--btn-ink)}
.btn-primary:hover{background:var(--btn-bg-h);color:var(--btn-ink)}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-bright);color:#fff}
.btn-ghost{border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.on-dark .btn-ghost{border-color:var(--hair-dark);color:var(--cream-ink)}
.on-dark .btn-ghost:hover{border-color:var(--cream-ink);color:var(--cream-ink)}
.btn .arr{transition:transform .2s}
.btn:hover .arr{transform:translateX(3px)}
.logo{display:inline-flex;align-items:center;gap:12px}
.logo img{height:30px;width:auto}
html{scroll-padding-top:86px}
header.site{position:sticky;top:0;z-index:50;background:var(--header-bg);backdrop-filter:blur(14px);border-bottom:1px solid var(--line-soft)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.nav-links{display:flex;align-items:center;gap:34px}
.nav-links a{font-size:14px;font-weight:500;color:var(--ink-2)}
/* V3 (2026-08-23): the six-item menu (Purpose / NMT Monitoring / EMR
   Integration / For OEM Partners / Distributors / Support) wraps between the
   1000px drawer breakpoint and ~1180px at the default gap; tighten there.
   AFTER the base rule: same specificity, source order decides. */
@media (max-width:1180px){.nav-links{gap:19px}.nav-links a{font-size:13px}}
.nav-right{display:flex;align-items:center;gap:18px}
.signin{font-size:14px;font-weight:500;color:var(--ink-2)}
em.acc{font-style:normal;font-weight:300;color:var(--accent);letter-spacing:-.01em}
section.band{padding:104px 0}
.sec-head h2{font-size:44px;font-weight:800;letter-spacing:-.025em;line-height:1.08;margin-top:20px}
.sec-head p{font-size:17px;color:var(--ink-soft);line-height:1.6;margin-top:18px;max-width:52ch}
/* Instrument band (graphite) */
.on-dark{background:var(--graphite);color:var(--cream-ink)}
.on-dark .sec-head p{color:var(--steel)}
/* Accent words on dark grounds use --red-text, a small luminance nudge on
   red-bright that clears WCAG 3:1 on graphite AND panel. Marks, dots and
   fills stay --red-bright. .cta-band is graphite without .on-dark, so it is
   named here explicitly (same trap as the eyebrow rule above). */
.on-dark h1 em,.on-dark h2 em,.cta-band h1 em,.cta-band h2 em{font-style:normal;font-weight:300;color:var(--red-text)}
h1 em,h2 em{font-style:normal;font-weight:300;color:var(--red);letter-spacing:-.01em}
/* V3 (2026-08-23): the silver gradient-text numerals are retired (printed as
   a box, repeated critique flags). Solid cream; all uses sit on graphite. */
.metal{color:var(--cream-ink)}
.mlabel{font-family:var(--mono);font-weight:500;text-transform:uppercase;letter-spacing:.2em;font-size:11px;color:var(--steel-dim)}
.live{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:11px;letter-spacing:.18em;color:var(--steel-dim);text-transform:uppercase}
.live .dot{width:7px;height:7px;border-radius:50%;background:var(--red-bright);animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(198,14,32,.45)}70%{box-shadow:0 0 0 9px rgba(198,14,32,0)}100%{box-shadow:0 0 0 0 rgba(198,14,32,0)}}
/* CTA + footer */
.cta-band{background:var(--graphite);color:var(--cream-ink);text-align:center;padding:108px 0}
.cta-band h2{font-size:50px;font-weight:800;letter-spacing:-.025em;line-height:1.08;margin-top:22px}
.cta-band .eyebrow{justify-content:center}
.cta-band .cta-row{display:flex;gap:14px;justify-content:center;margin-top:34px}
.cta-band .btn-primary{background:var(--cream-ink);color:var(--graphite)}
.cta-band .btn-primary:hover{background:#fff;color:var(--graphite)}
.cta-band .btn-ghost{border-color:var(--hair-dark);color:var(--cream-ink)}
.cta-band .btn-ghost:hover{border-color:var(--cream-ink);color:var(--cream-ink)}
footer.foot{background:var(--footer-bg);color:var(--steel);padding:64px 0 40px}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;gap:36px}
.foot p{font-size:13px;line-height:1.6;margin-top:16px;max-width:34ch;color:var(--steel)}
.foot h4,.foot h5{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--steel-dim);margin-bottom:14px}
.foot ul{list-style:none}
.foot li{margin-bottom:10px}
.foot a{font-size:14px;color:var(--steel)}
.foot a:hover{color:var(--cream-ink)}
.foot-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--hair-dark);margin-top:48px;padding-top:24px;font-size:12px;color:var(--steel-dim)}
/* A11y chrome: skip link (hidden until focused), designed focus ring on every
   interactive element (page-specific rules above stay), nav current state. */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);color:var(--cream-ink);padding:10px 18px;font-size:14px;font-weight:600}
.skip:focus{left:0}
a:focus-visible,button:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.on-dark a:focus-visible,.on-dark button:focus-visible,.cta-band a:focus-visible,footer.foot a:focus-visible{outline-color:var(--red-text)}
.nav-links a[aria-current]{color:var(--ink);font-weight:600}
/* Mobile chrome (shared): the prototypes are desktop-first, but the header,
   footer and CTA rows must not force horizontal scroll on a phone. Additive
   only — nothing changes at desktop widths. */
.menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:8px;width:44px;height:44px;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;flex:none;padding:0}
.menu-btn i{width:18px;height:2px;background:var(--ink);border-radius:1px;display:block;transition:transform .25s,opacity .2s}
/* Sign in + the header CTA live INSIDE the drawer on small screens; these
   anchors sit at the end of .nav-links and only render when the drawer is open. */
.nav-links .drawer-only{display:none}
/* Mobile nav drawer (2026-07-21; breakpoint 640→1000 on 2026-07-22 after
   on-device testing — landscape phones sit at 740-932px and were getting the
   desktop nav, wrapped to bits). 1000px matches the content-grid collapse.
   All four pages carry the .menu-btn markup + drawer JS. */
@media (max-width:1000px){
  .nav-links,.signin{display:none}
  .menu-btn{display:flex}
  html.nav-open .menu-btn i:nth-child(1){transform:translateY(7px) rotate(45deg)}
  html.nav-open .menu-btn i:nth-child(2){opacity:0}
  html.nav-open .menu-btn i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  html.nav-open .nav-links{display:flex;position:fixed;top:74px;left:0;right:0;z-index:49;
    flex-direction:column;align-items:stretch;gap:0;background:var(--surface);
    border-bottom:1px solid var(--line);box-shadow:0 30px 60px -30px rgba(26,27,29,.35);
    max-height:calc(100vh - 74px);max-height:calc(100dvh - 74px);overflow:auto}
  html.nav-open .nav-links a{padding:15px 24px;font-size:16px;border-top:1px solid var(--line)}
  html.nav-open .nav-links .drawer-only{display:block}
  html.nav-open .nav-links a.drawer-cta{font-weight:600;color:var(--ink)}
  html.nav-open{overflow:hidden}
}
@media (max-width:640px){
  /* Portrait-phone header = logo + hamburger only; the CTA is in the drawer.
     Between 641-1000px there's room, so the header CTA stays. */
  .nav-right .btn{display:none}
  .btn{white-space:normal;text-align:center}
  .cta-band .cta-row{flex-wrap:wrap}
}
@media (max-width:760px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:32px}
  .foot-bottom{flex-direction:column;gap:8px}
}

/* =====================================================================
   V4 SHARED LAYER (2026-09-27). The de-templating rules every page follows:
   1. No eyebrows, no numbered kickers, no pill chips. A section opens on
      its headline (h2.h). .eyebrow stays defined only so un-migrated markup
      does not break; V4 pages must not use it.
   2. Mono means measured: .m on data figures with a checkable basis and
      .cite on citations. Sentence case, zero tracking, never on labels.
   3. Red accent WORDS carry the purpose only (democratize / never /
      democratized). Red marks = Stimpod data and the 80%.
   4. One filled button per section; everything else is a .tlink.
   5. "Stimpod™" in all visible copy (trademark, 2026-09-27).
   ===================================================================== */
.m{font-family:var(--mono);font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
.cite{display:inline-block;font-family:var(--mono);font-size:12px;letter-spacing:0;color:var(--ink-faint);line-height:1.6;text-decoration:none;border-bottom:1px solid var(--line)}
a.cite:hover{color:var(--ink);border-bottom-color:var(--ink)}
.on-dark .cite{color:var(--steel-dim);border-bottom-color:var(--hair-dark)}
.tlink{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--ink);border-bottom:1px solid var(--ink);padding-bottom:3px}
.tlink:hover{color:var(--red);border-bottom-color:var(--red)}
.tlink .arr{transition:transform .2s}
.tlink:hover .arr{transform:translateX(3px)}
.on-dark .tlink{color:var(--cream-ink);border-bottom-color:var(--cream-ink)}
.on-dark .tlink:hover{color:#fff;border-bottom-color:var(--red-bright)}
h2.h{font-size:clamp(34px,3.9vw,54px);font-weight:700;letter-spacing:-.032em;line-height:1.04;text-wrap:balance;max-width:20ch}
.lede{font-size:clamp(17px,1.35vw,19px);line-height:1.6;color:var(--ink-soft);margin-top:22px;max-width:60ch}
.on-dark .lede{color:var(--steel)}
.foot h3,.foot h4,.foot h5{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:0;text-transform:none;color:var(--steel-dim);margin-bottom:12px}
header.site{background:rgba(247,247,245,.94)}
@media (max-width:640px){.wrap{padding-left:20px;padding-right:20px}}
/* Language switcher (2026-10-22). Markup generated by i18n/i18n.py into
   [data-i18n] blocks: header menu (desktop), drawer row (<=1000px), footer row. */
details.lang{position:relative}
details.lang summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;height:36px;padding:0 11px;
  border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:600;letter-spacing:.03em;color:var(--ink-2)}
details.lang summary::-webkit-details-marker{display:none}
details.lang summary::after{content:'';width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
details.lang[open] summary::after{transform:translateY(1px) rotate(-135deg)}
details.lang summary:hover,details.lang[open] summary{color:var(--ink);border-color:var(--ink-faint)}
details.lang ul{list-style:none;margin:0;padding:6px;position:absolute;right:0;top:calc(100% + 8px);min-width:172px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:60}
details.lang a{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;border-radius:8px;font-size:14px;color:var(--ink-2)}
details.lang a:hover{background:var(--line-soft);color:var(--ink)}
details.lang a[aria-current]{color:var(--ink);font-weight:600}
details.lang a[aria-current]::after{content:'';width:9px;height:5px;border-left:1.5px solid var(--red);border-bottom:1.5px solid var(--red);transform:translateY(-2px) rotate(-45deg)}
.lang-foot a[aria-current]{color:var(--cream-ink)}
@media (max-width:1000px){
  details.lang{display:none}
  html.nav-open .nav-links .lang-list{display:grid;grid-auto-flow:column;justify-content:start;align-items:center;padding:6px 14px;margin:0;border-top:1px solid var(--line);font-size:0;color:var(--ink-faint)}
  html.nav-open .nav-links .lang-list a{border-top:0;padding:12px 10px;font-size:16px}
  html.nav-open .nav-links .lang-list a[aria-current]{color:var(--ink);font-weight:600}
}
/* Translated pages on phones: long compounds (German, French) hyphenate instead of
   pushing the page sideways; the cost tool's savings label may wrap. English untouched. */
@media (max-width:640px){
  html:not([lang=en]) body{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;overflow-wrap:break-word}
  /* never hyphenate an address someone may copy, or a heading or button */
  html:not([lang=en]) a[href^="mailto:"]{-webkit-hyphens:manual;hyphens:manual}
  html:not([lang=en]) a[href^="tel:"]{-webkit-hyphens:manual;hyphens:manual;white-space:nowrap}
  html:not([lang=en]) :is(h1,h2,h3,.btn,.tlink){-webkit-hyphens:manual;hyphens:manual}
  html:not([lang=en]) .scope .tx{white-space:normal}
}
/* Phones (mobile review 2026-10-23). Footer links get 44px tap rows; the open
   drawer dims the page behind it (js/lang.js closes it on a tap there). */
@media (max-width:760px){
  .foot li{margin-bottom:0}
  .foot a{display:inline-block;padding:12px 0}
}
@media (max-width:1000px){
  html.nav-open body::after{content:'';position:fixed;inset:74px 0 0;background:rgba(21,23,26,.4);z-index:48}
}
/* Landscape phones: a shorter header leaves room to read. */
@media (orientation:landscape) and (max-height:500px){
  .nav{height:56px}
  html{scroll-padding-top:66px}
  html.nav-open .nav-links{top:56px;max-height:calc(100dvh - 56px)}
  html.nav-open body::after{inset:56px 0 0}
}
