:root {
  --ink: #111827;
  --dark: #1f2937;
  --body: #4b5563;
  --muted: #6b7280;
  --blue: #2b7fd1;
  --blue-light: #5aaaf1;
  --blue-soft: #eaf3fc;
  --blue-rule: #cfe2f6;
  --ice: #f5f9fd;
  --line: #e6edf5;
  --green: #1f9d57;
  --green-text: #1f7a4d;
  --green-soft: #f0faf4;
  --green-line: #d7efdf;
  --amber: #e0a400;
  --amber-text: #9a6400;
  --amber-soft: #fff9e8;
  --amber-line: #f5e6b8;
  --red: #e5484d;
  --purple: #7c5ce6;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 18px 48px -36px rgba(17, 24, 39, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#features,
#workflow,
#security {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-inline: 32px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
}

.nav-inner {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.nav-toggle,
.mobile-menu {
  display: none;
}

.signin {
  color: var(--body);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 24px -18px rgba(43, 127, 209, .9);
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -22px rgba(17, 24, 39, .9);
}

.hero {
  padding-top: 80px;
}

.hero-head {
  align-items: end;
}

.hero-title {
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: riseIn .55s ease both;
}

.hero-side {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
  animation: riseIn .55s ease .08s both;
}

.hero-side p {
  color: var(--body);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.line-label,
.number-label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.line-label svg {
  width: 66px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 2.4;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 10;
}

.line-label span,
.number-label strong {
  white-space: nowrap;
}

.line-label i,
.number-label i {
  min-width: 24px;
  height: 1px;
  flex: 1;
  background: var(--blue-rule);
}

.number-label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.number-label.stacked {
  margin-bottom: 18px;
}

h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 span,
.section-copy h2 span {
  color: var(--blue);
}

h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h3 {
  font-weight: 700;
  letter-spacing: -.02em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -24px rgba(17, 24, 39, .42);
}

.button.dark {
  background: var(--ink);
  color: #ffffff;
}

.button.dark:hover {
  background: var(--blue);
  color: #ffffff;
}

.button.soft {
  background: var(--blue-soft);
  color: var(--blue);
}

.button.soft:hover {
  background: #d9eafa;
}

.button.light {
  background: #ffffff;
  color: var(--ink);
}

.button.light:hover {
  background: var(--blue-light);
  color: var(--ink);
}

.button.outline {
  border: 1px solid #374151;
  color: #ffffff;
}

.button.outline:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.dashboard-shell {
  position: relative;
  margin-top: 56px;
  padding: clamp(16px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(90, 170, 241, .16), transparent 28rem),
    linear-gradient(135deg, #f7fbff 0%, var(--ice) 52%, #eef6ff 100%);
  box-shadow: 0 40px 90px -60px rgba(17, 24, 39, .35);
  overflow: hidden;
  opacity: 1;
  transform: none;
  transition: box-shadow .18s ease;
}

.dashboard-shell::before {
  display: none;
}

.dashboard-shell:hover {
  box-shadow: 0 50px 110px -62px rgba(17, 24, 39, .48);
}

.patient-banner,
.card,
.feature-strip article {
  border: 1px solid var(--line);
  background: #ffffff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.patient-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 50px -42px rgba(17, 24, 39, .45);
}

.patient-top {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.patient-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: #d9eafa;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.patient-id h2 {
  font-size: 24px;
  line-height: 1.1;
}

.patient-id p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.patient-id p span,
.acuity span {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.acuity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.acuity strong {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff4db;
  color: var(--amber-text);
  font-size: 12px;
  font-weight: 600;
}

.acuity b,
.pattern-top b,
.status-row.due em b {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--amber);
}

.acuity span {
  border-radius: 8px;
}

.info-strip {
  padding: 14px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  background: var(--ice);
}

.info-strip small,
.caption,
.feature-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.info-strip small.red {
  color: #c2410c;
}

.info-strip strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}

.green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.mini-avatar {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  font-size: 9px;
  font-style: normal;
}

.info-strip em {
  padding: 2px 9px;
  border-radius: 999px;
  background: #fde8e8;
  color: #b42318;
  font-size: 12px;
  font-style: normal;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  min-width: 0;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px -42px rgba(17, 24, 39, .46);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.stat-grid article:hover {
  border-color: var(--blue-rule);
  box-shadow: 0 18px 48px -42px rgba(17, 24, 39, .46);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 24px -16px currentColor;
}

.icon svg,
.soft-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purple {
  background: var(--purple);
}

.red-bg {
  background: var(--red);
}

.amber {
  background: var(--amber);
}

.blue {
  background: var(--blue);
}

.stat-grid strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stat-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 14px;
  align-items: start;
}

.card {
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 18px 50px -42px rgba(17, 24, 39, .45);
}

.feature-strip article:hover,
.compare:hover,
.layer-grid article:hover,
.audience-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--blue-rule);
  box-shadow: 0 26px 64px -44px rgba(17, 24, 39, .45);
}

.med-watch {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.right-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head,
.pattern-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-head h3 {
  font-size: 18px;
}

.card-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.status-row {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.status-row:hover {
  box-shadow: none;
}

.status-row strong,
.signed-row strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.status-row span,
.signed-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-row em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-row.complete {
  border-color: var(--green-line);
  border-left-color: var(--green);
  background: var(--green-soft);
}

.status-row.complete em {
  color: var(--green-text);
  border: 1px solid var(--green-line);
}

.status-row.due {
  border-color: var(--amber-line);
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.status-row.due em {
  color: var(--amber-text);
  border: 1px solid var(--amber-line);
}

.status-row.due em b {
  animation: none;
}

.status-row.scheduled {
  border-color: #dce8f5;
  border-left-color: var(--blue);
  background: var(--ice);
}

.status-row.scheduled em {
  color: var(--blue);
  border: 1px solid #dce8f5;
}

.signed-row {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  transition: none;
}

.signed-row:hover {
  box-shadow: none;
}

.signed-row small {
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signed-row strong {
  margin-top: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.signed-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: #2d86dd;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.vitals-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.vitals-mini div,
.vital-board div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.vitals-mini div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.soft-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
}

.blue-text {
  background: var(--blue-soft);
  color: var(--blue);
}

.purple-text {
  background: #f1ecfd;
  color: var(--purple);
}

.green-text {
  background: #eaf7ef;
  color: var(--green);
}

.amber-text {
  background: #fff4db;
  color: var(--amber);
}

.vitals-mini strong,
.vital-board strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.vitals-mini .soft-icon {
  grid-row: 1 / span 2;
}

.vitals-mini small,
.vital-board small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pattern-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-color: var(--amber-line);
}

.pattern-top small {
  color: var(--amber-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pattern-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff4db;
  color: var(--amber-text);
  font-size: 10px;
  font-weight: 600;
}

.pattern-preview h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.pattern-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.pattern-preview svg.pattern-chart {
  width: 100%;
  height: auto;
  margin: 2px 0 0;
  overflow: visible;
}

.spark-icon,
.headline-spark {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--amber);
}

.headline-spark {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  color: var(--blue);
  vertical-align: -.15em;
}

.dark-layer h3,
.dark-layer div small {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-layer .spark-icon {
  color: var(--blue-light);
}

.pattern-preview line {
  stroke: #d6dde5;
  stroke-dasharray: 3 4;
}

.pattern-preview polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
}

.pattern-preview circle {
  fill: var(--blue);
}

.pattern-preview p {
  color: var(--body);
  font-size: 12px;
  line-height: 1.4;
}

.pattern-preview a {
  color: var(--blue);
  font-weight: 600;
}

.caption {
  padding: 14px 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding-top: 128px;
}

.section-head {
  align-items: start;
}

.section-head > .number-label {
  grid-column: 1 / span 3;
}

.section-copy {
  grid-column: 4 / span 9;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-copy p {
  max-width: 640px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.compare-grid,
.layer-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

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

.compare {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.compare.muted {
  background: #f7f8fa;
}

.blue-card {
  border-color: var(--blue-rule);
  background: var(--ice);
}

.compare small,
.layer-grid small,
.audience-grid small,
.range-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blue-card small {
  color: var(--blue);
}

.compare h3 {
  margin-top: 6px;
  color: var(--body);
  font-size: 18px;
}

.blue-card h3 {
  color: var(--ink);
}

.compare ul {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  color: var(--muted);
}

.blue-card ul {
  color: var(--ink);
  font-weight: 500;
}

.compare li {
  position: relative;
  padding-left: 34px;
  line-height: 1.4;
}

.compare li::before {
  content: "x";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blue-card li::before {
  content: "✓";
  background: var(--blue);
  color: #ffffff;
}

.problem {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.problem-copy {
  grid-column: 1 / span 5;
}

.problem-copy h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.problem-copy p {
  margin-top: 22px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

.scatter-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scatter-list div {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
}

.scatter-list strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scatter-list .chosen {
  border-color: #dce8f5;
  border-left: 3px solid var(--blue);
  background: var(--ice);
}

.scatter-list .chosen span {
  font-weight: 600;
}

.scatter-list .chosen strong {
  color: var(--blue);
}

.problem figure {
  grid-column: 7 / span 6;
  margin: 0;
}

.problem img,
.audience-grid img,
.quote-section > img {
  width: 100%;
  object-fit: cover;
}

.problem img {
  aspect-ratio: 5 / 4;
  border-radius: 20px;
}

.problem figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.layer-grid article {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.layer-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layer-grid em {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf7ef;
  color: var(--green-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.layer-grid article:nth-child(2) em {
  background: var(--blue-soft);
  color: var(--blue);
}

.layer-grid h3 {
  font-size: 24px;
}

.layer-grid p {
  color: var(--body);
  font-size: 15px;
}

.layer-grid strong {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

.dark-layer {
  border-color: var(--ink) !important;
  background: var(--ink) !important;
  color: #ffffff;
}

.dark-layer small,
.dark-layer p {
  color: #d1d5db;
}

.dark-layer em {
  background: var(--blue-light);
  color: var(--ink);
}

.dark-layer span {
  color: var(--blue-light);
}

.dark-layer strong {
  padding: 14px;
  border-radius: 14px;
  background: var(--dark);
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
}

.inside-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.inside-head > div:first-child {
  max-width: 640px;
}

.tabs {
  padding: 5px;
  display: flex;
  gap: 4px;
  border-radius: 12px;
  background: #eef3f8;
}

.tabs button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.tabs button.active {
  background: var(--ink);
  color: #ffffff;
}

.tabs button:hover {
  transform: translateY(-1px);
}

.tab-panel {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ice);
}

.tab-copy {
  grid-column: 1 / span 5;
}

.tab-copy h3 {
  font-size: 26px;
  line-height: 1.15;
}

.tab-copy p {
  margin-top: 16px;
  color: var(--body);
}

.tab-copy ul {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.tab-copy li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--blue);
  font-weight: 800;
}

.mock-card {
  grid-column: 7 / span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px -36px rgba(17, 24, 39, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mock-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 72px -38px rgba(17, 24, 39, .4);
}

.mock-head {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.mock-head span {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.mock-body {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vital-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.range-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  background: var(--amber-soft);
}

.range-card small {
  color: var(--amber-text);
}

.range-card strong {
  display: block;
  margin-top: 4px;
}

.range-card p {
  margin-top: 6px;
  color: var(--body);
  font-size: 12px;
}

.feature-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-strip article {
  padding: 20px;
  border-radius: 16px;
}

.feature-strip h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.feature-strip p {
  color: var(--body);
  font-size: 14px;
}

.audience-grid article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease;
}

.audience-grid article:hover {
  transform: translateY(-4px);
}

.audience-grid article:hover img,
.quote-section > img:hover {
  transform: scale(1.015);
}

.audience-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  transition: transform .24s ease, box-shadow .24s ease;
}

.audience-grid article:nth-child(3) img {
  object-fit: contain;
  object-position: center;
  background: #f4f8fc;
}

.audience-grid small {
  color: var(--blue);
}

.audience-grid h3 {
  font-size: 22px;
}

.audience-grid p {
  color: var(--body);
  font-size: 15px;
}

.quote-section {
  padding-top: 128px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.quote-section > img {
  grid-column: 1 / span 5;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
}

.quote-section blockquote {
  grid-column: 7 / span 6;
  margin: 0;
}

.quote-section blockquote p {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.quote-section footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-section footer span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.quote-section footer strong,
.quote-section footer small {
  display: block;
  font-size: 14px;
}

.quote-section footer small {
  color: var(--muted);
}

.security-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.security-card {
  grid-column: 1 / span 4;
  position: sticky;
  top: 96px;
  padding: 32px;
  border-radius: 20px;
  background: var(--ink);
  color: #ffffff;
}

.security-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
}

.security-card > span svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-card h3 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.2;
}

.security-card p {
  margin-top: 18px;
  color: #b6bec9;
  font-size: 15px;
}

.security-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.security-card em {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--dark);
  color: #d1d5db;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.security-list {
  grid-column: 5 / span 8;
}

.security-list article {
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}

.security-list h3 {
  font-size: 17px;
}

.security-list p {
  color: var(--body);
  font-size: 15px;
}

.security-list > a {
  display: inline-block;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}

.cta {
  padding-top: 128px;
  padding-bottom: 96px;
  scroll-margin-top: 92px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(8, 17, 34, .98) 0%, rgba(8, 17, 34, .92) 34%, rgba(8, 17, 34, .62) 58%, rgba(8, 17, 34, .20) 100%),
    linear-gradient(0deg, rgba(8, 17, 34, .58), rgba(8, 17, 34, .10) 42%, rgba(8, 17, 34, .22)),
    url("assets/cta-home-visit.png") center right / cover no-repeat;
  color: #ffffff;
  box-shadow: 0 42px 100px -70px rgba(17, 24, 39, .85);
}

.cta-copy {
  grid-column: 1 / span 7;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dark-label {
  color: var(--blue-light);
}

.dark-label i {
  background: #374151;
}

.cta h2 {
  color: #ffffff;
  font-size: clamp(28px, 3.4vw, 46px);
}

.cta p {
  max-width: 520px;
  color: #b6bec9;
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid img {
  height: 22px;
  width: auto;
}

.footer-grid p {
  max-width: 320px;
  margin-top: 14px;
  color: var(--body);
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--body);
  font-size: 14px;
}

.footer-grid strong {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bottom {
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .3;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 600;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: transform .18s ease, opacity .18s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .dashboard-shell {
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-title,
  .hero-side,
  .section-head > .number-label,
  .section-copy,
  .problem-copy,
  .problem figure,
  .tab-copy,
  .mock-card,
  .security-card,
  .security-list,
  .quote-section > img,
  .quote-section blockquote,
  .cta-copy {
    grid-column: 1 / -1;
  }

  .hero-head,
  .section-head,
  .problem,
  .tab-panel,
  .security-grid,
  .quote-section,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-head {
    align-items: start;
  }

  .hero-side {
    max-width: 680px;
  }

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

  .dashboard-panels,
  .compare-grid,
  .layer-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    position: static;
  }

  .cta-card {
    min-height: 480px;
    background:
      linear-gradient(90deg, rgba(8, 17, 34, .98) 0%, rgba(8, 17, 34, .90) 48%, rgba(8, 17, 34, .42) 100%),
      linear-gradient(0deg, rgba(8, 17, 34, .62), rgba(8, 17, 34, .16) 46%, rgba(8, 17, 34, .26)),
      url("assets/cta-home-visit.png") 62% center / cover no-repeat;
  }
}

.hero-opening {
  color: inherit;
}

.marketing-home .mobile-only,
.carousel-edge,
.carousel-next {
  display: none;
}

.mobile-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The phone layout follows the abridged handoff, with the desktop copy retained. */
@media (max-width: 768px) {
  .marketing-home {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  .marketing-home .mobile-only {
    display: block;
  }

  .marketing-home .desktop-only {
    display: none;
  }

  .marketing-home h1,
  .marketing-home h2,
  .marketing-home h3,
  .marketing-home small,
  .marketing-home em,
  .marketing-home .caption,
  .marketing-home .number-label span,
  .marketing-home .footer-grid strong,
  .marketing-home blockquote p {
    letter-spacing: 0;
  }

  .container {
    padding-inline: 20px;
  }

  .nav {
    background: rgba(255, 255, 255, .92);
  }

  .nav-inner {
    height: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    position: relative;
  }

  .brand {
    width: 134px;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .brand img {
    width: 100%;
    height: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
    font-size: 12px;
  }

  .signin,
  .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .signin {
    min-width: 44px;
    color: var(--body);
    padding: 0;
  }

  .signin::after {
    content: "";
    width: 1px;
    height: 12px;
    margin-left: 8px;
    background: #d1dbe7;
  }

  .nav-cta {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    box-shadow: none;
  }

  .nav-cta:hover {
    background: transparent;
    color: var(--blue);
    transform: none;
    box-shadow: none;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle:hover {
    color: var(--blue);
  }

  .nav-toggle span {
    width: 14px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .16s ease;
  }

  .menu-open .nav-toggle span:first-child {
    transform: translateY(2.75px) rotate(45deg);
  }

  .menu-open .nav-toggle span:last-child {
    transform: translateY(-2.75px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 40px -34px rgba(17, 24, 39, .45);
  }

  .menu-open .mobile-menu {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
    color: var(--body);
  }

  .marketing-home :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-head,
  .hero-title,
  .hero-side {
    gap: 20px;
  }

  .hero-side {
    max-width: none;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.02;
    text-wrap: initial;
  }

  .hero h1 > span {
    display: block;
    text-wrap: balance;
  }

  .hero-side p,
  .section-copy p,
  .problem-copy p {
    font-size: 16px;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .button-row {
    gap: 10px;
  }

  .hero .button-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  .button {
    min-height: 52px;
    padding: 15px 12px;
    border-radius: 12px;
    font-size: 15px;
  }

  .hero .button {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .line-label,
  .number-label {
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .line-label span {
    white-space: normal;
  }

  .number-label strong {
    white-space: nowrap;
  }

  .number-label span {
    font-size: 12px;
  }

  .line-label svg {
    width: 66px;
    height: 22px;
  }

  .hero .line-label i,
  .cta .line-label i {
    display: none;
  }

  .dashboard-shell {
    width: auto;
    margin: 36px -8px 0;
    padding: 10px;
    gap: 8px;
    border-radius: 22px;
    background: linear-gradient(#eef5fc, #f7fafd);
    box-shadow: none;
  }

  .dashboard-shell:hover {
    box-shadow: none;
  }

  .patient-banner,
  .card {
    border-radius: 14px;
    box-shadow: none;
  }

  .patient-top {
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .patient-id {
    min-width: 0;
    gap: 10px;
  }

  .patient-id > div {
    min-width: 0;
  }

  .avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }

  .patient-id h2 {
    font-size: 18px;
    line-height: 1.2;
    text-wrap: initial;
  }

  .patient-id .patient-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .patient-meta span {
    padding: 1px 8px;
    font-size: 11px;
  }

  .acuity {
    flex: none;
  }

  .acuity strong {
    padding: 5px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .acuity > span,
  .info-strip {
    display: none;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-grid article {
    min-height: 56px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .stat-grid article:hover {
    border-color: var(--line);
    box-shadow: none;
  }

  .stat-grid .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: none;
  }

  .stat-grid .icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-grid strong {
    font-size: 18px;
  }

  .stat-grid small {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.3;
  }

  .dashboard-panels {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-panels > *,
  .right-stack {
    width: 100%;
    min-width: 0;
  }

  .right-stack > .card:first-child {
    display: none;
  }

  .card {
    padding: 12px 14px;
  }

  .med-watch {
    gap: 6px;
  }

  .med-watch > .status-row.scheduled,
  .med-watch > .signed-row {
    display: none;
  }

  .card-head {
    min-height: 23px;
    gap: 8px;
  }

  .card-head h3 {
    font-size: 14px;
  }

  .card-head a {
    font-size: 12px;
  }

  .status-row {
    padding: 9px 12px;
    gap: 8px;
    border-radius: 10px;
  }

  .status-row > div {
    min-width: 0;
  }

  .status-row strong {
    font-size: 13px;
    line-height: 1.35;
  }

  .status-row span {
    font-size: 11px;
    line-height: 1.5;
  }

  .status-row em {
    flex: none;
    padding: 3px 8px;
    font-size: 10px;
  }

  .pattern-preview {
    padding: 12px 14px;
    gap: 5px;
  }

  .pattern-top small {
    font-size: 9px;
  }

  .pattern-top > span {
    display: none;
  }

  .pattern-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas: "title chart" "text chart";
    gap: 4px 10px;
    margin: 0;
    align-items: center;
  }

  .pattern-preview h3 {
    grid-area: title;
    gap: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .pattern-preview .spark-icon {
    width: 15px;
    height: 15px;
  }

  .pattern-preview svg.pattern-chart {
    grid-area: chart;
    width: 84px;
    height: 37px;
    margin: 0;
  }

  .pattern-preview p {
    grid-area: text;
    font-size: 12px;
    line-height: 1.45;
  }

  .caption {
    padding: 12px 0 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
  }

  .caption > span:last-child {
    display: none;
  }

  .section,
  .quote-section,
  .cta {
    padding-top: 72px;
  }

  .section-head,
  .section-copy {
    gap: 18px;
  }

  .section h2,
  .problem-copy h2 {
    font-size: 29px;
    line-height: 1.08;
    text-wrap: balance;
  }

  .headline-spark {
    display: none;
  }

  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(4, auto);
    gap: 0;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
  }

  .compare {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 5;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .compare.muted,
  .compare.blue-card {
    background: #fff;
  }

  .compare + .compare {
    border-left: 1px solid var(--line);
  }

  .compare h3,
  .compare li::before {
    display: none;
  }

  .compare small {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--ice);
    font-size: 10px;
    line-height: 1.5;
  }

  .compare ul {
    display: contents;
  }

  .compare li {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.35;
  }

  .compare.blue-card li {
    font-weight: 600;
  }

  .compare.blue-card li:last-child {
    color: var(--blue);
  }

  .compare:hover {
    transform: none;
    box-shadow: none;
  }

  .problem {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .problem-copy {
    display: contents;
  }

  .problem-copy .number-label.stacked {
    order: 0;
    margin: 0;
  }

  .problem-copy h2 {
    order: 1;
  }

  .problem figure {
    position: relative;
    order: 2;
    margin-top: 6px;
  }

  .problem-copy p {
    order: 3;
    margin: 0;
  }

  .problem img {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .problem figcaption {
    display: none;
  }

  .marketing-home .photo-overlay {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px -16px rgba(17, 24, 39, .45);
  }

  .photo-overlay > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
  }

  .photo-overlay svg {
    width: 15px;
    height: 15px;
  }

  .photo-overlay strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
  }

  .photo-overlay small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .scatter-list {
    order: 4;
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .scatter-list div {
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
  }

  .scatter-list strong,
  .scatter-list .chosen {
    display: none;
  }

  .carousel {
    position: relative;
    margin: 18px -20px 0;
  }

  .layer-grid,
  .audience-grid {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 6px 20px 8px;
    overflow-x: auto;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .layer-grid::-webkit-scrollbar,
  .audience-grid::-webkit-scrollbar,
  .tabs::-webkit-scrollbar {
    display: none;
  }

  .layer-grid article {
    width: 272px;
    min-height: 300px;
    flex: 0 0 272px;
    padding: 20px;
    gap: 12px;
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .layer-grid article:nth-child(2) {
    background: var(--ice);
  }

  .layer-grid small {
    font-size: 12px;
  }

  .layer-grid em {
    font-size: 10px;
    padding: 4px 9px;
  }

  .layer-grid h3 {
    font-size: 22px;
    line-height: 1.25;
  }

  .layer-grid p,
  .layer-grid strong {
    font-size: 14px;
    line-height: 1.5;
  }

  .dark-layer h3 {
    display: block;
  }

  .dark-layer div small {
    gap: 8px;
  }

  .dark-layer .spark-icon {
    width: 16px;
    height: 16px;
  }

  .dark-layer strong {
    padding: 0;
    background: none;
    color: #b6bec9;
    font-size: 12px;
    font-weight: 400;
  }

  .layer-grid article:hover,
  .audience-grid article:hover,
  .audience-grid article:hover img,
  .feature-strip article:hover,
  .mock-card:hover {
    transform: none;
    box-shadow: none;
  }

  .carousel-edge {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 96px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.96) 65%);
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .carousel-next {
    display: grid;
    place-items: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: opacity .2s ease;
  }

  .carousel-next .mobile-icon {
    width: 34px;
    height: 34px;
    stroke-width: 2.2;
  }

  .carousel.at-end .carousel-edge,
  .carousel.at-end .carousel-next {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .inside-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .inside-head > div:first-child {
    max-width: none;
  }

  .number-label.stacked {
    margin-bottom: 18px;
  }

  .tabs {
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding: 0 20px;
    gap: 6px;
    overflow-x: auto;
    border-radius: 0;
    background: none;
    scrollbar-width: none;
  }

  .tabs button {
    flex: none;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    white-space: nowrap;
  }

  .tabs button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .tabs button:hover {
    transform: none;
  }

  .tab-panel {
    margin: 18px -8px 0;
    padding: 18px 14px 14px;
    border-radius: 20px;
    gap: 14px;
  }

  .tab-copy {
    padding-inline: 4px;
  }

  .tab-copy h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .tab-copy p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .tab-copy ul {
    display: none;
  }

  .mock-card {
    min-width: 0;
    border-radius: 14px;
    box-shadow: 0 16px 40px -28px rgba(17, 24, 39, .35);
  }

  .mock-head {
    padding: 11px 14px;
    gap: 8px;
    font-size: 14px;
  }

  .mock-head > strong {
    min-width: 0;
  }

  .mock-head span {
    flex: none;
    font-size: 10px;
  }

  .mock-body {
    padding: 10px 14px;
    gap: 8px;
  }

  .mock-segments {
    display: flex;
    align-items: center;
    flex: none;
    gap: 3px;
    padding: 3px;
    border-radius: 7px;
    background: #eef3f8;
  }

  .mock-segments span {
    padding: 3px 8px;
    background: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .mock-segments span:first-child {
    border-radius: 5px;
    background: var(--ink);
    color: #fff;
  }

  .mock-card .status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mock-card .status-row strong {
    overflow-wrap: anywhere;
  }

  .status-row .mock-action {
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
  }

  .dose-times {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .dose-times .dose {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid var(--blue);
    border-radius: 50%;
  }

  .dose-times .given {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
  }

  .dose svg {
    width: 12px;
    height: 12px;
  }

  .vital-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vital-board > div {
    padding: 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 3px 8px;
    border-radius: 12px;
  }

  .vital-board .soft-icon {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .vital-board .mobile-icon {
    width: 15px;
    height: 15px;
  }

  .vital-board strong {
    font-size: 17px;
  }

  .vital-board small {
    font-size: 10px;
    margin: 0;
  }

  .range-card {
    margin-top: 0;
    padding: 12px;
  }

  .range-card strong {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
  }

  .range-card .mobile-icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--amber);
  }

  .range-card p {
    font-size: 12px;
  }

  .mock-task {
    display: grid;
    grid-template-columns: 42px 16px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .mock-task time {
    color: var(--muted);
    font-size: 11px;
  }

  .mock-checkbox {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    border: 1px solid #c9d5e2;
    border-radius: 4px;
  }

  .mock-task strong {
    display: block;
    font-size: 13px;
  }

  .mock-task small {
    display: block;
    color: var(--muted);
    font-size: 11px;
  }

  .mock-task.is-due time {
    color: #b42318;
  }

  .signed-row {
    padding: 12px;
  }

  .signed-row small {
    font-size: 10px;
  }

  .signed-row strong {
    font-size: 12px;
    line-height: 1.5;
  }

  .feature-strip {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .feature-strip article {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ice);
  }

  .feature-strip h3 {
    margin: 0;
    color: var(--body);
    font-size: 12px;
    font-weight: 600;
  }

  .feature-strip p {
    display: none;
  }

  .audience-grid {
    gap: 12px;
  }

  .audience-grid article {
    position: relative;
    width: 250px;
    flex: 0 0 250px;
    gap: 14px;
    scroll-snap-align: start;
  }

  .audience-grid img,
  .audience-grid article:nth-child(3) img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
  }

  .audience-grid small {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 10px;
  }

  .audience-grid h3 {
    font-size: 18px;
    line-height: 1.5;
  }

  .audience-grid p {
    font-size: 14px;
    line-height: 1.5;
  }

  .quote-section {
    display: block;
  }

  .quote-section > img {
    display: none;
  }

  .quote-section blockquote {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--ice);
  }

  .quote-pulse {
    width: 66px;
    height: 22px;
    fill: none;
    stroke: var(--blue-light);
    stroke-width: 2.4;
  }

  .quote-section blockquote p {
    font-size: 21px;
    line-height: 1.3;
    text-wrap: pretty;
  }

  .quote-section footer {
    margin: 0;
    gap: 12px;
  }

  .quote-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
  }

  .quote-section footer strong,
  .quote-section footer small {
    font-size: 13px;
  }

  .security-grid {
    margin-top: 24px;
    gap: 18px;
  }

  .security-section .section-copy > p {
    display: none;
  }

  .security-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 22px;
    border-radius: 18px;
  }

  .security-card > span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .security-card > span svg {
    width: 20px;
    height: 20px;
  }

  .security-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .security-card p,
  .security-card div {
    grid-column: 1 / -1;
    margin: 0;
  }

  .security-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .security-card em {
    font-size: 11px;
  }

  .security-list {
    counter-reset: security;
  }

  .security-list article {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px 0;
    counter-increment: security;
  }

  .security-list article::before {
    content: counter(security, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    padding-top: 2px;
  }

  .security-list h3,
  .security-list p {
    grid-column: 2;
  }

  .security-list h3 {
    font-size: 15px;
    line-height: 1.5;
  }

  .security-list p {
    font-size: 14px;
    line-height: 1.55;
  }

  .security-list article:last-of-type {
    border-bottom: 1px solid var(--line);
  }

  .security-list > a {
    display: none;
  }

  .cta {
    padding-inline: 12px;
    padding-bottom: 56px;
  }

  .cta-card {
    display: block;
    min-height: 0;
    padding: 28px 22px;
    border-radius: 22px;
    background: var(--ink);
    box-shadow: none;
  }

  .cta-ghost {
    position: absolute;
    top: -10px;
    right: -40px;
    width: 260px;
    height: 88px;
    fill: none;
    stroke: var(--dark);
    stroke-width: 2.4;
    pointer-events: none;
  }

  .cta-copy {
    gap: 18px;
  }

  .cta h2 {
    font-size: 28px;
    line-height: 1.08;
    text-wrap: pretty;
  }

  .cta p {
    font-size: 15px;
    line-height: 1.55;
  }

  .cta .button-row {
    flex-direction: column;
  }

  .cta .button {
    width: 100%;
    min-width: 0;
  }

  .footer-grid {
    padding-top: 36px;
    padding-bottom: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid img {
    height: 24px;
  }

  .footer-grid p {
    max-width: none;
    font-size: 14px;
  }

  .footer-grid .footer-audiences {
    display: none;
  }

  .footer-grid nav {
    gap: 0;
    font-size: 14px;
  }

  .footer-grid nav strong {
    padding-bottom: 6px;
    font-size: 10px;
  }

  .footer-grid nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .nav-inner {
    padding-inline: 12px;
  }

  .hero .button {
    padding-inline: 8px;
    font-size: 14px;
  }

  .patient-top {
    padding-inline: 10px;
  }

  .patient-id h2 {
    font-size: 16px;
  }

  .patient-id .patient-meta {
    font-size: 11px;
    gap: 4px;
  }

  .patient-meta span {
    padding-inline: 6px;
    font-size: 10px;
  }

  .acuity strong {
    font-size: 10px;
    padding-inline: 7px;
  }

  .stat-grid article {
    padding-inline: 10px;
    gap: 8px;
  }

  .card,
  .mock-body {
    padding-inline: 12px;
  }

  .status-row {
    padding-inline: 9px;
  }

  .status-row strong {
    font-size: 12px;
  }

  .pattern-body {
    column-gap: 8px;
  }

  .pattern-preview h3 {
    font-size: 12px;
  }

  .mock-head {
    padding-inline: 12px;
    font-size: 13px;
  }

  .mock-segments span {
    padding-inline: 6px;
    font-size: 9px;
  }

  .vital-board > div {
    gap: 3px 6px;
    padding: 8px;
  }

  .vital-board strong {
    font-size: 15px;
  }
}
