/* Let the entry bunny peek past the card without clipping (global styles use overflow-x: hidden). */
html.quiz-check,
html.quiz-check body,
html.quiz-check .page-shell {
  overflow-x: visible;
}

.quiz-page {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.quiz-card {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 44px rgba(21, 34, 50, 0.24);
  padding: 1.25rem 1.35rem 1.75rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(216, 214, 224, 0.85);
}

.quiz-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.quiz-logo-img {
  display: block;
  width: 36px;
  height: auto;
}

.quiz-logo-text {
  letter-spacing: 0.02em;
}

.quiz-back-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a6d82;
  text-decoration: none;
}

.quiz-back-link:hover {
  text-decoration: underline;
  color: #2d4a6e;
}

.quiz-progress-block {
  margin: 0 0 1rem;
}

.quiz-progress {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7a68;
  text-align: center;
}

.quiz-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 214, 224, 0.85);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(46, 47, 82, 0.08);
}

.quiz-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b8aab 0%, #8eb8d4 50%, #c4a574 100%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .quiz-progress-bar-fill {
    transition: none;
  }
}

.quiz-steps {
  min-height: 12rem;
  overflow: visible;
}

.quiz-step--entry .quiz-entry-inner {
  position: relative;
  z-index: 0;
  /* Same inset left + right so headings/buttons center in the full card; bunny sits in the left gutter. */
  --quiz-entry-bunny-gutter: clamp(3.65rem, 9vw, 6.35rem);
  padding-inline: var(--quiz-entry-bunny-gutter);
}

.quiz-step--entry .quiz-entry-inner > :not(.quiz-entry-bunny) {
  position: relative;
  z-index: 1;
}

.quiz-entry-bunny {
  position: absolute;
  top: clamp(-0.25rem, 2vw, 1.25rem);
  left: clamp(-3.75rem, -18vw, -1.35rem);
  right: auto;
  width: min(46vw, 10rem);
  max-width: 10rem;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 10px 18px rgba(45, 74, 110, 0.18));
  animation: quiz-bunny-bob 3.4s ease-in-out infinite;
  transform-origin: 70% 88%;
}

.quiz-entry-bunny-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Knock out solid black backdrop on the illustration (PNG on white card). */
@supports (mix-blend-mode: screen) {
  .quiz-entry-bunny-img {
    mix-blend-mode: screen;
    filter: contrast(1.06) saturate(1.1);
  }
}

@keyframes quiz-bunny-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2.5deg);
  }
  20% {
    transform: translateY(-11px) rotate(1.5deg) scale(1.02);
  }
  40% {
    transform: translateY(-5px) rotate(-1deg) scale(1);
  }
  60% {
    transform: translateY(-14px) rotate(2.5deg) scale(1.03);
  }
  78% {
    transform: translateY(-3px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-entry-bunny {
    animation: none;
  }
}

@media (max-width: 400px) {
  .quiz-step--entry .quiz-entry-inner {
    --quiz-entry-bunny-gutter: clamp(2.85rem, 9vw, 4.65rem);
  }

  .quiz-entry-bunny {
    top: 0.15rem;
    left: clamp(-2.85rem, -14vw, -1rem);
    width: min(40vw, 7.25rem);
    max-width: 7.25rem;
  }
}

.quiz-step {
  animation: quiz-fade-in 0.35s ease;
}

/* Author `display` on modifiers (e.g. .quiz-step--result) beats UA [hidden], so hidden steps would stay visible. */
.quiz-step[hidden] {
  display: none !important;
}

@keyframes quiz-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-step {
    animation: none;
  }
}

.quiz-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7a68;
  text-align: center;
}

.quiz-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  line-height: 1.2;
  color: #283546;
  text-align: center;
  font-weight: 800;
}

.quiz-lead {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4c5b6b;
  text-align: center;
  font-weight: 500;
}

.quiz-lead--hook {
  font-size: 1.12rem;
  font-weight: 600;
  color: #3d4a5c;
}

.quiz-step--entry .quiz-lead.quiz-lead--hook {
  max-width: 100%;
}

.quiz-start-btn {
  display: flex;
  margin: 0 auto;
  cursor: pointer;
  border: 2px solid #d9d6e1;
  font: inherit;
}

.quiz-waitlist-inline {
  margin: 1rem 0 0;
  text-align: center;
}

.quiz-waitlist-mini {
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.72rem;
}

.waitlist-page-card .quiz-title {
  margin-bottom: 0.35rem;
}

.waitlist-page-lead {
  margin-bottom: 1rem;
}

.waitlist-page-form-wrap {
  margin-top: 0;
}

.waitlist-page-home {
  margin: 1.2rem 0 0;
  text-align: center;
}

.quiz-q-index {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8b7a;
  text-align: center;
}

.quiz-question {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.35;
  color: #283546;
  text-align: center;
  font-weight: 700;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz-option {
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  color: #2e3a4a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(183, 154, 112, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quiz-option:hover {
  border-color: rgba(107, 138, 171, 0.65);
  box-shadow: 0 0 0 3px rgba(107, 138, 171, 0.12);
  background: #fff;
}

.quiz-option:focus {
  outline: none;
  border-color: #6b8aab;
  box-shadow: 0 0 0 3px rgba(107, 138, 171, 0.22);
}

.quiz-option.is-selected {
  border-color: rgba(107, 138, 171, 0.85);
  background: linear-gradient(145deg, rgba(107, 138, 171, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 0 0 2px rgba(107, 138, 171, 0.2);
}

.quiz-option:active {
  transform: scale(0.99);
}

.quiz-step--facts .quiz-question {
  margin-bottom: 1rem;
}

.quiz-facts-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0 0 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.quiz-facts-list::before {
  content: "";
  position: absolute;
  left: calc(0.55rem + 4.35rem / 2 - 1px);
  top: 2.4rem;
  bottom: 2.4rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(107, 138, 171, 0.45) 0%,
    rgba(196, 165, 116, 0.4) 50%,
    rgba(107, 138, 171, 0.25) 100%
  );
  pointer-events: none;
}

.quiz-fact {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  margin: 0;
  padding: 0.65rem 0.75rem 0.65rem 0.55rem;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(183, 154, 112, 0.28);
  box-shadow: 0 6px 20px rgba(21, 34, 50, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quiz-fact:hover {
  border-color: rgba(107, 138, 171, 0.4);
  box-shadow: 0 10px 28px rgba(45, 74, 110, 0.1), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transform: translateY(-2px);
}

.quiz-fact-stat-wrap {
  flex-shrink: 0;
  width: 4.35rem;
  min-height: 4.35rem;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #4d6782 0%, #6b8aab 42%, #8eb8d4 100%);
  box-shadow: 0 4px 16px rgba(45, 74, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.quiz-fact:nth-child(2) .quiz-fact-stat-wrap {
  background: linear-gradient(145deg, #3d5a78 0%, #5a7a9e 45%, #7a9eb8 100%);
}

.quiz-fact:nth-child(3) .quiz-fact-stat-wrap {
  background: linear-gradient(145deg, #6b5c48 0%, #9a8260 38%, #c4a574 100%);
  box-shadow: 0 4px 16px rgba(90, 70, 45, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quiz-fact:nth-child(4) .quiz-fact-stat-wrap {
  background: linear-gradient(145deg, #2d4a6e 0%, #4a6584 48%, #6b8aab 100%);
}

.quiz-fact-stat {
  font-size: clamp(0.92rem, 2.8vw, 1.08rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.quiz-fact-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
}

.quiz-fact-copy {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: #2e3a4a;
}

.quiz-fact-punch {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(184, 92, 92, 0.1) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(248, 228, 186, 0.2) 100%);
  border: 1px solid rgba(184, 92, 92, 0.22);
  box-shadow: 0 4px 18px rgba(184, 92, 92, 0.08);
}

.quiz-fact-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #a84848;
}

.quiz-fact-outro {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: #3d4a5c;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-fact {
    transition: none;
  }

  .quiz-fact:hover {
    transform: none;
  }
}

.quiz-step--result {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quiz-result-hero {
  position: relative;
  margin: 0 -0.35rem 1.35rem;
  padding: 1.35rem 1rem 1.5rem;
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 252, 248, 0.98) 0%,
    rgba(252, 244, 232, 0.92) 42%,
    rgba(240, 246, 252, 0.88) 100%
  );
  border: 1px solid rgba(232, 201, 146, 0.35);
  box-shadow: 0 10px 32px rgba(45, 74, 110, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.quiz-result-hero::before,
.quiz-result-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.quiz-result-hero::before {
  width: 12rem;
  height: 12rem;
  top: -5rem;
  right: -3.5rem;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.28) 0%, transparent 68%);
}

.quiz-result-hero::after {
  width: 10rem;
  height: 10rem;
  bottom: -4rem;
  left: -3rem;
  background: radial-gradient(circle, rgba(107, 138, 171, 0.22) 0%, transparent 70%);
}

.quiz-result-hero > * {
  position: relative;
  z-index: 1;
}

.quiz-step--result .quiz-result-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  padding: 0.38rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a4548;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 92, 92, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(184, 92, 92, 0.08);
}

.quiz-title--result {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 4.8vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #1f2d3d 0%, #3d4f63 55%, #4d6782 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .quiz-title--result {
    color: #283546;
    background: none;
  }
}

.quiz-lead--result-gap {
  margin-bottom: 0;
  max-width: 26rem;
  font-weight: 600;
  color: #3d4a5c;
  font-size: 1.02rem;
}

.quiz-insight {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 1.05rem 1.1rem 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 248, 240, 0.94) 48%, rgba(248, 236, 214, 0.5) 100%);
  border: 1px solid rgba(212, 185, 138, 0.4);
  box-shadow: 0 8px 26px rgba(90, 70, 45, 0.07), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  text-align: left;
}

.quiz-insight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #c4a574 0%, #9a8260 45%, #6b8aab 100%);
  box-shadow: 0 0 12px rgba(196, 165, 116, 0.35);
}

.quiz-insight-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  padding-left: 0.15rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5c48;
}

.quiz-insight-title::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c4a574 0%, #8b7355 100%);
  box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.35);
}

.quiz-insight-intro {
  margin: 0 0 0.5rem;
  padding-left: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d4a5c;
}

.quiz-insight-list {
  margin: 0 0 0.7rem;
  padding: 0 0 0 0.15rem;
  list-style: none;
  color: #4c5b6b;
  line-height: 1.55;
  font-size: 0.91rem;
}

.quiz-insight-list li {
  position: relative;
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
}

.quiz-insight-list li:last-child {
  margin-bottom: 0;
}

.quiz-insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #6b8aab 0%, #4d6782 100%);
  box-shadow: 0 0 0 2px rgba(107, 138, 171, 0.2);
}

.quiz-insight-outro {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2e3a4a;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(232, 201, 146, 0.35);
}

.quiz-solution {
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.15rem 1.2rem;
  text-align: center;
  color: #4c5b6b;
  line-height: 1.65;
  font-size: 0.95rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(107, 138, 171, 0.1) 0%, rgba(255, 255, 255, 0.95) 38%, rgba(236, 244, 252, 0.75) 100%);
  border: 1px solid rgba(107, 138, 171, 0.28);
  box-shadow: 0 8px 28px rgba(45, 74, 110, 0.09), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.quiz-solution-lead {
  margin: 0 0 0.45rem;
  font-size: clamp(1.02rem, 3vw, 1.12rem);
  font-weight: 800;
  color: #243547;
  letter-spacing: -0.015em;
}

.quiz-solution p {
  margin: 0 0 0.75rem;
}

.quiz-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3d5366;
}

.quiz-reassurance li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 138, 171, 0.22);
  box-shadow: 0 2px 8px rgba(45, 74, 110, 0.06);
}

.quiz-reassurance li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #5a9a6e 0%, #3d6b4d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 3px rgba(61, 107, 77, 0.35);
}

.quiz-result-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(216, 214, 224, 0.75);
}

.quiz-result-cta {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.quiz-result-secondary {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.quiz-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(216, 214, 224, 0.65);
}

.quiz-prev {
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5a6d82;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-prev:hover {
  color: #2d4a6e;
}

.quiz-prev:focus {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(107, 138, 171, 0.28);
}

.quiz-restart-wrap {
  margin: 0;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.quiz-restart {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7a8c;
  text-decoration: underline;
  cursor: pointer;
}

.quiz-restart:hover {
  color: #2d4a6e;
}
