/* =============================================================================
   intuidoc · AI Care Management Platform
   ---------------------------------------------------------------------------
   Restrained, editorial clinical-tech. Authentic intuidoc palette sampled from
   the logo: royal navy "intui" (#163A78) + cerulean "doc" (#1E8AC0). Flat color,
   minimal gradient, quiet iconography, generous whitespace. No glow, no grid
   overlays, no gradient text.
   ============================================================================= */

/* ---------- Tokens ----------------------------------------------------------- */
:root {
  /* Brand, sampled from the intuidoc wordmark */
  --navy:        #163A78;   /* "intui" */
  --navy-700:    #1B468C;
  --navy-600:    #21539F;
  --navy-deep:   #102A5C;   /* dark sections */
  --navy-deeper: #0C2049;
  --navy-deepest:#081634;

  --blue:        #1E8AC0;   /* "doc", primary accent */
  --blue-700:    #1A78A8;
  --blue-300:    #6FB7DC;
  --blue-200:    #A9D3EC;

  /* Washes / tints */
  --wash:        #ECF4FA;   /* cerulean wash */
  --wash-2:      #E4EEF6;
  --navy-wash:   #EDF0F6;

  /* Neutrals */
  --bg:        #FAFBFC;
  --bg-2:      #F4F7FA;
  --surface:   #FFFFFF;
  --tint:      #F2F5F8;
  --border:    #E5EAF0;
  --border-2:  #EDF0F4;

  /* Ink */
  --ink:    #16222F;
  --ink-2:  #3F4E5C;
  --ink-3:  #66747F;
  --ink-4:  #93A0AB;

  /* On dark */
  --on-dark:       #EDF3F9;
  --on-dark-soft:  #AFC2D5;
  --on-dark-faint: #708399;

  /* Clinical status (muted, data-only) */
  --ok:   #2E9E63;
  --warn: #D08A2C;
  --risk: #D2574B;

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Radius */
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 15px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-full: 999px;

  /* Shadows, soft, low, not floaty */
  --shadow-sm: 0 1px 2px rgba(16,34,56,.05);
  --shadow-md: 0 2px 10px rgba(16,34,56,.05), 0 1px 2px rgba(16,34,56,.04);
  --shadow-lg: 0 10px 30px rgba(16,34,56,.07), 0 2px 6px rgba(16,34,56,.04);
  --shadow-xl: 0 22px 50px rgba(16,34,56,.10);

  /* Layout */
  --maxw: 1180px;
  --maxw-wide: 1260px;
  --gutter: 24px;
  --section-y: clamp(76px, 8.5vw, 132px);
  --section-y-sm: clamp(52px, 6vw, 84px);
  --nav-h: 70px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--wash); color: var(--navy); }

/* ---------- Type ------------------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 3.8vw + 1rem, 3.85rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 2vw + 1rem, 2.7rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, .8vw + .95rem, 1.5rem); }
h4 { font-size: 1.06rem; letter-spacing: -0.012em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .15em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; flex: none; }
.eyebrow.on-dark { color: var(--blue-300); }

.lead { font-size: clamp(1.06rem, .5vw + .96rem, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.accent { color: var(--blue); }

/* ---------- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: var(--section-y-sm); }
.section-head { max-width: 700px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }
.band-top { border-top: 1px solid var(--border); }

/* ---------- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 560; font-size: .95rem; letter-spacing: -0.01em;
  padding: 12px 21px; border-radius: var(--r-full);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink-4); }
.btn-ghost { color: var(--ink-2); padding-inline: 10px; }
.btn-ghost:hover { color: var(--navy); }
.btn-ghost .arrow { transition: transform .2s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn.on-dark.btn-secondary { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.btn.on-dark.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.btn.on-dark.btn-primary { background: #fff; color: var(--navy); }
.btn.on-dark.btn-primary:hover { background: var(--wash); }
.btn-lg { padding: 14px 26px; font-size: .98rem; }

/* ---------- Nav -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,251,252,.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: var(--r-full); transition: color .18s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand.sm img { height: 26px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 14px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { padding: 15px 6px; font-size: 1.08rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border-2); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(46px, 7vw, 92px)); padding-bottom: clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 0; }
.hero h1 .line2 { display: block; color: var(--blue); }
.hero .lead { margin-top: 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-trust .t-item { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.hero-trust .t-item svg { width: 15px; height: 15px; color: var(--blue); flex: none; }
.hero-trust .sep { width: 1px; height: 13px; background: var(--border); }

.partner-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 7px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; color: var(--ink-2);
}
.partner-pill b { color: var(--ink); font-weight: 600; }
.partner-pill .tag { font-size: .67rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); background: var(--wash); padding: 4px 9px; border-radius: var(--r-full); }

/* ---------- Product surface card -------------------------------------------- */
.surface-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 22px;
}
.surface-card .sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sc-title { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 560; color: var(--ink-2); }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sc-dot.live { background: var(--blue); }
.sc-dot.live.anim { animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(30,138,192,.35);} 70% { box-shadow: 0 0 0 6px rgba(30,138,192,0);} }
.sc-meta { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-4); letter-spacing: .01em; }

.risk-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 8px 2px 18px; }
.gauge { position: relative; width: 92px; height: 92px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .g-val { position: absolute; inset: 0; display: grid; place-items: center; }
.gauge .g-val b { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.risk-info .r-tier { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--risk); }
.risk-info .r-tier .pip { width: 7px; height: 7px; border-radius: 2px; background: var(--risk); }
.risk-info .r-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -.01em; }
.risk-info .r-sub { font-size: .83rem; color: var(--ink-3); margin-top: 3px; }
.drivers { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--border-2); padding-top: 16px; }
.driver { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--ink-2); }
.driver .bar { flex: 1; height: 5px; border-radius: var(--r-full); background: var(--tint); overflow: hidden; }
.driver .bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.driver .d-val { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-4); width: 34px; text-align: right; }
.driver .d-label { width: 116px; }

.card-caption { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border-2); display: flex; align-items: center; justify-content: space-between; }
.card-caption .cc-txt { font-size: .82rem; color: var(--ink-3); }
.card-caption .cc-val { font-family: var(--font-mono); font-weight: 600; color: var(--navy); font-size: .92rem; }

/* ---------- Logo / partner band --------------------------------------------- */
.logo-band { padding-block: clamp(34px, 4vw, 52px); border-block: 1px solid var(--border); background: var(--bg-2); }
.logo-band .lb-label { text-align: center; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 44px; }
.logo-item { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-3); font-weight: 560; font-size: 1.02rem; letter-spacing: -.01em; }
.logo-item svg { width: 19px; height: 19px; color: var(--ink-4); }

/* ---------- Quiet icon (shared) --------------------------------------------- */
.qic { color: var(--blue); }
.qic svg { width: 24px; height: 24px; stroke-width: 1.6; }

/* ---------- Three-things cards ----------------------------------------------- */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.tri-card { background: var(--surface); padding: 32px 30px; transition: background-color .25s var(--ease); }
.tri-card:hover { background: var(--bg-2); }
.tri-card .num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--blue); font-weight: 500; }
.tri-card h3 { margin: 16px 0 12px; font-size: 1.28rem; }
.tri-card p { font-size: .95rem; color: var(--ink-2); }
.tri-visual { height: 86px; margin-top: 22px; display: flex; align-items: center; }

/* ---------- Pipeline --------------------------------------------------------- */
.pipeline { display: flex; align-items: stretch; gap: 10px; margin-top: 54px; flex-wrap: wrap; }
.pipe-step { position: relative; flex: 1 1 0; min-width: 158px; }
.pipe-card { height: 100%; padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, box-shadow .25s; }
.pipe-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.pipe-step .pn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-full); border: 1px solid var(--navy); color: var(--navy); font-family: var(--font-mono); font-size: .76rem; font-weight: 600; }
.pipe-step h4 { font-size: .98rem; margin: 16px 0 8px; }
.pipe-step p { font-size: .82rem; color: var(--ink-3); line-height: 1.5; }
.pipe-step .arr { position: absolute; top: 36px; right: -11px; z-index: 2; color: var(--blue-300); width: 14px; height: 14px; }
.pipe-step:last-child .arr { display: none; }

/* ---------- Bento ------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 54px; }
.bento-cell { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.bento-cell:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.bento-cell .b-ic { margin-bottom: 18px; color: var(--blue); }
.bento-cell .b-ic svg { width: 24px; height: 24px; stroke-width: 1.6; }
.bento-cell h3 { font-size: 1.22rem; }
.bento-cell h4 { font-size: 1.04rem; }
.bento-cell p { font-size: .92rem; color: var(--ink-2); margin-top: 10px; }
.bento-cell .cpt { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; padding: 4px 9px; border-radius: var(--r-sm); background: var(--tint); color: var(--ink-2); }

.cell-2x2 { grid-column: span 2; grid-row: span 2; }
.cell-2x1 { grid-column: span 2; }
.cell-feature { background: var(--navy-deep); border-color: transparent; }
.cell-feature h3, .cell-feature h4 { color: #fff; }
.cell-feature p { color: var(--on-dark-soft); }
.cell-feature .b-ic { color: var(--blue-300); }

.scribe-demo { margin-top: 22px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 16px; }
.scribe-demo .sd-quote { font-size: .85rem; color: var(--on-dark); line-height: 1.5; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.scribe-demo .sd-line { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; color: var(--on-dark-soft); padding: 4px 0; }
.scribe-demo .sd-line svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--blue-300); }

/* ---------- Feature rows ----------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: center; }
.fr-text > p { margin-top: 18px; }
.fr-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.fr-list li { display: flex; gap: 16px; }
.fr-list .li-ic { flex: none; color: var(--blue); margin-top: 2px; }
.fr-list .li-ic svg { width: 21px; height: 21px; stroke-width: 1.7; }
.fr-list h4 { font-size: 1.02rem; }
.fr-list p { font-size: .9rem; color: var(--ink-2); margin-top: 4px; }

/* ---------- Risk model viz --------------------------------------------------- */
.riskviz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px); margin-top: 52px; }
.riskviz .rv-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.rv-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.signal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.signal { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--border-2); }
.signal .s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.rv-core { display: grid; place-items: center; gap: 12px; }
.rv-core .core-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); border: 1px solid var(--blue-200); }
.rv-core .core-ring svg { width: 40px; height: 40px; color: var(--blue); }
.rv-core .core-label { font-size: .72rem; font-family: var(--font-mono); color: var(--ink-4); text-align: center; letter-spacing: .03em; line-height: 1.5; }
.tier-list { display: flex; flex-direction: column; gap: 12px; }
.tier { padding: 15px 17px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-2); }
.tier .t-head { display: flex; align-items: center; justify-content: space-between; }
.tier .t-tag { font-size: .67rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tier .t-pct { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-4); }
.tier .t-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); margin-top: 6px; letter-spacing: -.01em; }
.tier .t-sub { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.tier.t1 { border-left: 3px solid var(--risk); } .tier.t1 .t-tag { color: var(--risk); }
.tier.t2 { border-left: 3px solid var(--warn); } .tier.t2 .t-tag { color: var(--warn); }
.tier.t3 { border-left: 3px solid var(--ok); }   .tier.t3 .t-tag { color: var(--ok); }
.rv-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.rv-foot .rf h4 { font-size: .96rem; display: flex; align-items: center; gap: 9px; }
.rv-foot .rf h4 svg { width: 17px; height: 17px; color: var(--blue); stroke-width: 1.7; }
.rv-foot .rf p { font-size: .83rem; color: var(--ink-3); margin-top: 8px; }

/* ---------- Dark voice section ---------------------------------------------- */
.dark { background: var(--navy-deep); color: var(--on-dark); }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead { color: var(--on-dark-soft); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.voice-feats { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.vf h4 { font-size: .98rem; display: flex; align-items: center; gap: 10px; }
.vf h4 svg { width: 18px; height: 18px; color: var(--blue-300); flex: none; stroke-width: 1.7; }
.vf p { font-size: .85rem; color: var(--on-dark-soft); margin-top: 8px; line-height: 1.5; }

.call-panel { background: rgba(8,22,52,.55); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-2xl); padding: clamp(22px, 2.5vw, 32px); }
.call-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-soft); }
.call-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-300); }
.call-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: #fff; margin: 16px 0 20px; letter-spacing: -.01em; }
.wave-lg { display: flex; align-items: center; gap: 4px; height: 52px; margin-bottom: 22px; }
.wave-lg i { flex: 1; border-radius: var(--r-full); background: var(--blue-300); opacity: .85; animation: wv 1.3s var(--ease) infinite; }
@keyframes wv { 0%,100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.quote-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 16px 18px; font-size: .9rem; line-height: 1.55; color: var(--on-dark); }
.quote-box .pt { font-size: .64rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 10px; }
.affect-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.affect { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 12px 14px; }
.affect .a-k { font-size: .6rem; font-family: var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-faint); }
.affect .a-v { font-family: var(--font-display); font-size: .96rem; font-weight: 600; margin-top: 5px; letter-spacing: -.01em; }
.affect.concern .a-v { color: #E9B872; }
.affect.high .a-v { color: var(--blue-300); }
.affect.esc .a-v { color: #EE9384; }
.soap .s-lbl { font-size: .64rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 12px; }
.soap .s-line { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--on-dark-soft); padding: 6px 0; }
.soap .s-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke-width: 2; }
.soap .s-line.ok svg { color: var(--ok); }
.soap .s-line.warn svg { color: var(--warn); }

/* ---------- Stats ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat .s-num { font-family: var(--font-display); font-size: clamp(2.3rem, 3.4vw, 3.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: #fff; }
.stat .s-num .unit { color: var(--blue-300); }
.stat .s-cap { margin-top: 14px; font-size: .9rem; color: var(--on-dark-soft); line-height: 1.5; }
.stats-note { margin-top: 32px; font-size: .76rem; color: var(--on-dark-faint); max-width: 760px; line-height: 1.6; }

/* ---------- Programs --------------------------------------------------------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.prog { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: border-color .25s, box-shadow .25s; }
.prog:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.prog .p-top { display: flex; align-items: baseline; justify-content: space-between; }
.prog .p-abbr { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); }
.prog .p-cpt { font-family: var(--font-mono); font-size: .7rem; color: var(--blue); }
.prog .p-name { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.prog .p-desc { font-size: .88rem; color: var(--ink-2); margin-top: 14px; line-height: 1.5; }

/* ---------- Integrations / devices ------------------------------------------ */
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; }
.int-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; }
.int-card .ic-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.int-card .ic-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }
.int-card ul { display: flex; flex-direction: column; gap: 13px; }
.int-card li { display: flex; gap: 12px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.int-card li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue); stroke-width: 2; }
.int-tag { font-size: .67rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }

.devices { margin-top: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; }
.dev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.dev-head h3 { font-size: 1.22rem; }
.dev-head span { font-size: .86rem; color: var(--ink-3); max-width: 440px; }
.dev-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dev { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 16px; min-width: 156px; flex: 1 1 156px; }
.dev .d-ic { color: var(--blue); flex: none; }
.dev .d-ic svg { width: 22px; height: 22px; stroke-width: 1.7; }
.dev .d-name { font-size: .9rem; font-weight: 560; color: var(--ink); }
.dev .d-cond { font-size: .72rem; color: var(--ink-4); font-family: var(--font-mono); }
.enc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.enc-chip { font-size: .8rem; padding: 8px 14px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); }
.enc-chip b { color: var(--ink); font-weight: 560; }

/* ---------- Vision / compare ------------------------------------------------- */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.v-card { padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.v-card .v-ic { color: var(--navy); margin-bottom: 18px; }
.v-card .v-ic svg { width: 26px; height: 26px; stroke-width: 1.6; }
.v-card h3 { font-size: 1.14rem; }
.v-card p { font-size: .92rem; color: var(--ink-2); margin-top: 11px; }

.compare { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--border-2); }
.compare-cell { padding: 16px 22px; font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.compare-cell.h { font-weight: 600; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.compare-cell.h.us { color: var(--navy); }
.compare-row.head { background: var(--bg-2); }
.compare-cell .feat { color: var(--ink-2); }
.compare-cell.us { background: var(--wash); }
.compare-cell svg { width: 16px; height: 16px; flex: none; stroke-width: 2; }
.compare-cell .yes { color: var(--ok); }
.compare-cell .no { color: var(--ink-4); }

/* ---------- Partnership ------------------------------------------------------ */
.partner-block { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.quote-lg { font-family: var(--font-display); font-size: clamp(1.32rem, 1.5vw + 1rem, 1.85rem); line-height: 1.36; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.quote-lg .accent { font-weight: 600; }
.quote-by { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.quote-by .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); flex: none; }
.quote-by .qb-name { font-weight: 600; font-size: .95rem; color: var(--ink); }
.quote-by .qb-role { font-size: .84rem; color: var(--ink-3); }
.partner-facts { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.pf { background: var(--surface); padding: 22px 24px; }
.pf .pf-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.pf .pf-cap { font-size: .86rem; color: var(--ink-2); margin-top: 5px; }

/* ---------- CTA -------------------------------------------------------------- */
.cta-band { background: var(--navy-deep); color: var(--on-dark); border-radius: var(--r-2xl); padding: clamp(52px, 6vw, 88px) clamp(24px, 4vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; max-width: 680px; margin-inline: auto; }
.cta-band .lead { color: var(--on-dark-soft); max-width: 560px; margin: 20px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* ---------- Footer ----------------------------------------------------------- */
.footer { background: var(--navy-deepest); color: var(--on-dark-soft); padding-block: clamp(58px, 6vw, 84px) 36px; }
.footer .f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 28px; }
.footer .f-about { margin-top: 20px; font-size: .9rem; color: var(--on-dark-faint); max-width: 300px; line-height: 1.6; }
.footer .f-col h5 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--on-dark-faint); font-weight: 600; margin-bottom: 16px; }
.footer .f-col a { display: block; font-size: .9rem; color: var(--on-dark-soft); padding: 6px 0; transition: color .18s; }
.footer .f-col a:hover { color: #fff; }
.footer .f-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.footer .f-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer .f-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--on-dark-soft); padding: 6px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-full); }
.footer .f-badge svg { width: 14px; height: 14px; color: var(--blue-300); }
.footer .f-copy { font-size: .82rem; color: var(--on-dark-faint); }
.footer .f-disc { margin-top: 18px; font-size: .73rem; color: var(--on-dark-faint); line-height: 1.6; max-width: 780px; }

/* ---------- Connected-system diagram ---------------------------------------- */
.cn-wrap { display: flex; flex-direction: column; align-items: center; }
.cn-diagram { width: 100%; max-width: 480px; height: auto; }
.cn-link { stroke: var(--blue-200); stroke-width: 1.5; fill: none; }
.cn-ring { stroke: var(--blue-200); stroke-width: 1.3; fill: none; stroke-dasharray: 2 7; opacity: .8; }
.cn-node { fill: #fff; stroke: var(--border); stroke-width: 1; }
.cn-node-label { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; fill: var(--ink); letter-spacing: -.01em; }
.cn-center { fill: var(--navy); }
.cn-ic { stroke: var(--blue); fill: none; }
.cn-caption { margin-top: 20px; font-size: .84rem; color: var(--ink-3); text-align: center; }
.cn-caption b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .cn-ring { animation: cndash 28s linear infinite; }
  @keyframes cndash { to { stroke-dashoffset: -180; } }
  .cn-flow circle { animation: cnflow 3.6s var(--ease) infinite; }
  @keyframes cnflow { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* ---------- Programs compact strip ------------------------------------------ */
.prog-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 44px; }
.ps { background: var(--surface); padding: 20px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; transition: background-color .2s var(--ease); }
.ps:hover { background: var(--bg-2); }
.ps .ps-abbr { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.04rem; letter-spacing: -.02em; }
.ps .ps-name { font-size: .8rem; color: var(--ink-3); display: block; margin-top: 3px; }
.ps .ps-cpt { font-family: var(--font-mono); font-size: .69rem; color: var(--blue); white-space: nowrap; }
@media (max-width: 760px) { .prog-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prog-strip { grid-template-columns: 1fr; } }

/* ---------- Proof strip (light) --------------------------------------------- */
.proof-band { padding-block: clamp(30px, 3.5vw, 46px); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof { text-align: center; position: relative; }
.proof + .proof::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.proof .p-num { font-family: var(--font-display); font-size: clamp(1.5rem, 1.4vw + 1rem, 2.05rem); font-weight: 600; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.proof .p-num .unit { color: var(--blue); }
.proof .p-lbl { font-size: .82rem; color: var(--ink-3); margin-top: 9px; line-height: 1.4; }

/* ---------- Vision / model pillars ------------------------------------------ */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.model-card { padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, box-shadow .25s; }
.model-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.model-card .m-ic { color: var(--blue); margin-bottom: 18px; }
.model-card .m-ic svg { width: 26px; height: 26px; stroke-width: 1.6; }
.model-card .m-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.model-card h3 { font-size: 1.16rem; margin-top: 6px; }
.model-card p { font-size: .92rem; color: var(--ink-2); margin-top: 11px; }

/* big vision statement (dark) */
.vision-statement { text-align: center; max-width: 880px; margin-inline: auto; }
.vision-statement .vs-big { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw + 1rem, 2.7rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; color: #fff; }
.vision-statement .vs-big .accent { color: var(--blue-300); }
.vision-statement .vs-sub { font-size: clamp(1.02rem, .5vw + .95rem, 1.18rem); color: var(--on-dark-soft); margin-top: 24px; line-height: 1.6; }

/* eyebrow as section tag inside dark/light feature rows */
.kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ---------- Risk-scoring graphic -------------------------------------------- */
.risk-graphic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 32px); }
.rg-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.rg-gauge { position: relative; width: 118px; height: 118px; flex: none; }
.rg-gauge svg { transform: rotate(-90deg); }
.rg-gauge .g-val { position: absolute; inset: 0; display: grid; place-items: center; }
.rg-gauge .g-val b { font-family: var(--font-mono); font-size: 2.05rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.rg-gauge .g-sub { position: absolute; left: 0; right: 0; top: 63%; text-align: center; font-family: var(--font-mono); font-size: .58rem; color: var(--ink-4); letter-spacing: .1em; text-transform: uppercase; }
.rg-arc { stroke-dasharray: 264; stroke-dashoffset: 264; }
.reveal.in .rg-arc { animation: rgdraw 1.3s var(--ease) .15s forwards; }
@keyframes rgdraw { to { stroke-dashoffset: var(--rg-target, 61); } }
.rt-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--risk); }
.rt-tag .pip { width: 7px; height: 7px; border-radius: 2px; background: var(--risk); }
.rt-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -.01em; }
.rt-sub { font-size: .84rem; color: var(--ink-3); margin-top: 3px; }
.rg-drivers { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 12px; }
.rg-drv { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--ink-2); }
.rg-drv .l { width: 116px; flex: none; }
.rg-drv .track { flex: 1; height: 6px; border-radius: var(--r-full); background: var(--tint); overflow: hidden; }
.rg-drv .track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.reveal.in .rg-drv .track i { transform: scaleX(1); }
.rg-drv .v { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-4); width: 32px; text-align: right; }
.rg-dist { margin-top: 22px; }
.rd-bar { display: flex; gap: 3px; height: 12px; }
.rd-seg { height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.reveal.in .rd-seg { transform: scaleX(1); }
.rd-seg.t1 { background: var(--risk); } .rd-seg.t2 { background: var(--warn); } .rd-seg.t3 { background: var(--ok); }
.rd-legend { display: flex; justify-content: space-between; margin-top: 12px; }
.rd-legend span { font-size: .74rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.rd-legend .dot { width: 8px; height: 8px; border-radius: 2px; }
.rd-legend b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }

/* signal chips + risk capability list */
.sig-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sig-chip { font-size: .79rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); padding: 7px 13px; display: inline-flex; align-items: center; gap: 7px; }
.sig-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.rg-caps { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; }
.rg-caps .cap h4 { font-size: .96rem; display: flex; align-items: center; gap: 8px; }
.rg-caps .cap h4 svg { width: 16px; height: 16px; color: var(--blue); stroke-width: 1.8; flex: none; }
.rg-caps .cap p { font-size: .83rem; color: var(--ink-3); margin-top: 5px; }

/* voice stat callout */
.vf-stat { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .96rem; color: var(--on-dark-soft); }
.vf-stat b { font-family: var(--font-display); font-size: 1.7rem; color: #fff; font-weight: 600; margin-right: 10px; letter-spacing: -.02em; }

/* EHR flow diagram */
.ehr-flow { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); margin-top: 44px; display: flex; flex-direction: column; align-items: center; }
.ehr-svg { display: block; width: 100%; max-width: 660px; height: auto; }
.ehr-standards { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-4); letter-spacing: .02em; margin-top: 16px; text-align: center; }
.ef-node { fill: #fff; stroke: var(--border); stroke-width: 1.2; }
.ef-node-nav { fill: var(--navy); }
.ef-label { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.01em; fill: var(--ink); }
.ef-label-w { fill: #fff; }
.ef-line { stroke: var(--blue-200); stroke-width: 1.6; fill: none; }
.ef-cap { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-4); letter-spacing: .01em; }
.ef-arrow { fill: var(--blue-300); }

/* ---------- Personal Health Score card -------------------------------------- */
.phs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 30px); }
.phs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phs-user { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.phs-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: .8rem; font-weight: 600; }
.phs-streak { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--blue-700); background: var(--wash); padding: 6px 12px; border-radius: var(--r-full); white-space: nowrap; }
.phs-streak svg { width: 14px; height: 14px; stroke-width: 2; }
.phs-body { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin: 24px 0; }
.phs-rings { position: relative; width: 132px; height: 132px; flex: none; }
.phs-rings svg { transform: rotate(-90deg); }
.phs-score { position: absolute; inset: 0; display: grid; place-items: center; }
.phs-score b { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.phs-arc { stroke-dashoffset: var(--t); }
@media (prefers-reduced-motion: no-preference) { .phs-arc { stroke-dashoffset: var(--c); } .reveal.in .phs-arc { animation: phsdraw 1.2s var(--ease) forwards; } }
@keyframes phsdraw { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--t); } }
.phs-goals { display: flex; flex-direction: column; gap: 13px; }
.phs-goal { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.phs-goal .gd { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.phs-goal b { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; color: var(--ink); font-weight: 600; }
.phs-trend { font-size: .78rem; font-weight: 600; color: var(--ok); margin-top: 2px; }
.phs-social { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border-2); }
.phs-avatars { display: flex; }
.phs-avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -9px; display: grid; place-items: center; font-size: .64rem; font-weight: 600; color: #fff; }
.phs-avatars span:first-child { margin-left: 0; }
.phs-soc-txt { font-size: .84rem; color: var(--ink-2); }
@media (max-width: 480px) { .phs-body { grid-template-columns: 1fr; justify-items: center; } .phs-goals { width: 100%; } }

/* ---------- App consolidation diagram --------------------------------------- */
.consolidate { display: flex; justify-content: center; margin-top: 50px; }
.consolidate svg { width: 100%; max-width: 660px; height: auto; }
.cs-tile { fill: #fff; stroke: var(--border); stroke-width: 1.2; }
.cs-tile-c { fill: var(--navy); }
.cs-line { stroke: var(--blue-200); stroke-width: 1.5; fill: none; stroke-dasharray: 2 6; }
.cs-ic { stroke: var(--blue); fill: none; }
.cs-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); letter-spacing: .04em; }

/* ---------- Embrace pillars -------------------------------------------------- */
.embrace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.embrace-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; transition: border-color .25s, box-shadow .25s; }
.embrace-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.ec-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.ec-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--wash); color: var(--blue); display: grid; place-items: center; flex: none; }
.ec-ic svg { width: 22px; height: 22px; stroke-width: 1.8; }
.ec-head h3 { font-size: 1.18rem; }
.ec-tags { display: flex; flex-direction: column; gap: 14px; }
.ec-tags li { display: flex; align-items: center; gap: 11px; font-size: .96rem; font-weight: 500; color: var(--ink); }
.ec-tags li svg { width: 18px; height: 18px; color: var(--blue); flex: none; stroke-width: 2.4; }
.embrace-card { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.embrace-card:hover { transform: translateY(-3px); }
.model-card { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.model-card:hover { transform: translateY(-3px); }
@media (max-width: 880px) { .embrace-grid { grid-template-columns: 1fr; } }

/* ---------- Pulse / heart-monitor motif (dark sections) --------------------- */
.has-pulse { position: relative; overflow: hidden; }
.has-pulse > .container { position: relative; z-index: 1; }
.pulse-bg { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 0; }
.pulse-bg .pb-line { stroke: var(--blue-300); stroke-width: 2; fill: none; }
.pulse-bg .pb-dot { fill: #BFE3F4; }
.cta-band { position: relative; overflow: hidden; }
.cta-band > :not(.cta-pulse) { position: relative; z-index: 1; }
.cta-pulse { position: absolute; left: 0; top: 34px; width: 100%; height: 52px; z-index: 0; pointer-events: none; }
.cta-pulse .pb-line { stroke: var(--blue-300); stroke-width: 2; fill: none; opacity: .4; }
.cta-pulse .pb-dot { fill: #CDE8F6; }

/* ---------- Reveal ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .07s; }
  .reveal.d2 { transition-delay: .14s; }
  .reveal.d3 { transition-delay: .21s; }
  .reveal.d4 { transition-delay: .28s; }
}

/* ---------- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .cell-2x2 { grid-column: span 2; grid-row: span 1; }
  .cell-2x1 { grid-column: span 2; }
  .rv-foot { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .pipe-step .arr { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin: 4px auto 0; max-width: 480px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .fr-media { order: 0; }
  .voice-grid { grid-template-columns: 1fr; }
  .riskviz .rv-flow { grid-template-columns: 1fr; gap: 30px; }
  .partner-block { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .tri-grid { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer .f-col.f-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .nav-cta .btn-primary { display: none; }
  .proof-row { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .proof + .proof::before { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell-2x2, .cell-2x1 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .voice-feats { grid-template-columns: 1fr; }
  .affect-row { grid-template-columns: 1fr; }
  .rv-foot { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.2fr .9fr .9fr; }
  .compare-cell { padding: 13px 14px; font-size: .82rem; }
  .dev { min-width: 100%; }
  .footer .f-top { grid-template-columns: 1fr; }
  .footer .f-col.f-brand { grid-column: span 1; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* =============================================================================
   PREMIUM POLISH LAYER · ambient gradients, grain, depth, micro-interactions
   ---------------------------------------------------------------------------
   Layered on top of the restrained base. Pale, slow and subtle by intent: the
   navy/cerulean brand stays the lead. These add Apple-grade depth and light
   without garish color and without any gradient text.
   ============================================================================= */

/* ---- Brand-tinted, layered "floating" shadows (one light source) ---- */
:root {
  --shadow-md:
    0 1px 2px rgba(16,34,56,.04),
    0 4px 10px rgba(16,34,56,.05);
  --shadow-lg:
    0 1px 1px rgba(16,34,56,.04),
    0 4px 7px rgba(16,34,56,.04),
    0 10px 20px rgba(16,34,56,.06),
    0 22px 38px rgba(16,34,56,.06);
  --shadow-xl:
    0 2px 4px rgba(16,34,56,.05),
    0 10px 20px rgba(16,34,56,.07),
    0 28px 56px rgba(16,34,56,.11);
}

/* ---- Typographic finishing ---- */
h1, h2, h3, h4, h5 { text-wrap: balance; }
p, .lead, .cn-caption { text-wrap: pretty; }

/* ---- Film grain: one fixed, near-invisible noise layer over the page ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .032; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Hero: pale ambient mesh wash in brand hues ---- */
.hero {
  background:
    radial-gradient(44% 58% at 84% 2%, rgba(30,138,192,.14) 0%, transparent 56%),
    radial-gradient(40% 50% at 6% 20%, rgba(111,183,220,.13) 0%, transparent 55%),
    radial-gradient(72% 72% at 102% 104%, rgba(22,58,120,.045) 0%, transparent 60%),
    var(--bg);
}
/* gentle float for the diagram nodes over the wash */
.cn-node { filter: drop-shadow(0 2px 5px rgba(16,34,56,.06)); }
/* slow breathing halo behind the AI core */
.cn-glow { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .cn-glow { animation: cnglow 6s ease-in-out infinite; }
  @keyframes cnglow {
    0%, 100% { opacity: .5;  transform: scale(1); }
    50%      { opacity: .85; transform: scale(1.07); }
  }
}

/* ---- Dark sections: a quiet cerulean aurora for depth ---- */
.dark {
  background:
    radial-gradient(56% 78% at 88% -6%, rgba(30,138,192,.18) 0%, transparent 55%),
    radial-gradient(52% 80% at 4% 110%, rgba(12,32,73,.55) 0%, transparent 60%),
    var(--navy-deep);
}
.cta-band {
  background:
    radial-gradient(52% 72% at 92% -12%, rgba(30,138,192,.20) 0%, transparent 55%),
    radial-gradient(46% 72% at 4% 112%, rgba(33,83,159,.28) 0%, transparent 60%),
    var(--navy-deep);
}
.cell-feature {
  background:
    radial-gradient(84% 94% at 100% 0%, rgba(30,138,192,.16) 0%, transparent 60%),
    var(--navy-deep);
}
.footer {
  background:
    radial-gradient(58% 46% at 50% -22%, rgba(30,138,192,.09) 0%, transparent 60%),
    var(--navy-deepest);
}

/* ---- Cursor-follow spotlight glow on feature cards ---- */
.bento-cell, .embrace-card, .model-card { position: relative; isolation: isolate; }
.bento-cell::after, .embrace-card::after, .model-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(30,138,192,.12), transparent 62%);
}
.bento-cell:hover::after, .embrace-card:hover::after, .model-card:hover::after { opacity: 1; }
.cell-feature::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(111,183,220,.22), transparent 62%);
}

/* ---- Primary button: light sheen sweep + micro-lift ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -135%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left .65s var(--ease);
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn.on-dark.btn-primary:hover { transform: translateY(-1px); }
