:root {
  --primary: #1a5276;
  --primary-dark: #0e3654;
  --primary-light: #2980b9;
  --primary-bg: #eaf2f8;
  /* Left half: slightly cooler gray; right half stays white — separation without a midline rule */
  --left-pane-bg: #eceff2;
  --right-pane-bg: #ffffff;
  --text: #243447;
  --text-light: #3d4d5c;
  --link: #1a5276;
  --white: #ffffff;
  --off-white: #f7fafc;
  --border: #d5dde5;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(16, 34, 51, 0.14);
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --max-width: 1180px;
}

@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* Inline/content links: underline + sufficient contrast (WCAG 1.4.1, 1.4.3) */
main a:not(.btn):not([class*="btn"]),
.legal-banner a,
.trust-link a,
.long-form a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

main a:not(.btn):not([class*="btn"]):hover,
.legal-banner a:hover,
.trust-link a:hover,
.long-form a:not(.btn):hover {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.55rem 1rem;
  z-index: 2000;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

main {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(
    to right,
    var(--left-pane-bg) 0%,
    var(--left-pane-bg) 50%,
    var(--right-pane-bg) 50%,
    var(--right-pane-bg) 100%
  );
}

.split-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: linear-gradient(
    to right,
    var(--left-pane-bg) 0%,
    var(--left-pane-bg) 50%,
    var(--right-pane-bg) 50%,
    var(--right-pane-bg) 100%
  );
  border-bottom: 1px solid var(--border);
}

.split-header-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  contain: layout style;
}

.split-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand-word:hover {
  text-decoration: none;
}

.menu-toggle {
  position: absolute;
  top: 1.05rem;
  right: 1.2rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  z-index: 1800;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  background: var(--primary-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  top: 100%;
  right: 1.25rem;
  width: min(320px, calc(100vw - 2.5rem));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  /* Above .menu-backdrop so the overlay does not tint the open menu */
  z-index: 1400;
}

.menu-panel a {
  font-size: 1rem;
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.menu-panel a:hover {
  text-decoration: none;
  background: var(--off-white);
}

.menu-panel .menu-cta {
  margin-top: 0.35rem;
  justify-content: center;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(8, 20, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  /* Below .menu-panel (1400) and .menu-toggle (1800), above page content */
  z-index: 1100;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.video-section {
  padding: 3rem 0 2.2rem;
}

.video-shell {
  margin: 0 auto;
  width: min(100%, 560px);
  aspect-ratio: 560 / 315;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  background: #000;
  padding: 0;
  display: block;
}

.home-video {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 315;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 0;
  background: #000;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.video-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.video-caption {
  margin: 0;
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.45;
  opacity: 0.92;
}

.feature-row {
  position: relative;
  padding: 0.7rem 0 2.25rem;
  overflow: visible;
}

.feature-row + .feature-row {
  margin-top: 0.85rem;
}

.feature-row > .container {
  max-width: 1440px;
  overflow: visible;
}

.row-heading {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a6278;
  position: relative;
  z-index: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr;
  grid-auto-flow: dense;
  align-items: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0 0.1rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.circle-wrapper {
  position: relative;
  width: clamp(80px, 8vw, 120px);
  height: clamp(80px, 8vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 3px 12px rgba(17, 35, 54, 0.14);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  transform-origin: center center;
}

/* Chevron hint on wrapper — ::after on <button> often does not render. */
.circle-wrapper:not(.is-expanded)::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 5px rgba(17, 35, 54, 0.22);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.circle-wrapper:not(.is-expanded)::before {
  content: "";
  position: absolute;
  right: calc(6% + 0.42rem);
  bottom: calc(8% + 0.5rem);
  width: 0.36rem;
  height: 0.36rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
}

.row-2 .circle-wrapper:not(.is-expanded)::after {
  background: rgba(255, 255, 255, 0.92);
}

.row-2 .circle-wrapper:not(.is-expanded)::before {
  border-color: var(--primary-dark);
}

.row-3 .circle-wrapper:not(.is-expanded)::after {
  background: var(--white);
}

.row-3 .circle-wrapper:not(.is-expanded)::before {
  border-color: var(--primary-dark);
}

.row-heading::after {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #5a7082;
}

@media (min-width: 769px) {
  .row-heading::after {
    content: "Hover or click a circle for details";
  }

  .feature-row:has(.feature-grid:is(:hover, .has-expanded, :focus-within)) .row-heading::after {
    content: none;
  }

  .feature-grid.has-expanded {
    padding-bottom: 3.5rem;
  }
}

.feature-circle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(26, 82, 118, 0.22);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes circle-invite-pulse {
  0%, 100% { transform: scale(0.98); opacity: 0; }
  50%      { transform: scale(1.04); opacity: 1; }
}

.feature-grid:not(.has-expanded):not(:hover):not(:focus-within) .feature-circle::after {
  animation: circle-invite-pulse 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .feature-grid:not(.has-expanded):not(:hover):not(:focus-within) .feature-circle::after {
    animation: none;
  }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .feature-grid:has(.circle-wrapper:hover) {
    padding-bottom: 3.5rem;
  }

  .feature-grid:has(.circle-wrapper:hover) .circle-wrapper:not(:hover) .feature-circle {
    opacity: 0.3;
  }

  .circle-wrapper:hover {
    z-index: 120;
  }

  .circle-wrapper:hover .feature-circle {
    transform: scale(1.2);
  }

  .circle-wrapper.clinician:hover .circle-detail,
  .circle-wrapper.patient:hover .circle-detail {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
  }
}

.feature-circle:focus-visible {
  outline: 3px solid #8dc8ff;
  outline-offset: 3px;
}

.feature-grid.has-expanded .circle-wrapper:not(.is-expanded) .feature-circle {
  opacity: 0.3;
}

.circle-wrapper.is-expanded {
  z-index: 120;
}

.circle-wrapper.is-expanded .feature-circle {
  transform: scale(1.2);
}

.circle-label {
  pointer-events: none;
}

.circle-detail {
  position: absolute;
  top: calc(100% + 0.65rem);
  width: min(240px, 82vw);
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 130;
}

/* Left-side (clinician) circles: detail below and to the right. */
.circle-wrapper.clinician .circle-detail {
  left: 0;
  right: auto;
  transform: translateX(0) translateY(8px);
}

.circle-wrapper.clinician.is-expanded .circle-detail {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

/* Right-side (patient) circles: detail below and to the left. */
.circle-wrapper.patient .circle-detail {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}

.circle-wrapper.patient.is-expanded .circle-detail {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

.circle-wrapper.clinician[data-slot="1"] {
  grid-column: 1;
  grid-row: 1;
}

.circle-wrapper.clinician[data-slot="2"] {
  grid-column: 2;
  grid-row: 1;
}

.circle-wrapper.clinician[data-slot="3"] {
  grid-column: 3;
  grid-row: 1;
}

.circle-wrapper.patient[data-slot="1"] {
  grid-column: 4;
  grid-row: 1;
}

.circle-wrapper.patient[data-slot="2"] {
  grid-column: 5;
  grid-row: 1;
}

.circle-wrapper.patient[data-slot="3"] {
  grid-column: 6;
  grid-row: 1;
}

.row-1 .feature-circle {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.row-2 .feature-circle {
  background: #dfeaf6;
  color: var(--primary-dark);
  border-color: #86aad0;
}

.row-3 .feature-circle {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
  border-style: dashed;
}

.split-cta {
  padding: 3rem 0 4.2rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.65rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cta-button {
  min-width: 50%;
  height: 96px;
  border-radius: 18px;
  font-size: 1.35rem;
  padding: 0 2rem;
}

/* ============================================================
   Subpage Content Styles
   (hero, sections, cards, forms, tables, long-form, etc.)
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5276 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  contain: layout style;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

body.subpage-body {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: Menlo, Consolas, monospace;
  padding-top: 5.25rem;
}

body.subpage-body .split-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

body:has(> main + header.split-header) {
  padding-top: 5.25rem;
}

body:has(> main + header.split-header) .split-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1500;
}

body.subpage-body .hero {
  padding: 3rem 0;
}

body.subpage-body .hero-title {
  font-size: clamp(1.85rem, 6vw, 3rem);
  margin: 0 0 1rem;
  color: var(--white);
}

body.subpage-body .hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  max-width: 700px;
  min-height: calc(1.45em * 4);
  margin: 0 auto 1.5rem;
  color: #eef4f9;
}

.hero-reassurance {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--white);
  color: #1a5276;
  border-color: var(--white);
}

.hero .btn-primary:hover {
  background: #eaf2f8;
  border-color: #eaf2f8;
}

.hero .btn-tertiary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-light);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
  color: #1a5276;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.workflow-step {
  text-align: center;
  padding: 1.25rem 1rem;
  flex: 1;
  min-width: 110px;
}

.workflow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #1a5276;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.workflow-step-label {
  font-weight: 600;
  color: #1a5276;
  font-size: 0.95rem;
}

.workflow-step-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.workflow-arrow {
  color: var(--primary-light);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 0.15rem;
  -webkit-user-select: none;
  user-select: none;
}

.workflow-content p {
  text-indent: 1.5rem;
  margin-bottom: 2rem;
}

.workflow-content p:last-child {
  margin-bottom: 0;
}

.pain-points {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 1.25rem;
  list-style: disc;
}

.pain-points li {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.cta-band {
  background: #eaf2f8;
  padding: 4.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-link {
  text-align: center;
  margin-top: 2rem;
}

.trust-link a {
  color: var(--primary-dark);
  font-weight: 600;
}

.legal-banner-subtle a {
  color: var(--primary-dark);
  font-weight: 600;
}

.form-page {
  padding: 3rem 0;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-intro {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.55;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
}

.required-mark {
  color: #c0392b;
  margin-left: 0.15rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color 0.2s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #c0392b;
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.form-consent {
  margin-top: 1.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-submit-row {
  margin-top: 1.5rem;
}

.phi-warning {
  background: #fef9e7;
  border: 1px solid #d4ac0d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #7d6608;
  line-height: 1.55;
}

.phi-warning-inline {
  background: #fef9e7;
  border: 1px solid #d4ac0d;
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #7d6608;
  line-height: 1.5;
}

.sr-only-honeypot {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.security-hero {
  padding: 4rem 0;
  text-align: center;
}

.security-section {
  padding: 3rem 0;
}

.security-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.arch-block {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.arch-block h3 {
  color: #1a5276;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.arch-block p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.55;
}

.responsible-ai {
  background: #eaf2f8;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
}

.responsible-ai h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1a5276;
}

.responsible-ai ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.responsible-ai li {
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.55;
}

.does-not-claim {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
}

.does-not-claim h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.does-not-claim ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.does-not-claim li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.5;
}

.posture-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.posture-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.posture-table th,
.posture-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.posture-table th {
  background: #eaf2f8;
  font-weight: 600;
  color: #1a5276;
  white-space: nowrap;
}

.posture-table td {
  color: var(--text);
  line-height: 1.5;
}

.posture-table tr:last-child td {
  border-bottom: none;
}

.long-form {
  padding: 3rem 0;
}

.editorial-body {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.long-form .container {
  max-width: 800px;
}

.long-form h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.long-form .page-meta {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.88rem;
}

.long-form h2 {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.long-form h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.long-form p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.long-form ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.long-form ul li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.legal-hub .container {
  max-width: 920px;
}

.legal-banner {
  background: #fef9e7;
  border: 1px solid #d4ac0d;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #7d6608;
}

.legal-banner p:last-child {
  margin-bottom: 0;
}

.legal-banner-subtle {
  background: #eaf2f8;
  border-color: var(--border);
  color: var(--text);
}

.legal-hub-nav {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.legal-hub-nav h2 {
  margin-top: 0;
}

.legal-hub-nav ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.legal-hub-nav li {
  margin-bottom: 0.45rem;
}

.template-section {
  padding-top: 0.5rem;
}

.template-meta {
  color: var(--text-light);
  font-size: 0.88rem;
}

.thank-you {
  padding: 5rem 0;
  text-align: center;
}

.thank-you .container {
  max-width: 650px;
}

.thank-you h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a5276;
}

.thank-you p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.features {
  padding: 5rem 0;
}

.features.features-alt {
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #1a5276;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.feature-card.expanded .card-details {
  max-height: 500px;
}

.feature-card.feature-card-full {
  grid-column: 1 / -1;
}

.card-details ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.card-details li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.download {
  padding: 5rem 0;
  background: #eaf2f8;
}

.legacy-note {
  background: #fff7e6;
  border-top: 1px solid #f0d8a8;
  border-bottom: 1px solid #f0d8a8;
  padding: 0.9rem 0;
}

.legacy-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #6e4e1e;
  line-height: 1.45;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}


/* Subpage main background override — no split gradient */
.subpage-body main {
  background: var(--white);
}

@media (max-width: 1200px) {
  .hero {
    padding: 3rem 0;
  }

  body:not(.subpage-body) .hero-title {
    font-size: 1.85rem;
  }

  body:not(.subpage-body) .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    flex-direction: column;
    gap: 0;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .cta-buttons,
  .thank-you-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-band {
    padding: 3rem 0;
  }

  .cta-band h2 {
    font-size: 1.35rem;
  }
}

.footer {
  background: #0f2536;
  color: #d9e8f5;
  padding: 3rem 0 2.1rem;
}

.footer a {
  color: #c8e0f4;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer a:hover {
  color: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

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

.footer-section li {
  margin: 0 0 0.5rem;
}

.footer-bottom {
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  color: #b5cbde;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

.footer-compliance {
  margin-bottom: 0.65rem;
}

.footer-compliance a {
  color: #d4e8f7;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-disclaimer {
  margin-top: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #9eb8cc;
}

.footer-disclaimer p {
  margin: 0;
}

@media (max-width: 991px) {
  .split-header-grid {
    min-height: 4.6rem;
  }

  .brand-word {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .video-shell {
    width: min(100%, 520px);
  }

  .circle-wrapper {
    width: clamp(76px, 10vw, 110px);
    height: clamp(76px, 10vw, 110px);
  }
}

@media (max-width: 768px) {
  main,
  .split-header {
    background: var(--white);
  }

  .split-header-grid {
    grid-template-columns: 1fr;
    min-height: 4.8rem;
    padding-top: 0.2rem;
  }

  .split-brand-right {
    display: none;
  }

  .menu-toggle {
    top: 0.95rem;
    right: 0.95rem;
    width: 2.6rem;
    height: 2.6rem;
  }

  .video-section {
    padding-top: 2.2rem;
  }

  .video-shell {
    width: min(100%, 460px);
  }

  .row-heading {
    margin-bottom: 0.5rem;
  }

  .row-heading::after {
    content: "Tap a circle for details";
  }

  .feature-row:has(.feature-grid:is(.has-expanded, :focus-within)) .row-heading::after {
    content: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: row;
    align-items: center;
    justify-items: center;
    column-gap: clamp(0.45rem, 3vw, 0.85rem);
    row-gap: clamp(0.5rem, 2.5vw, 0.85rem);
    width: 100%;
  }

  /* Size to grid column, not viewport — avoids two 35vw circles overflowing on phones. */
  .circle-wrapper {
    width: min(100%, 11.25rem);
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
    justify-self: center;
  }

  .feature-circle {
    font-size: clamp(0.78rem, 4.2vw, 0.95rem);
    padding: clamp(0.35rem, 2.5vw, 0.75rem);
  }

  .circle-wrapper.is-expanded .feature-circle {
    transform: scale(1.1);
  }

  /* Pair clinician + patient dots per row (3 rows × 2 columns). */
  .circle-wrapper.clinician[data-slot="1"] {
    grid-column: 1;
    grid-row: 1;
  }

  .circle-wrapper.patient[data-slot="1"] {
    grid-column: 2;
    grid-row: 1;
  }

  .circle-wrapper.clinician[data-slot="2"] {
    grid-column: 1;
    grid-row: 2;
  }

  .circle-wrapper.patient[data-slot="2"] {
    grid-column: 2;
    grid-row: 2;
  }

  .circle-wrapper.clinician[data-slot="3"] {
    grid-column: 1;
    grid-row: 3;
  }

  .circle-wrapper.patient[data-slot="3"] {
    grid-column: 2;
    grid-row: 3;
  }

  .feature-grid.has-expanded {
    padding-bottom: 4.75rem;
  }

  .circle-wrapper.is-expanded {
    z-index: 200;
  }

  .circle-detail {
    width: min(215px, calc(100vw - 2.5rem));
    font-size: 0.82rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-button {
    min-width: 90%;
    height: 82px;
    font-size: 1.15rem;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 0.95rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    column-gap: clamp(0.35rem, 2.5vw, 0.65rem);
  }

  .circle-wrapper {
    width: min(100%, 10rem);
  }

  .feature-circle {
    font-size: clamp(0.72rem, 3.8vw, 0.88rem);
  }
}
