/* attest — landing v2 additions. Loaded after styles.css; everything here is
   scoped under .ds2 (the v2 landing root, which also carries .mk .mk--landing
   .mk--home so the kit's tokens and is-dark theme rules keep applying). */

/* ===== Fixed background stack (behind everything) ===== */
.ds2-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ds2-bg-layer { position: absolute; inset: 0; }

/* ===== Floating chrome: wordmark left, log in / start free right =====
   Shared by the landing (.ds2 root), the kit pages (markup injected by
   ds-marketing-page), and the public pages (floating-chrome.tsx) — all of
   which wrap it in a `.mk` element, so `.mk .ds2-*` selectors cover every
   host and `.mk.is-dark` follows each page's scroll theme. */
.ds2-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(24px, calc((100% - 1180px) / 2 + 24px));
  pointer-events: none;
  isolation: isolate;
}
.ds2-chrome > * { pointer-events: auto; }
.ds2-chrome::before {
  content: '';
  position: absolute;
  inset: -18px 0 auto;
  height: 118px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, .22), rgba(250, 248, 242, .10) 54%, rgba(250, 248, 242, 0));
  backdrop-filter: blur(5px) saturate(108%);
  -webkit-backdrop-filter: blur(5px) saturate(108%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.48) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.48) 70%, transparent 100%);
}
.mk.is-dark .ds2-chrome::before {
  background:
    linear-gradient(180deg, rgba(10, 16, 42, .24), rgba(10, 16, 42, .12) 54%, rgba(10, 16, 42, 0));
  backdrop-filter: blur(6px) saturate(112%);
  -webkit-backdrop-filter: blur(6px) saturate(112%);
}
.ds2-bottom-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  z-index: 80;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(250, 248, 242, .24), rgba(250, 248, 242, .09) 48%, rgba(250, 248, 242, 0));
  backdrop-filter: blur(4px) saturate(106%);
  -webkit-backdrop-filter: blur(4px) saturate(106%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .76) 30%, rgba(0, 0, 0, .32) 70%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .76) 30%, rgba(0, 0, 0, .32) 70%, transparent 100%);
}
.mk.is-dark .ds2-bottom-blur {
  background:
    linear-gradient(0deg, rgba(10, 16, 42, .22), rgba(10, 16, 42, .08) 50%, rgba(10, 16, 42, 0));
}
/* Keeps in-flow content clear of the fixed chrome on pages that don't open
   with a full-viewport hero. */
.ds2-chrome-spacer { height: 84px; }

/* NB: link colors need .mk ancestry — the kit's `.mk a { color: inherit }`
   (0,1,1) would beat a bare class (0,1,0). Wordmark sized with the footer
   brand (52px desktop / 38px mobile) so top and bottom logos match. */
.mk .ds2-brand {
  position: relative; z-index: 1;
  font-family: var(--font-brand); font-weight: 500; font-size: 52px; line-height: 1;
  color: #1E3A8A; transition: color .35s ease;
}
.ds2-chrome-left {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}
.ds2-header-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.mk .ds2-header-nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #1E3A8A;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  transition-property: color, transform, opacity;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.mk .ds2-header-nav-link:hover,
.mk .ds2-header-nav-link:focus-visible {
  color: #17296B;
  transform: translateY(-1px);
  outline: none;
}
.mk .ds2-header-nav-link:active { transform: scale(.96); }
/* Footer wordmark follows (kit default is 80px). */
.mk .mk-footer .mk-brand { font-size: 52px; }
@media (max-width: 860px) {
  .mk .mk-footer .mk-brand { font-size: 38px; }
}
.mk.is-dark .ds2-brand { color: #fff; }
.mk.is-dark .ds2-header-nav-link { color: #C9D6F6; }
.mk.is-dark .ds2-header-nav-link:hover,
.mk.is-dark .ds2-header-nav-link:focus-visible { color: #fff; }
.ds2-mobile-nav { display: none; }
.ds2-mobile-nav-trigger {
  width: 34px;
  height: 34px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #1E3A8A;
  background: color-mix(in srgb, #fff 58%, transparent);
  box-shadow: 0 10px 26px rgba(30, 58, 138, .10);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  cursor: pointer;
  transition-property: background-color, color, transform, box-shadow;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.ds2-mobile-nav-trigger:hover,
.ds2-mobile-nav-trigger:focus-visible {
  background: color-mix(in srgb, #fff 82%, transparent);
  color: #17296B;
  outline: none;
}
.ds2-mobile-nav-trigger:active { transform: scale(.96); }
.ds2-mobile-nav-chevron {
  transition: transform .22s cubic-bezier(.2, 0, 0, 1);
}
.ds2-mobile-nav-chevron.is-open { transform: rotate(180deg); }
.ds2-mobile-nav-menu {
  position: fixed;
  top: 58px;
  left: 16px;
  z-index: 95;
  display: grid;
  min-width: 148px;
  gap: 2px;
  padding: 6px 0;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, #fff 82%, transparent);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(.98);
  transform-origin: top left;
  transition-property: opacity, transform;
  transition-duration: .2s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.ds2-mobile-nav-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.mk .ds2-mobile-nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  color: #1E3A8A;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition-property: color, transform, background-color;
  transition-duration: .16s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.mk .ds2-mobile-nav-link:hover,
.mk .ds2-mobile-nav-link:focus-visible {
  color: #17296B;
  background: rgba(30, 58, 138, .06);
  outline: none;
}
.mk .ds2-mobile-nav-link:active { transform: scale(.96); }
.mk.is-dark .ds2-mobile-nav-trigger {
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}
.mk.is-dark .ds2-mobile-nav-trigger:hover,
.mk.is-dark .ds2-mobile-nav-trigger:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.2);
}
.mk.is-dark .ds2-mobile-nav-menu {
  background: rgba(10, 16, 42, .72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}
.mk.is-dark .ds2-mobile-nav-link { color: #C9D6F6; }
.mk.is-dark .ds2-mobile-nav-link:hover,
.mk.is-dark .ds2-mobile-nav-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.09);
}
/* App-token host (public pages outside the pinned-light kit theme): the
   wordmark follows the app's light/dark brand token, like the old header. */
.mk.ds2-chrome-host .ds2-brand { color: var(--brand-blue, #1E3A8A); }
.ds2-chrome-actions { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; }
.mk .ds2-login {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  background: color-mix(in srgb, #fff 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mk .ds2-login:hover { background: #fff; color: var(--ink); }
.mk.is-dark .ds2-login { color: rgba(255,255,255,.92); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.mk.is-dark .ds2-login:hover { background: rgba(255,255,255,.18); color: #fff; }
/* .mk ancestry so a later-loaded copy of the kit stylesheet (e.g. the shared
   footer's <link>) can't reclaim the button radius. */
.mk .ds2-chrome-cta { border-radius: 999px; }
.ds2-chrome a:focus-visible, .ds2-chrome button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.mk.is-dark .ds2-chrome a:focus-visible,
.mk.is-dark .ds2-chrome button:focus-visible { outline-color: #9FB4E8; }
@media (max-width: 860px) {
  .mk .ds2-brand { font-size: 38px; }
  .ds2-header-nav { gap: 22px; }
  .mk .ds2-header-nav-link { min-height: 40px; font-size: 16px; }
  .ds2-chrome-spacer { height: 62px; }
}
@media (max-width: 640px) {
  .ds2-chrome { padding: 12px 16px; }
  .ds2-chrome::before { height: 98px; }
  .ds2-header-nav { display: none; }
  .ds2-mobile-nav { display: inline-flex; position: relative; z-index: 2; }
  .mk .ds2-login { padding: 8px 12px; font-size: 13px; }
  .mk .ds2-chrome-cta { padding: 8px 13px; font-size: 13px; }
  .mk .ds2-chrome-cta [data-lucide] { display: none; }
}
@media (max-width: 374px) {
  .mk .ds2-login { display: none; }
  .ds2-mobile-nav-menu { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds2-mobile-nav-trigger,
  .ds2-mobile-nav-chevron,
  .ds2-mobile-nav-menu,
  .mk .ds2-mobile-nav-link {
    transition: none;
  }
}

/* ===== Hero ===== */
/* The kit's light radial "clouds" sit above the fixed gradient — fade them
   with the theme so the dark band stays clean. */
.ds2 .mk-hero::before { transition: opacity .5s ease; }
.ds2.is-dark .mk-hero::before { opacity: 0; }

.mk .ds2-hero-h {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); max-width: 900px; margin: 0 auto 34px; text-align: center;
  transition: color .5s ease;
}
.ds2.is-dark .ds2-hero-h { color: #fff; }
/* The slot is left-aligned so the word hugs the sentence (slack trails after
   it, invisible); the small translateX optically re-centers the line against
   that trailing slack. */
.ds2-hero-line { display: inline-flex; align-items: baseline; justify-content: center; gap: .24em; white-space: nowrap; transform: translateX(.3em); }
.ds2-cycle-slot { display: inline-block; width: 7ch; text-align: left; }
.ds2-cycle-word { font-style: italic; color: #1E3A8A; display: inline-block; transition: color .5s ease; }
.mk.is-dark .ds2-cycle-word { color: #9FB4E8; }
@media (max-width: 480px) {
  .mk .ds2-hero-h { font-size: clamp(25px, 7.4vw, 34px); margin-bottom: 26px; }
}

/* Auto-typing prompt is the native placeholder now. */
.ds2 .mk-search-box textarea::placeholder { color: var(--ink-4); opacity: 1; }

/* Rotating border shine — same conic mechanic as the premium CTA (kit
   @property --mkang + mk-cta-spin). Add `ds2-shine` to any rounded surface:
   soft brand glint in light mode, brighter/faster white shine in the dark
   zone. `ds2-shine--ink` keeps the brand glint even when dark (for surfaces
   that stay white, like the orbital card).
   NB: deliberately does NOT set `position` — that would override a host's
   own `absolute` (it broke the orbital popup's centering). Hosts must be
   positioned themselves so the ::before ring can anchor. */
.ds2-shine::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px;
  background: conic-gradient(from var(--mkang),
    transparent 0deg, transparent 70deg,
    rgba(30, 58, 138, .55) 90deg, transparent 110deg,
    transparent 250deg, rgba(94, 58, 110, .4) 270deg, transparent 290deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mk-cta-spin 7s linear infinite;
  pointer-events: none; z-index: 1;
}
.ds2.is-dark .ds2-shine:not(.ds2-shine--ink)::before {
  padding: 1.6px;
  background: conic-gradient(from var(--mkang),
    transparent 0deg, transparent 52deg,
    rgba(214, 226, 255, .95) 80deg, #ffffff 96deg, rgba(214, 226, 255, .95) 112deg, transparent 140deg,
    transparent 232deg, rgba(226, 234, 255, .8) 264deg, #ffffff 280deg, rgba(226, 234, 255, .8) 296deg, transparent 324deg);
  animation: mk-cta-spin 3.4s linear infinite;
}
.mk.is-dark .mk-search-box { box-shadow: 0 0 44px rgba(130, 150, 230, .35), var(--shadow-soft); }

/* Comet glint sweeping the orbit ring (rendered by the orbital component). */
.ds2-orbit-shine { pointer-events: none; }
.ds2-orbit-shine::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--mkang),
    transparent 0deg, transparent 75deg,
    rgba(255, 255, 255, .95) 100deg, transparent 135deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mk-cta-spin 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ds2-shine::before, .ds2-orbit-shine::before { animation: none; opacity: .5; }
}

/* ===== Dark zone wrapper ===== */
.ds2-darkzone { position: relative; z-index: 1; }

/* ===== Orbital section ===== */
.ds2-orbital-sec { padding: 96px 0 28px; }
.ds2-orbital-sec .mk-section-head { margin-bottom: 4px; }
/* Bare wordmark letterform at the orbit center — no tile behind it. */
.ds2-orb-mark {
  position: relative; z-index: 1;
  display: inline-block;
  color: #fff;
  font-family: var(--font-brand); font-weight: 500; font-size: 56px; line-height: 1;
  text-shadow: 0 0 36px rgba(159, 180, 232, .85), 0 0 90px rgba(159, 180, 232, .4);
}

/* ===== Orbit side cards — floating patient-context chips ===== */
.ds2-orbit-stage { position: relative; }
.ds2-orbit-side { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ds2-orbit-pos { position: absolute; width: 236px; }
.ds2-orbit-pos--lt { left: 8px; top: 92px; }
.ds2-orbit-pos--lb { left: 40px; bottom: 116px; }
.ds2-orbit-pos--rt { right: 8px; top: 116px; }
.ds2-orbit-pos--rb { right: 40px; bottom: 92px; }
.ds2-orbit-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  animation: ds2-orbit-float 7s ease-in-out infinite;
}
.ds2-orbit-pos--lb .ds2-orbit-card { animation-delay: -2.4s; }
.ds2-orbit-pos--rt .ds2-orbit-card { animation-delay: -1.2s; }
.ds2-orbit-pos--rb .ds2-orbit-card { animation-delay: -3.6s; }
.ds2-orbit-card .ic {
  width: 34px; height: 34px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(159, 180, 232, .18); color: #C9D6F6;
}
.ds2-orbit-card .ic [data-lucide] { width: 17px; height: 17px; }
.ds2-orbit-card b { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.ds2-orbit-card .t { display: block; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .66); margin-top: 2px; }
@keyframes ds2-orbit-float {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(6px); }
}
@media (max-width: 1080px) {
  .ds2-orbit-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ds2-orbit-card { animation: none; }
}

/* ===== Made-by statement (evidence → orbital bridge) ===== */
.ds2-madeby { text-align: center; padding: 64px 0 0; }
.mk .ds2-madeby-h {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink); margin: 0; transition: color .5s ease;
}
.mk .ds2-madeby-h + .ds2-madeby-h { margin-top: 8px; }
.ds2.is-dark .ds2-madeby-h { color: #fff; }
.mk .ds2-madeby-h--accent { color: var(--brand); }
.ds2.is-dark .ds2-madeby-h--accent { color: #9FB4E8; }

/* ===== Serif (Lora) section headings ===== */
.mk .ds2-h-serif { font-family: var(--font-brand); font-weight: 500; letter-spacing: -0.01em; }

/* ===== Evidence ===== */
.mk .ds2-ev-h { margin: 14px 0; }
.ds2-ev-card {
  /* positioned so the .ds2-shine ::before ring anchors here */
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 18px;
}
.ds2-ev-q {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px;
}
.ds2-ev-q [data-lucide] { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.mk .ds2-ev-a { font-size: 14px; line-height: 1.62; color: var(--ink-2); margin: 14px 2px 0; }
.ds2-ev-a sup, .ds2-ev-rec sup { color: var(--brand); font-weight: 600; }
.ds2-ev-rec {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #C9D4F2;
  background: linear-gradient(180deg, #F4F6FD, #FFFFFF);
}
.ds2-ev-rec-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 7px;
}
.ds2-ev-rec-label [data-lucide] { width: 13px; height: 13px; }
.mk .ds2-ev-rec p { font-size: 13.5px; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 0 0 11px; }
/* References — vertical rows mirroring the app's ClinicalReferenceRow. */
.ds2-ev-refs { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ds2 .ds2-ref { display: flex; gap: 11px; padding: 10px 10px; border-radius: 14px; transition: background-color .18s ease; }
.ds2 a.ds2-ref:hover { background: rgba(62, 85, 166, .08); }
.ds2-ref-num { flex-shrink: 0; padding-top: 1px; font-size: 12px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ds2-ref-body { min-width: 0; flex: 1; display: block; }
.ds2 .ds2-ref-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--brand); }
.ds2 .ds2-ref-title [data-lucide] { display: inline-block; width: 11px; height: 11px; margin-left: 2px; vertical-align: -1px; opacity: .65; }
.ds2-ref-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; }
.ds2-ref-meta--sub { gap: 5px; margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }
.ds2-ref-favicon { width: 12px; height: 12px; border-radius: 3px; opacity: .9; flex-shrink: 0; }
.ds2-ref-journal { font-size: 11px; font-weight: 600; color: var(--brand); }
.ds2-ref-pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(62, 85, 166, .14); color: var(--brand); white-space: nowrap; }
.ds2-ref-pill--grade { background: rgba(184, 119, 91, .14); color: #A05B3F; }
.ds2-ref-sep { color: var(--ink-4); }
.ds2-ref-conf { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #047857; }
.ds2-ref-dot { width: 6px; height: 6px; border-radius: 999px; background: #10B981; flex-shrink: 0; }
/* Dark-zone variants */
.ds2.is-dark .ds2-ref-title { color: #C9D6F6; }
.ds2.is-dark a.ds2-ref:hover { background: rgba(255, 255, 255, .08); }
.ds2.is-dark .ds2-ref-num { color: rgba(255, 255, 255, .5); }
.ds2.is-dark .ds2-ref-journal { color: #9FB4E8; }
.ds2.is-dark .ds2-ref-meta--sub { color: rgba(255, 255, 255, .62); }
.ds2.is-dark .ds2-ref-sep { color: rgba(255, 255, 255, .4); }
.ds2.is-dark .ds2-ref-pill { background: rgba(159, 180, 232, .18); color: #C9D6F6; }
.ds2.is-dark .ds2-ref-pill--grade { background: rgba(240, 198, 166, .16); color: #F0C6A6; }
.ds2.is-dark .ds2-ref-conf { color: #7FD3A3; }

/* The evidence card follows the scroll theme: white paper in the light zone,
   translucent dark surface while the page is dark. */
.ds2 .ds2-ev-card, .ds2 .ds2-ev-q, .ds2 .ds2-ev-a, .ds2 .ds2-ev-rec, .ds2 .ds2-ev-rec p,
.ds2 .ds2-ev-rec-label, .ds2 .ds2-ev-refs { transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
.ds2.is-dark .ds2-ev-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
.ds2.is-dark .ds2-ev-q { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.ds2.is-dark .ds2-ev-q [data-lucide] { color: #9FB4E8; }
.ds2.is-dark .ds2-ev-a { color: rgba(255, 255, 255, .8); }
.ds2.is-dark .ds2-ev-a sup, .ds2.is-dark .ds2-ev-rec sup { color: #9FB4E8; }
.ds2.is-dark .ds2-ev-rec { background: rgba(159, 180, 232, .10); border-color: rgba(159, 180, 232, .28); }
.ds2.is-dark .ds2-ev-rec-label { color: #9FB4E8; }
.ds2.is-dark .ds2-ev-rec p { color: #fff; }
.ds2.is-dark .ds2-ev-refs { border-top-color: rgba(255, 255, 255, .18); }
/* Chip pops stay white tooltips in both themes. */
.ds2.is-dark .ds2-chip-pop b { color: var(--ink); }
.ds2.is-dark .ds2-chip-pop p { color: var(--ink-2); }
.ds2.is-dark .ds2-chip--class { background: rgba(127, 211, 163, .16); border-color: rgba(127, 211, 163, .42); color: #9FE0BC; }
.ds2.is-dark .ds2-chip--loe { background: rgba(159, 180, 232, .16); border-color: rgba(159, 180, 232, .42); color: #C9D6F6; }

/* Chips */
.ds2-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ds2-chip-wrap { position: relative; display: inline-flex; }
.ds2-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  cursor: default; white-space: nowrap;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ds2-chip:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.ds2-chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ds2-chip--class { background: #E6F2EB; border-color: #BFDCCB; color: #1F5E3C; animation: ds2-chip-glow 3.2s ease-in-out infinite; }
.ds2-chip--class:hover { border-color: #2D7A4F; }
.ds2-chip--loe { background: var(--brand-soft); border-color: #C9D4F2; color: var(--brand); }
.ds2-chip--loe:hover { border-color: var(--brand); }
.ds2-chip--ref:hover { border-color: var(--brand); color: var(--brand); }
@keyframes ds2-chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 122, 79, 0); }
  50% { box-shadow: 0 0 0 4px rgba(45, 122, 79, .12); }
}

/* Journal preview popover (hover/focus) */
.ds2-chip-pop {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  width: 252px; max-width: 76vw;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 12px 13px;
  z-index: 40; text-align: left; pointer-events: none;
}
.ds2-chip-pop b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ds2-chip-pop .meta { display: block; font-size: 11px; color: var(--brand); font-weight: 500; margin: 3px 0 6px; }
.mk .ds2-chip-pop p { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ===== Stats — count-up band ===== */
.ds2 .ds2-stats,
.ds2.is-dark .ds2-stats { background: transparent; }
.ds2-stats .mk-statband-grid { margin-top: 8px; }
.mk .ds2-stats .mk-statband-note { margin-top: 30px; }

/* ===== Privacy statement ===== */
.ds2 .ds2-trust,
.ds2.is-dark .ds2-trust,
.ds2 .ds2-cta,
.ds2.is-dark .ds2-cta,
.ds2 .ds2-sec-trust,
.ds2.is-dark .ds2-sec-trust,
.ds2 .ds2-public-section,
.ds2.is-dark .ds2-public-section {
  background: transparent;
}
.ds2-trust { text-align: center; padding: 118px 0 96px; }
.ds2-trust-lines { margin-top: 26px; }
.mk .ds2-trust-h {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.mk .ds2-trust-h + .ds2-trust-h { margin-top: 8px; }
.mk .ds2-trust-h--accent { color: var(--brand); }
.ds2 .ds2-trust-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 32px;
  font-size: 15px; font-weight: 600; color: var(--brand);
}
.ds2-trust-link [data-lucide] { width: 16px; height: 16px; transition: transform .2s ease; }
.ds2-trust-link:hover [data-lucide] { transform: translateX(3px); }

/* ===== Closing CTA ===== */
.ds2-cta { text-align: center; padding: 10px 0 140px; }
.mk .ds2-cta-h {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(44px, 7vw, 84px); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 32px;
}
.ds2-cta a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }

/* ===== Footer — transparent so it never draws a hard top edge. ===== */
.ds2 .mk-footer { background: transparent; color: var(--ink-3); border-top: 0; }
.ds2 .mk-footer > .mk-container { position: relative; z-index: 1; }
.ds2 .mk-footer .mk-brand { color: #1E3A8A; }
.ds2 .mk-footer-brand p { color: var(--ink-3); }
.ds2 .mk-footer-section h2 { color: var(--ink-4); }
.ds2 .mk-footer-section a { color: var(--ink-3); }
.ds2 .mk-footer-section a:hover { color: var(--ink); }
.ds2 .mk-footer-legal { border-top-color: var(--line); color: var(--ink-4); }
.ds2.is-dark .mk-footer { background: transparent; color: rgba(255, 255, 255, .70); border-top: 0; }
.ds2.is-dark .mk-footer .mk-brand { color: #fff; }
.ds2.is-dark .mk-footer-brand p { color: rgba(255, 255, 255, .62); }
.ds2.is-dark .mk-footer-section h2 { color: #9FB4E8; }
.ds2.is-dark .mk-footer-nav a { color: rgba(255, 255, 255, .64); }
.ds2.is-dark .mk-footer-nav a:hover { color: #fff; }
.ds2.is-dark .mk-footer-legal { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .50); }

/* ===== Security page ===== */
/* Full-screen hero: content centered in the first viewport, with a scroll
   runway below so the dark zone begins >1.25vh down and the page loads light
   (same light→dark→light rhythm as the landing's taller hero). */
.ds2-sec-hero { padding: 0 0 30vh; }
.ds2-sec-hero .mk-hero-center {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
/* Hero subhead — turns light as the gradient fades in behind the hero. */
.mk .ds2-sec-lead { max-width: 540px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--ink-2); transition: color .5s ease; }
.ds2.is-dark .ds2-sec-lead { color: rgba(255, 255, 255, .8); }
.ds2-sec-badges { margin-top: 26px; }
.ds2-sec-badges .ds2-cert--hipaa {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(4, 120, 87, .28);
  background:
    radial-gradient(circle at 20% 0%, rgba(187, 247, 208, .75), transparent 42%),
    linear-gradient(135deg, rgba(236, 253, 245, .98), rgba(209, 250, 229, .88));
  color: #065f46;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .82) inset,
    0 10px 24px rgba(4, 120, 87, .14),
    0 2px 7px rgba(4, 120, 87, .08);
}
.ds2-sec-badges .ds2-cert--hipaa::before {
  content: "";
  position: absolute;
  inset: 1px auto 1px 1px;
  z-index: -1;
  width: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(4, 120, 87, .18), rgba(16, 185, 129, .06));
}
.ds2-sec-badges .ds2-cert--hipaa [data-lucide] {
  width: 16px;
  height: 16px;
  color: #047857;
  filter: drop-shadow(0 1px 2px rgba(4, 120, 87, .18));
}
.ds2.is-dark .ds2-sec-badges .ds2-cert--hipaa {
  border-color: rgba(127, 211, 163, .34);
  background:
    radial-gradient(circle at 20% 0%, rgba(127, 211, 163, .28), transparent 44%),
    linear-gradient(135deg, rgba(6, 95, 70, .46), rgba(6, 78, 59, .26));
  color: #D1FAE5;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12) inset,
    0 14px 28px rgba(0, 0, 0, .2),
    0 0 28px rgba(16, 185, 129, .14);
}
.ds2.is-dark .ds2-sec-badges .ds2-cert--hipaa [data-lucide] { color: #86EFAC; }
.ds2-sec-hero-cta { margin-top: 30px; justify-content: center; }

/* Posture card — the right-hand panel of the safeguards split. Reuses the
   evidence-card surface (white in light, translucent in the dark zone); these
   status rows are the security-specific contents. */
.ds2-sec-posture { padding-top: 16px; }
.ds2-sec-rows { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.ds2-sec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid transparent;
}
.ds2-sec-row:hover { background: rgba(62, 85, 166, .06); border-color: rgba(62, 85, 166, .14); }
.ds2-sec-row-ic {
  width: 34px; height: 34px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
}
.ds2-sec-row-ic [data-lucide] { width: 16px; height: 16px; }
.ds2-sec-row-body { min-width: 0; flex: 1; display: block; }
.ds2-sec-row-body b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.ds2-sec-row-body span { display: block; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); margin-top: 1px; }
.ds2-sec-row-status {
  flex: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; color: #047857;
  padding: 3px 9px; border-radius: 999px; background: rgba(4, 120, 87, .10);
}
.ds2-sec-row-status [data-lucide] { width: 12px; height: 12px; }
/* Dark-zone variants (the safeguards split lives inside .ds2-darkzone). */
.ds2 .ds2-sec-row, .ds2 .ds2-sec-row-ic, .ds2 .ds2-sec-row-body b,
.ds2 .ds2-sec-row-body span, .ds2 .ds2-sec-row-status {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}
.ds2.is-dark .ds2-sec-row:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.ds2.is-dark .ds2-sec-row-ic { background: rgba(159, 180, 232, .18); color: #C9D6F6; }
.ds2.is-dark .ds2-sec-row-body b { color: #fff; }
.ds2.is-dark .ds2-sec-row-body span { color: rgba(255, 255, 255, .62); }
.ds2.is-dark .ds2-sec-row-status { color: #7FD3A3; background: rgba(127, 211, 163, .14); }

/* Closing CTA sub-line. */
.mk .ds2-sec-cta-sub { font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: -16px 0 28px; }

/* ===== Trust / about / contact public pages ===== */
.ds2-public-hero { padding: 0 0 20vh; }
.ds2-public-hero .mk-hero-center {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
}
.mk .ds2-public-lead {
  max-width: 680px; margin: 0 auto;
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
  transition: color .5s ease;
}
.ds2.is-dark .ds2-public-lead { color: rgba(255, 255, 255, .8); }
.ds2-public-badges { margin-top: 26px; }
.ds2-public-hero-cta { margin-top: 30px; justify-content: center; }

.ds2-public-section { position: relative; z-index: 1; }
.ds2-public-copy {
  max-width: 610px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  transition: color .5s ease;
}
.ds2.is-dark .ds2-public-copy { color: rgba(255, 255, 255, .76); }
.ds2-public-prose {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 650px;
}
.mk .ds2-public-prose p {
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  transition: color .5s ease;
}
.ds2.is-dark .ds2-public-prose p { color: rgba(255, 255, 255, .76); }

.ds2-public-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ds2-public-card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds2-public-card {
  position: relative;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .5s ease, color .5s ease;
}
.ds2-public-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.ds2-public-card-icon {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  transition: background-color .5s ease, color .5s ease;
}
.ds2-public-card-icon [data-lucide] { width: 18px; height: 18px; }
.ds2-public-card h2,
.ds2-public-card h3 {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 16px; line-height: 1.35; font-weight: 600;
  color: var(--ink);
  transition: color .5s ease;
}
.mk .ds2-public-card p {
  font-size: 13.5px; line-height: 1.58; color: var(--ink-3);
  transition: color .5s ease;
}
.ds2-public-card-meta {
  margin-top: auto;
  display: inline-flex; align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(4, 120, 87, .10);
  color: #047857;
  font-size: 10.5px; line-height: 1.2; font-weight: 600;
  transition: background-color .5s ease, color .5s ease;
}
.ds2-public-card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand);
  font-size: 13.5px; font-weight: 600;
}
.ds2-public-card-link [data-lucide] { width: 14px; height: 14px; transition: transform .18s ease; }
.ds2-public-card-link:hover [data-lucide] { transform: translateX(3px); }

.ds2-public-ledger { padding-top: 16px; }
.ds2-public-rows { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.ds2-public-statement {
  text-align: center;
  padding: 72px 0 104px;
}
.ds2-public-updated {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 30px;
  font-size: 13px; color: var(--ink-3);
}
.ds2-public-updated [data-lucide] { width: 15px; height: 15px; color: #047857; }

.ds2-info-page {
  position: relative;
  z-index: 1;
  padding: 156px 0 96px;
}
.ds2-info-shell { max-width: 900px; }
.ds2-info-header {
  padding-bottom: 36px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.ds2-info-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.ds2-info-header h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.ds2-info-header p {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.ds2-info-body { display: flex; flex-direction: column; }
.ds2-info-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.ds2-info-section:last-child { border-bottom: 0; }
.ds2-info-section h2 {
  margin: 2px 0 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}
.ds2-info-section-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mk .ds2-info-section-body p,
.mk .ds2-info-list li,
.mk .ds2-contact-row p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-2);
}
.ds2-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.ds2-info-section-body a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}
.ds2-info-section-body a:hover { text-decoration: underline; }
.ds2-trust-facts {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 32px rgba(16, 24, 40, .05);
}
.ds2-trust-fact {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(0, 1.8fr) minmax(116px, .7fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.ds2-trust-fact:first-child { border-top: 0; }
.ds2-trust-fact dt {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}
.ds2-trust-fact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ds2-trust-status {
  justify-self: end;
  min-width: 0;
  border-radius: 999px;
  background: rgba(30, 58, 138, .08);
  padding: 4px 9px;
  text-align: center;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700;
  color: var(--brand) !important;
}
.ds2-contact-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-soft);
}
.ds2-contact-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(0, 1.6fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.ds2-contact-row:first-child { border-top: 0; }
.ds2-contact-row h2 {
  margin: 1px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}
.ds2-contact-row a {
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--brand);
}
.ds2-contact-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ds2.is-dark .ds2-public-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.ds2.is-dark .ds2-public-card:hover { border-color: rgba(255, 255, 255, .26); }
.ds2.is-dark .ds2-public-card-icon { background: rgba(159, 180, 232, .18); color: #C9D6F6; }
.ds2.is-dark .ds2-public-card h2,
.ds2.is-dark .ds2-public-card h3 { color: #fff; }
.ds2.is-dark .ds2-public-card p { color: rgba(255, 255, 255, .68); }
.ds2.is-dark .ds2-public-card-meta { color: #7FD3A3; background: rgba(127, 211, 163, .14); }
.ds2.is-dark .ds2-public-card-link { color: #C9D6F6; }

@media (max-width: 980px) {
  .ds2-public-card-grid,
  .ds2-public-card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ds2-public-hero { padding-bottom: 14vh; }
  .ds2-public-hero .mk-hero-center { min-height: 88vh; }
  .ds2-public-card-grid,
  .ds2-public-card-grid--four { grid-template-columns: 1fr; }
  .ds2-public-card { padding: 20px; }
  .ds2-info-page { padding: 112px 0 68px; }
  .ds2-info-header { padding-bottom: 28px; margin-bottom: 18px; }
  .ds2-info-header h1 { font-size: 36px; line-height: 1.08; }
  .ds2-info-header p { font-size: 16px; line-height: 1.62; }
  .ds2-info-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }
  .ds2-contact-list { border-radius: 8px; }
  .ds2-contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  .ds2-trust-fact {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }
  .ds2-trust-status {
    justify-self: start;
    margin-top: 2px;
  }
  .ds2-contact-row a { white-space: normal; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .ds2-chip--class { animation: none; }
  .ds2-brand, .ds2-login, .ds2-cycle-word, .mk .ds2-hero-h { transition: none; }
}

/* ============================================================== *
 * Pinned feature showcase (feature-scroll.tsx)
 * Left text rail scrolls; each block fades fully out before the next
 * fades in. The pinned app-window mock on the right cross-fades during
 * that gap. No section heading, no eyebrows. Lives in .ds2-darkzone, so
 * the white windows are authored as a LIGHT island and glow on indigo.
 * ============================================================== */

.ds2-fs { padding: 0; }
.ds2-fs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}

/* Left rail — spacers let the first block rise from the bottom and the last
   one fully exit; each step is a tall runway so only one is centered. */
.ds2-fs-rail { min-width: 0; }
.ds2-fs-spacer--lead { height: 30vh; }
.ds2-fs-spacer--trail { height: 26vh; }
.ds2-fs-step { min-height: 84vh; display: flex; align-items: center; }
.ds2-fs-step-inner { will-change: opacity, transform; }

.mk .ds2-fs-title {
  font-family: var(--font-brand); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(26px, 3.1vw, 42px); line-height: 1.12;
  color: var(--ink); margin: 0;
  transition: color .5s ease;
}
.ds2.is-dark .ds2-fs-title { color: #fff; }
.mk .ds2-fs-body {
  font-size: 16.5px; line-height: 1.6; color: var(--ink-3); margin: 18px 0 0; max-width: 30em;
  transition: color .5s ease;
}
.ds2.is-dark .ds2-fs-body { color: rgba(255, 255, 255, .72); }
.ds2-fs-vis-inline { display: none; }

/* Right stage — pinned, vertically centered; windows stacked + cross-faded. */
.ds2-fs-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.ds2-fs-sticky { position: relative; width: 100%; }
.ds2-fs-stack { display: grid; }
.ds2-fs-vis {
  grid-area: 1 / 1; align-self: center; justify-self: center; width: 100%;
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.975);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .55s;
  pointer-events: none;
}
.ds2-fs-vis.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  pointer-events: auto;
}

/* The app windows are a LIGHT island: re-assert the app palette over the dark
   band's blanket text rules (`.mk--landing.is-dark p { color:#fff }`). */
.ds2.is-dark .ds2-win { color: var(--ink); }
.ds2.is-dark .ds2-win p { color: var(--ink-2); }
.ds2.is-dark .ds2-win .ds2-ea-rec p,
.ds2.is-dark .ds2-win .ds2-pc-rec p { color: var(--ink); }
.ds2.is-dark .ds2-win .ds2-loe-rec { color: var(--ink-2); }
.ds2.is-dark .ds2-win .ds2-calc-interp { color: rgba(255, 255, 255, .92); }
.ds2.is-dark .ds2-win .ds2-calc-detail { color: rgba(255, 255, 255, .58); }
.ds2.is-dark .ds2-win .ds2-pb-reason { color: rgba(255, 255, 255, .95); }

/* ===== App-window chrome (always light, glowing on the dark band) =====
   Every window is the same fixed size so the pinned stage never jumps. */
.ds2-win {
  width: 100%; height: min(82vh, 768px); overflow: hidden;
  background: #fff; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 2px 6px rgba(8, 12, 40, .18),
    0 36px 90px rgba(8, 12, 40, .5),
    0 0 0 1px rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; color: var(--ink);
}
.ds2-win-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.ds2-win-dots { display: inline-flex; gap: 6px; }
.ds2-win-dots span { width: 10px; height: 10px; border-radius: 999px; background: #DDE0E4; }
.ds2-win-dots span:nth-child(1) { background: #F0A8A0; }
.ds2-win-dots span:nth-child(2) { background: #F2D08A; }
.ds2-win-dots span:nth-child(3) { background: #A9D8A0; }
.ds2-win-label { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.ds2-win-badge { margin-left: auto; display: inline-flex; align-items: center; }
.ds2-win-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 18px; }
/* Shorter demos fill the uniform window so there is no empty canvas: the
   recorder/result settles low, the note + chart content centers in the body. */
.ds2-win--scribe .ds2-win-body,
.ds2-win--calc .ds2-win-body,
.ds2-win--notes .ds2-win-body,
.ds2-win--chart .ds2-win-body { display: flex; flex-direction: column; }
.ds2-win--scribe .ds2-sc-convo { flex: 1 1 auto; min-height: 0; }
.ds2-win--scribe .ds2-sc-foot { margin-top: auto; }
.ds2-win--calc .ds2-calc-rows { flex: 1 1 auto; justify-content: center; }
.ds2-win--notes .ds2-nt-scroll { flex: 1 1 auto; min-height: 0; }
.ds2-win--chart .ds2-pc-body { flex: 1 1 auto; align-content: start; }
.ds2-win--ev .ds2-win-body { display: flex; flex-direction: column; }
.ds2-win--ev .ds2-ea-refs { margin-top: auto; }

/* ===== Inline citation + grade chips (shared by several windows) ===== */
.ds2-cite { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; vertical-align: middle; }
.ds2-cchip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 1.35rem; padding: 2px 8px;
  border: 1px solid rgba(30, 58, 138, .24); border-radius: 999px;
  background: rgba(62, 85, 166, .1); color: var(--brand);
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.ds2-cchip-fav { width: 12px; height: 12px; border-radius: 3px; }
.ds2-gchip {
  display: inline-flex; align-items: center;
  min-height: 1.35rem; padding: 2px 8px;
  border: 1px solid rgba(15, 23, 42, .08); border-radius: 999px;
  font-family: var(--font-brand); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.ds2-gchip[data-strength='strong'] { background: rgba(220, 252, 231, .92); color: #166534; border-color: rgba(22, 101, 52, .2); }
.ds2-gchip[data-strength='moderate'] { background: rgba(254, 249, 195, .92); color: #854d0e; border-color: rgba(133, 77, 14, .18); }
.ds2-gchip[data-strength='weak'] { background: rgba(255, 237, 213, .92); color: #9a3412; border-color: rgba(154, 52, 18, .18); }
.ds2-gchip[data-strength='review'] { background: rgba(254, 226, 226, .92); color: #991b1b; border-color: rgba(153, 27, 27, .18); }
.ds2-gchip[data-strength='chart'] { background: rgba(241, 245, 249, .94); color: #475569; border-color: rgba(71, 85, 105, .16); }
/* Hover popovers: every cite/grade chip reveals its card on hover or focus. */
.ds2-cchip-wrap, .ds2-gchip-wrap { position: relative; display: inline-flex; outline: none; }
/* Cards open UPWARD (chips always sit below a header, so there is room above and
   they never get clipped by the window's bottom edge). */
.ds2-pop {
  position: absolute; bottom: calc(100% + 9px); left: 0;
  transform: translateY(5px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  z-index: 50; text-align: left;
  /* Reset the nowrap the chips set on their row so card text wraps in the box. */
  white-space: normal;
}
.ds2-cchip-wrap:hover .ds2-pop, .ds2-cchip-wrap:focus-within .ds2-pop,
.ds2-gchip-wrap:hover .ds2-pop, .ds2-gchip-wrap:focus-within .ds2-pop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
/* Chips at the right end of a line open the card leftward to stay in the window. */
.ds2-nt-chips .ds2-pop,
.ds2-ea-hl .ds2-pop { left: auto; right: 0; }
/* The answer chips sit high in the window, so their cards open downward. */
.ds2-ea-ans .ds2-pop { top: calc(100% + 9px); bottom: auto; left: 0; right: auto; transform: translateY(-5px); }

/* Class / Level-of-evidence card */
.ds2-loe {
  width: 264px; max-width: 78vw;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ds2-loe-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-left: 3px solid #047857; background: linear-gradient(90deg, rgba(4, 120, 87, .09), transparent);
}
.ds2-loe[data-cls='2a'] .ds2-loe-head { border-left-color: #b45309; background: linear-gradient(90deg, rgba(180, 83, 9, .09), transparent); }
.ds2-loe[data-cls='2a'] .ds2-loe-loe { color: #b45309; border-color: rgba(180, 83, 9, .3); }
.ds2-loe-class { font-family: var(--font-brand); font-size: 14px; font-weight: 600; color: var(--ink); }
.ds2-loe-loe { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #047857; border: 1px solid rgba(4, 120, 87, .3); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.ds2-loe-sys { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.ds2-loe-rec { display: block; font-family: var(--font-brand); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); padding: 10px 12px; overflow-wrap: break-word; }
.ds2-loe-src { display: flex; align-items: flex-start; gap: 5px; font-size: 10.5px; line-height: 1.4; color: var(--ink-3); padding: 8px 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ds2-loe-src [data-lucide] { width: 11px; height: 11px; color: var(--brand); flex: none; margin-top: 1px; }

/* Citation / journal card */
.ds2-jcard {
  width: 264px; max-width: 78vw; padding: 12px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.ds2-jcard-head { display: flex; align-items: center; gap: 9px; }
.ds2-jcard-mono { width: 30px; height: 30px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.ds2-jcard-jt { min-width: 0; }
.ds2-jcard-jt b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.ds2-jcard-type { display: block; font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.ds2-jcard-title { display: block; font-family: var(--font-brand); font-size: 12.5px; line-height: 1.4; color: var(--ink); margin-top: 9px; overflow-wrap: break-word; }
.ds2-jcard-meta { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 5px; }

/* ===== Visual 1 — Evidence answer ===== */
.ds2-ea-qrow { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.ds2-ea-q-bubble {
  display: inline-block; max-width: 84%; text-align: left;
  font-size: 13px; line-height: 1.45; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; border-bottom-right-radius: 5px; padding: 9px 13px;
}
.mk .ds2-ea-ans { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 2px; }
.ds2-ea-ans .ds2-cite { display: flex; margin-top: 9px; }
/* Highlights block */
.ds2-ea-hl { margin-top: 13px; padding: 11px 13px; border-radius: 12px; background: rgba(219, 234, 254, .42); border: 1px solid rgba(30, 58, 138, .14); }
.ds2-ea-hl-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-brand); font-size: 13.5px; font-weight: 500; color: var(--brand); }
.ds2-ea-hl-label [data-lucide] { width: 14px; height: 14px; }
.ds2-ea-hl ul { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ds2-ea-hl li { display: flex; gap: 9px; }
.mk .ds2-ea-hl li > span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ds2-ea-hl-dot { flex: none; margin-top: 7px; width: 5px; height: 5px; border-radius: 999px; background: var(--brand); }
.ds2-ea-hl .ds2-cite { display: inline-flex; margin-left: 5px; vertical-align: middle; }
.ds2-ea-rec {
  margin-top: 14px; padding: 12px 13px; border-radius: 12px;
  border: 1px solid #C9D4F2; background: linear-gradient(180deg, #F4F6FD, #FFFFFF);
}
.ds2-ea-rec-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.ds2-ea-rec-label [data-lucide] { width: 13px; height: 13px; }
.mk .ds2-ea-rec p { font-size: 13px; line-height: 1.5; color: var(--ink); font-weight: 500; margin: 0 0 9px; }
.ds2-ea-refs { margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--line); }
.ds2-ea-refs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.ds2-ea-refs-head > span:first-child { font-family: var(--font-brand); font-size: 16px; font-weight: 500; color: var(--brand); }
.ds2-ea-refs-count { font-size: 11px; color: var(--ink-4); }
.ds2-ea-ref { display: flex; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.ds2-ea-ref-num { flex-shrink: 0; padding-top: 1px; font-size: 12px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ds2-ea-ref-body { min-width: 0; flex: 1; display: block; }
.ds2-ea-ref-title { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--brand); }
.ds2-ea-ref-title [data-lucide] { display: inline-block; width: 11px; height: 11px; margin-left: 2px; vertical-align: -1px; opacity: .6; }
.ds2-ea-ref-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.ds2-ea-ref-fav { width: 12px; height: 12px; border-radius: 3px; opacity: .9; }
.ds2-ea-ref-journal { font-size: 11px; font-weight: 600; color: var(--brand); }
.ds2-ea-ref-pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(62, 85, 166, .14); color: var(--brand); white-space: nowrap; }
.ds2-ea-ref-pill--class1 { background: rgba(22, 101, 52, .12); color: #166534; }
.ds2-ea-ref-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }
.ds2-ea-ref-sep { color: var(--ink-4); }
.ds2-ea-ref-conf { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #047857; }
.ds2-ea-ref-dot { width: 6px; height: 6px; border-radius: 999px; background: #10B981; }

/* ===== Visual 2 — Note editor (tabs + toolbar) ===== */
.ds2-nt-tabs { display: flex; align-items: center; gap: 4px; }
.ds2-nt-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-4);
  padding: 6px 11px; border-radius: 9px;
}
.ds2-nt-tab-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-4); opacity: .5; }
.ds2-nt-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 20, 28, .06); }
.ds2-nt-tab.is-active .ds2-nt-tab-dot { background: #2E4399; opacity: 1; }
.ds2-nt-save { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line); background: #fff; padding: 4px 11px; border-radius: 999px; }
.ds2-nt-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ds2-nt-toolgroup { display: inline-flex; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.ds2-nt-toolgroup:last-child { border-right: 0; padding-right: 0; }
.ds2-nt-toolbtn { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.ds2-nt-toolbtn [data-lucide] { width: 14px; height: 14px; }
/* Scroll-area (fluidfunctionalism style): thin overlay scrollbar + edge fades
   that cue more content rather than a hard, clipped edge. */
.ds2-nt-scroll { position: relative; display: flex; min-height: 0; }
.ds2-nt-doc {
  position: relative; flex: 1 1 auto; width: 100%;
  padding-top: 13px; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(15, 17, 21, .18) transparent;
}
.ds2-nt-doc::-webkit-scrollbar { width: 5px; }
.ds2-nt-doc::-webkit-scrollbar-track { background: transparent; }
.ds2-nt-doc::-webkit-scrollbar-thumb { background: rgba(15, 17, 21, .16); border-radius: 999px; }
.ds2-nt-doc:hover::-webkit-scrollbar-thumb { background: rgba(15, 17, 21, .28); }
.ds2-nt-fade {
  position: absolute; left: 0; right: 6px; height: 30px; z-index: 3;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.ds2-nt-fade.is-on { opacity: 1; }
.ds2-nt-fade--top { top: 0; background: linear-gradient(180deg, #fff 12%, rgba(255, 255, 255, 0)); }
.ds2-nt-fade--bottom { bottom: 0; background: linear-gradient(0deg, #fff 12%, rgba(255, 255, 255, 0)); }
.mk .ds2-nt-title { font-family: var(--font-brand); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 9px; }
/* Uppercase indigo section headings (the real editor's standalone-heading style). */
.ds2-nt-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin: 13px 0 4px; }
.mk .ds2-nt-p { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 2px; }
.ds2-nt-p strong { color: var(--ink); font-weight: 700; }
.ds2-nt-ul { list-style: disc; margin: 0; padding: 0 0 0 18px; }
.mk .ds2-nt-ul li { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.ds2-nt-sys { display: flex; flex-direction: column; gap: 1px; }
.mk .ds2-nt-sysrow { font-size: 12px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.ds2-nt-sysl { font-weight: 700; color: var(--ink); }
.ds2-nt-prob { margin-top: 8px; }
.ds2-nt-prob-h { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.ds2-nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds2-nt-li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ds2-nt-li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 999px; background: var(--brand); }
.ds2-nt-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }

/* ===== Visual 3 — Ambient scribe (realistic waveform) ===== */
.ds2-sc-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; color: #047857;
  background: #E6F6EE; border: 1px solid #BFE3CF; border-radius: 999px; padding: 3px 9px;
}
.ds2-sc-live-dot { width: 6px; height: 6px; border-radius: 999px; background: #10B981; animation: ds2-sc-pulse 2.4s ease-in-out infinite; }
@keyframes ds2-sc-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, .4); } 50% { opacity: .55; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); } }
.ds2-sc-cc {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
}
.ds2-sc-cc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); }
.ds2-sc-cc-val { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.ds2-sc-convo { display: flex; flex-direction: column; gap: 9px; }
.ds2-sc-row { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.ds2-sc-row--md { align-items: flex-end; align-self: flex-end; }
.ds2-sc-row--pt { align-items: flex-start; align-self: flex-start; }
.ds2-sc-spk { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ds2-sc-row--md .ds2-sc-spk { color: rgba(37, 99, 235, .95); }
.ds2-sc-row--pt .ds2-sc-spk { color: #047857; }
.ds2-sc-bubble { font-size: 12.5px; line-height: 1.5; border-radius: 16px; padding: 8px 12px; }
.ds2-sc-row--md .ds2-sc-bubble { background: rgba(37, 99, 235, .12); color: #1B2A6B; box-shadow: 0 1px 2px rgba(37, 99, 235, .12); border-bottom-right-radius: 5px; }
.ds2-sc-row--pt .ds2-sc-bubble { background: #E7F6EE; color: #14532D; box-shadow: 0 1px 2px rgba(6, 95, 70, .1); border-bottom-left-radius: 5px; }
.ds2-sc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ds2-sc-wave {
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  width: 100%; height: 54px; padding: 0 14px; border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px solid var(--line); overflow: hidden;
}
.ds2-sc-bar {
  flex: 0 0 auto; width: 3px; border-radius: 999px;
  background: rgba(37, 99, 235, .2);
  transform: scaleY(.85); transform-origin: center;
  animation: ds2-sc-breathe 4.2s ease-in-out infinite;
}
.ds2-sc-bar.is-played { background: rgba(37, 99, 235, .82); }
@keyframes ds2-sc-breathe { 0%, 100% { transform: scaleY(.82); } 50% { transform: scaleY(1.08); } }
.ds2-sc-transport { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ds2-sc-timer { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ds2-sc-btns { display: inline-flex; gap: 6px; }
.ds2-sc-btn { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: rgba(37, 63, 180, .92); background: rgba(37, 99, 235, .08); }
.ds2-sc-btn [data-lucide] { width: 15px; height: 15px; fill: currentColor; }

/* ===== Visual 4 — Persistent patient context (de-identified) ===== */
.ds2-pb { margin: -18px -18px 0; padding: 14px 18px; background: #1E3A8A; color: #fff; display: flex; align-items: center; gap: 13px; }
.ds2-pb-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .02em;
}
.ds2-pb-main { min-width: 0; }
.ds2-pb-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: rgba(255, 255, 255, .7); }
.ds2-pb-day { color: #BBF7D0; }
.ds2-pb-sep { color: rgba(255, 255, 255, .4); padding: 0 2px; }
.ds2-pb-reason { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .95); margin-top: 4px; }
.ds2-pc-body { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
.ds2-pc-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); margin-bottom: 7px; }
.ds2-pc-col > .ds2-pc-h + .ds2-pc-tags { margin-bottom: 14px; }
.ds2-pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ds2-pc-tag { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 4px 10px; }
.ds2-pc-vitals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ds2-pc-vital { font-size: 12px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
.ds2-pc-vital b { font-weight: 700; color: var(--ink-4); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-right: 5px; }
.ds2-tl { display: flex; flex-direction: column; }
.ds2-tl-row { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.ds2-tl-row.is-last { padding-bottom: 0; }
.ds2-tl-dot { position: relative; z-index: 1; flex: none; margin-top: 3px; width: 11px; height: 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 0 0 3px rgba(136, 136, 136, .1); }
.ds2-tl-dot.is-today { background: #2E4399; border-color: #3E55A6; box-shadow: 0 0 0 3px rgba(30, 58, 138, .18); }
.ds2-tl-row:not(.is-last)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 4px; width: 1px; background: repeating-linear-gradient(to bottom, rgba(136, 136, 136, .5) 0 5px, transparent 5px 9px); }
.ds2-tl-c { min-width: 0; padding-bottom: 2px; }
.ds2-tl-head { display: flex; align-items: baseline; gap: 8px; }
.ds2-tl-day { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ds2-tl-day.is-today { color: #3E55A6; }
.ds2-tl-date { font-size: 10.5px; color: var(--ink-4); }
.mk .ds2-tl-body { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); margin: 2px 0 0; }
.ds2-pc-rec { padding: 12px 13px; border-radius: 12px; border: 1px solid #C9D4F2; background: linear-gradient(180deg, #F4F6FD, #FFFFFF); }
.ds2-pc-rec-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.ds2-pc-rec-label [data-lucide] { width: 13px; height: 13px; }
.mk .ds2-pc-rec p { font-size: 12.5px; line-height: 1.5; color: var(--ink); font-weight: 500; margin: 0 0 8px; }

/* ===== Visual 5 — Functional CHA2DS2-VASc calculator ===== */
.ds2-calc-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.ds2-calc-ic { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.ds2-calc-ic [data-lucide] { width: 17px; height: 17px; }
.ds2-calc-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.ds2-calc-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.ds2-calc-rows { display: flex; flex-direction: column; padding: 4px 0; }
.ds2-calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ds2-calc-row:last-child { border-bottom: 0; }
.ds2-calc-label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.ds2-calc-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: var(--bg-soft); width: 104px; }
.ds2-calc-seg--age { grid-template-columns: repeat(3, 1fr); width: 140px; }
.ds2-calc-seg button { font-size: 11px; font-weight: 600; text-align: center; padding: 5px 0; border-radius: 6px; color: var(--ink-3); background: transparent; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s ease, color .15s ease; }
.ds2-calc-seg button:hover { color: var(--ink); }
.ds2-calc-seg button.is-on { background: #1E3A8A; color: #fff; box-shadow: 0 1px 2px rgba(17, 20, 28, .14); }
.ds2-calc-result { margin-top: 14px; padding: 16px; border-radius: 16px; background: #1E3A8A; color: #fff; }
.ds2-calc-result-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ds2-calc-val { font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ds2-calc-val-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin-top: 6px; }
.ds2-calc-result-chip { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); padding: 3px 9px; border-radius: 7px; }
.mk .ds2-calc-interp { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin: 14px 0 0; }
.mk .ds2-calc-detail { font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .58); margin: 7px 0 0; }
.ds2-calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.ds2-calc-src { font-size: 11px; color: var(--ink-3); }
.ds2-calc-insert { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid #C9D4F2; border-radius: 9px; padding: 6px 11px; }
.ds2-calc-insert [data-lucide] { width: 13px; height: 13px; }

/* ===== Mission statement — big serif that reveals word-by-word on scroll =====
   The section is a tall runway; the statement pins (sticky) and each word
   brightens from grey to ink as you scroll down (driven from feature-scroll). */
.ds2-mission { position: relative; height: 215vh; }
.ds2-mission-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.mk .ds2-mission-h {
  font-family: var(--font-brand); font-weight: 500; letter-spacing: -0.012em;
  font-size: clamp(28px, 4.6vw, 60px); line-height: 1.2;
  margin: 0; max-width: 17em; text-align: left;
}
.ds2-mission-w { color: var(--ink); opacity: .16; transition: opacity .15s ease; }
.ds2-mission-accent { color: var(--brand); }
.ds2.is-dark .ds2-mission-w { color: #fff; }
.ds2.is-dark .ds2-mission-accent { color: #9FB4E8; }
@media (prefers-reduced-motion: reduce) { .ds2-mission-w { opacity: 1 !important; transition: none; } }

/* ===== Privacy gets its own dedicated screen ===== */
.ds2 .ds2-trust {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px; padding-bottom: 72px;
}
/* The CTA sits low, close to the footer, sharing the closing screen. */
.ds2 .ds2-cta { padding: 22vh 0 60px; }

/* ===== Showcase — responsive + reduced motion ===== */
@media (max-width: 1180px) {
  .ds2-fs-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .ds2-fs-grid { grid-template-columns: 1fr; gap: 0; }
  .ds2-fs-stage, .ds2-fs-spacer { display: none; }
  .ds2-fs-step { min-height: 0 !important; display: block; padding: 30px 0 44px; }
  .ds2-fs-step-inner { opacity: 1 !important; transform: none !important; }
  .ds2-fs-vis-inline { display: block; margin-top: 22px; }
  .ds2-fs-vis-inline .ds2-win { height: auto; }
  /* The note is intentionally long; keep it a fixed window (scrolled to the
     cited A&P) on mobile instead of an endless inline block. */
  .ds2-fs-vis-inline .ds2-win--notes { height: 78vh; max-height: 600px; }
  .ds2-fs-vis-inline .ds2-win--notes .ds2-nt-doc { overflow: hidden; }
  .ds2-pc-body { gap: 16px; }
  /* Hover/focus cards are a pointer affordance; drop them on touch screens
     (no hover, and they would be clipped by the windows). The chips remain. */
  .ds2-pop { display: none; }
  .ds2-mission { height: auto; padding: 80px 0 60px; }
  .ds2-mission-sticky { position: static; min-height: 0; }
  .ds2-mission-w { opacity: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ds2-fs-step-inner,
  .ds2-fs-vis { transition: none; }
  .ds2-sc-bar,
  .ds2-sc-live-dot,
  .ds2-loe { animation: none; }
}


/* ============================================================== *
 * Impact stats — copy scrolls (left), live counters pin (right)
 * ============================================================== */
.ds2-stats { position: relative; }
.ds2-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 48px; align-items: stretch;
}
/* Left copy: a tall rail so the right counters pin while it scrolls past. The
   right column stretches to match, giving the sticky numbers their runway. */
.ds2-stats-text { text-align: left; min-height: 138vh; display: flex; flex-direction: column; justify-content: center; }
.ds2-stats .ds2-stats-text .mk-eyebrow { justify-content: flex-start; }
.mk .ds2-stats-h { margin: 14px 0 0; text-align: left; }
.mk .ds2-stats-lead { font-size: 16px; line-height: 1.62; color: var(--ink-3); margin: 18px 0 0; max-width: 30em; }
.ds2.is-dark .mk .ds2-stats-lead { color: rgba(255, 255, 255, .72); }

/* Pinned, borderless live counters: big number left, label centered to the right. */
.ds2-stats-numbers { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 60px; padding-left: clamp(24px, 12%, 140px); }
.ds2-stats-counter-row { display: flex; align-items: center; gap: 30px; }
.ds2-stats-num {
  flex: none; min-width: 3.6ch; text-align: right;
  font-family: var(--font-display); font-size: clamp(48px, 5.6vw, 80px); font-weight: 600;
  line-height: 1; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums;
  transition: color .5s ease;
}
.ds2.is-dark .ds2-stats-num { color: #9FB4E8; }
.mk .ds2-stats-lbl { font-size: 16.5px; line-height: 1.4; color: var(--ink-3); max-width: 13em; transition: color .5s ease; }
.ds2.is-dark .ds2-stats-lbl { color: rgba(255, 255, 255, .74); }

/* HIPAA compliance badge (centered in the privacy statement) */
.ds2-hipaa {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 30px;
  padding: 10px 14px 10px 11px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 253, 245, .98), rgba(209, 250, 229, .9));
  border: 1px solid rgba(4, 120, 87, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 10px 26px rgba(4, 120, 87, .14);
}
.ds2-hipaa-ic { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(4, 120, 87, .12); color: #047857; }
.ds2-hipaa-ic [data-lucide] { width: 18px; height: 18px; }
.ds2-hipaa-tx { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.ds2-hipaa-tx b { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #065f46; }
.ds2-hipaa-tx span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #047857; }
.ds2-hipaa-seal { margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #047857; background: #fff; border: 1px solid rgba(4, 120, 87, .3); border-radius: 999px; padding: 3px 9px; }

@media (max-width: 900px) {
  .ds2 .ds2-stats { padding: 64px 0; }
  .ds2-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .ds2-stats-text { text-align: center; min-height: 0; }
  .ds2-stats .ds2-stats-text .mk-eyebrow { justify-content: center; }
  .mk .ds2-stats-h { text-align: center; }
  .mk .ds2-stats-lead { margin-left: auto; margin-right: auto; }
  .ds2-stats-numbers { position: static; height: auto; gap: 26px; }
  .ds2-stats-counter-row { justify-content: center; }
  .ds2-stats-num { min-width: 0; }
}

/* ============================================================== *
 * Footer — grouped nav (bottom right) over a background wordmark
 * ============================================================== */
.ds2 .ds2-footer {
  position: relative; overflow: hidden; padding: 0;
  min-height: 60vh; display: flex; align-items: flex-end;
}
.ds2 .ds2-footer-wordmark {
  position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%); z-index: 0;
  margin: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--font-brand); font-weight: 500; line-height: .8; letter-spacing: -0.02em;
  font-size: clamp(110px, 27vw, 420px);
  background: linear-gradient(180deg, #C2C6CD, #E2E4E9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ds2.is-dark .ds2-footer-wordmark { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); -webkit-background-clip: text; background-clip: text; }
.ds2 .ds2-footer-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 36px; }
.ds2 .ds2-footer-nav { justify-content: flex-end; gap: 60px; }
.ds2 .ds2-footer .mk-footer-legal { margin-top: 28px; text-align: right; border-top: 0; padding-top: 0; }
@media (max-width: 860px) {
  .ds2 .ds2-footer { min-height: 48vh; }
  .ds2 .ds2-footer-nav { justify-content: center; gap: 40px; }
  .ds2 .ds2-footer .mk-footer-legal { text-align: center; }
}
