:root {
  --ink: #14281e;
  --muted: #5d7166;
  --paper: #fffaf3;
  --paper-strong: #fffdf9;
  --accent: #176844;
  --accent-dark: #0d3e2b;
  --accent-soft: #dff3e9;
  --gold: #d4a64e;
  --warm: #df735b;
  --line: rgba(22, 63, 43, 0.13);
  --shadow: 0 26px 72px rgba(25, 54, 39, 0.14);
  --header-h: 72px;
  --progress-h: 30px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

body[data-audience="clinic"] {
  --accent: #14586a;
  --accent-dark: #0b3642;
  --accent-soft: #ddf1f4;
  --line: rgba(20, 88, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #f4f1e9;
  font-family: var(--sans);
}

button,
a {
  font: inherit;
}

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

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(212, 166, 78, 0.75);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
  content: "";
}

.ambient::before {
  top: -24vw;
  left: -17vw;
  background: rgba(144, 211, 179, 0.34);
}

.ambient::after {
  right: -18vw;
  bottom: -25vw;
  background: rgba(238, 191, 114, 0.3);
}

body[data-audience="clinic"] .ambient::before {
  background: rgba(133, 206, 218, 0.34);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1380px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(22, 56, 38, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.02;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-role {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #496055;
  font-size: 0.88rem;
  font-weight: 650;
}

.topnav a:not(.nav-cta) {
  position: relative;
}

.topnav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a[aria-current="page"],
.topnav a:hover {
  color: var(--accent);
}

.topnav a[aria-current="page"]::after,
.topnav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta,
.button-primary,
.button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta,
.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.nav-cta:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.progress-shell {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  z-index: 90;
  height: var(--progress-h);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.progress {
  width: min(720px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  pointer-events: auto;
}

.progress-step {
  height: 5px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.progress-step::after {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  content: "";
  transition: width 360ms ease;
}

.progress-step.is-complete::after,
.progress-step.is-active::after {
  width: 100%;
}

.deck {
  position: relative;
  z-index: 10;
  height: calc(100dvh - var(--header-h));
  margin-top: var(--header-h);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: calc(var(--progress-h) + 10px) 28px 24px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 12% 20%, rgba(175, 225, 199, 0.43), transparent 27rem),
    radial-gradient(circle at 92% 78%, rgba(239, 196, 125, 0.36), transparent 26rem),
    linear-gradient(145deg, #f3f8f2 0%, #fffaf3 52%, #f7efe1 100%);
  content: "";
}

.slide:nth-child(even)::before {
  background:
    radial-gradient(circle at 88% 16%, rgba(160, 219, 191, 0.36), transparent 26rem),
    radial-gradient(circle at 10% 82%, rgba(230, 172, 132, 0.25), transparent 24rem),
    linear-gradient(145deg, #fffaf3 0%, #edf7f1 58%, #f8f1e5 100%);
}

body[data-audience="clinic"] .slide::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(160, 219, 229, 0.4), transparent 27rem),
    radial-gradient(circle at 92% 78%, rgba(239, 196, 125, 0.3), transparent 26rem),
    linear-gradient(145deg, #eff8f8 0%, #fffaf3 55%, #f4efe5 100%);
}

.stage {
  position: relative;
  width: min(1180px, 94vw);
  height: min(700px, calc(100dvh - var(--header-h) - var(--progress-h) - 52px));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  padding: clamp(30px, 4vw, 52px);
  background: rgba(255, 252, 247, 0.81);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stage::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--warm));
  content: "";
}

.copy,
.visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 19%, transparent);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 82%, transparent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 8%, transparent);
  content: "";
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.lede {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.64;
}

.points {
  display: grid;
  gap: 11px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.89rem;
  line-height: 1.43;
}

.check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.microcopy {
  margin: 13px 0 0;
  color: #748278;
  font-size: 0.7rem;
  line-height: 1.45;
}

.microcopy a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.visual {
  height: min(490px, 60vh);
  display: grid;
  place-items: center;
}

.screen,
.phone-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(19, 48, 32, 0.17);
}

.screen {
  width: 100%;
  height: 100%;
  max-height: 470px;
  border-radius: 24px;
}

.phone-screen {
  height: 100%;
  max-height: 480px;
  aspect-ratio: 560 / 950;
  border: 8px solid #13251c;
  border-radius: 38px;
}

.screen-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  color: #547063;
  background: #f8f3ea;
  font-size: 0.68rem;
  font-weight: 700;
}

.screen-head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm);
}

.screen-head i:nth-child(2) { background: #e9b864; }
.screen-head i:nth-child(3) { background: #5bae83; }
.screen-head span { margin-left: auto; }

.screen img {
  width: 100%;
  height: calc(100% - 42px);
  object-fit: cover;
  object-position: top;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-note {
  position: absolute;
  right: -16px;
  bottom: 28px;
  max-width: 230px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 44px rgba(20, 52, 35, 0.16);
}

.float-note strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.05;
}

.float-note span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.mini-flow,
.feature-grid,
.route-grid,
.metric-grid {
  width: min(100%, 520px);
  display: grid;
  gap: 13px;
}

.mini-flow {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.feature-grid,
.metric-grid {
  grid-template-columns: repeat(2, 1fr);
}

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

.mini-card,
.feature-card,
.route-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 42px rgba(25, 58, 40, 0.1);
}

.mini-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
}

.mini-card .number,
.feature-card .icon,
.route-card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 900;
}

.mini-card strong,
.feature-card strong,
.route-card strong,
.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 0.86rem;
}

.mini-card p,
.feature-card p,
.route-card p,
.metric-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.route-card {
  min-height: 170px;
}

.metric-card {
  min-height: 150px;
}

.metric-card em {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: normal;
  line-height: 1;
}

.connection {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
}

.person {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(27, 61, 42, 0.1);
}

.person-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  color: #fff;
  background: var(--accent);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.person:last-child .person-icon {
  color: var(--accent-dark);
  background: #edd098;
}

.person strong { font-size: 0.9rem; }
.person small { color: var(--muted); font-size: 0.68rem; line-height: 1.45; }

.connection-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.connection-line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--paper-strong);
  content: "↔";
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.schedule {
  width: min(100%, 500px);
  display: grid;
  gap: 12px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 13px 36px rgba(26, 60, 41, 0.09);
}

.schedule-row .day {
  display: grid;
  place-items: center;
  border-radius: 13px;
  padding: 10px 4px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-row strong,
.schedule-row small { display: block; }
.schedule-row strong { font-size: 0.83rem; }
.schedule-row small { margin-top: 4px; color: var(--muted); font-size: 0.67rem; }

.pill {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.62rem;
  font-weight: 850;
}

.final-card {
  width: min(100%, 510px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 30px;
  padding: clamp(28px, 4vw, 46px);
  color: #fff;
  background: linear-gradient(150deg, var(--accent-dark), var(--accent));
  box-shadow: 0 28px 68px color-mix(in srgb, var(--accent) 27%, transparent);
}

.final-card .label {
  color: #c9e7d7;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-card h3 {
  margin: 17px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.final-card ul {
  display: grid;
  gap: 11px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  color: #e8f3ed;
  font-size: 0.8rem;
}

.final-card li::before {
  margin-right: 9px;
  color: #efc574;
  content: "✓";
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.slide.is-active .reveal {
  opacity: 1;
  transform: translateY(0);
}

.side-controls {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 80;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.side-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 11px 28px rgba(23, 55, 37, 0.12);
}

.side-controls button:disabled {
  cursor: default;
  opacity: 0.3;
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --progress-h: 28px;
  }

  .topbar-inner {
    width: calc(100% - 24px);
  }

  .topnav a:not(.nav-cta) {
    display: none;
  }

  .slide {
    padding: calc(var(--progress-h) + 4px) 12px 10px;
  }

  .stage {
    width: 100%;
    height: calc(100dvh - var(--header-h) - var(--progress-h) - 14px);
    grid-template-columns: 1fr;
    grid-template-rows: max-content minmax(0, 1fr);
    gap: 13px;
    align-items: stretch;
    border-radius: 26px;
    padding: 21px 20px 17px;
  }

  .copy {
    min-height: min-content;
    align-self: start;
  }

  .visual {
    height: auto;
    min-height: 0;
    align-self: stretch;
  }

  h1,
  h2 {
    font-size: clamp(1.95rem, 8.5vw, 2.7rem);
    line-height: 1.01;
  }

  .eyebrow {
    margin-bottom: 12px;
    padding: 6px 9px;
    font-size: 0.59rem;
  }

  .lede {
    margin-top: 13px;
    font-size: 0.85rem;
    line-height: 1.48;
  }

  .points {
    gap: 8px;
    margin-top: 14px;
  }

  .points li {
    grid-template-columns: 21px 1fr;
    gap: 9px;
    font-size: 0.75rem;
    line-height: 1.36;
  }

  .check {
    width: 21px;
    height: 21px;
    border-radius: 7px;
    font-size: 0.64rem;
  }

  .actions {
    gap: 9px;
    margin-top: 15px;
  }

  .button-primary,
  .button-secondary {
    min-height: 44px;
    flex: 1 1 135px;
    padding: 10px 13px;
    font-size: 0.76rem;
  }

  .microcopy {
    display: none;
  }

  .microcopy.legal {
    display: block;
    margin-top: 9px;
    font-size: 0.57rem;
    line-height: 1.35;
  }

  .screen {
    max-height: none;
    border-radius: 18px;
  }

  .phone-screen {
    height: 100%;
    border-width: 5px;
    border-radius: 25px;
  }

  .screen-head {
    height: 31px;
    padding: 0 11px;
    font-size: 0.57rem;
  }

  .screen img { height: calc(100% - 31px); }

  .float-note {
    right: 7px;
    bottom: 9px;
    max-width: 168px;
    border-radius: 15px;
    padding: 11px 12px;
  }

  .float-note strong { font-size: 1.05rem; }
  .float-note span { font-size: 0.59rem; }

  .mini-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .feature-grid,
  .route-grid,
  .metric-grid {
    gap: 8px;
  }

  .mini-card,
  .feature-card,
  .route-card,
  .metric-card {
    border-radius: 15px;
    padding: 11px;
  }

  .mini-card { min-height: 126px; }
  .route-card { min-height: 110px; }
  .metric-card { min-height: 100px; }

  .mini-card .number,
  .feature-card .icon,
  .route-card .icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .mini-card strong,
  .feature-card strong,
  .route-card strong,
  .metric-card strong {
    margin-top: 9px;
    font-size: 0.67rem;
  }

  .mini-card p,
  .feature-card p,
  .route-card p,
  .metric-card p {
    margin-top: 4px;
    font-size: 0.56rem;
  }

  .metric-card em { font-size: 1.35rem; }

  .connection {
    grid-template-columns: 1fr 50px 1fr;
  }

  .person {
    min-height: 145px;
    gap: 8px;
    border-radius: 19px;
    padding: 12px 8px;
  }

  .person-icon {
    width: 47px;
    height: 47px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .person strong { font-size: 0.7rem; }
  .person small { font-size: 0.55rem; }

  .schedule { gap: 8px; }
  .schedule-row {
    grid-template-columns: 45px 1fr auto;
    gap: 9px;
    border-radius: 14px;
    padding: 9px;
  }
  .schedule-row .day { padding: 8px 2px; font-size: 0.56rem; }
  .schedule-row strong { font-size: 0.68rem; }
  .schedule-row small, .pill { font-size: 0.54rem; }

  .final-card {
    align-self: center;
    border-radius: 22px;
    padding: 22px;
  }
  .final-card h3 { margin-top: 12px; font-size: 1.75rem; }
  .final-card ul { gap: 8px; margin-top: 16px; font-size: 0.69rem; }

  .side-controls { display: none; }
}

@media (max-width: 520px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-role { display: none; }
  .nav-cta {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.74rem;
  }
  .progress { width: calc(100% - 38px); gap: 5px; }
}

@media (max-height: 720px) and (max-width: 900px) {
  .stage { gap: 8px; padding: 15px 17px 13px; }
  .eyebrow { margin-bottom: 7px; }
  h1, h2 { font-size: clamp(1.68rem, 7.4vw, 2.15rem); }
  .lede { margin-top: 8px; font-size: 0.75rem; }
  .points { display: none; }
  .actions { margin-top: 10px; }
}

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