:root {
  color-scheme: light;
  --night: #073047;
  --night-soft: #0d6681;
  --night-line: rgba(7, 76, 99, 0.18);
  --white: #073047;
  --muted: rgba(7, 48, 71, 0.7);
  --blue: #168fb4;
  --blue-bright: #25b7cf;
  --aqua: #45c9cf;
  --aqua-soft: rgba(22, 143, 180, 0.09);
  --danger: #b4234b;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #ffffff; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255, 255, 255, .24), transparent 65%),
    linear-gradient(180deg, #148caf 0%, #78ccdf 15%, #d9f1f6 39%, #f7fbfc 68%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }

.ambient {
  position: fixed;
  width: 29rem;
  height: 29rem;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  opacity: .12;
  z-index: 0;
}

.ambient--one { top: 14%; right: -18rem; background: var(--aqua); }
.ambient--two { bottom: -20rem; left: -14rem; background: var(--blue); }

.brand-bar {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: block;
  width: 158px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.prototype-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  color: #073047;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 750;
}

.prototype-pill span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 143, 180, .12);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  flex: 1;
  display: grid;
  align-items: center;
}

.experience { width: 100%; }

#prototypeForm { width: 100%; }

.stage {
  position: relative;
  min-height: 515px;
  display: grid;
  align-content: center;
  padding: 52px 24px 38px;
  text-align: center;
}

.stage.is-entering { animation: panelIn 420ms ease both; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--aqua);
}

.intro-title,
.question,
.success-title {
  margin: 0 auto;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.intro-title {
  max-width: 660px;
  font-size: clamp(46px, 8vw, 66px);
  line-height: 1;
}

.lead {
  max-width: 570px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: balance;
}

.safe-note {
  width: fit-content;
  max-width: 520px;
  margin: 28px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(7, 48, 71, .82);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.safe-note strong { color: #087895; }

.intro-actions { margin-top: 28px; }

.step-number {
  margin: 0 0 15px;
  color: #087895;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.question {
  max-width: 650px;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.08;
}

.hint {
  max-width: 550px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: balance;
}

.info-callout {
  width: 100%;
  max-width: 620px;
  margin: 24px auto 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #432a00;
  background: linear-gradient(135deg, #fff8d6 0%, #ffe79a 100%);
  border: 2px solid #c77b00;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(117, 72, 0, .16);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.55;
  text-align: left;
}

.info-callout--attention {
  animation: attentionNudge 620ms cubic-bezier(.36, .07, .19, .97) 180ms both;
}

.info-callout__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #5d3900;
}

.info-callout__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.info-callout__text { min-width: 0; }

@keyframes attentionNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.options {
  width: 100%;
  max-width: 590px;
  margin: 28px auto 0;
  display: grid;
  gap: 11px;
}

.option {
  position: relative;
  min-height: 60px;
  padding: 12px 48px 12px 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: var(--aqua);
  background: rgba(228, 248, 250, .92);
}

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

.option-key {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #087895;
  background: rgba(22, 143, 180, .08);
  border: 1px solid rgba(22, 143, 180, .24);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.option-text {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 650;
}

.option-check {
  position: absolute;
  right: 17px;
  width: 18px;
  height: 18px;
  fill: var(--aqua);
  opacity: 0;
  transform: scale(.75);
  transition: opacity 180ms ease, transform 180ms ease;
}

.option:has(input:focus-visible) {
  outline: 3px solid rgba(117, 220, 218, .22);
  outline-offset: 3px;
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: rgba(210, 241, 246, .94);
}

.option:has(input:checked) .option-key {
  color: #ffffff;
  background: var(--aqua);
}

.option:has(input:checked) .option-check {
  opacity: 1;
  transform: scale(1);
}

.field-wrap {
  width: 100%;
  max-width: 540px;
  margin: 34px auto 0;
}

.field {
  width: 100%;
  height: 66px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field::placeholder { color: rgba(7, 48, 71, .4); }
.field:hover { background: rgba(255, 255, 255, .95); border-color: rgba(22, 143, 180, .46); }
.field:focus { border-color: var(--blue); background: #ffffff; box-shadow: 0 0 0 4px rgba(22, 143, 180, .12); }

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

.country-code {
  display: grid;
  place-items: center;
  color: #087895;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
}

.error-message {
  min-height: 22px;
  margin: -6px auto 2px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(117, 220, 218, .25); outline-offset: 3px; }

.button--primary {
  padding: 0 28px;
  color: #03202a;
  background: linear-gradient(135deg, var(--aqua), var(--blue-bright));
  box-shadow: 0 12px 28px rgba(22, 151, 189, .2);
}

.button--primary:hover { background: linear-gradient(135deg, #8ae9e6, #2cc4da); }

.button--secondary {
  width: 50px;
  color: var(--white);
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--night-line);
}

.form-footer {
  max-width: 590px;
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 74px;
}

.form-footer[hidden] { display: none; }

.progress-wrap { display: grid; justify-items: center; gap: 8px; }
.counter { margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; }

.progress {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  min-height: 7px;
}

.progress-segment {
  width: 22px;
  height: 4px;
  background: rgba(7, 76, 99, .18);
  border-radius: var(--radius-pill);
  transition: background 220ms ease, transform 220ms ease;
}

.progress-segment.is-complete,
.progress-segment.is-active { background: var(--aqua); }
.progress-segment.is-active { transform: scaleX(1.18); }

.nav { display: flex; gap: 10px; }

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(117, 220, 218, .08);
  font-size: 32px;
  font-weight: 900;
}

.success-title { max-width: 580px; font-size: clamp(40px, 7vw, 58px); line-height: 1.02; }
.success-copy { max-width: 570px; margin: 20px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

.whatsapp-button {
  width: min(100%, 520px);
  min-height: 52px;
  margin-top: 26px;
  color: rgba(7, 48, 71, .46);
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-md);
  cursor: not-allowed;
  font-size: 16px;
  font-weight: 800;
}

.disabled-caption { margin: 10px 0 0; color: rgba(7, 48, 71, .62); font-size: 14px; line-height: 1.5; }
.restart-button { margin-top: 22px; color: #087895; background: transparent; border: 0; cursor: pointer; font-size: 16px; font-weight: 800; }

.prototype-note {
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  color: rgba(7, 48, 71, .5);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px) {
  body { padding: 16px 16px 14px; }
  .brand-bar { min-height: 60px; }
  .brand-logo { width: 122px; height: 55px; }
  .prototype-pill { min-height: 34px; padding: 0 11px; font-size: 12px; }
  .stage { min-height: 500px; padding: 42px 2px 28px; }
  .intro-title { font-size: 42px; }
  .lead { font-size: 17px; }
  .question { font-size: 32px; }
  .hint { font-size: 16px; }
  .info-callout { margin-top: 22px; padding: 16px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 1.55; }
  .info-callout__icon { width: 30px; height: 30px; }
  .info-callout__icon svg { width: 28px; height: 28px; }
  .options { gap: 9px; margin-top: 24px; }
  .option { min-height: 57px; padding: 10px 43px 10px 12px; }
  .option-text { font-size: 16px; line-height: 1.45; }
  .field { height: 60px; font-size: 19px; }
  .form-footer { display: grid; justify-items: center; gap: 17px; padding-bottom: 8px; }
  .nav { width: 100%; }
  .button--primary { flex: 1; }
  .progress-segment { width: 19px; }
  .prototype-note { max-width: 330px; line-height: 1.5; }
}

@media (max-width: 380px) {
  .stage { min-height: 460px; padding-top: 30px; }
  .intro-title { font-size: 36px; }
  .question { font-size: 30px; }
  .safe-note { font-size: 15px; }
  .info-callout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

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