/* Quiz and offer flow */
.quiz-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(844px, 100%);
  min-height: calc(var(--app-viewport-height) - 80px);
  margin: 0 auto;
}
.quiz-header {
  width: 100%;
  margin: 0;
}

.quiz-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 7px;
}

.quiz-header-back-desktop {
  display: none;
}

.quiz-header-spacer {
  display: none;
}

.quiz-step-desktop {
  display: block;
}

.icon-button-back-corner {
  position: fixed;
  top: 24px;
  left: 24px;
  display: grid;
}

.icon-button-back-corner .icon-svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.quiz-progress-meta {
  display: none;
}

.quiz-step {
  color: var(--olive);
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  width: 65px;
}

.quiz-progress-track {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.quiz-progress-fill {
  display: block;
  width: var(--progress-width, 63.033%);
  height: 100%;
  border-radius: inherit;
  background: var(--olive);
  transition: width 260ms ease;
}

.quiz-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 46px auto 0;
}

.quiz-title {
  max-width: 422px;
  margin: 0 auto;
  color: var(--olive);
  font-family: "Jun", Georgia, serif;
  font-size: 30px;
  line-height: 1.0625;
  letter-spacing: -0.015em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.quiz-title-mobile {
  display: none;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 47px;
  margin-bottom: 0;
}

.quiz-form-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-block: 0;
}

.quiz-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-options.is-hidden {
  display: none;
}

.quiz-numeric {
  width: 100%;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--surface-soft);
}

.quiz-numeric.is-hidden {
  display: none;
}

.quiz-numeric-input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.333;
  letter-spacing: -0.03em;
  text-align: center;
}

.quiz-numeric-input::placeholder {
  color: rgba(81, 101, 70, 0.6);
  opacity: 1;
}

.quiz-numeric-input::-webkit-outer-spin-button,
.quiz-numeric-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.quiz-numeric-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 11px 60px 11px 22px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid rgba(81, 101, 70, 0);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.modal-root.is-open .quiz-option {
  animation: option-in 420ms ease forwards;
  animation-delay: var(--option-delay, 0ms);
}

.quiz-option:hover {
  border-color: rgba(81, 101, 70, 0.14);
  background: #f2f1e8;
}

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

.radio-mark {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: transparent;
}

.radio-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--olive);
  transform: scale(0);
  transition: transform 180ms ease;
}

.quiz-option-text {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.333;
  letter-spacing: -0.03em;
  width: 711px;
}

.quiz-option input:checked + .radio-mark::after {
  transform: scale(1);
}

.quiz-option:has(input:checked) {
  border-color: rgba(81, 101, 70, 0.14);
}

.quiz-hint {
  margin: 0;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8571428571;
  letter-spacing: -0.03em;
  text-align: center;
}

.quiz-feedback {
  min-height: 18px;
  margin: -2px 0 0;
  color: rgba(81, 101, 70, 0.82);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.quiz-modal.is-numeric .quiz-hint,
.quiz-modal.is-hint-hidden .quiz-hint,
.quiz-modal.is-numeric .quiz-feedback {
  display: none;
}

.quiz-modal.is-numeric .quiz-body {
  margin-top: 30px;
}

.quiz-modal.is-numeric .quiz-form {
  margin-top: 30px;
}

.quiz-modal.is-numeric .quiz-submit {
  margin-top: 0;
}

.modal-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: transparent;
}

.quiz-form:has(.quiz-submit.is-hidden) .quiz-footer {
  display: none;
}

.quiz-footer {
  margin-top: 50px;
}

.quiz-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 350px;
  min-height: 48px;
  margin-top: 0;
  padding: 10px 52px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--modal-bg);
  box-shadow:
    0 8px 8.75px rgba(0, 0, 0, 0.1),
    0 20px 21.875px rgba(0, 0, 0, 0.1);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease;
}

.quiz-submit.is-hidden {
  display: none;
}

.quiz-submit:hover,
.quiz-submit:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.quiz-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quiz-submit-plus {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.transition-screen {
  position: relative;
  display: none;
  width: min(886px, 100%);
  min-height: 220px;
  margin: 0 auto;
  color: var(--olive);
  text-align: center;
}

.quiz-modal.is-transition {
  align-items: stretch;
}

.quiz-modal.is-transition > .icon-button,
.quiz-modal.is-transition .quiz-stage,
.quiz-modal.is-pre-result .quiz-stage,
.quiz-modal.is-pre-result .transition-screen,
.quiz-modal.is-paywall .quiz-stage,
.quiz-modal.is-paywall .transition-screen,
.quiz-modal.is-paywall .pre-result-screen {
  display: none;
}

.quiz-modal.is-transition .transition-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: calc(var(--app-viewport-height) - 80px);
  animation: transition-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quiz-modal.is-pre-result {
  align-items: stretch;
  justify-content: flex-start;
  height: var(--app-viewport-height);
  min-height: 0;
  padding: 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

.quiz-modal.is-pre-result > .icon-button-close {
  z-index: 3;
  display: grid;
}

.quiz-modal.is-paywall {
  align-items: stretch;
  justify-content: flex-start;
  height: var(--app-viewport-height);
  min-height: 0;
  padding: 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

.quiz-modal.is-paywall > .icon-button-close {
  z-index: 3;
  display: grid;
}

.pre-result-screen {
  display: none;
  width: min(1280px, 100%);
  max-height: var(--app-viewport-height);
  margin: 0 auto;
  overflow: hidden;
  background: var(--modal-bg);
  color: var(--olive);
  text-align: center;
}

.quiz-modal.is-pre-result .pre-result-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: var(--app-viewport-height);
  max-height: none;
  padding: 40px 0;
  overflow: visible;
  animation: transition-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quiz-modal.is-pre-result .pre-result-content {
  flex: 0 0 auto;
  margin-top: auto;
}

.paywall-screen {
  display: none;
  width: min(1280px, 100%);
  max-height: var(--app-viewport-height);
  margin: 0 auto;
  overflow: hidden;
  color: var(--olive);
  text-align: center;
}

.quiz-modal.is-paywall .paywall-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: var(--app-viewport-height);
  max-height: none;
  padding: max(40px, calc((var(--app-viewport-height) - 772px) / 2)) 0 0;
  overflow: visible;
  animation: transition-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.paywall-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.paywall-heading {
  position: relative;
  isolation: isolate;
  width: min(886px, 100%);
}

.paywall-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--olive);
  font-family: "Jun", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 0.895;
  text-align: center;
  text-transform: uppercase;
}

.paywall-accent {
  position: absolute;
  z-index: 0;
  top: 22px;
  left: calc(50% - 30px);
  width: 223px;
  height: 34px;
  color: #fdb6ba;
  pointer-events: none;
}

.paywall-subtitle {
  position: relative;
  z-index: 1;
  width: 494px;
  max-width: 100%;
  margin: 17px 0 0;
  margin-inline: auto;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.333;
  text-align: center;
}

.paywall-price {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 432px;
  max-width: 100%;
  min-height: 119px;
  margin-top: 40px;
}

.paywall-price strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 338px;
  height: 61px;
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.paywall-asterisk {
  position: relative;
  top: -0.62em;
  margin-left: 2px;
  font-size: 0.48em;
  line-height: 1;
}

.paywall-price span,
.paywall-action p {
  margin: 0;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  line-height: 2.6;
  letter-spacing: 1.4px;
  text-align: center;
}

.paywall-price > span {
  display: none;
}

.paywall-price a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paywall-cards {
  display: grid;
  grid-template-columns: repeat(4, 296px);
  gap: 32px;
  width: 100%;
  margin-top: 14px;
}

.paywall-card {
  position: relative;
  height: 402px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-muted);
  box-shadow: 0 30px 52.5px -12px rgba(54, 51, 29, 0.08);
}

.paywall-card h3 {
  position: relative;
  z-index: 1;
  width: 216px;
  min-height: 91px;
  margin: 20px auto 0;
  color: var(--ink);
  font-family: "Jun", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
  display: grid;
  place-items: center;
}

.paywall-card:nth-child(2) h3 {
  min-height: 74px;
}

.paywall-card:nth-child(3) h3 {
  width: 256px;
  min-height: 92px;
}

.paywall-card:nth-child(4) h3 {
  min-height: 92px;
}

.paywall-card img {
  position: absolute;
  left: 26px;
  bottom: 29px;
  width: 242px;
  height: 242px;
  border-radius: 40px;
  object-fit: cover;
}

.paywall-card:nth-child(2) img {
  left: 27px;
}

.paywall-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 432px;
  max-width: 100%;
  margin-top: 0;
  gap: 0;
}

.paywall-consent {
  position: absolute;
  left: 13px;
  top: 77px;
  display: grid;
  grid-template-columns: 16px max-content;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  line-height: 2.6;
  letter-spacing: 1.4px;
  text-align: left;
}

.paywall-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.paywall-consent-mark {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--olive);
  border-radius: 4px;
  background: #ffffff;
}

.paywall-consent-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  border-right: 0;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.paywall-consent input:checked + .paywall-consent-mark {
  border-color: var(--olive);
  background: transparent;
}

.paywall-consent input:checked + .paywall-consent-mark::after {
  opacity: 1;
}

.paywall-consent input:focus-visible + .paywall-consent-mark {
  outline: 2px solid var(--olive-strong);
  outline-offset: 3px;
}

.paywall-consent a {
  color: var(--olive-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paywall-submit {
  margin-top: 0;
  height: 48px;
  min-height: 48px;
  border-radius: 20px;
}

.paywall-action .paywall-error {
  margin: 8px 0 0;
  color: #9b2c2c;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 12px;
  text-align: center;
}

.paywall-error:empty {
  display: none;
}

.paywall-action-note {
  display: block;
  margin-top: 8px;
  color: rgba(81, 101, 70, 0.6);
}

.pre-result-heading {
  position: relative;
  width: min(601px, 100%);
  height: 64px;
  margin: 0 auto;
}

.pre-result-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #53662d;
  font-family: "Jun", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.0526;
  letter-spacing: -0.5px;
  text-align: center;
  text-transform: uppercase;
}

.pre-result-accent {
  position: absolute;
  top: 26px;
  left: 364px;
  width: 240px;
  height: 35px;
  color: #fdb6ba;
  opacity: 0.95;
}

.pre-result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 624px));
  gap: 32px;
  margin-top: 32px;
}

.pre-result-card {
  min-height: 300px;
  border-radius: 20px;
  background: var(--surface-muted);
  padding: 15px 54px 25px;
  color: var(--olive);
}

.pre-result-card h3,
.plan-column h3 {
  margin: 0;
  font-family: "Jun", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.pre-result-card h3 {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 508px;
  max-width: 100%;
  min-height: 134px;
  margin-top: 6px;
  text-align: left;
}

.reason-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 19px;
  align-items: center;
  min-height: 32px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.111;
  letter-spacing: -0.5px;
}

.spark-slot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 27px;
}

.reason-list li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reason-list li:nth-child(1) {
  min-height: 43px;
}

.reason-list li:nth-child(3) {
  min-height: 47px;
}

.spark-icon {
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 27px;
  color: #fdb6ba;
  overflow: visible;
}

.reason-list li:nth-child(2) .spark-icon {
  height: 27px;
}

.pre-result-card p {
  margin: 21px 0 0;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.pre-result-strategy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pre-result-strategy h3 {
  margin-top: 0;
}

.strategy-pill {
  display: grid;
  place-items: center;
  width: 441px;
  max-width: 100%;
  min-height: 48px;
  margin-top: 55px;
  padding: 8px 24px;
  border-radius: 20px;
  background: var(--modal-bg);
  color: var(--olive);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.pre-result-strategy p {
  width: 517px;
  max-width: 100%;
  margin-top: 51px;
  font-weight: 500;
}

.pre-result-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  min-height: 161px;
  margin-top: 32px;
  padding: 18px 26px 29px;
  border-radius: 20px;
  background: var(--olive);
}

.plan-column h3 {
  color: var(--modal-bg);
}

.plan-metric {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 60px;
  margin-top: 11px;
  border-radius: 20px;
  background: var(--modal-bg);
  color: var(--olive);
  font-family: var(--mono);
  letter-spacing: -0.5px;
}

.metric-check {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  color: #fdb6ba;
}

.plan-metric-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.plan-metric strong {
  color: #53662d;
  font-size: 30px;
  font-weight: 800;
  line-height: 0.8667;
}

.plan-metric-text > span {
  color: var(--olive);
  font-size: 20px;
  font-weight: 500;
}

.plan-metric b {
  font-weight: 700;
}

.plan-forecast {
  gap: 0;
}

.plan-forecast .metric-check {
  left: 30px;
}

.pre-result-form {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 432px;
  max-width: 100%;
  margin: 50px auto 0;
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin-bottom: auto;
}

.email-field {
  position: relative;
  display: grid;
  place-items: center;
  --email-icon-offset: 25px;
  --email-icon-size: 24px;
  --email-input-side-padding: calc(var(--email-icon-offset) + var(--email-icon-size) + 14px);
  width: 350px;
  height: 48px;
  border: 1px solid rgba(81, 101, 70, 0.6);
  border-radius: 20px;
  background: #fbf9f2;
  color: var(--olive);
}

.email-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 var(--email-input-side-padding);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
}

.email-field input::placeholder {
  color: rgba(81, 101, 70, 0.6);
  opacity: 1;
}

.email-icon {
  position: absolute;
  right: var(--email-icon-offset);
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 var(--email-icon-size);
  width: var(--email-icon-size);
  height: var(--email-icon-size);
  color: var(--olive);
  pointer-events: none;
}

.pre-result-note {
  width: min(886px, 100%);
  margin: 4px 0 0;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.714;
  letter-spacing: -0.5px;
  text-align: center;
}

.pre-result-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  min-height: 48px;
  margin-top: 19px;
  padding: 10px 52px;
  border-radius: 20px;
  background: var(--ink);
  box-shadow:
    0 8px 8.75px rgba(0, 0, 0, 0.1),
    0 20px 21.875px rgba(0, 0, 0, 0.1);
  color: var(--modal-bg);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.pre-result-submit .quiz-submit-plus {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.pre-result-submit:hover,
.pre-result-submit:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.pre-result-submit.paywall-submit {
  margin-top: 0;
}

.quiz-restore-root {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  min-height: var(--app-viewport-height);
  height: var(--app-viewport-height);
  padding: 32px;
  overflow: hidden;
}

.quiz-restore-root.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.quiz-restore-overlay {
  position: absolute;
  inset: 0;
  background: rgba(251, 249, 242, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.quiz-restore-modal {
  position: relative;
  z-index: 1;
  width: min(727px, calc(100vw - 48px));
  min-height: 313px;
  max-height: calc(var(--app-viewport-height) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 48px 50px 45px;
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--olive);
  box-shadow: 0 30px 52.5px -12px rgba(54, 51, 29, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.quiz-restore-root.is-open .quiz-restore-overlay {
  opacity: 1;
}

.quiz-restore-root.is-open .quiz-restore-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.quiz-restore-modal:focus {
  outline: none;
}

.quiz-restore-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--olive);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.quiz-restore-close:hover,
.quiz-restore-close:focus-visible {
  color: var(--ink);
  outline: none;
  transform: scale(1.04);
}

.quiz-restore-copy {
  width: min(626px, 100%);
  margin: 0 auto;
  text-align: center;
}

.quiz-restore-copy h2 {
  margin: 0;
  color: var(--olive);
  font-family: "Jun", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: 0;
}

.quiz-restore-copy p {
  margin: 9px 0 0;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: 0;
}

.quiz-restore-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(626px, 100%);
  margin: 58px auto 0;
}

.quiz-restore-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 296px;
  height: 45px;
  padding: 0 42px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-button);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 1.4px;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.quiz-restore-action:hover,
.quiz-restore-action:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.quiz-restore-action-primary {
  background: var(--ink);
  color: var(--surface-soft);
}

.quiz-restore-action-secondary {
  background: transparent;
  color: var(--ink);
}

.quiz-restore-action-label {
  display: block;
  min-width: 0;
  text-align: center;
}

.quiz-restore-action-plus {
  position: absolute;
  right: 13px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  transform: translateY(-50%);
}

.transition-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.transition-heading {
  position: relative;
  width: min(699px, 100%);
  margin: 0 auto;
}

.transition-title {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: var(--olive);
  font-family: "Jun", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4375;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.transition-subtitle {
  margin: 0;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.333;
  letter-spacing: -0.03em;
}

.transition-accent {
  position: absolute;
  top: 27px;
  left: 411.5px;
  width: 192px;
  height: 28px;
  color: #fdb6ba;
  opacity: 0.9;
}

.transition-progress {
  position: relative;
  overflow: hidden;
  width: min(728px, 100%);
  height: 33px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--surface-soft);
}

.transition-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: var(--transition-progress-width, 0%);
  border-radius: 20px 10px 10px 20px;
  background: var(--olive);
  transition: width 3000ms linear;
}

.transition-progress-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-width: 260px;
  padding-inline: 12px;
  background: var(--surface-soft);
  color: var(--olive);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0.1em;
  text-align: center;
}
@keyframes option-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes transition-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 1366px) and (min-width: 761px) {
  .quiz-title,
  .transition-title {
    font-size: 30px;
    line-height: 1.1;
  }

  .paywall-title,
  .pre-result-title {
    font-size: 34px;
    line-height: 1;
  }

  .pre-result-card h3,
  .plan-column h3 {
    font-size: 28px;
    line-height: 1.2;
  }

  .paywall-card h3 {
    font-size: 24px;
    line-height: 1.05;
  }
}
@media (max-width: 1080px) {
  .quiz-modal {
    padding-inline: 24px;
  }

  .quiz-title {
    font-size: 30px;
  }

  .quiz-option-text {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  :root {
    --mobile-modal-bottom-gap: 60px;
    --mobile-quiz-header-height: 112px;
  }
  .quiz-header,
  .quiz-body {
    width: 100%;
  }

  .quiz-stage {
    width: 100%;
    max-width: 100%;
    height: calc(var(--app-viewport-height) - 20px - var(--mobile-modal-bottom-gap));
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
    overflow-anchor: none;
  }

  .quiz-header {
    position: relative;
    flex: 0 0 auto;
    z-index: 3;
    height: var(--mobile-quiz-header-height);
    padding-top: max(18px, env(safe-area-inset-top));
    background: var(--modal-bg);
  }

  .quiz-header-top {
    justify-content: center;
    margin-bottom: 0;
  }

  .quiz-header-back-desktop,
  .quiz-header-spacer,
  .quiz-step-desktop {
    display: none;
  }

  .icon-button-back-corner {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    display: grid;
    z-index: 5;
  }

  .icon-button-back-corner .icon-svg {
    width: 28px;
    height: 28px;
  }

  .quiz-progress-meta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .quiz-step {
    font-size: 24px;
    width: 57px;
    text-align: center;
  }

  .quiz-progress-track {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
  }

  .quiz-body {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(24px, 1fr) auto auto minmax(24px, 1fr) auto;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
  }

  .quiz-title {
    grid-row: 2;
    max-width: 326px;
    font-size: 28px;
    line-height: 1.04;
  }

  .quiz-title-desktop {
    display: none;
  }

  .quiz-title-mobile {
    display: inline;
  }

  .quiz-form {
    display: contents;
  }

  .quiz-form-content {
    grid-row: 3;
    width: 100%;
    margin-top: 40px;
    justify-self: stretch;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 0;
  }

  .quiz-footer {
    grid-row: 5;
    margin-top: 50px;
  }

  .quiz-modal.is-numeric .quiz-body {
    margin-top: 0;
    overflow-y: hidden;
    overscroll-behavior: none;
  }

  .quiz-modal.is-numeric .quiz-title {
    max-width: 326px;
    font-size: 30px;
    line-height: 1;
  }

  .quiz-modal.is-numeric .quiz-title,
  .quiz-modal.is-numeric .quiz-form-content {
    transform: translateY(calc(0px - var(--app-keyboard-content-offset)));
    transition: transform 180ms ease;
  }

  .quiz-modal.is-numeric .quiz-form {
    display: contents;
  }

  .quiz-modal.is-numeric .quiz-form-content,
  .quiz-modal.is-numeric .quiz-footer {
    width: 100%;
  }

  .quiz-modal.is-numeric .quiz-footer {
    position: fixed;
    right: 0;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 0;
    z-index: 6;
    margin-top: 0;
    transform: translateY(calc(0px - var(--app-keyboard-offset)));
    transition: transform 180ms ease;
  }

  .quiz-submit {
    width: calc(100% - 40px);
    max-width: none;
    min-width: 0;
    border-radius: 10px;
  }

  .quiz-modal.is-numeric .quiz-submit {
    width: calc(100% - 40px);
    max-width: none;
    margin-top: 0;
  }

  .quiz-options {
    align-items: center;
    width: 100%;
  }

  .quiz-numeric {
    width: calc(100% - 40px);
    max-width: none;
  }

  .quiz-modal.is-numeric .quiz-numeric {
    width: calc(100% - 40px);
  }

  .quiz-numeric-input {
    font-size: 18px;
  }

  .quiz-option {
    position: relative;
    width: calc(100% - 40px);
    max-width: none;
    box-sizing: border-box;
    min-height: 60px;
    padding: 10px 18px 10px 12px;
    gap: 18px;
    align-items: center;
  }

  .quiz-option:nth-of-type(4) {
    min-height: 60px;
  }

  .quiz-option .radio-mark {
    position: relative;
    left: auto;
    top: auto;
  }

  .quiz-option-text {
    position: static;
    flex: 1;
    width: auto;
    font-size: 16px;
    line-height: 1.25;
  }

  .quiz-hint {
    width: calc(100% - 40px);
    max-width: none;
    font-size: 12px;
    line-height: 1.33;
  }

  .quiz-feedback {
    width: calc(100% - 40px);
    max-width: none;
  }

  .quiz-submit {
    width: calc(100% - 40px);
    max-width: none;
    min-width: 0;
    margin-top: 0;
    border-radius: 10px;
    background: var(--modal-bg);
    box-shadow:
      0 8px 8.75px rgba(0, 0, 0, 0.1),
      0 20px 21.875px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: 0.1em;
  }

  .quiz-modal.is-transition {
    padding: 0;
    justify-content: flex-start;
  }

  .quiz-modal.is-pre-result {
    display: flex;
    align-items: stretch;
    height: var(--app-viewport-height);
    min-height: 0;
    padding: 0 0 var(--mobile-modal-bottom-gap);
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quiz-modal.is-paywall {
    display: flex;
    align-items: stretch;
    height: var(--app-viewport-height);
    min-height: 0;
    padding: 0 0 var(--mobile-modal-bottom-gap);
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quiz-modal.is-pre-result .icon-button-close {
    top: 10px;
    right: 10px;
  }

  .quiz-modal.is-paywall .icon-button-close {
    top: 10px;
    right: 10px;
  }

  .transition-screen {
    width: 100%;
    max-width: 100%;
    min-height: var(--app-viewport-height);
    padding-top: 0;
    gap: 30px;
  }

  .transition-copy {
    gap: 16px;
    margin-block: 0;
  }

  .transition-title {
    width: 100%;
    font-size: 30px;
    line-height: 1;
  }

  .transition-heading {
    width: 390px;
    max-width: 100%;
  }

  .transition-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .transition-accent {
    top: 48px;
    left: 110px;
    width: 188px;
    height: 27px;
    transform: none;
  }

  .transition-progress {
    width: calc(100% - 40px);
    max-width: 350px;
    height: 33px;
    margin-top: 0;
  }

  .transition-progress-fill {
    border-radius: 30px 5px 5px 30px;
  }

  .transition-progress-label {
    min-width: 0;
    padding-inline: 12px;
    background: var(--surface-soft);
    font-size: 12px;
    font-weight: 400;
    line-height: 33px;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .quiz-modal.is-pre-result .pre-result-screen {
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: var(--app-viewport-height);
    justify-content: flex-start;
    overflow: visible;
    background: var(--modal-bg);
    padding: 0 0 100px;
  }

  .pre-result-content,
  .paywall-hero {
    justify-content: flex-start;
  }

  .quiz-modal.is-pre-result .pre-result-content {
    margin-top: 0;
  }

  .pre-result-heading {
    width: 100%;
    max-width: 100%;
    height: 73px;
    margin-top: 87px;
  }

  .pre-result-title {
    width: 282px;
    margin: 0 auto;
    font-size: 30px;
    line-height: 1;
  }

  .pre-result-accent {
    top: 48px;
    left: 50%;
    width: 188px;
    height: 27px;
    transform: translateX(-70px);
  }

  .pre-result-cards {
    width: calc(100% - 40px);
    max-width: none;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 0;
  }

  .pre-result-card {
    min-height: 300px;
    padding: 20px 27px 25px;
  }

  .pre-result-card h3,
  .plan-column h3 {
    font-size: 30px;
    line-height: 1.2;
  }

  .pre-result-card h3 {
    height: 36px;
  }

  .reason-list {
    width: 100%;
    min-height: 134px;
    gap: 8px;
    margin-top: 8px;
  }

  .reason-list li {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    min-height: 32px;
    font-size: 14px;
    line-height: 1.214;
  }

  .spark-slot {
    width: 20px;
    height: 21px;
  }

  .reason-list li:nth-child(3) {
    min-height: 50px;
  }

  .reason-list li:nth-child(1) {
    min-height: 36px;
  }

  .spark-slot {
    width: 20px;
  }

  .spark-icon {
    width: 20px;
    height: 21px;
  }

  .reason-list li:nth-child(2) .spark-icon {
    height: 21px;
  }

  .pre-result-card p {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.25;
  }

  .strategy-pill {
    width: 100%;
    margin-top: 54px;
    padding: 8px 20px;
    font-size: 18px;
  }

  .pre-result-strategy p {
    width: 100%;
    margin-top: 45px;
    font-weight: 500;
  }

  .pre-result-plan {
    width: calc(100% - 40px);
    max-width: none;
    grid-template-columns: 1fr;
    gap: 11px;
    min-height: 301px;
    margin: 20px auto 0;
    padding: 24px;
  }

  .plan-metric {
    min-height: 48px;
    margin-top: 11px;
    gap: 10px;
  }

  .plan-column:first-child .plan-metric {
    min-height: 82px;
    flex-wrap: wrap;
    align-content: center;
    padding: 9px 24px 11px;
  }

  .plan-column:first-child .metric-check {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .plan-column:first-child .plan-metric-text {
    flex-wrap: wrap;
    gap: 0 10px;
    width: 100%;
    max-width: none;
    padding-left: 28px;
    padding-right: 8px;
  }

  .plan-metric strong {
    font-size: 24px;
    line-height: 1.083;
  }

  .plan-metric-text > span {
    font-size: 18px;
    line-height: 1.444;
  }

  .metric-check {
    width: 32px;
    height: 32px;
  }

  .plan-forecast {
    gap: 10px;
  }

  .plan-forecast .metric-check {
    left: 12px;
  }

  .pre-result-form {
    width: calc(100% - 40px);
    max-width: none;
    margin: 50px auto 50px;
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-bottom: 0;
    background: transparent;
  }

  .email-field {
    --email-icon-offset: 25px;
    --email-input-side-padding: calc(var(--email-icon-offset) + var(--email-icon-size) + 10px);
    width: 100%;
    border-radius: 10px;
    box-shadow:
      0 8px 8.75px rgba(0, 0, 0, 0.1),
      0 20px 21.875px rgba(0, 0, 0, 0.1);
  }

  .email-field input {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
  }

  .email-field input:not(:placeholder-shown) {
    font-size: 15px;
    letter-spacing: 0;
  }

  .pre-result-note {
    display: none;
  }

  .pre-result-submit {
    width: 100%;
    margin-top: 12px;
    border-radius: 10px;
  }

  .paywall-screen {
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: var(--app-viewport-height);
    overflow: visible;
    background: var(--modal-bg);
  }

  .quiz-modal.is-paywall .paywall-screen {
    padding: 0 0 100px;
  }

  .paywall-hero {
    padding-top: 84px;
  }

  .paywall-heading {
    width: 100%;
  }

  .paywall-title {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 32px;
    line-height: 0.9375;
  }

  .paywall-accent {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 0;
    width: 188px;
    height: 27px;
    transform: translateX(-40px);
  }

  .paywall-subtitle {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 348px;
    margin: 10px auto 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.375;
  }

  .paywall-price {
    width: calc(100% - 40px);
    min-height: 0;
    margin-top: 37px;
  }

  .paywall-consent {
    position: static;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    width: auto;
    max-width: calc(100% - 40px);
    margin-top: 16px;
    margin-bottom: 16px;
    letter-spacing: 0;
    line-height: 10px;
    text-align: left;
  }

  .paywall-consent-mark {
    flex: 0 0 16px;
    margin-top: 0;
  }

  .paywall-consent > span:last-child {
    display: inline;
    max-width: 260px;
    line-height: 10px;
    text-align: center;
  }

  .paywall-price strong {
    width: 100%;
    max-width: none;
    font-size: 28px;
    line-height: 1.286;
  }

  .paywall-action {
    order: 3;
    width: calc(100% - 40px);
    max-width: 100%;
    position: static;
    bottom: auto;
    z-index: 2;
    margin-top: 0;
    padding: 0;
    background: transparent;
  }

  .paywall-action .paywall-error {
    width: 100%;
    font-size: 12px;
    line-height: 10px;
  }

  .paywall-action p {
    font-family: var(--sans);
    font-size: 10px;
    line-height: 2.6;
  }

  .paywall-action-note {
    line-height: 10px;
  }

  .paywall-cards {
    order: 4;
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 40px);
    max-width: none;
    margin-top: 28px;
  }

  .paywall-card {
    height: auto;
    min-height: calc(((100vw - 84px) * 0.869) + 130px);
    border-radius: 20px;
  }

  .paywall-card h3 {
    width: calc(100% - 40px);
    min-height: 91px;
    margin-top: 20px;
    font-size: 26px;
  }

  .paywall-card:nth-child(2) h3 {
    min-height: 74px;
  }

  .paywall-card:nth-child(3) h3 {
    width: calc(100% - 40px);
    min-height: 92px;
  }

  .paywall-card:nth-child(4) h3 {
    width: calc(100% - 40px);
    min-height: 92px;
    margin-top: 20.5px;
  }

  .paywall-card img {
    left: 22px;
    bottom: 39px;
    width: calc(100% - 44px);
    height: auto;
    aspect-ratio: 306 / 266;
    border-radius: 20px;
    object-fit: cover;
  }

  .paywall-card:nth-child(1) img {
    bottom: 21px;
  }

  .paywall-card:nth-child(2) img {
    left: 22px;
    bottom: 21px;
  }

  .paywall-card:nth-child(3) img {
    left: 22px;
    bottom: 20px;
  }

  .paywall-card:nth-child(4) img {
    left: 22px;
    bottom: 24px;
  }

  .paywall-submit {
    width: 100%;
    margin-top: 0;
    border-radius: 10px;
  }

  .quiz-restore-root {
    padding: 28px 20px;
  }

  .quiz-restore-modal {
    width: min(360px, 100%);
    min-height: 0;
    max-height: calc(var(--app-viewport-height) - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 72px 27px max(46px, env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .quiz-restore-close {
    top: 16px;
    right: 16px;
  }

  .quiz-restore-copy h2 {
    font-size: 30px;
    line-height: 1;
  }

  .quiz-restore-copy p {
    max-width: 296px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.375;
  }

  .quiz-restore-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 29px;
  }

  .quiz-restore-action {
    width: min(296px, 100%);
    border-radius: 40px;
    padding: 0 42px;
  }
}
