:root {
  --brand-color: #1b6fd8;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100dvh;
}

.funnel-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.brand-header {
  background: var(--brand-color);
  color: #fff;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
}

.brand-logo .brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-size: .7rem;
  letter-spacing: .12em;
  opacity: .95;
}

.brand-logo .brand-line::before,
.brand-logo .brand-line::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: rgba(255,255,255,.8);
}

.brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin: .35rem 0;
}

.funnel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.funnel-viewport {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.funnel-step {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: calc(100dvh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  overflow: hidden;
}

.funnel-step.active {
  display: flex;
  animation: fadeIn .25s ease;
}

.step-body {
  flex: 1;
  min-height: 0;
  padding: 1rem 1rem 0;
  overflow: hidden;
}

.step-body--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.step-body--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-footer {
  flex-shrink: 0;
  padding: .75rem 1rem 1.25rem;
  background: linear-gradient(to top, #fff 80%, rgba(255,255,255,0));
}

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

.hero-copy {
  text-align: center;
  margin-bottom: 1rem;
}

.intro-hero {
  text-align: center;
  padding: .25rem 0 1.25rem;
}

.intro-hero h1 {
  margin: 0 0 .4rem;
  font-size: 1.65rem;
  line-height: 1.15;
}

.intro-hero h2 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: var(--brand-color);
  font-weight: 700;
  line-height: 1.3;
}

.intro-hero p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.video-bg {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2ff;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.video-bg__player {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.video-bg__player .wistia_embed,
.video-bg__player .wistia_swatch {
  width: 100%;
  height: 100%;
}

.video-bg .wistia_click_to_play,
.video-bg .wistia_play_button,
.video-bg .w-big-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.intro-region {
  margin-top: 1.25rem;
  padding-top: .25rem;
}

.intro-region .step-question {
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: 1.55rem;
  margin: 0 0 .45rem;
  line-height: 1.2;
}

.hero-copy h2 {
  font-size: 1.05rem;
  margin: 0 0 .45rem;
  color: var(--brand-color);
  font-weight: 700;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.value-props {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.value-props li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: .82rem;
  font-weight: 700;
}

.value-props__icon {
  font-size: 1rem;
  line-height: 1;
}

.video-card--hero {
  margin: 1rem 0 0;
}

.video-card--hero .wistia-resize-wrapper {
  aspect-ratio: 16 / 10;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.funnel-step--scroll.active {
  display: block;
  height: auto;
  min-height: calc(100dvh - 7.5rem);
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.intro-page {
  padding: 1rem 1rem 2rem;
}

.btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.wistia-resize-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2ff;
}

.wistia_embed {
  width: 100%;
  height: 100%;
}

.video-caption {
  margin: 0;
  padding: .85rem 1rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.section-head {
  margin-bottom: .85rem;
}

.section-title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  text-align: center;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  text-align: center;
}

.section-subtitle--center {
  margin-bottom: 1rem;
}

.section-eyebrow {
  margin: 0 0 .35rem;
  text-align: center;
  color: var(--brand-color);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-section--clinics {
  margin-top: 1.75rem;
}

.intro-section--region {
  margin-top: 2rem;
  padding: 1.25rem 0 .5rem;
  border-top: 1px solid #e5e7eb;
}

.clinic-scroll {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .25rem .15rem 1rem;
  margin: 0 -.15rem;
}

.clinic-scroll::-webkit-scrollbar {
  display: none;
}

.clinic-card--showcase {
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.clinic-card--showcase:active {
  transform: scale(.985);
}

.clinic-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2ff;
}

.clinic-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinic-card__city {
  position: absolute;
  left: .65rem;
  bottom: .65rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.clinic-card__body {
  padding: .85rem .9rem 1rem;
  display: grid;
  gap: .35rem;
}

.clinic-card__body strong {
  display: block;
  font-size: .98rem;
  line-height: 1.3;
}

.clinic-card__subtitle {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.clinic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.clinic-badge {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.clinic-badge--housing {
  background: #eff6ff;
  color: #1d4ed8;
}

.clinic-badge--new {
  background: #fef3c7;
  color: #b45309;
}

.clinic-card--showcase.selected {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(27, 111, 216, .18), 0 4px 16px rgba(17, 24, 39, 0.08);
}

.clinic-card--showcase.region-match {
  border-color: #93c5fd;
}

.clinic-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.clinic-card {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: .85rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.clinic-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.clinic-card__copy strong,
.clinic-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--brand-color);
  margin-bottom: .3rem;
}

.clinic-card__copy span,
.clinic-card span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.clinic-card.selected img {
  outline: 3px solid var(--brand-color);
  outline-offset: 1px;
}

.step-question {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.step-hint {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: -.5rem 0 1rem;
}

.choice-stack {
  display: grid;
  gap: .75rem;
}

.btn-choice,
.btn-primary,
.btn-link {
  font: inherit;
  cursor: pointer;
}

.btn-choice,
.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--brand-color);
  color: #fff;
  padding: 1rem 1rem;
  text-align: left;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(27, 111, 216, .22);
}

.btn-choice .emoji {
  margin-right: .35rem;
}

.btn-primary.btn-block,
.btn-submit {
  text-align: center;
  font-weight: 800;
  letter-spacing: .04em;
}

.btn-link {
  display: block;
  width: 100%;
  margin-top: .5rem;
  background: transparent;
  border: 0;
  color: var(--brand-color);
  font-weight: 700;
  padding: .75rem;
}

.multi-select-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.multi-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  cursor: pointer;
}

.multi-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.multi-emoji { font-size: 1.2rem; }
.multi-label { font-weight: 700; }

.multi-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
}

.multi-card:has(input:checked) {
  border-color: var(--brand-color);
  background: rgba(27, 111, 216, .05);
}

.multi-card:has(input:checked) .multi-check {
  border-color: var(--brand-color);
  background: radial-gradient(circle at center, var(--brand-color) 55%, transparent 56%);
}

.registration-form {
  display: grid;
  gap: .85rem;
}

.field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .5rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: .25rem .75rem;
  background: #fff;
}

.field--phone {
  grid-template-columns: auto auto 1fr;
}

.phone-prefix {
  width: auto;
  min-width: 6.5rem;
  max-width: 7.5rem;
  padding-right: .25rem;
  border-right: 1px solid #e5e7eb;
  margin-right: .25rem;
  font-size: .95rem;
}

.field-icon {
  font-size: 1.1rem;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  padding: .9rem 0;
  font: inherit;
  background: transparent;
  outline: none;
}

.field select {
  color: var(--text);
}

.field select:invalid,
.field input:placeholder-shown {
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: .2rem;
}

.submit-icon {
  margin-left: .35rem;
}

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

.thank-you h2 {
  margin-top: 0;
}

.thank-you--rejection .thank-you__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.thank-you--rejection h2 {
  color: #b45309;
}

@media (min-width: 520px) {
  .funnel-app {
    box-shadow: var(--shadow);
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100dvh - 2rem);
  }
}
