/* MedPull — site styles
   White, frosted, and calm: light geometric type, grainy earthy gradients with
   thin white line art, lime accent dots, and liquid-glass surfaces on top. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* ink */
  --ink: #141414;
  --ink-2: #585b58;
  --ink-3: #6b6e6b;
  --line: rgba(20, 20, 20, .08);
  --line-strong: rgba(20, 20, 20, .14);

  /* surfaces */
  --bg: #ffffff;
  --paper: #f7f7f5;
  --fill: rgba(120, 120, 110, .1);
  --fill-strong: rgba(120, 120, 110, .18);
  --inset: rgba(120, 120, 110, .07);

  /* accent */
  --lime: #d4f14a;
  --lime-halo: rgba(212, 241, 74, .38);
  --sage: #5f7f4f;
  --sage-deep: #4a663e;
  --accent: #3f5f33;

  /* grainy gradients */
  --g-sage: radial-gradient(90% 55% at 50% 108%, #e6db7c 0%, transparent 62%), linear-gradient(175deg, #405a36 0%, #5f7d4c 52%, #aebf87 100%);
  --g-meadow: linear-gradient(110deg, #3f5735 0%, #587548 38%, #8aa56a 72%, #c3bd72 100%);
  --g-meadow-v: radial-gradient(80% 60% at 70% 110%, #d9cf7e 0%, transparent 60%), linear-gradient(180deg, #3f5735 0%, #587548 42%, #8aa56a 78%, #b8b977 100%);
  --g-amber: radial-gradient(80% 55% at 25% 100%, #eec27a 0%, transparent 60%), linear-gradient(180deg, #7d6420 0%, #a88c35 42%, #cdb46a 100%);
  --g-clay: radial-gradient(70% 55% at 30% 100%, #e3aa66 0%, transparent 60%), linear-gradient(180deg, #7a5946 0%, #a27a64 48%, #c9a893 100%);
  --g-dusk: linear-gradient(185deg, #a8633f 0%, #a8807a 42%, #6b7fa0 100%);
  --g-lilac: linear-gradient(175deg, #40457f 0%, #544e8e 62%, #806b8c 100%);
  --g-mint: linear-gradient(165deg, #3f8f82 0%, #78bba8 50%, #d4e0a6 100%);

  /* fog (soft color fields behind glass) */
  --fog-1: rgba(143, 174, 116, .42);
  --fog-2: rgba(236, 199, 110, .40);
  --fog-3: rgba(233, 160, 125, .34);
  --fog-4: rgba(154, 163, 220, .36);
  --fog-5: rgba(120, 190, 175, .32);

  /* status */
  --alert: #b8502c;
  --alert-bg: rgba(226, 118, 78, .14);
  --watch: #8c6a10;
  --watch-bg: rgba(222, 178, 60, .2);
  --ok: #43712f;
  --ok-bg: rgba(120, 168, 88, .18);
  --info: #3a3c38;
  --info-bg: rgba(20, 20, 20, .06);

  /* glass */
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .26));
  --glass-strong: linear-gradient(160deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .58));
  --glass-solid: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .82));
  --glass-blur: blur(22px) saturate(1.8);
  --glass-rim: linear-gradient(145deg, #fff 0%, rgba(255, 255, 255, .5) 26%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .8) 100%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    0 0 0 .5px rgba(20, 20, 20, .12),
    0 1px 2px rgba(20, 20, 20, .08),
    0 6px 14px -6px rgba(20, 20, 20, .14),
    0 24px 48px -18px rgba(20, 20, 20, .24);
  --glass-shadow-lg:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    0 0 0 .5px rgba(20, 20, 20, .12),
    0 2px 4px rgba(20, 20, 20, .08),
    0 14px 28px -10px rgba(20, 20, 20, .2),
    0 48px 96px -30px rgba(20, 20, 20, .34);

  /* texture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32' numOctaves='3' stitchTiles='stitch'/%3E%3CfeGaussianBlur stdDeviation='1.1'/%3E%3CfeColorMatrix values='0.34 0.34 0.34 0 0 0.34 0.34 0.34 0 0 0.34 0.34 0.34 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23n)'/%3E%3C/svg%3E");
  /* faint specks for white surfaces (no blending needed) */
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.32' numOctaves='3' stitchTiles='stitch'/%3E%3CfeGaussianBlur stdDeviation='1.1'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .08 0 0 0 0 .07 .11 0 0 0 -.03'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(20, 20, 20, .075) 1px, transparent 1.4px);

  /* shape + motion */
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);

  --frame: 1200px;
  --content: 1240px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
::selection { background: var(--lime-halo); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.skip-link:focus { top: 14px; }

/* ---------------------------------------------------------------------------
   Type
   --------------------------------------------------------------------------- */
.display {
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.title { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 14px; }
.muted, .text-muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.big-num { font-weight: 300; letter-spacing: -0.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------------------
   Surfaces: glass, grain, fog
   --------------------------------------------------------------------------- */
.glass,
.nav-inner, .badge, .btn-secondary, .tabs, .dash-search, .dash-btn, .dash-row, .dash-live, .mt-ai, .dash-toast, .card, .tile,
.gtile-cap, .tl-item, .fact, .checklist li, .form-card,
.scenario-card, .faq-item, .person, .procedure-list li, .cta-panel {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.glass::after,
.nav-inner::after, .badge::after, .btn-secondary::after, .tabs::after, .dash-search::after, .dash-btn::after, .dash-row::after, .dash-live::after, .mt-ai::after, .dash-toast::after, .card::after, .tile::after,
.gtile-cap::after, .tl-item::after, .fact::after, .checklist li::after, .form-card::after,
.scenario-card::after, .faq-item::after, .person::after, .cta-panel::after {
  /* the bright rim that catches light on liquid glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card, .form-card, .cta-panel, .dash-toast { background: var(--glass-strong); }
.gtile-cap, .person, .tl-item, .fact, .mt-ai, .dash-row { background: var(--glass-solid); }

/* pointer spotlight on glass (set by site.js) */
@media (hover: hover) and (pointer: fine) {
  .tile, .card, .scenario-card, .gtile {
    isolation: isolate;
  }
  .tile::before, .card::before, .scenario-card::before, .gtile::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 65%);
    opacity: 0; transition: opacity .35s ease;
  }
  .gtile::before { z-index: 1; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 65%); }
  .tile:hover::before, .card:hover::before, .scenario-card:hover::before, .gtile:hover::before { opacity: 1; }
}

/* fog sections: white with soft, grainy colour fields for the glass to catch */
.band { position: relative; isolation: isolate; padding-block: clamp(84px, 11vw, 140px); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--grain-soft) 0 0 / 300px,
    radial-gradient(34% 40% at var(--f1x, 8%) var(--f1y, 18%), var(--f1, transparent), transparent 72%),
    radial-gradient(30% 38% at var(--f2x, 94%) var(--f2y, 72%), var(--f2, transparent), transparent 72%),
    radial-gradient(26% 32% at var(--f3x, 50%) var(--f3y, 104%), var(--f3, transparent), transparent 72%),
    #fff;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.fog-a { --f1: var(--fog-1); --f2: var(--fog-4); --f3: var(--fog-2); }
.fog-b { --f1: var(--fog-3); --f1x: 92%; --f1y: 14%; --f2: var(--fog-5); --f2x: 6%; --f2y: 78%; --f3: var(--fog-4); }
.fog-c { --f1: var(--fog-2); --f1x: 4%; --f1y: 60%; --f2: var(--fog-1); --f2x: 96%; --f2y: 24%; }
.dotted::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--dots) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section-head { max-width: 800px; margin-inline: auto; text-align: center; }
.section-head .lede { margin: 20px auto 0; max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-halo); flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary {
  color: #fff;
  background: radial-gradient(120% 140% at 30% 0%, #3a3a3a 0%, #121212 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -2px 6px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .5), 0 2px 4px rgba(20, 20, 20, .2), 0 10px 20px -8px rgba(20, 20, 20, .45), 0 24px 44px -16px rgba(20, 20, 20, .4);
}
.btn-primary .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(212, 241, 74, .25); }
.btn-primary::before {
  /* moving sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 6px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .5), 0 4px 8px rgba(20, 20, 20, .22), 0 16px 30px -10px rgba(20, 20, 20, .5), 0 32px 56px -18px rgba(20, 20, 20, .42); }
.btn-secondary { color: var(--ink); }
.btn-secondary:hover { box-shadow: var(--glass-shadow-lg); }
.btn-tinted { color: var(--ink); background: rgba(120, 120, 110, .12); box-shadow: inset 0 0 0 .5px rgba(20, 20, 20, .08); }
.btn-tinted:hover { background: var(--fill-strong); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }
.btn-quiet { margin-left: auto; min-height: 40px; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--fill); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background-color .2s ease; }
.btn-quiet:hover { background: var(--fill-strong); }
@media (max-width: 480px) {
  /* two centred pills of different widths look ragged; stack them at one width */
  .hero .btn-row, .cta .btn-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------------
   Icons, avatars
   --------------------------------------------------------------------------- */
.app-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(20,20,20,.1), 0 1px 2px rgba(20,20,20,.08); }
.app-icon img { width: 70%; height: 70%; object-fit: contain; }
.app-icon-lg { width: 64px; height: 64px; border-radius: 18px; box-shadow: inset 0 0 0 .5px rgba(20,20,20,.08), 0 10px 26px -8px rgba(20,20,20,.25); }
.app-icon-xl { width: 88px; height: 88px; border-radius: 24px; box-shadow: inset 0 0 0 .5px rgba(20,20,20,.08), 0 18px 40px -12px rgba(20,20,20,.3); }

.glyph { display: inline-grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -6px 12px -6px rgba(0,0,0,.2), 0 8px 18px -8px rgba(20,20,20,.35); }
.glyph svg { width: 22px; height: 22px; }
.glyph.g-sage, .glyph.g-meadow, .glyph.g-amber, .glyph.g-clay, .glyph.g-dusk, .glyph.g-lilac, .glyph.g-mint { background-size: 90px, 260% 260%, 260% 260%; background-position: 0 0, 0 0, 0 0; background-blend-mode: soft-light, normal, normal; }
.g-sage, .g-meadow, .g-amber, .g-clay, .g-dusk, .g-lilac, .g-mint { background-size: 300px, auto, auto; background-blend-mode: soft-light, normal, normal; }
.g-sage { background-image: var(--grain), var(--g-sage); }
.g-meadow { background-image: var(--grain), var(--g-meadow); }
.g-amber { background-image: var(--grain), var(--g-amber); }
.g-clay { background-image: var(--grain), var(--g-clay); }
.g-dusk { background-image: var(--grain), var(--g-dusk); }
.g-lilac { background-image: var(--grain), var(--g-lilac); }
.g-mint { background-image: var(--grain), var(--g-mint); }
.bento .g-meadow { background-image: var(--grain), var(--g-meadow-v); }

.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; font-size: 13px; font-weight: 500; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 6px rgba(0,0,0,.12), 0 2px 6px -2px rgba(20,20,20,.3); background-size: 150px, auto; background-blend-mode: soft-light, normal; }
.av-1 { background-image: var(--grain), linear-gradient(150deg, #c98a64, #8f5d45); }
.av-2 { background-image: var(--grain), linear-gradient(150deg, #8fa0c2, #56688f); }
.av-3 { background-image: var(--grain), linear-gradient(150deg, #d7b152, #9b7a22); }
.av-4 { background-image: var(--grain), linear-gradient(150deg, #8fae74, #4f6d42); }
.av-5 { background-image: var(--grain), linear-gradient(150deg, #a59bd0, #6a6fae); }

/* line art */
.art { stroke: rgba(255, 255, 255, .78); stroke-width: 1; overflow: visible; }
.art-dot { fill: var(--lime); stroke: none; filter: drop-shadow(0 0 6px rgba(212, 241, 74, .9)); }
.art-node { fill: #fff; stroke: none; }

/* ---------------------------------------------------------------------------
   Nav — a floating glass capsule
   --------------------------------------------------------------------------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 50; padding-inline: 16px; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  max-width: calc(var(--content) + 28px); height: 60px; margin-inline: auto;
  padding: 0 8px 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.is-solid .nav-inner { background: var(--glass-strong); box-shadow: var(--glass-shadow-lg); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 19px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 15px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s ease, background-color .2s ease; }
.nav-links a:hover { color: var(--ink); background: var(--fill); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.nav-cta { display: flex; gap: 6px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--spring), background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav { inset: 10px 0 auto 0; padding-inline: 10px; }
  .nav-inner { padding: 0 8px 0 12px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-inner { flex-wrap: wrap; height: auto; border-radius: 30px; padding-bottom: 14px; background: var(--glass-strong); box-shadow: var(--glass-shadow-lg); }
  .nav.is-open .brand { height: 60px; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 0; }
  .nav.is-open .nav-links a { padding: 13px 14px; border-radius: 16px; font-size: 18px; color: var(--ink); }
  .nav.is-open .nav-cta { display: flex; width: 100%; order: 4; margin-top: 10px; }
  .nav.is-open .nav-cta .btn { flex: 1; height: 48px; font-size: 16px; }
}

/* ---------------------------------------------------------------------------
   Canvas (hero, page tops, closing CTA) — white with drifting colour fog
   --------------------------------------------------------------------------- */
.canvas {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 10px; border-radius: var(--r-xl);
  background:
    radial-gradient(34% 44% at 70% 30%, var(--fog-1), transparent 70%),
    radial-gradient(30% 40% at 88% 70%, var(--fog-2), transparent 70%),
    radial-gradient(30% 40% at 55% 88%, var(--fog-3), transparent 70%),
    radial-gradient(28% 36% at 12% 20%, var(--fog-4), transparent 70%),
    #fbfbf9;
}
.canvas.has-aurora { background: #fbfbf9; }
.canvas::before {
  /* grain over the fog */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain-soft) 0 0 / 300px;
}
.canvas::after {
  /* faint dot grid, like graph paper */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--dots) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; display: block; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); will-change: transform; animation: drift var(--t, 24s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.aurora i:nth-child(1) { --c: var(--fog-1); width: 58%; left: 42%; top: -8%; --t: 26s; }
.aurora i:nth-child(2) { --c: var(--fog-2); width: 44%; left: 62%; top: 40%; --t: 30s; --dl: -8s; }
.aurora i:nth-child(3) { --c: var(--fog-3); width: 46%; left: 30%; top: 55%; --t: 22s; --dl: -4s; }
.aurora i:nth-child(4) { --c: var(--fog-4); width: 40%; left: -10%; top: -12%; --t: 28s; --dl: -14s; }
.aurora i:nth-child(5) { --c: var(--fog-5); width: 36%; left: -6%; top: 62%; --t: 34s; --dl: -20s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(7%, -6%, 0) scale(1.12); }
  100% { transform: translate3d(-6%, 5%, 0) scale(.94); }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero { padding: clamp(116px, 11vw, 150px) var(--gutter) clamp(48px, 6vw, 88px); text-align: center; }
.hero-copy { max-width: 900px; margin-inline: auto; }
.hero .display { margin-top: 24px; font-size: clamp(44px, 6.2vw, 86px); }
.hero .lede { margin: 22px auto 0; max-width: 600px; }
.hero .btn-row { margin-top: 32px; justify-content: center; }

.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink); transition: box-shadow .25s ease, transform .25s var(--spring); }
.badge:hover { box-shadow: var(--glass-shadow-lg); transform: translateY(-1px); }
.badge-chev { color: var(--ink-3); }

/* Pro Display showcase */
.showcase { position: relative; max-width: 1120px; margin: clamp(52px, 7vw, 84px) auto 0; perspective: 2400px; }
.showcase::before {
  /* colour pooled behind the display */
  content: ""; position: absolute; inset: 6% 4% 18%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 60% at 30% 50%, var(--fog-1), transparent 70%), radial-gradient(50% 60% at 72% 50%, var(--fog-2), transparent 70%);
  filter: blur(40px);
}
.xdr {
  position: relative; z-index: 2;
  padding: clamp(5px, .95vw, 11px);
  border-radius: clamp(10px, 1.7vw, 20px);
  background: linear-gradient(180deg, #19191b, #0b0b0c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 0 0 1.5px #a9aaad,
    0 0 0 3px #e4e5e7,
    0 1px 0 3px #bfc0c3,
    0 3px 6px rgba(20, 20, 20, .16),
    0 30px 60px -20px rgba(20, 20, 20, .38),
    0 80px 120px -40px rgba(20, 20, 20, .36);
  transform-origin: 50% 100%;
  transform: rotateX(var(--tilt, 0deg));
  will-change: transform;
}
.xdr-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(4px, .75vw, 9px); background: #fbfbf9; container-type: inline-size; }
.xdr-screen::after {
  /* a faint reflection across the glass */
  content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .06) 100%);
}
.xdr-stand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.xdr-neck {
  width: 17%; height: clamp(34px, 6.4vw, 86px);
  background: linear-gradient(90deg, #121213 0%, #2f2f32 22%, #3b3b3f 50%, #2f2f32 78%, #121213 100%);
  box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, .7);
}
.xdr-foot {
  width: 40%; height: clamp(7px, 1.2vw, 15px); border-radius: 3px 3px 12px 12px;
  background: linear-gradient(180deg, #4a4a4e 0%, #232325 40%, #141415 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 26px -8px rgba(20, 20, 20, .5);
}
.xdr-floor { width: 62%; height: 26px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 20, 20, .22), transparent); filter: blur(3px); }

/* The dashboard is laid out at 1280 × 720 and scaled to fit the screen. */
.dash {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  transform-origin: 0 0;
  transform: scale(var(--s, tan(atan2(100cqw, 1280px))));
  display: grid; grid-template-columns: 76px minmax(0, 1fr);
  text-align: left; font-size: 14px; color: var(--ink);
  background:
    var(--grain-soft) 0 0 / 300px,
    radial-gradient(40% 50% at 18% 12%, var(--fog-4), transparent 70%),
    radial-gradient(30% 40% at 40% 100%, var(--fog-1), transparent 70%),
    #fbfbf9;
}
.dash-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0; background: rgba(255, 255, 255, .45); box-shadow: 1px 0 0 var(--line); }
.dash-rail .app-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; }
.rail-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-3); }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.is-on { color: var(--ink); background: #fff; box-shadow: 0 0 0 .5px rgba(20,20,20,.1), 0 2px 4px rgba(20,20,20,.08), 0 8px 16px -8px rgba(20,20,20,.25); }
.rail-me { margin-top: auto; }
.rail-me .avatar { width: 38px; height: 38px; }

.dash-main { min-width: 0; min-height: 0; padding: 22px 26px 24px 30px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 18px; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.dash-org { font-size: 13px; color: var(--ink-2); }
.dash-title { margin-top: 2px; font-size: 38px; font-weight: 300; line-height: 1.05; letter-spacing: -0.04em; }
.dash-tools { display: flex; align-items: center; gap: 8px; }
.dash-search { display: flex; align-items: center; gap: 8px; width: 310px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: var(--ink-3); }
.dash-search svg { width: 16px; height: 16px; }
.dash-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.dash-btn svg { width: 18px; height: 18px; }
.dash-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--ink); background: var(--lime); box-shadow: 0 0 0 2px #fff; }

.dash-grid { min-height: 0; display: grid; grid-template-columns: 450px minmax(0, 1fr); gap: 20px; }
.dash-left { min-height: 0; display: grid; grid-template-rows: auto 248px minmax(0, 1fr); gap: 14px; }
.dash-kpi { display: flex; align-items: center; gap: 16px; }
.dash-kpi .big-num { font-size: 72px; line-height: .9; }
.dash-kpi-text { font-size: 18px; line-height: 1.25; }
.dash-kpi-text small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; border-radius: 16px; }
.dash-row .avatar { width: 36px; height: 36px; font-size: 12px; }
.dash-row b { display: block; font-size: 15px; font-weight: 500; }
.dash-row .sub { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row.is-quiet { background: transparent; box-shadow: none; color: var(--ink-2); font-size: 13px; min-height: 44px; padding-block: 4px; }
.dash-row.is-quiet::after { display: none; }
.stack { display: flex; }
.stack .avatar { width: 26px; height: 26px; font-size: 0; margin-left: -8px; box-shadow: 0 0 0 2px #fbfbf9; }
.stack .avatar:first-child { margin-left: 0; }
.dash-row.is-new { animation: rowIn .7s var(--spring) both; }
.dash-row.is-new::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--lime), 0 0 24px 2px var(--lime-halo); animation: ringFade 2.6s ease .5s both; pointer-events: none; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ringFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

.dash-live { min-height: 0; display: flex; flex-direction: column; padding: 12px 14px 10px; border-radius: 20px; }
.dash-live-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.dash-live-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.dash-live .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--lime-halo); }
.dash-live .sms { padding: 6px 0 0; }

.dash-right { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash .gtile { border-radius: 20px; }
.dash .gtile-top { padding: 15px 18px 0; }
.dash .gtile-kicker { font-size: 13px; }
.dash .gtile-num { margin-top: 4px; font-size: 48px; }
.dash .gtile-num small { font-size: 15px; }
.dash .gtile-side { font-size: 12.5px; }
.dash .gtile-side b { font-size: 20px; }
.mt-curve { grid-row: span 2; }
.mt-curve .curve-art { padding: 0 18px 38px; }
.mt-curve .curve-legend { left: 18px; right: 18px; bottom: 12px; font-size: 12px; }
.mt-art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 18px 12px; }
.mt-art svg { max-height: 100%; }
.mt-art .art-arcs { width: 200px; }
.mt-bar { position: relative; margin: auto 18px 16px; }
.mt-bar .timeline-ticks { color: rgba(255, 255, 255, .9); }
.mt-quiet .silence-art { width: 100%; padding: 0 18px 16px; gap: 9px; margin-top: auto; }
.mt-quiet .silence-row { grid-template-columns: 64px repeat(7, 1fr); font-size: 12.5px; }
.mt-quiet .silence-row i { width: 12px; height: 12px; }
.mt-ai { display: flex; flex-direction: column; padding: 15px 18px 16px; border-radius: 20px; }
.mt-ai .gtile-kicker { color: var(--ink-2); }
.mt-ai p { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.mt-ai p b { color: var(--ink); font-weight: 500; }
.mt-ai .spark { margin-top: auto; height: 34px; }

/* macOS-style notification */
.dash-toast {
  position: absolute; top: 16px; right: 16px; z-index: 10; width: 350px;
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 20px;
  opacity: 0; transform: translateX(30px) scale(.96);
  transition: opacity .3s ease, transform .5s var(--spring);
}
.dash-toast.is-on { opacity: 1; transform: none; }
.dash-toast .app-icon { width: 38px; height: 38px; border-radius: 10px; }
.dash-toast-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.dash-toast b { display: block; margin-top: 1px; font-size: 14.5px; font-weight: 500; }
.dash-toast p { margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }

.timeline-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }

/* Messages (used in the dashboard and the features grid) */
.sms { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, var(--font); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px); mask-image: linear-gradient(180deg, transparent 0, #000 40px); }
.sms-msg { max-width: 80%; padding: 8px 13px; border-radius: 19px; font-size: 14px; line-height: 1.32; letter-spacing: -0.01em; animation: bubbleIn .4s var(--spring) both; }
.sms-in { align-self: flex-start; background: rgba(120, 120, 110, .14); color: var(--ink); border-bottom-left-radius: 6px; transform-origin: bottom left; }
.sms-out { align-self: flex-end; color: #fff; border-bottom-right-radius: 6px; transform-origin: bottom right; background-image: var(--grain), linear-gradient(180deg, #5e7d4e, #445f39); background-size: 300px, auto; background-blend-mode: soft-light, normal; }
.sms-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.sms-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: block; animation: typingBounce 1.2s infinite ease-in-out; }
.sms-typing i:nth-child(2) { animation-delay: .15s; }
.sms-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .showcase { margin-inline: -6px; }
  .xdr-floor { height: 16px; }
}
@media (max-width: 560px) {
  .showcase { max-width: 380px; margin-inline: auto; }
  .xdr-screen { aspect-ratio: 500 / 700; }
  .xdr-neck { width: 28%; }
  .xdr-foot { width: 62%; }
  .dash.is-crop { transform: scale(var(--s)) translateX(-81px); }
  .dash.is-crop .dash-right, .dash.is-crop .dash-tools { visibility: hidden; }
  .dash.is-crop .dash-toast { right: auto; left: 96px; width: 470px; top: 14px; }
  .dash.is-crop .dash-title { font-size: 32px; }
}

/* ---------------------------------------------------------------------------
   Status chips, sparklines
   --------------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.pill-attention { color: var(--alert); background: var(--alert-bg); }
.pill-watch { color: var(--watch); background: var(--watch-bg); }
.pill-ontrack { color: var(--ok); background: var(--ok-bg); }
.pill-neutral { color: var(--info); background: var(--info-bg); }
.pill-neutral::before { background: var(--lime); box-shadow: 0 0 0 2px rgba(20,20,20,.08); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.spark i { flex: 1; display: block; border-radius: 4px; background: var(--fill-strong); transform-origin: bottom; }
.spark i:last-child { background-image: var(--grain), var(--g-sage); background-size: 300px, auto; background-blend-mode: soft-light, normal; }
.spark.is-alert i:last-child { background-image: var(--grain), var(--g-clay); }

/* ---------------------------------------------------------------------------
   Procedures
   --------------------------------------------------------------------------- */
.procedures { padding: 52px var(--gutter) 8px; text-align: center; }
.procedures p { color: var(--ink-2); font-size: 15px; text-wrap: balance; }
.procedure-list { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.procedure-list li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border-radius: 999px; font-size: 15.5px; }
.procedure-list li .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--lime-halo); }
@media (max-width: 560px) {
  /* a centred pill cloud wraps raggedly on phones; use an even two-column grid */
  .procedures { padding-top: 44px; }
  .procedure-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .procedure-list li { padding: 11px 12px; border-radius: 16px; font-size: 15px; line-height: 1.3; text-align: left; }
  .procedure-list li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
}

/* ---------------------------------------------------------------------------
   Tiles
   --------------------------------------------------------------------------- */
.tile { border-radius: var(--r-lg); }

/* gradient tiles (grainy, with white line art and a glass caption) */
.gtile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  display: flex; flex-direction: column; color: #fff;
  background-size: 300px, auto, auto; background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 .5px rgba(255,255,255,.12), 0 0 0 .5px rgba(20,20,20,.14), 0 2px 4px rgba(20,20,20,.08), 0 14px 28px -12px rgba(20,20,20,.28), 0 40px 80px -30px rgba(20,20,20,.34);
}
.gtile::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(24,22,14,.3) 0%, rgba(24,22,14,.1) 34%, transparent 55%); }
.gtile-top, .gtile-art { text-shadow: 0 1px 14px rgba(0,0,0,.14); }
.gtile-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.gtile-kicker { font-size: 14px; }
.gtile-num { display: block; margin-top: 8px; font-size: clamp(48px, 5vw, 64px); }
.gtile-num small { font-size: 16px; opacity: .8; margin-left: 4px; letter-spacing: 0; }
.gtile-side { text-align: right; font-size: 13.5px; opacity: .9; }
.gtile-side b { display: block; font-size: 22px; font-weight: 300; letter-spacing: -0.02em; }
.gtile-art { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 8px 24px 16px; min-height: 180px; }
.gtile-cap { position: relative; z-index: 2; margin: 0 10px 10px; padding: 16px 18px; border-radius: 18px; color: var(--ink); }
.gtile-cap .body { margin-top: 4px; font-size: 15px; line-height: 1.45; }

/* Signal vs noise */
.compare { margin-top: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > * { min-height: 560px; }
.compare .tile { padding: 26px 28px; display: flex; flex-direction: column; }
.compare-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.compare-kicker { font-size: 14px; color: var(--ink-2); }
.compare-num { display: block; margin-top: 8px; font-size: clamp(56px, 6vw, 80px); }
.compare-note { text-align: right; font-size: 14px; color: var(--ink-2); max-width: 22ch; }
.field { position: relative; margin: 28px 0 24px; width: 100%; aspect-ratio: 20 / 11; background-image: radial-gradient(circle, rgba(20,20,20,.16) 0 3.5px, transparent 4px); background-size: 5% 9.0909%; }
.compare-foot { margin-top: auto; color: var(--ink-2); font-size: 16px; }
.gtile .art-funnel { width: min(240px, 70%); }
.funnel-labels { position: absolute; inset: 8px 24px 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 13px; pointer-events: none; }
.funnel-labels span:last-child { color: var(--ink); text-shadow: none; }
.people { display: grid; gap: 6px; margin: 0 10px 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--glass-strong); color: var(--ink); }
.person-text { min-width: 0; flex: 1; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.person-text b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare > * { min-height: 0; } }
@media (max-width: 520px) {
  .compare .tile { padding: 22px; }
  /* stack the card headers so each reads as one phrase: "240 to review", "3 need you today" */
  .compare-top, .compare .gtile-top { flex-direction: column; gap: 4px; }
  .compare-note, .compare .gtile-side { text-align: left; max-width: none; }
  .compare .gtile-side b { font-size: 20px; }
  .funnel-labels { display: none; }
  .field { background-image: radial-gradient(circle, rgba(20,20,20,.16) 0 2.5px, transparent 3px); }
  .person .pill { display: none; }
}

/* ---------------------------------------------------------------------------
   Product tabs
   --------------------------------------------------------------------------- */
.tabs { margin: 40px auto 0; width: fit-content; max-width: 100%; display: flex; gap: 2px; padding: 5px; border-radius: 999px; isolation: isolate; }
.tab { position: relative; z-index: 1; flex: 0 0 auto; min-height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px 22px; border-radius: 999px; font-size: 15.5px; color: var(--ink-2); transition: color .25s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(20,20,20,.06), 0 6px 16px -6px rgba(20,20,20,.18); }
.tabs.has-thumb .tab[aria-selected="true"] { background: transparent; box-shadow: none; }
.tab-thumb { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 999px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.9)); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(20,20,20,.06), 0 2px 4px rgba(20,20,20,.06), 0 8px 20px -6px rgba(20,20,20,.2); transition: transform .4s var(--spring), width .4s var(--spring), height .4s var(--spring); }
.tabs.no-anim .tab-thumb { transition: none; }
.tab:focus-visible { outline-offset: -3px; border-radius: 999px; }
@media (max-width: 600px) {
  .tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; }
  .tab, .tab:focus-visible, .tab-thumb { border-radius: 20px; }
  .tab { padding: 11px 8px; font-size: 15px; }
}

.stage-tile {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 28px; border-radius: var(--r-xl);
  background:
    var(--grain-soft) 0 0 / 300px,
    radial-gradient(40% 60% at 96% 6%, var(--fog-2), transparent 70%),
    radial-gradient(44% 60% at 4% 100%, var(--fog-4), transparent 70%),
    radial-gradient(36% 50% at 60% 110%, var(--fog-1), transparent 70%),
    var(--paper);
  box-shadow: inset 0 0 0 .5px rgba(20,20,20,.06);
}
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 4.5vw, 64px); }
.panel[hidden] { display: none; }
.panel-copy .glyph { margin-bottom: 20px; }
.panel-copy .body { margin-top: 14px; }
.notes { margin-top: 24px; display: grid; gap: 14px; }
.notes li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.notes li::before { content: ""; width: 8px; height: 8px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-halo); }
.notes b { color: var(--ink); font-weight: 500; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) { .panel { grid-template-columns: 1fr; } .panel-visual { order: -1; } }
@media (max-width: 600px) {
  /* the card sits inside the stage; thin the stage padding so the card gets the width */
  .panel { gap: 28px; padding: 10px 10px 30px; }
  .panel-copy { padding-inline: 12px; }
}

/* App cards */
.card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--glass-shadow-lg); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.card-title { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
.card-chip { margin-left: auto; font-size: 12.5px; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.card-body { padding: 4px 18px 18px; }
.card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Chat — Messages style */
.chat-meta { text-align: center; font-size: 12px; color: var(--ink-3); padding: 2px 0 10px; }
.chat-log { display: flex; flex-direction: column; gap: 6px; }
.chat-log-scroll { height: 300px; overflow-y: auto; padding-right: 2px; scroll-behavior: smooth; }
.chat-log-scroll::-webkit-scrollbar { width: 6px; }
.chat-log-scroll::-webkit-scrollbar-thumb { background: var(--fill-strong); border-radius: 3px; }
.chat-message { display: flex; gap: 8px; align-items: flex-end; animation: bubbleIn .45s var(--spring) both; }
.chat-message.user { flex-direction: row-reverse; }
.chat-message-avatar { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; font-size: 0; background: #fff url("../img/medpull-mark.png") center / 64% no-repeat; box-shadow: inset 0 0 0 .5px rgba(20,20,20,.12); }
.chat-message.user .chat-message-avatar { display: none; }
.chat-message-bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: 15px; line-height: 1.38; }
.chat-message.ai .chat-message-bubble { background: rgba(120,120,110,.12); color: var(--ink); border-bottom-left-radius: 6px; }
.chat-message.user .chat-message-bubble { color: #fff; border-bottom-right-radius: 6px; background-image: var(--grain), linear-gradient(180deg, #5e7d4e, #445f39); background-size: 300px, auto; background-blend-mode: soft-light, normal; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 21px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: block; animation: typingBounce 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 40px; justify-content: flex-end; }
.quick-reply { min-height: 44px; font-size: 15px; color: var(--ink); background: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(20,20,20,.06), 0 4px 10px -4px rgba(20,20,20,.16); transition: transform .25s var(--spring), box-shadow .2s ease; }
button.quick-reply:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(20,20,20,.3), 0 8px 18px -8px rgba(20,20,20,.25); }
button.quick-reply:active { transform: scale(.96); }
.quick-reply.is-picked { color: #fff; box-shadow: none; background-image: var(--grain), linear-gradient(180deg, #5e7d4e, #445f39); background-size: 300px, auto; background-blend-mode: soft-light, normal; }

/* Worklist rows */
.wl-list { display: grid; gap: 8px; }
.wl-row { display: grid; grid-template-columns: auto max-content minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--inset); transition: background-color .5s ease; }
.wl-row.is-flagged { background: var(--alert-bg); }
.wl-name { font-weight: 500; font-size: 15.5px; line-height: 1.25; }
.wl-sub { font-size: 13px; color: var(--ink-2); }
.wl-row .wl-sub { white-space: nowrap; }
.wl-cell { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.wl-when { font-size: 12px; color: var(--ink-3); text-align: right; }
.wl-status { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
@media (max-width: 600px) {
  /* a phone list row: name and procedure get the full width, the reason and status follow */
  .wl-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px 12px 12px; }
  .wl-row > .avatar { grid-row: span 3; width: 34px; height: 34px; font-size: 12px; }
  .wl-row .wl-sub { white-space: normal; }
  .wl-row > .wl-cell, .wl-row > .wl-status { grid-column: 2; }
  .wl-row > .wl-cell { margin-top: -6px; font-size: 14px; color: var(--ink); }
  .wl-status { flex-direction: row; align-items: center; gap: 10px; margin-top: -4px; }
}

/* Recovery summary */
.rs-summary { padding: 16px 18px; border-radius: var(--r-md); background: var(--inset); }
.rs-summary p { font-size: 15.5px; line-height: 1.52; color: var(--ink-2); }
.rs-summary b { color: var(--ink); font-weight: 500; }
.rs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.rs-metric { border-radius: var(--r-md); background: var(--inset); padding: 12px 14px; }
.rs-metric-label { font-size: 13px; color: var(--ink-2); }
.rs-metric-value { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rs-metric .spark { margin-top: 8px; height: 26px; }
.rs-delta { font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.rs-delta.up { color: var(--ok); }
.rs-delta.down { color: var(--alert); }
.rs-flag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.rs-flag b { color: var(--ink); font-weight: 500; }
.rs-flag .pill { margin-top: -1px; }
@media (max-width: 520px) {
  /* one row per metric: label and value on the left, sparkline on the right */
  .rs-metrics { grid-template-columns: 1fr; gap: 8px; }
  .rs-metric { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; column-gap: 14px; }
  .rs-metric-label, .rs-metric-value { grid-column: 1; }
  .rs-metric-value { font-size: 26px; }
  .rs-metric .spark { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}


/* ---------------------------------------------------------------------------
   Features bento
   --------------------------------------------------------------------------- */
.bento { margin-top: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .gtile { min-height: 470px; }
.span-2 { grid-column: span 2; }

.curve-art { padding-bottom: 46px; }
.curve-svg { width: 100%; height: auto; overflow: visible; }
.curve-grid { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.curve-expected { stroke: rgba(255,255,255,.6); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.curve-line { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.curve-legend { position: absolute; left: 24px; right: 24px; bottom: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: var(--ink); text-shadow: none; }
.curve-legend i { display: inline-block; width: 16px; height: 0; border-top: 1.5px dashed rgba(20,20,20,.6); vertical-align: middle; margin-right: 6px; }
.curve-legend i.is-actual { border-top: 2.5px solid var(--ink); }
.gtile-art .art-globe { width: min(210px, 80%); }
.gtile-art .art-waves { width: 100%; height: 150px; }
.gtile-art .art-arcs { width: min(260px, 92%); }
.silence-art { width: min(280px, 100%); display: grid; gap: 12px; }
.silence-row { display: grid; grid-template-columns: 70px repeat(7, 1fr); align-items: center; gap: 6px; font-size: 13px; }
.silence-row i { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.9); }
.silence-row i.is-miss { background: transparent; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.75); }
.silence-row i.is-now { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-halo), 0 0 14px rgba(212,241,74,.8); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .bento > :last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .bento > :last-child { grid-column: auto; }
  .bento .gtile { min-height: 420px; }
}

/* ---------------------------------------------------------------------------
   Steps
   --------------------------------------------------------------------------- */
.steps { margin-top: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px 28px 30px; border-radius: var(--r-lg); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.step-n { display: inline-grid; place-items: center; font-size: 72px; font-weight: 200; line-height: .8; letter-spacing: -0.06em; }
.step-top .glyph { width: 42px; height: 42px; border-radius: 13px; }
.step .body { margin-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-top { margin-bottom: 24px; } }
@media (max-width: 560px) {
  .steps { gap: 12px; }
  .step { padding: 22px 22px 24px; }
  .step-top { margin-bottom: 14px; }
  .step-n { font-size: 56px; }
}

/* ---------------------------------------------------------------------------
   Origin story
   --------------------------------------------------------------------------- */
.origin {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(28px, 5.5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  color: #fff;
  background-image: var(--grain), radial-gradient(40% 60% at 100% 0%, rgba(243,199,122,.7), transparent 70%), linear-gradient(110deg, #314629 0%, #3e5533 46%, #4f6a41 62%, #7d9960 84%, #c3bd72 100%);
  background-size: 300px, auto, auto;
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 .5px rgba(20,20,20,.14), 0 14px 28px -12px rgba(20,20,20,.25), 0 50px 100px -40px rgba(20,20,20,.4);
}
.origin .h2 { color: #fff; }
.origin .origin-body { margin-top: 20px; font-size: 18px; line-height: 1.55; font-weight: 400; color: #fff; max-width: 50ch; text-wrap: pretty; }
.origin .art-orbit { position: absolute; right: -60px; top: -60px; width: 320px; opacity: .5; pointer-events: none; }
.origin > :not(.art) { position: relative; z-index: 1; }
.timeline-list { display: grid; gap: 12px; }
.tl-item { padding: 18px 20px; border-radius: var(--r-md); background: var(--glass-strong); color: var(--ink); }
.tl-year { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-year .dot-past { display: none; }
.tl-title { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.tl-sub { font-size: 15px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { padding: 20px 22px; border-radius: var(--r-md); background: var(--glass-strong); color: var(--ink); }
.fact b { display: block; font-size: clamp(44px, 4.6vw, 64px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .origin {
    grid-template-columns: 1fr;
    /* one column: run the gradient top to bottom so the white copy sits on the deepest green */
    background-image: var(--grain), radial-gradient(90% 34% at 85% 104%, rgba(243,199,122,.6), transparent 70%), linear-gradient(180deg, #314629 0%, #3a5030 40%, #4f6a41 64%, #7d9960 90%, #a3ac6c 100%);
  }
  /* in one column the orbit art lands on the heading and paragraph, so drop it */
  .origin .art-orbit { display: none; }

  /* the two milestones read as one connected timeline */
  .timeline-list { gap: 0; padding: 4px 20px; border-radius: var(--r-lg); background: var(--glass-solid); box-shadow: var(--glass-shadow); }
  .tl-item { padding: 14px 0 14px 24px; border-radius: 0; background: none; box-shadow: none; }
  .tl-item::after { display: none; }
  .tl-year { font-size: 14px; }
  .tl-year .dot { position: absolute; left: 0; top: 21px; }
  .tl-year .dot-past { display: block; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  .tl-item:not(:last-child)::before { content: ""; position: absolute; left: 3.25px; top: 35px; bottom: -15px; width: 1.5px; border-radius: 1px; background: var(--line-strong); }

  .fact { background: var(--glass-solid); }
}
@media (max-width: 560px) {
  .origin { padding: 32px 18px 18px; gap: 24px; }
  .origin .origin-body { margin-top: 16px; font-size: 17px; }
  .facts { gap: 8px; }
  .fact { padding: 14px 12px 15px; border-radius: var(--r-sm); }
  .fact b { font-size: 40px; }
  .fact span { margin-top: 6px; font-size: 14px; line-height: 1.25; text-wrap: balance; }
}

/* ---------------------------------------------------------------------------
   Backers
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   Backers (hero)
   --------------------------------------------------------------------------- */
/* Bare marks, no pills: the hero already carries the badge and two buttons,
   and the showcase sits right below. */
.backers { margin-top: clamp(30px, 4vw, 42px); }
.backers-title {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.backer-list {
  margin-top: 16px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 14px clamp(28px, 4.8vw, 52px);
}
/* The three files are cropped to their ink, so this gap is the whole distance
   between one mark and the next and the row centres on the marks themselves.
   Re-crop any replacement logo the same way or the spacing goes uneven again. */
.backer { --logo-h: 21px; display: block; }
/* One height per mark: a bare wordmark, an oval and a three-line lockup only
   read at the same weight when each is sized on its own. Heights are ink, so
   21px here is 21px of actual letter. */
.backer-md { --logo-h: 38px; }
.backer-lilie { --logo-h: 40px; }
.backer img {
  display: block; width: auto; height: var(--logo-h); max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.backer:hover img, .backer:focus-visible img { filter: none; opacity: 1; }

@media (max-width: 720px) {
  /* Three across would shrink the lockups past reading; one per row instead. */
  .backer-list { flex-direction: column; gap: 22px; }
  .backer { --logo-h: 19px; }
  .backer-md { --logo-h: 34px; }
  .backer-lilie { --logo-h: 36px; }
  /* no hover on touch, so lift the marks a little instead of colouring them */
  .backer img { opacity: .68; }
}

/* ---------------------------------------------------------------------------
   Trust
   --------------------------------------------------------------------------- */
.trust { margin-top: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust .tile { padding: 26px; }
.trust .glyph { margin-bottom: 36px; }
.trust .body { margin-top: 8px; font-size: 15.5px; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; gap: 12px; }
  .trust .tile { padding: 22px; }
  .trust .glyph { margin-bottom: 18px; }
}

/* ---------------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-aside .body { margin-top: 18px; font-size: 18px; font-weight: 300; }
.faq-aside .btn { margin-top: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); transition: box-shadow .3s ease; }
.faq-item[open] { background: var(--glass-strong); box-shadow: var(--glass-shadow-lg); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 20px 20px 24px; font-size: 17.5px; font-weight: 400; letter-spacing: -0.015em; border-radius: var(--r-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); transition: transform .3s var(--spring), background-color .2s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); background: var(--lime); color: var(--ink); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 66ch; }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
  .faq-item p { opacity: 0; translate: 0 -6px; transition: opacity .25s ease .05s, translate .3s var(--ease); }
  .faq-item[open] p { opacity: 1; translate: 0 0; }
}
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Closing CTA
   --------------------------------------------------------------------------- */
.cta { padding: clamp(64px, 9vw, 110px) var(--gutter); }
.cta-panel { max-width: 760px; margin-inline: auto; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-xl); text-align: center; box-shadow: var(--glass-shadow-lg); }
.cta .app-icon-xl { margin: 0 auto 26px; }
.cta .lede { margin: 18px auto 0; max-width: 540px; }
.cta .btn-row { margin-top: 32px; }
@media (max-width: 480px) {
  .cta { padding: 44px 10px; }
  .cta-panel { padding: 32px 20px 24px; }
  .cta .app-icon-xl { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 22px; }
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer { padding-block: 56px 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-blurb { margin-top: 14px; max-width: 34ch; color: var(--ink-2); font-size: 14.5px; font-weight: 300; }
.footer h2 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.footer li + li { margin-top: 2px; }
.footer li a { display: inline-block; padding-block: 6px; color: var(--ink-2); transition: color .2s ease; }
.footer li a:hover { color: var(--ink); }
.footer-base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); }
.footer-base .dot { margin: 0 8px 0 4px; vertical-align: 1px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------------
   Sub-pages
   --------------------------------------------------------------------------- */
.page-top { padding: clamp(120px, 12vw, 156px) var(--gutter) clamp(56px, 7vw, 88px); text-align: center; }
.page-top .display { font-size: clamp(44px, 6vw, 76px); }
.page-top .lede { margin: 20px auto 0; max-width: 620px; }

.demo-step { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.demo-step .step-n { font-size: 40px; font-weight: 200; }
.demo-step h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.025em; }
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario-card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 18px; border-radius: var(--r-lg); border: 0;
  transition: transform .25s var(--spring), box-shadow .2s ease;
}
.scenario-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-lg); }
.scenario-card[aria-pressed="true"] { background: var(--glass-strong); box-shadow: 0 0 0 1.5px var(--ink), var(--glass-shadow-lg); }
.scenario-body { min-width: 0; flex: 1; }
.scenario-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scenario-card .wl-sub { display: block; margin-top: 1px; }
.scenario-desc { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.demo-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.demo-stack { display: grid; gap: 16px; }
.demo-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .scenarios { grid-template-columns: 1fr; } }

.page-canvas { padding: clamp(112px, 11vw, 144px) var(--gutter) clamp(40px, 6vw, 72px); }
.split { max-width: var(--content); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-intro { padding-top: 12px; }
.split .display { font-size: clamp(44px, 5vw, 68px); }
.split .lede { margin-top: 20px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split-intro { padding-top: 0; } }

.checklist { margin-top: 32px; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.checklist .glyph { width: 42px; height: 42px; border-radius: 13px; }
.checklist .glyph svg { width: 20px; height: 20px; }
.checklist b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; }
.aside-note { margin-top: 24px; font-size: 15.5px; color: var(--ink-2); }

.form-card { border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--glass-shadow-lg); }
.form-card-flush { padding: 10px; }
.form-card .h3 + .body { margin-top: 6px; }
.calendar-frame { display: block; width: 100%; height: 700px; border: 0; border-radius: 26px; background: #fff; }
.calendar-fallback { padding: 14px 12px 6px; font-size: 14.5px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .calendar-frame { height: 820px; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field-full { grid-column: 1 / -1; }
.form-label { display: block; font-size: 14.5px; font-weight: 500; margin: 0 0 7px 4px; }
.form-label .opt { color: var(--ink-3); font-weight: 400; }
.form-control {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm);
  border: 0; background: rgba(255,255,255,.6); font-size: 16px; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 2px rgba(20,20,20,.04);
  transition: background-color .2s ease, box-shadow .2s ease;
  appearance: none; -webkit-appearance: none;
}
textarea.form-control { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.45; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23585b58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-control::placeholder { color: var(--ink-3); }
.form-control:hover { background-color: rgba(255,255,255,.85); }
.form-control:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px var(--lime-halo); }
.form-check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.form-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--sage-deep); }
.form-control[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--alert); background-color: #fff7f3; }
.form-control[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1.5px var(--alert), 0 0 0 5px rgba(184, 80, 44, .14); }
.form-check input[aria-invalid="true"] + span { color: var(--alert); }
.field-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0 4px; font-size: 13.5px; font-weight: 500; color: var(--alert); }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; background: var(--alert); flex: 0 0 auto; }
.form-grid > .field-error { grid-column: 1 / -1; margin-top: -8px; }
.form-feedback { font-size: 14.5px; font-weight: 500; }
.form-feedback:empty { display: none; }
.form-feedback.is-error { padding: 12px 16px; border-radius: var(--r-sm); background: var(--alert-bg); color: var(--alert); }
.form-honey { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Success state (popup + waitlist) */
.done-state { text-align: center; padding: 28px 8px 12px; }
.done-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background-image: var(--grain), var(--g-sage); background-size: 300px, auto; background-blend-mode: soft-light, normal; box-shadow: 0 0 0 8px var(--lime-halo), 0 14px 30px -10px rgba(74,102,62,.6); animation: pop .7s var(--spring); }
.done-title { font-size: 30px; font-weight: 300; letter-spacing: -0.035em; }
.done-sub { margin: 8px auto 22px; max-width: 36ch; color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   Early-access dialog
   --------------------------------------------------------------------------- */
.ea-dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 34px; overflow: auto;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.8));
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(20,20,20,.08), 0 50px 120px -30px rgba(20,20,20,.45);
}
.ea-dialog::backdrop { background: rgba(30,30,25,.34); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.ea-dialog[open] { animation: dialogIn .35s var(--spring) both; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.ea-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; z-index: 2; box-shadow: inset 0 0 0 .5px rgba(20,20,20,.1); }
.ea-close:hover { background: #fff; color: var(--ink); }
.ea-close:focus-visible { outline-offset: 1px; border-radius: 50%; }
.ea-head {
  position: relative; overflow: hidden; margin: 8px 8px 0; padding: 32px 24px 22px; border-radius: 28px; text-align: center;
  background-image: var(--grain-soft), radial-gradient(60% 80% at 0% 0%, var(--fog-4), transparent 70%), radial-gradient(60% 80% at 100% 10%, var(--fog-2), transparent 70%), radial-gradient(70% 90% at 50% 120%, var(--fog-1), transparent 70%), linear-gradient(#fbfbf9, #fbfbf9);
  background-size: 300px, auto, auto, auto, auto;
}
.ea-head .app-icon-lg { margin: 0 auto 14px; }
.ea-title { font-size: 28px; font-weight: 300; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.ea-sub { margin: 10px auto 0; max-width: 40ch; font-size: 15.5px; color: var(--ink-2); }
.ea-perks { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ea-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 .5px rgba(20,20,20,.08); }
.ea-perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(20,20,20,.08); }
.ea-body { padding: 4px 24px 26px; }
.ea-body .form-grid { gap: 12px; margin-top: 18px; }
.ea-fine { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* Blur needs something to blur: skip it over flat or opaque backgrounds (saves GPU, avoids flicker). */
.tile, .faq-item, .procedure-list li, .checklist li, .scenario-card,
.dash :is(.dash-search, .dash-btn, .dash-row, .dash-live, .mt-ai) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------------------------------------------------------------------------
   Graphics
   --------------------------------------------------------------------------- */
/* Left compare card: a typical monitoring dashboard, reviewed one chart at a time */
.compare-lede { position: relative; z-index: 2; margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.gtile .compare-lede { margin: 12px 24px 0; color: #fff; }
.compare-note { display: block; }
.compare-note b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.mdash { position: relative; flex: 1; margin-top: 18px; padding: 10px 10px 54px; border-radius: 18px; background: rgba(120, 120, 110, .07); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.md-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.md-tab { padding: 4px 10px; border-radius: 999px; }
.md-tab.is-on { color: var(--ink); background: #fff; box-shadow: 0 0 0 .5px rgba(20,20,20,.12), 0 1px 3px rgba(20,20,20,.08); }
.md-sort { margin-left: auto; padding-right: 4px; }
.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; transition: opacity .3s ease; }
.mdash.is-flipping .md-grid { opacity: .25; }
.md-tile { position: relative; padding: 9px 10px 8px; border-radius: 12px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 .5px rgba(20,20,20,.1); transition: box-shadow .25s ease, opacity .3s ease; }
.md-tile.is-seen { opacity: .45; }
.md-tile.is-looking { opacity: 1; box-shadow: 0 0 0 2px var(--ink), 0 8px 18px -8px rgba(20,20,20,.35); }
.md-name { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.md-name i { width: 14px; height: 14px; border-radius: 50%; background: rgba(120, 120, 110, .22); flex: 0 0 auto; }
.md-spark { display: block; width: 100%; height: 24px; margin: 5px 0 3px; }
.md-spark polyline { fill: none; stroke: #9a9d96; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.md-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--ink-3); }
.md-vals b { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.md-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); transform: translate(40px, 80px); transition: transform .6s var(--ease); pointer-events: none; }
.md-status { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: #fff; box-shadow: 0 0 0 .5px rgba(20,20,20,.12), 0 6px 16px -6px rgba(20,20,20,.25); }
.md-status svg { width: 15px; height: 15px; }
.md-status b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-tile:nth-child(n+7) { display: none; }
  .md-tab:not(.is-on) { display: none; }
}

/* Right compare card: the same patients, sorted into the three who need a call */
.sorter-status { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin: auto 24px 12px; padding-top: 16px; font-size: 13.5px; }
.sorter-status .meter { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.sorter-status .meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: #fff; transform-origin: left; transform: scaleX(0); }
.sorter-status.is-reading .meter span { transition: transform 1.8s var(--ease); transform: scaleX(1); }
.sorter-status .st { white-space: nowrap; }
.sorter-status .st-b { display: none; }
.sorter-status.is-sorted .st-a, .sorter-status.is-sorted .meter { display: none; }
.sorter-status.is-sorted .st-b { display: inline; }
.sorter { --step: 80px; position: relative; z-index: 2; height: calc(var(--step) * 5 - 14px); margin: 0 10px 10px; }
.srow {
  position: absolute; left: 0; right: 0; top: 0; height: 58px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 0 12px; border-radius: 16px; color: var(--ink);
  background: var(--glass-solid);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 .5px rgba(20,20,20,.12), 0 6px 14px -8px rgba(20,20,20,.3);
  transform: translateY(calc(var(--a) * var(--step)));
  transition: transform .8s var(--spring), opacity .5s ease, background-color .4s ease;
}
.srow .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.srow b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.2; }
.srow > span:nth-child(2) { min-width: 0; }
.srow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .sub { position: relative; display: block; height: 17px; font-size: 12.5px; color: var(--ink-2); }
.srow .sub span, .srow .tag > * { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .35s ease; }
.srow .sub span { right: 0; overflow: hidden; text-overflow: ellipsis; }
.srow .tag { position: relative; width: 104px; height: 24px; }
@media (max-width: 420px) {
  .sorter { --step: 64px; }
  .srow { gap: 10px; padding-inline: 10px; }
  .srow .tag { width: 92px; }
  .srow .tag .pill { padding-inline: 8px; font-size: 11.5px; }
  .sorter-status { margin-inline: 18px; }
}
.srow .tag > * { left: auto; right: 0; }
.srow .when-sorted { opacity: 0; }
.srow .pill-reading { color: var(--ink-2); background: rgba(20,20,20,.06); }
.sorter.is-sorted .srow { transform: translateY(calc(var(--b) * var(--step))); }
.sorter.is-sorted .srow .when-sorted { opacity: 1; }
.sorter.is-sorted .srow .when-reading { opacity: 0; }
.sorter.is-sorted .srow.is-ok { opacity: 0; transform: translateY(calc(var(--b) * var(--step))) scale(.94); }
.srow.is-rest { opacity: 0; transform: translateY(calc(var(--b) * var(--step))) scale(.94); }
.sorter.is-sorted .srow.is-rest { opacity: 1; transform: translateY(calc(var(--b) * var(--step))); }
.srow.is-rest .stack .avatar { width: 24px; height: 24px; }
.sorter.is-reading .srow:not(.is-rest) { animation: readPulse 1.8s ease-in-out; animation-delay: calc(var(--a) * .25s); }
@keyframes readPulse { 0%, 100% { background-color: transparent; } 40% { box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--lime), 0 6px 14px -8px rgba(20,20,20,.3); } }

/* Step count bars (wearables) */
.bars { position: relative; width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding-bottom: 22px; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(22px + 110px); border-top: 1.5px dashed rgba(255,255,255,.6); }
.bars-usual { position: absolute; right: 0; bottom: calc(22px + 114px); font-size: 12px; }
.bars i { position: relative; display: block; height: var(--h); border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.88); transform-origin: bottom; scale: 1 1; transition: scale .8s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
.bars i.is-low { background: rgba(255,255,255,.34); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.bars i.is-today { background: rgba(255,255,255,.34); box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 16px rgba(212,241,74,.55); }
.bars i::after { content: attr(data-d); position: absolute; left: 50%; bottom: -22px; translate: -50% 0; font-size: 12px; font-style: normal; }
.bars .quote { position: absolute; left: 0; top: 0; }
.quote { display: inline-block; max-width: 70%; padding: 8px 13px; border-radius: 18px 18px 18px 6px; font-size: 13.5px; color: var(--ink); background: #fff; box-shadow: 0 6px 14px -8px rgba(20,20,20,.35); text-shadow: none; }

/* EMR two-way flow */
.flow { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.flow-node { display: grid; justify-items: center; gap: 8px; font-size: 13px; }
.flow-node .app-icon, .flow-icon { width: 60px; height: 60px; border-radius: 18px; }
.flow-icon { display: grid; place-items: center; color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(20,20,20,.1); }
.flow-icon svg { width: 24px; height: 24px; }
.flow-rails { display: grid; gap: 46px; padding-block: 22px; }
.rail { position: relative; height: 2px; border-radius: 2px; background: rgba(255,255,255,.45); }
.rail span { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-size: 12px; white-space: nowrap; }
.rail.is-back span { bottom: auto; top: 8px; }
.rail i { position: absolute; inset: 0; animation: flowRight 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.rail i:nth-of-type(2) { animation-delay: -1.3s; }
.rail i::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.9); }
.rail.is-back i { animation-name: flowLeft; }
.rail.is-back i::before { background: var(--lime); box-shadow: 0 0 12px rgba(212,241,74,.9); }
@keyframes flowRight { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes flowLeft { 0% { transform: translateX(100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }

/* Gauge */
.gauge { width: min(210px, 100%); overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; }
.gauge-track { stroke: rgba(255,255,255,.28); stroke-width: 14; }
.gauge-fill { stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, .4)); transition: stroke-dashoffset 1.2s var(--spring); }
.gauge-prev { stroke: var(--lime); stroke-width: 3; }
.gauge text { fill: #fff; font: 500 11px var(--font); }

/* Rotating wireframe globe */
.art-globe .mer { transform-box: fill-box; transform-origin: center; animation: meridian 12s infinite; animation-delay: calc(var(--k) * -1s); }
@keyframes meridian {
  0% { transform: scaleX(1); animation-timing-function: ease-in; }
  25% { transform: scaleX(0); animation-timing-function: ease-out; }
  50% { transform: scaleX(-1); animation-timing-function: ease-in; }
  75% { transform: scaleX(0); animation-timing-function: ease-out; }
  100% { transform: scaleX(1); }
}

/* Curves: a soft light travels the line; the expected path drifts */
.curve-line, .curve-comet { stroke-dasharray: 1; }
.curve-comet { stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1.05; filter: drop-shadow(0 0 5px rgba(255,255,255,.9)); animation: comet 3.8s cubic-bezier(.4, 0, .6, 1) 2s infinite; opacity: .9; }
.curve-expected { animation: dashFlow 2.4s linear infinite; }
.curve-mark .ring { transform-box: fill-box; transform-origin: center; animation: ringPulse 2.4s ease-out infinite; }
@keyframes comet { to { stroke-dashoffset: 0; } }
@keyframes dashFlow { to { stroke-dashoffset: -18; } }
@keyframes ringPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* Sparklines and meters: grow in, then breathe */
.spark i { scale: 1 1; transition: scale .7s var(--spring); transition-delay: calc(var(--i, 0) * 50ms); animation: barBreathe 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.4s); }
.spark i:last-child { animation-duration: 1.8s; }
@keyframes barBreathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.84); } }
.meter { position: relative; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; transform-origin: left; scale: 1 1; transition: scale 1.1s var(--ease); }
.meter-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-100%); animation: sheen 2.8s ease-in-out 1.2s infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.silence-row i.is-miss { animation: missBlink 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .2s); }
@keyframes missBlink { 50% { box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.3); } }
.silence-row i.is-now { animation: nowDot 1.8s ease-in-out infinite; }
@keyframes nowDot { 50% { box-shadow: 0 0 0 7px rgba(212,241,74,.2), 0 0 18px rgba(212,241,74,.9); } }
.silence-days { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 6px; font-size: 11.5px; opacity: .85; }
.silence-days span { justify-self: center; }
.mt-quiet .silence-days { grid-template-columns: 64px repeat(7, 1fr); }

/* Status: missing data */
.pill-missing { color: #4c5680; background: rgba(110, 124, 180, .16); }
.pill-missing::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Meters */
.meter { position: relative; overflow: hidden; height: 8px; border-radius: 999px; background: var(--fill-strong); }
.meter-fill { position: relative; background-image: var(--grain), var(--g-sage); background-size: 300px, auto; background-blend-mode: soft-light, normal; }
.meter-fill.is-watch { background-image: var(--grain), var(--g-amber); }
.meter-fill.is-flag { background-image: var(--grain), var(--g-clay); }
.meter-light { background: rgba(255, 255, 255, .25); height: 10px; }
.meter-light .meter-fill, .gtile .meter-fill { background: rgba(255, 255, 255, .92); }
.mt-bar { position: relative; z-index: 2; margin: auto 18px 16px; }
.mt-bar .timeline-ticks { color: #fff; }

/* Care metric rows */
.metric-list { display: grid; gap: 14px; }
.metric-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 14px; color: var(--ink-2); }
.metric-top b { font-size: 18px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Signal contributions */
.sig-list { width: 100%; display: grid; gap: 11px; }
.sig { display: grid; grid-template-columns: 82px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 13px; }
.sig b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.sig-cap, .sig-cap b { font-size: 11.5px; font-weight: 400; opacity: .8; }
.sig-cap span:nth-child(2) { white-space: nowrap; }
.sig .meter { background: rgba(255, 255, 255, .22); }
.sig-dark .sig { color: var(--ink-2); }
.sig-dark .sig b { color: var(--ink); }
.sig-dark .meter { background: var(--fill-strong); }
.sig-dark .meter-fill { background-image: var(--grain), var(--g-lilac); }
.sig-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sig-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14.5px; }
.sig-head b { font-weight: 500; }
.gtile-word { font-size: clamp(38px, 3.6vw, 48px) !important; }

/* AI briefing */
.briefing { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(154,163,220,.16), rgba(236,199,110,.12)); }
.briefing .glyph { width: 30px; height: 30px; border-radius: 9px; }
.briefing .glyph svg { width: 16px; height: 16px; }
.briefing p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.briefing b { color: var(--ink); font-weight: 500; }

/* Compare cards */
.compare-card { min-width: 0; }
.bars i.is-high { background: rgba(255, 255, 255, .95); }
.bars::before { bottom: auto; top: 61px; z-index: 2; border-top: 2px dashed var(--lime); filter: drop-shadow(0 0 3px rgba(0,0,0,.25)); }
.bars-usual { bottom: auto; top: 51px; right: auto; left: -4px; z-index: 3; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--ink); background: var(--lime); text-shadow: none; }
.rail.is-late i { animation-delay: -.9s; }
.rail.is-late i:nth-of-type(2) { animation-delay: -2.2s; }

/* Touch screens: every target at least 44px */
@media (hover: none), (max-width: 760px) {
  .brand { min-height: 44px; }
  .badge { min-height: 44px; }
  .btn-sm { height: 44px; }
  .footer li + li { margin-top: 0; }
  .footer li a { padding-block: 12px; min-width: 44px; }
  .btn-quiet { min-height: 44px; }
}

/* ---------------------------------------------------------------------------
   Motion
   Entrances use only opacity and translate (no blur), so glass inside them
   never flickers. Hero entrances wait for the font (html.is-ready). Loops run
   only while on screen (.is-live, set by site.js).
   --------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes riseBig { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-copy > :not(.btn-row), .hero-copy .btn-row > * { animation: rise .7s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy .btn-row > :nth-child(1) { animation-delay: .18s; }
.hero-copy .btn-row > :nth-child(2) { animation-delay: .24s; }
.hero-copy > .backers { animation-delay: .32s; }
.showcase { animation: riseBig 1s var(--ease) .2s backwards; }
.js:not(.is-ready) :is(.hero-copy > *, .hero-copy .btn-row > *, .showcase) { animation-play-state: paused; }

.art-orbit .art-turn { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }

/* loops pause off screen */
.js :is(.aurora i, .art-turn, .mer, .rail i, .curve-comet, .curve-expected, .curve-mark .ring, .spark i, .meter-fill::after, .silence-row i, .spinner) { animation-play-state: paused; }
.js .is-live :is(.aurora i, .art-turn, .mer, .rail i, .curve-comet, .curve-expected, .curve-mark .ring, .spark i, .meter-fill::after, .silence-row i, .spinner) { animation-play-state: running; }

/* panel switch */
.panel.is-entering .panel-copy { animation: rise .35s var(--ease) backwards; }
.panel.is-entering .card { animation: rise .4s var(--ease) .04s backwards; }

@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal — keep this selector list in sync with REVEAL in site.js */
  .js :is(.section-head, .procedures > p, .procedure-list > li, .compare > *, .tabs, .stage-tile, .bento > *, .steps > *, .origin, .trust > *, .faq-aside, .faq-list > *, .cta-panel, .page-top > *, .split-intro > :not(.checklist), .checklist > li, .split > .form-card, .scenarios > *, .demo-step, .demo-grid .card, .demo-note, .footer-grid > *) {
    transition: opacity .6s var(--ease), translate .7s var(--ease), transform .25s var(--spring), box-shadow .2s ease;
    transition-delay: calc(var(--d, 0) * 60ms), calc(var(--d, 0) * 60ms), 0s, 0s;
  }
  .js :is(.section-head, .procedures > p, .procedure-list > li, .compare > *, .tabs, .stage-tile, .bento > *, .steps > *, .origin, .trust > *, .faq-aside, .faq-list > *, .cta-panel, .page-top > *, .split-intro > :not(.checklist), .checklist > li, .split > .form-card, .scenarios > *, .demo-step, .demo-grid .card, .demo-note, .footer-grid > *):not(.is-shown) {
    opacity: 0; translate: 0 22px;
  }

  /* graphics wait for their card, then draw */
  .js :is(.compare > *, .bento > *, .stage-tile, .steps > *, .showcase):not(.is-shown) :is(.curve-line) { stroke-dashoffset: 1; }
  .curve-line { transition: stroke-dashoffset 1.6s var(--ease) .15s; }
  .js :is(.compare > *, .bento > *, .stage-tile, .showcase):not(.is-shown) .curve-mark { opacity: 0; scale: .2; }
  .curve-mark { transform-box: fill-box; transform-origin: center; transition: opacity .3s ease 1.5s, scale .5s var(--spring) 1.5s; }
  .js :is(.bento > *, .stage-tile, .showcase):not(.is-shown) :is(.spark i, .bars i) { scale: 1 0; }
  .js :is(.bento > *, .stage-tile, .showcase):not(.is-shown) .meter-fill { scale: 0 1; }
  .js :is(.bento > *, .showcase):not(.is-shown) .silence-row i { scale: 0; }
  .silence-row i { transition: scale .4s var(--spring); transition-delay: calc(var(--i, 0) * 35ms); }
  .js :is(.bento > *, .showcase):not(.is-shown) .gauge-fill { stroke-dashoffset: 1; }
  .js .steps > :not(.is-shown) .step-n { opacity: 0; translate: 0 16px; }
  .step-n { transition: opacity .5s ease .15s, translate .6s var(--spring) .15s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .xdr { transform: none !important; }
  .curve-comet { display: none; }
}
