:root {
  --ink: #13272e;
  --muted: #2f6e86;
  --brand: #1b6b82;
  --brand-strong: #0f4d5e;
  --line: #5f9faf;
  --bg: #f1f1f1;
  --card: #f5f5f5;
  --disabled: #c4c4c4;
  --danger: #ea4343;
}

.brand-wordmark {
  font-family: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 767px) {
  .brand-wordmark { font-size: 17px; }
}
.brand-wordmark .re { color: #1F2A28; }
.brand-wordmark .ro { color: #0E5C4A; }
.brand-wordmark .dot { color: #D97757; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--ink);
}

.flow-main-wrap {
  min-height: 100vh;
  padding: clamp(12px, 2.8vw, 28px) 12px;
  display: grid;
  place-items: center;
}

.journey-card {
  width: min(640px, 100%);
  min-height: min(780px, 86vh);
  border: 3px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.16)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 2px, transparent 2px, transparent 52px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 2px, transparent 2px, transparent 52px),
    linear-gradient(180deg, #c4d6df 0%, #ececec 32%, #f7f7f7 66%);
  padding: clamp(14px, 2.1vw, 22px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.journey-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -34px;
  top: 42px;
  opacity: .2;
  background:
    linear-gradient(45deg, transparent 46%, rgba(138,181,194,.45) 47%, rgba(138,181,194,.45) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(138,181,194,.45) 47%, rgba(138,181,194,.45) 53%, transparent 54%);
  pointer-events: none;
}

.journey-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Step counter pill: "Step 1 / 7" */
.step-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5c6a69;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.back-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  padding: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
}
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  width: min(300px, 48vw);
  overflow: hidden;
}
.progress-fill {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .2s ease;
}

.question-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
  color: #112125;
}
.question-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #5c6a69;
  font-weight: 400;
}

.section-body {
  margin-top: 18px;
}

.field,
.input,
.select,
.prefix,
.choice,
.continue-btn,
.otp-box {
  font: inherit;
}

.phone-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.prefix,
.input,
.select,
.option-input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,.36);
  font-size: clamp(14px, 1.1vw, 17px);
  padding: 0 14px;
  color: #9e9a97;
  font-weight: 500;
}
.prefix {
  display: flex;
  align-items: center;
  justify-content: center;
}
.input::placeholder,
.option-input::placeholder { color: #9e9a97; }

.name-grid {
  display: grid;
  gap: 10px;
}
.error {
  color: var(--danger);
  font-size: 13px;
  min-height: 14px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.choice {
  width: 100%;
  min-height: 60px;
  border-radius: 999px;
  border: 1.5px solid #106278;
  background: #fff;
  color: #106278;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 600;
  padding: 12px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .choice:hover {
    background: #106278;
    color: #fff;
  }
}
/* Explicitly kill hover tint on touch/no-hover devices so unselecting
   a card releases the colour immediately without needing a tap-away. */
@media (hover: none) {
  .choice:hover {
    background: #fff;
    color: #106278;
  }
  .choice.active:hover {
    background: #106278;
    color: #fff;
  }
}
.choice.active {
  background: #106278;
  color: #fff;
}

.label {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.otp-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.otp-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid #8ab1be;
  background: rgba(255,255,255,.34);
  text-align: center;
  font-size: 20px;
  color: var(--ink);
}
.otp-meta {
  margin-top: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.bottom-area {
  margin-top: auto;
  padding-top: 14px;
}
@keyframes halo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 40, 50, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(11, 40, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 40, 50, 0); }
}

.continue-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: #112125;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(17, 33, 37, 0.15);
}
.continue-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.continue-btn:not(:disabled) {
  animation: halo-pulse 2s infinite;
}
.continue-btn:disabled {
  background: #d4d4d4;
  color: #fff;
  cursor: not-allowed;
  animation: none;
  box-shadow: none;
}

.disclaimer {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(19,39,46,.7);
  font-weight: 400;
}

.hidden { display: none !important; }

.payment-shell {
  width: min(1280px, 100%);
}
.go-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: start;
}
.pane {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #f5f5f5;
  padding: 28px;
}
.bmi-card {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  background: #efefef;
}
.bmi-title {
  margin: 0;
  font-size: clamp(36px, 2.4vw, 54px);
  letter-spacing: -0.02em;
}
.bmi-score {
  font-size: 52px;
  color: #f4862f;
  font-weight: 900;
}
.bmi-subline {
  margin: 0;
  color: #1b6178;
  font-size: clamp(28px, 1.9vw, 44px);
  line-height: 1.22;
}
.bmi-scale-wrap {
  margin: 18px 0 34px;
}
.bmi-scale {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.25fr 1fr 1.35fr;
  gap: 6px;
  align-items: center;
}
.bmi-scale .seg {
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.bmi-scale .u { background: #6379bd; }
.bmi-scale .h { background: #71b660; }
.bmi-scale .o { background: #e5a326; }
.bmi-scale .ob { background: #ef8a2f; }
.bmi-scale .eo { background: #ff2f2f; }
.bmi-pointer {
  position: absolute;
  top: -16px;
  left: 70%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid #ef8a2f;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.15));
}
.bmi-range-text {
  margin: 10px 0 0;
  color: #1b6178;
  font-size: 14px;
}

.pkg h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 2vw, 46px);
  letter-spacing: -0.02em;
}
.package-item {
  border-radius: 32px;
  background: #e6eff2;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 98, 120, 0.05);
}
.package-item.is-open {
  border-radius: 24px;
  padding-bottom: 12px;
}
.package-head {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--brand);
  text-align: left;
  cursor: pointer;
  font-family: Inter, "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.package-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.package-chevron {
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}
.package-item:not(.is-open) .package-chevron {
  transform: rotate(180deg);
}
.package-price {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.package-body {
  margin: 0;
  padding: 0 20px 18px;
  color: #1b6178;
  font-size: 14px;
  line-height: 1.55;
}
.package-body p {
  margin: 0 0 8px;
}
.package-body ul {
  margin: 0;
  padding: 0 0 0 18px;
}
.package-body li {
  margin: 0 0 4px;
}
.total-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
}
.total-row .strike {
  font-size: 28px;
  margin-right: 16px;
  text-decoration: line-through;
  opacity: .75;
}
.pkg-note {
  margin-top: 8px;
  color: #1b6178;
  font-size: 13px;
}
.success-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.success-card {
  min-height: auto;
  padding-bottom: 32px;
}
.summary-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(95,159,175,0.3);
}
.summary-list span {
  color: #1b6178;
  font-size: 14px;
}
.summary-list strong {
  color: #13272e;
  font-size: 15px;
}
.success-actions {
  margin-top: 18px;
}
.success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.success-secondary {
  margin-top: 10px;
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.notice {
  margin-top: 12px;
  color: #2f6e86;
  font-size: 13px;
}
.notice a {
  color: inherit;
}
.mobile-sticky-cta {
  display: none;
}

.exit-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}
.exit-modal.is-open {
  display: block;
}
.exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.exit-modal__sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(760px, 100%);
  background: #f5f5f5;
  border-radius: 24px 24px 0 0;
  padding: 16px 18px 24px;
}
.exit-modal__close {
  border: 0;
  background: transparent;
  font-size: 44px;
  line-height: 1;
  color: #262626;
  margin-left: auto;
  display: block;
  cursor: pointer;
}
.exit-modal__image-wrap {
  margin-top: 6px;
  border-radius: 20px;
  background: #f1f1f1;
  overflow: hidden;
}
.exit-modal__image {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.exit-modal__title {
  margin: 16px 0 8px;
  text-align: center;
  color: #13272e;
  font-size: clamp(34px, 2.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.exit-modal__text {
  margin: 0;
  text-align: center;
  color: #6e6f72;
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1.45;
}
.exit-modal__actions {
  margin-top: 18px;
}
.exit-modal__continue {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #032a35, #0b2832);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.exit-modal__leave {
  margin-top: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #13272e;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 980px) {
  .journey-card {
    border-width: 2px;
    border-radius: 22px;
    min-height: min(920px, 92vh);
    padding: 18px;
  }
  .question-title { font-size: clamp(26px, 7vw, 34px); }
  .question-subtitle { font-size: clamp(14px, 3.8vw, 17px); }
  .prefix, .input, .select, .option-input { min-height: 50px; border-width: 2px; font-size: 16px; }
  .choice { min-height: 58px; border-width: 2px; font-size: 15px; }
  .choice:hover { background: #fff; color: #106278; }
  .choice.active:hover { background: #106278; color: #fff; }
  .continue-btn { min-height: 58px; font-size: 15px; }
  .phone-row { grid-template-columns: 90px 1fr; }
  .row, .choice-grid.two-col { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .bmi-scale .seg {
    font-size: 15px;
    padding: 8px 8px;
  }
}

@media (max-width: 640px) {
  .flow-main-wrap { padding: 10px; }
  .journey-card {
    border-radius: 22px;
    min-height: calc(100vh - 20px);
    padding: 14px;
  }
  .question-title { font-size: 28px; }
  .question-subtitle { font-size: 16px; }
  .progress-track { width: 100%; }
  .prefix, .input, .select, .option-input {
    min-height: 56px;
    border-radius: 14px;
    font-size: 16px;
    padding: 0 14px;
  }
  .choice {
    min-height: 58px;
    font-size: 16px;
    border-radius: 999px;
    border-width: 2px;
  }
  .otp-box {
    width: 56px;
    height: 56px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 24px;
  }
  .continue-btn {
    min-height: 62px;
    font-size: 15px;
  }
  .back-btn { font-size: 34px; }
  .label { font-size: 16px; }
  .pkg h2 { font-size: 24px; }
  .package-head { font-size: 20px; }
  .total-row, .total-row .strike { font-size: 22px; }
  .package-head { padding: 16px; }
  .package-body { padding: 0 16px 14px; }
  .bmi-scale {
    gap: 4px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
  .bmi-scale .seg {
    font-size: 10px;
    padding: 6px 2px;
    letter-spacing: -0.02em;
    white-space: normal;
    line-height: 1.1;
    word-break: break-word;
  }
  .bmi-pointer {
    top: -12px;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top-width: 10px;
  }
  .mobile-sticky-cta {
    position: fixed;
    display: block;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1200;
  }
  .mobile-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 999px;
    background: linear-gradient(90deg, #032a35, #0b2832);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }
  body {
    padding-bottom: 84px;
  }
  .exit-modal__sheet {
    border-radius: 20px 20px 0 0;
    padding: 10px 12px 20px;
  }
  .exit-modal__image {
    max-height: 300px;
  }
  .exit-modal__title {
    font-size: 26px;
  }
  .exit-modal__text {
    font-size: 14px;
  }
}
