/*
 * MedSync PM — standalone medical brand system.
 *
 * Deliberately shares nothing visual with REV DE$K: warm off-white instead of
 * black, clinical teal instead of gold, Swiss grotesk instead of Cormorant.
 * A hospital compliance officer should read this as clinical infrastructure,
 * not as an agency sales page.
 */

:root {
  /* Hospital-grade B — distinct from REV DE$K cinema palette */
  --ms-navy:       #071A2B;
  --ms-paper:      #F4F8FA;
  --ms-clinical:   #EEF4F7;
  --ms-white:      #FFFFFF;
  --ms-ink:        #071A2B;
  --ms-body:       #4A5F6E;
  --ms-quiet:      #7A8F9C;
  --ms-rule:       #D8E4EA;
  --ms-teal:       #1B9AAA;
  --ms-teal-lift:  #158999;
  --ms-teal-dark:  #5EC4D4;
  --ms-dark-body:  #B8C8D4;

  --ms-gutter: clamp(20px, 5vw, 72px);
  --ms-max: 1200px;
  --ms-section: clamp(72px, 11vw, 140px);

  /* IBM Plex + Source Serif — clinical infrastructure, not REV DE$K cinema */
  --ms-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ms-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Lang pairs use [hidden]. Nav/buttons set display:flex and would show both. */
[hidden] {
  display: none !important;
}

.brand-mark sup, .tm { font-size: 0.58em; font-weight: 600; opacity: 0.9; vertical-align: super; line-height: 0; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(27, 154, 170, 0.08), transparent 58%),
    var(--ms-paper);
  color: var(--ms-ink);
  font-family: var(--ms-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ms-preview-banner {
  display: none;
  background: linear-gradient(90deg, var(--ms-navy), #0d2d45);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  font-weight: 500;
}
body.ms-local-preview .ms-preview-banner { display: block; }

[data-ms-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ms-stagger, 0) * 1ms);
}
[data-ms-reveal].ms-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-ms-reveal] { opacity: 1; transform: none; transition: none; }
}

img, video { max-width: 100%; display: block; }

a { color: var(--ms-teal); }

:focus-visible {
  outline: 2px solid var(--ms-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.ms-shell {
  max-width: var(--ms-max);
  margin: 0 auto;
  padding-inline: var(--ms-gutter);
}

.ms-section { padding-block: var(--ms-section); }

/* ── Type scale ─────────────────────────────────────────────────────────── */
/* Sized so the longer Spanish headline still lands in three lines on a
   1024-wide laptop, which is the narrowest screen this page is sold from. */
.ms-display {
  font-family: var(--ms-serif);
  font-size: clamp(2.05rem, 4.3vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.ms-h2 {
  font-family: var(--ms-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.ms-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.62;
  color: var(--ms-body);
  margin: 1.1rem 0 0;
  max-width: 46ch;
}

.ms-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ms-teal);
  font-weight: 600;
  margin: 0 0 1.1rem;
}

.ms-caption {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ms-quiet);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* Big light numerals are the one expressive move in the system. */
.ms-numeral {
  font-size: clamp(2.9rem, 6.5vw, 4.6rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5rem;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ── Controls ───────────────────────────────────────────────────────────── */
.ms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 0.97rem;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  touch-action: manipulation;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.ms-btn-primary { background: var(--ms-teal); color: #fff; }
.ms-btn-primary:hover { background: var(--ms-teal-lift); }

.ms-btn-ghost {
  background: transparent;
  color: var(--ms-ink);
  border-color: var(--ms-rule);
}
.ms-btn-ghost:hover { border-color: var(--ms-quiet); }

.ms-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ms-teal);
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-block: clamp(18px, 2.5vw, 28px);
  background: rgba(244, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ms-header--scrolled {
  border-bottom-color: var(--ms-rule);
  box-shadow: 0 12px 40px -24px rgba(7, 26, 43, 0.18);
}

.ms-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ms-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ms-ink);
  text-decoration: none;
}

.ms-wordmark span {
  font-weight: 400;
  color: var(--ms-body);
  padding-left: 11px;
  border-left: 1px solid var(--ms-rule);
}

.ms-lang {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ms-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--ms-rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  white-space: nowrap;
}
.ms-lang:hover { color: var(--ms-teal); border-color: var(--ms-teal); }
html[lang="es"] .ms-lang { background: #071A2B; color: #F4F7F8; border-color: #071A2B; }
.ms-lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ms-rule);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  flex-shrink: 0;
}
.ms-lang-switch button {
  min-height: 44px;
  min-width: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ms-body);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  touch-action: manipulation;
}
.ms-lang-switch button[aria-pressed="true"] {
  background: #071A2B;
  color: #F4F7F8;
}
.ms-vertical-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ms-vertical-head .ms-lang-switch { margin-top: 2px; }
.ms-diagram [hidden] { display: none !important; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.ms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 88px) clamp(56px, 9vw, 116px);
  position: relative;
}

.ms-hero-visual {
  position: relative;
  isolation: isolate;
}
.ms-hero-mark {
  position: absolute;
  top: -12%;
  right: -2%;
  width: min(168px, 28%);
  aspect-ratio: 1;
  z-index: 5;
  pointer-events: none;
}
.ms-hero::after {
  content: "";
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  right: -8%;
  top: -12%;
  background: radial-gradient(circle, rgba(27, 154, 170, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.ms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27, 154, 170, 0.1);
  border: 1px solid rgba(27, 154, 170, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-teal-lift);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.ms-prepared {
  color: var(--ms-teal);
  margin-bottom: 1.1rem;
}

.ms-hero-bilingual {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(1.2rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--ms-rule);
}

.ms-hero-bilingual-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-quiet);
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.ms-lede--es { margin-top: 0.65rem; }

.ms-caption--es {
  margin-top: 0.85rem;
  color: var(--ms-body);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ms-actions--es { margin-top: 1.1rem; }
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ms-trust-note {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  font-size: 0.82rem;
  color: var(--ms-teal-dark);
  letter-spacing: 0.04em;
}

.ms-trust-note a {
  color: var(--ms-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-close-alt {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--ms-body);
  line-height: 1.6;
}

.ms-close-alt .ms-textlink {
  font-size: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Sticky mobile CTA */
.ms-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  z-index: 8500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(244, 248, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ms-rule);
  box-shadow: 0 16px 48px -16px rgba(7, 26, 43, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.ms-sticky-cta.is-on {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  opacity: 1;
}

.ms-sticky-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font: 600 0.82rem/1.2 var(--ms-sans);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.ms-sticky-primary {
  background: var(--ms-teal);
  color: #fff;
}

.ms-sticky-primary:hover { background: var(--ms-teal-lift); }

.ms-sticky-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ms-ink);
  border: 1px solid var(--ms-rule);
}

@media (min-width: 901px) {
  .ms-sticky-cta { display: none !important; }
}

@media (max-width: 900px) {
  body { padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 64px)); }
}

html[data-sp-keyboard="open"] .ms-sticky-cta {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ms-sticky-cta { transition: none; }
}

.ms-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--ms-rule);
  overflow: visible;
  background: #fff;
  box-shadow: 0 26px 60px -28px rgba(20, 32, 28, .28);
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.ms-frame img {
  border-radius: 16px;
  overflow: hidden;
}
.ms-frame .pm3d-zone {
  pointer-events: none;
}
@media (hover: hover) {
  .ms-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px -28px rgba(7, 26, 43, 0.22);
  }
}

.ms-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ── Problem ────────────────────────────────────────────────────────────── */
.ms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.ms-stats { margin: 0; }

.ms-stats > div { padding-block: clamp(20px, 3vw, 30px); }
.ms-stats > div + div { border-top: 1px solid var(--ms-rule); }

/* ── Film ───────────────────────────────────────────────────────────────── */
.ms-film-head { text-align: center; }
.ms-film-head .ms-lede { margin-inline: auto; }

.ms-player {
  margin: clamp(2.2rem, 4vw, 3.4rem) auto 0;
  max-width: 940px;
}

.ms-player video {
  width: 100%;
  /* The width/height attributes would otherwise win over the aspect ratio. */
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--ms-rule);
  background: #0b1512;
  box-shadow: 0 30px 70px -30px rgba(20, 32, 28, .34);
}

.ms-player-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: var(--ms-quiet);
}

.ms-player-meta a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
}
.ms-player-meta a[aria-current="true"] { color: var(--ms-ink); font-weight: 500; }
.ms-player-meta .ms-divider { color: var(--ms-rule); }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.ms-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: clamp(2.6rem, 5vw, 4.2rem);
  border-top: 1px solid var(--ms-rule);
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
}

.ms-step { position: relative; }

.ms-step::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ms-teal);
  margin-bottom: 1.5rem;
}

.ms-step b {
  display: block;
  color: var(--ms-teal);
  font-size: 1.1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}

.ms-step h3 {
  font-size: 1.03rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.ms-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ms-body);
}

/* ── Sync diagram ───────────────────────────────────────────────────────── */
.ms-sync { align-items: center; }
.ms-diagram { width: 100%; height: auto; }

/* ── Dark band ──────────────────────────────────────────────────────────── */
.ms-band {
  background: var(--ms-navy);
  color: var(--ms-paper);
  text-align: center;
}

.ms-band .ms-eyebrow { color: var(--ms-teal-dark); }
.ms-band .ms-h2 { color: var(--ms-paper); max-width: 18ch; margin-inline: auto; }
.ms-band .ms-lede { color: var(--ms-dark-body); margin-inline: auto; max-width: 62ch; }

.ms-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
}

.ms-assurances li { display: flex; align-items: center; gap: 28px; }
.ms-assurances li + li::before {
  content: "";
  width: 1px;
  height: 18px;
  background: var(--ms-teal-dark);
  opacity: .55;
}

/* ── Close ──────────────────────────────────────────────────────────────── */
.ms-close {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.ms-close-metric { text-align: right; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ms-footer {
  border-top: 1px solid var(--ms-rule);
  padding-block: clamp(44px, 6vw, 72px) clamp(30px, 4vw, 44px);
}

.ms-footer-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.ms-footer-blurb {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--ms-body);
  max-width: 34ch;
}

.ms-footer nav h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.ms-footer nav ul { list-style: none; margin: 0; padding: 0; }

.ms-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.9rem;
  color: var(--ms-body);
  text-decoration: none;
}
.ms-footer nav a:hover { color: var(--ms-teal); }

.ms-colophon {
  margin: clamp(2.4rem, 4vw, 3.4rem) 0 0;
  font-size: 0.8rem;
  color: var(--ms-quiet);
}

/* NAP + legal row. Trust Harden skips its own when this is present. */
.ms-footer-legal {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--ms-quiet);
}
.ms-footer-legal a {
  color: var(--ms-quiet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ms-footer-legal a:hover { color: var(--ms-teal); }

@media (pointer: coarse), (max-width: 640px) {
  .ms-footer-legal a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .ms-steps { grid-template-columns: repeat(2, 1fr); }
  .ms-footer-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .ms-hero-mark {
    top: -10%;
    right: 0;
    width: min(132px, 34vw);
  }
  #pm3d-ms-mark {
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    max-width: 132px !important;
  }
  .ms-hero,
  .ms-split,
  .ms-close { grid-template-columns: 1fr; }
  .ms-hero { padding-top: clamp(36px, 8vw, 56px); }
  .ms-close-metric { text-align: left; }
  .ms-sync .ms-diagram-wrap { order: 2; }
  .ms-btn { width: 100%; }
  .ms-actions { gap: 12px; }
}

@media (max-width: 520px) {
  .ms-steps { grid-template-columns: 1fr; }
  .ms-footer-row { grid-template-columns: 1fr; }
  .ms-assurances { flex-direction: column; align-items: flex-start; text-align: left; }
  .ms-assurances li + li::before { display: none; }
}

/* Footer rows stay visually tight on a mouse, but open up to a real touch
   target on phones, which is where hospital staff actually read this. */
@media (pointer: coarse), (max-width: 640px) {
  .ms-footer nav a,
  .ms-wordmark { min-height: 44px; }
  .ms-wordmark { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Outcomes grid ─────────────────────────────────────────────────────── */
.ms-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ms-outcome {
  background: var(--ms-white);
  border: 1px solid var(--ms-rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  min-height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
@media (hover: hover) {
  .ms-outcome:hover {
    transform: translateY(-3px);
    border-color: rgba(27, 154, 170, 0.35);
    box-shadow: 0 18px 44px -28px rgba(7, 26, 43, 0.16);
  }
}

.ms-outcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ms-clinical);
  color: var(--ms-teal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.ms-outcome h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ms-outcome p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--ms-body);
}

/* ── REV DE$K powered strip ─────────────────────────────────────────────── */
.ms-revdesk {
  background: var(--ms-navy);
  color: var(--ms-paper);
  padding-block: clamp(36px, 5vw, 52px);
}

.ms-revdesk-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.ms-revdesk-copy {
  flex: 1 1 280px;
  max-width: 640px;
}

.ms-revdesk-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-teal-dark);
  font-weight: 600;
  margin: 0 0 8px;
}

.ms-revdesk h2 {
  font-family: var(--ms-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}

.ms-revdesk p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ms-dark-body);
}

.ms-revdesk-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--ms-paper);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
.ms-revdesk-link:hover {
  border-color: var(--ms-teal-dark);
  color: var(--ms-teal-dark);
}

/* ── Walkthrough preview ────────────────────────────────────────────────── */
.ms-preview {
  background: var(--ms-clinical);
  border: 1px solid var(--ms-rule);
  border-radius: 12px;
  overflow: hidden;
}

.ms-preview-frame {
  aspect-ratio: 16 / 9;
  background: var(--ms-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ms-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.ms-preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 26, 43, 0.35);
  text-decoration: none;
  color: #fff;
}

.ms-preview-play span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ms-teal);
  font-size: 0.95rem;
  font-weight: 500;
}

.ms-preview-meta {
  padding: clamp(16px, 2.5vw, 22px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-preview-meta p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ms-body);
  max-width: 48ch;
}

.ms-hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ms-teal);
  background: var(--ms-clinical);
  border: 1px solid var(--ms-rule);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.ms-header-pm {
  font-size: 0.82rem;
  color: var(--ms-quiet);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ms-header-pm:hover { color: var(--ms-teal); }

@media (max-width: 940px) {
  .ms-outcomes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .ms-outcomes { grid-template-columns: 1fr; }
  .ms-revdesk-inner { flex-direction: column; align-items: flex-start; }
  .ms-revdesk-link { width: 100%; }
}

/* ── Legal documents ─────────────────────────────────────────────────────── */
/* Privacy, terms, and patient notice. A compliance officer reads these top to
   bottom on a laptop, so the measure is narrower than the marketing sections
   and the type is set for sustained reading rather than for scanning. */

.ms-legal {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--ms-gutter);
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 10vw, 120px);
}

.ms-legal h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0 0 14px;
}

.ms-legal-meta {
  color: var(--ms-quiet);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

/* Callout for the things a reader must not miss: AI disclosure, recording,
   emergency routing. A quiet tinted panel with a hairline on all four sides,
   the way a printed clinical notice is set. */
.ms-note {
  border: 1px solid #cfdedb;
  background: #eef4f2;
  padding: 18px 20px;
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--ms-ink);
  border-radius: 6px;
}

.ms-note strong { font-weight: 600; }

.ms-note-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ms-teal);
  margin-bottom: 6px;
}

.ms-legal section { margin-top: 40px; }

.ms-legal h2 {
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ms-rule);
}

.ms-legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.ms-legal p,
.ms-legal li {
  color: var(--ms-body);
  font-size: 1rem;
  line-height: 1.68;
}

.ms-legal p { margin: 0 0 14px; }

.ms-legal ul { margin: 0 0 16px; padding-left: 20px; }
.ms-legal li { margin-bottom: 8px; }

.ms-legal strong { color: var(--ms-ink); font-weight: 600; }

.ms-legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.ms-legal-back {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--ms-rule);
  font-size: 0.94rem;
}

/* Touch devices need the 44px floor on these dense link lists. Keyed on width
   as well as pointer type: pointer:coarse alone is unverifiable in a desktop
   harness, and a narrow screen is a reliable proxy for a thumb. */
@media (pointer: coarse), (max-width: 640px) {
  .ms-legal-toc a,
  .ms-legal-back a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ── Preview lane system (2026-08-14) ───────────────────────────────────── */

.ms-h3 {
  font-family: var(--ms-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.ms-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.1rem;
}

.ms-hero-badge--muted {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--ms-rule);
  color: var(--ms-body);
}

.ms-frame--glass {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 28px 64px -28px rgba(7, 26, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  will-change: transform;
}

.ms-lane-nav {
  display: none;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.ms-lane-nav a {
  font-size: 0.82rem;
  color: var(--ms-body);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ms-lane-nav a:hover { color: var(--ms-teal); }
.ms-lane-nav a[aria-current="true"] {
  color: var(--ms-ink);
  font-weight: 600;
  border-bottom-color: var(--ms-teal);
}

@media (min-width: 900px) {
  .ms-lane-nav { display: flex; }
}

.ms-lane {
  position: relative;
  padding-top: clamp(48px, 8vw, 88px);
}

.ms-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

.ms-lane--en::before {
  background: linear-gradient(135deg, rgba(27, 154, 170, 0.07) 0%, transparent 55%);
}

.ms-lane--es::before {
  background: linear-gradient(225deg, rgba(7, 26, 43, 0.05) 0%, rgba(27, 154, 170, 0.06) 100%);
}

.ms-lane-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.ms-lane-film {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--ms-rule);
}

.ms-outcomes--glass .ms-outcome--glass {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 228, 234, 0.85);
  box-shadow: 0 18px 44px -28px rgba(7, 26, 43, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ms-outcomes--glass .ms-outcome--glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -26px rgba(7, 26, 43, 0.22);
}

.ms-glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ms-rule);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}

.ms-player--walkthrough video {
  box-shadow: 0 32px 72px -32px rgba(7, 26, 43, 0.38);
}

.ms-cap-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ms-quiet);
  cursor: pointer;
  min-height: 44px;
  padding: 0 4px;
  touch-action: manipulation;
}

.ms-cap-btn[aria-current="true"] {
  color: var(--ms-ink);
  font-weight: 500;
}

.ms-cap-btn:hover { color: var(--ms-teal); }

.ms-steps--compact {
  margin-top: clamp(1.8rem, 3vw, 2.4rem);
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  border-top: none;
  padding-top: 0;
}

.ms-steps--compact .ms-step::before { width: 48px; }

.ms-steps--compact .ms-step p { font-size: 0.86rem; }

.ms-vertical-card {
  padding: clamp(28px, 5vw, 44px);
  box-shadow: inset 0 0 0 1px rgba(27, 154, 170, 0.18);
}

@media (max-width: 640px) {
  .ms-steps--compact { grid-template-columns: 1fr; }
  .ms-header-row { flex-wrap: wrap; }
  .ms-header-pm { width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-outcomes--glass .ms-outcome--glass:hover { transform: none; }
  [data-ms-parallax] { transform: none !important; }
}

.ms-hero-badge--promise { max-width: 36rem; line-height: 1.45; }
.ms-hero-alt-cta { display: inline-block; margin-top: 0.35rem; font-size: 0.92rem; }
.ms-verticals--four,
.ms-verticals--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .ms-verticals--four,
  .ms-verticals--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ms-verticals--four,
  .ms-verticals--six { grid-template-columns: 1fr; }
}

.ms-ehr-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.ms-ehr-list li {
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ms-rule);
  border-radius: 999px;
  background: var(--ms-white);
  color: var(--ms-navy);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ms-ehr-more {
  margin: 0;
  font-size: 1rem;
  color: var(--ms-body);
  max-width: 40rem;
}
