:root {
  --night: #061426;
  --navy: #102c55;
  --teal: #62a9a3;
  --teal-bright: #8ccbc3;
  --copper: #d18a4d;
  --ivory: #fbf8f2;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.17);
  --glass-line: rgba(255, 255, 255, 0.24);
  --muted: rgba(240, 246, 251, 0.72);
  --shadow: 0 32px 90px rgba(0, 8, 20, 0.46);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(3, 14, 27, 0.34), rgba(2, 10, 20, 0.64)),
    url("./assets/premium-glass-background.0bbc70d5b32c.jpg") center / cover fixed;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  inset: -10%;
  background: linear-gradient(
    112deg,
    transparent 30%,
    rgba(140, 203, 195, 0.09) 43%,
    rgba(255, 255, 255, 0.12) 49%,
    transparent 58%
  );
  filter: blur(18px);
  animation: ambient-refraction 14s ease-in-out infinite alternate;
}

body::after {
  inset: auto 0 0;
  height: 30vh;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 8, 20, 0.36);
  transform: skewY(-4deg);
  transform-origin: left bottom;
}

@keyframes ambient-refraction {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(3%, 1%, 0) scale(1.07);
  }
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 28px;
}

.brand-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(4, 18, 34, 0.38);
  box-shadow:
    0 18px 44px rgba(0, 8, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.brand-heading p {
  margin: 0;
}

.brand-kicker {
  color: var(--teal-bright);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-name {
  margin-top: 4px !important;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 700;
}

.secure-label {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
}

.quiz {
  min-height: 650px;
}

.quiz-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 650px;
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(10, 31, 50, 0.22));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
}

.glass-highlight {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.step-enter {
  animation: step-enter 380ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.step-exit {
  animation: step-exit 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes step-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes step-exit {
  to {
    opacity: 0;
    transform: translateX(-14px) scale(0.992);
  }
}

.progress-region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.progress-label,
.progress-percent {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 800;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-value {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal-bright);
  box-shadow: 0 0 18px rgba(140, 203, 195, 0.62);
  transition: width 280ms ease;
}

.progress-step-1 {
  width: 12.5%;
}

.progress-step-2 {
  width: 25%;
}

.progress-step-3 {
  width: 37.5%;
}

.progress-step-4 {
  width: 50%;
}

.progress-step-5 {
  width: 62.5%;
}

.progress-step-6 {
  width: 75%;
}

.progress-step-7 {
  width: 87.5%;
}

.progress-step-8 {
  width: 100%;
}

.back-button {
  position: absolute;
  top: 57px;
  right: 26px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(2, 13, 27, 0.2);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.back-button:disabled {
  visibility: hidden;
}

.question {
  max-width: 620px;
  margin-bottom: 28px;
}

.question-eyebrow {
  margin: 0 0 11px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 5.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0;
  text-wrap: balance;
}

.question-description {
  max-width: 56ch;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(3, 19, 36, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 28px rgba(0, 9, 19, 0.1);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.option:hover {
  border-color: rgba(140, 203, 195, 0.58);
  background: rgba(19, 64, 82, 0.38);
  transform: translateX(3px);
}

.option.is-selected {
  border-color: var(--teal-bright);
  background: rgba(79, 135, 133, 0.37);
  box-shadow:
    0 0 0 1px rgba(140, 203, 195, 0.22),
    0 14px 38px rgba(0, 12, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateX(5px) scale(0.992);
}

.option::after {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  opacity: 0;
  transform: skewX(-18deg);
}

.option.is-selected::after {
  animation: option-sheen 360ms ease-out;
}

@keyframes option-sheen {
  0% {
    left: -30%;
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.option-indicator {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.option-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 160ms ease;
}

.option.is-selected .option-indicator {
  border-color: var(--teal-bright);
}

.option.is-selected .option-indicator span {
  background: var(--teal-bright);
  box-shadow: 0 0 12px rgba(140, 203, 195, 0.8);
}

.option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.option-copy strong {
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.25;
}

.option-copy small {
  color: rgba(238, 245, 249, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
}

.option-arrow {
  color: rgba(255, 255, 255, 0.42);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.tap-hint {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  text-align: center;
}

.final-panel {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: center;
}

.final-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(140, 203, 195, 0.52);
  border-radius: 50%;
  background: rgba(79, 135, 133, 0.22);
  box-shadow:
    0 0 0 8px rgba(140, 203, 195, 0.06),
    0 24px 54px rgba(0, 12, 24, 0.28);
}

.final-symbol span {
  color: var(--teal-bright);
  font-size: 2rem;
  font-weight: 900;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}

.trust-strip span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
}

.whatsapp-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: #2d8e78;
  box-shadow:
    0 18px 44px rgba(0, 19, 18, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--white);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.whatsapp-button:hover {
  background: #247864;
  transform: translateY(-1px);
}

.whatsapp-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.25rem;
}

.whatsapp-button > span:last-child {
  display: grid;
  gap: 3px;
}

.whatsapp-button strong {
  font-size: 0.98rem;
}

.whatsapp-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.restart-button {
  align-self: center;
  margin-top: 16px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  cursor: pointer;
}

.configuration-notice {
  padding: 16px;
  border: 1px solid rgba(209, 138, 77, 0.58);
  border-radius: 18px;
  background: rgba(181, 104, 45, 0.18);
  color: var(--ivory);
}

.consent-note {
  max-width: 60ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.legal-footer {
  display: grid;
  gap: 6px;
  padding: 20px 8px 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.65rem;
  line-height: 1.45;
  text-align: center;
}

.legal-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(209, 138, 77, 0.78);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .page {
    padding: 10px 9px 20px;
  }

  .brand-header {
    min-height: 62px;
    margin-bottom: 9px;
    padding: 6px 8px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .secure-label {
    display: none;
  }

  .quiz,
  .quiz-panel {
    min-height: 0;
  }

  .quiz-panel {
    padding: 20px 17px 22px;
  }

  .progress-region {
    margin-bottom: 26px;
  }

  .back-button {
    top: 43px;
    right: 16px;
    width: 34px;
    height: 34px;
  }

  .question {
    margin-bottom: 20px;
  }

  h1 {
    padding-right: 4px;
    font-size: clamp(1.65rem, 7.2vw, 2rem);
  }

  .question-description {
    margin-top: 11px;
    font-size: 0.85rem;
  }

  .option {
    grid-template-columns: 22px 1fr 16px;
    gap: 11px;
    min-height: 64px;
    padding: 10px 11px;
  }

  .option-copy strong {
    font-size: 0.88rem;
  }

  .option-copy small {
    font-size: 0.7rem;
  }

  .tap-hint {
    margin-top: 15px;
  }

  .final-panel {
    min-height: 610px;
  }
}

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