:root {
  color-scheme: light;
  --mint: #effdf4;
  --mint-2: #dff7e9;
  --green: #168a47;
  --green-2: #31d3a0;
  --green-dark: #0b2b1f;
  --text: #09251b;
  --muted: #5f6c66;
  --line: #d2eadc;
  --card: #ffffff;
  --blue: #2f73ea;
  --gold: #df8000;
  --gold-soft: #fff9de;
  --shadow: 0 5px 12px rgba(12, 60, 38, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: #f4eff8;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.quiz-app {
  width: min(100vw, 420px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--mint);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(40, 160, 105, 0.08);
}

.topbar {
  padding: 10px 6px 0;
}

.progress {
  height: 7px;
  background: #dce9df;
  overflow: hidden;
  box-shadow: 0 3px 9px rgba(49, 111, 79, 0.14);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, #25c88d, #43dbad);
}

.offer-progress {
  margin: 26px 16px 0;
  border-radius: 0;
}

.screen {
  min-height: calc(100vh - 17px);
  min-height: calc(100svh - 17px);
  padding: 34px 22px 26px;
  display: flex;
  flex-direction: column;
}

.title {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 23px;
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.subtitle {
  margin: -9px auto 20px;
  max-width: 330px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.body-copy {
  margin: 0 auto;
  max-width: 350px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
}

.logo-lockup {
  display: grid;
  justify-items: center;
  margin: -4px 0 24px;
  color: #2d6f57;
}

.brand-name {
  color: #245c49;
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.logo-lockup small {
  margin-top: -10px;
  padding: 4px 11px 5px;
  border-radius: 8px;
  background: #7cb79c;
  color: #073629;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.home-title {
  max-width: 335px;
  margin-inline: auto;
  font-size: 21px;
}

.home-subtitle {
  color: #172921;
  font-size: 20px;
}

.age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.age-card {
  min-height: 120px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: #111;
  padding: 10px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.age-photo {
  width: 96px;
  height: 84px;
  background: var(--photo) center bottom / contain no-repeat;
}

.age-card span:last-child {
  font-size: 15px;
}

.choice-list {
  display: grid;
  gap: 16px;
}

.answer {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9ece1;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.32;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.multi-screen .answer {
  grid-template-columns: 22px 26px 1fr;
}

.answer.selected {
  border-color: var(--green);
  background: #dff4e8;
  box-shadow: inset 0 0 0 1px var(--green), var(--shadow);
}

.icon {
  width: 25px;
  height: 25px;
  color: #168457;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 1.7px solid #1f3029;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.answer.selected .checkbox {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.checkbox .icon {
  width: 14px;
  height: 14px;
  color: #fff;
  stroke-width: 3;
}

.continue {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 117, 58, 0.24);
  cursor: pointer;
}

.continue:disabled {
  opacity: .45;
  cursor: default;
}

.fixed-space {
  margin-top: 26px;
}

.proof-card {
  display: grid;
  justify-items: center;
  margin: 4px auto 22px;
}

.carousel-window {
  width: 312px;
  max-width: 100%;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-track {
  width: 400%;
  display: grid;
  grid-template-columns: repeat(4, 25%);
  animation: carousel-slide 14s infinite;
}

.proof-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff var(--photo) center / cover no-repeat;
  overflow: hidden;
}

@keyframes carousel-slide {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(-25%);
  }
  50%, 70% {
    transform: translateX(-50%);
  }
  75%, 95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd8d0;
}

.dots .active {
  background: var(--green);
}

.dots.animated span {
  animation: dot-pulse 14s infinite;
}

.dots.animated span:nth-child(2) {
  animation-delay: 3.5s;
}

.dots.animated span:nth-child(3) {
  animation-delay: 7s;
}

.dots.animated span:nth-child(4) {
  animation-delay: 10.5s;
}

@keyframes dot-pulse {
  0%, 22% {
    background: var(--green);
    transform: scale(1.15);
  }
  24%, 100% {
    background: #cbd8d0;
    transform: scale(1);
  }
}

.center-copy {
  margin-top: 8px;
}

.text-info-screen .title {
  font-size: 23px;
}

.text-info-screen .body-copy {
  margin-top: 12px;
}

.info-illustration {
  width: min(100%, 270px);
  height: auto;
  display: block;
  margin: 28px auto 0;
  border-radius: 14px;
}

.thinking-illustration {
  width: min(100%, 310px);
  height: auto;
  display: block;
  margin: 30px auto 0;
}

.loading-title {
  margin: 16px 0 18px;
  color: #68736e;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.loadbar {
  height: 14px;
  border-radius: 999px;
  background: #dfe7e2;
  overflow: hidden;
}

.loadbar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37d198, #33d4a5);
  transition: width 120ms linear;
}

.load-percent {
  margin: 6px 0 18px;
  color: #6b7771;
  text-align: center;
}

.loading-proof {
  margin-top: 0;
}

.name-input {
  width: 100%;
  height: 40px;
  border: 2px solid #bfded1;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 0 14px;
  text-align: center;
  font-size: 18px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.04);
}

.name-input::placeholder {
  color: #8a8a8a;
}

.evolution-card,
.soft-panel,
.plan-card,
.security-row,
.bonus-card,
.guarantee {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.evolution-card {
  padding: 24px 18px 18px;
  margin-bottom: 6px;
}

.evolution-card h2,
.benefits h2,
.guarantee h2 {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

.bars {
  height: 195px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 14px;
}

.bar-group {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
  position: relative;
}

.bar {
  width: 64px;
  border-radius: 8px 8px 0 0;
  display: block;
}

.bar.max {
  height: 128px;
  background: linear-gradient(#ff8fa0, #ff6b75);
}

.bar.mid {
  height: 80px;
  background: linear-gradient(#ffd84e, #ffbe18);
}

.bar.min {
  height: 48px;
  background: linear-gradient(#08a85c, #00964f);
}

.tag {
  min-width: 38px;
  padding: 5px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.tag.today {
  background: #f44755;
}

.tag.days {
  background: #d79405;
}

.tag.zero {
  background: var(--green);
}

.bar-group strong {
  font-size: 15px;
  font-weight: 500;
}

.legend {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #274534;
  font-size: 14px;
}

.legend span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff7a1a;
}

.legend i {
  width: 18px;
  height: 2px;
  background: #0f8354;
}

.soft-panel {
  margin-top: 24px;
  padding: 24px;
  background: #dff5e8;
  border: 1px solid #bfdcca;
}

.soft-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.soft-panel p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.offer-mode {
  padding-bottom: 28px;
}

.offer-screen {
  min-height: auto;
  padding-top: 24px;
}

.offer-title {
  font-size: 25px;
  margin-bottom: 20px;
}

.plan-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: end;
  row-gap: 0;
}

.plan-hero img {
  grid-column: 1 / -1;
  width: min(100%, 350px);
  height: auto;
  display: block;
  margin: -8px auto 2px;
}

.plan-hero strong {
  max-width: 150px;
  color: #536341;
  font-size: 28px;
  line-height: .98;
  text-align: center;
}

.offer-lead {
  margin: 34px auto 26px;
  max-width: 340px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.plans-title {
  margin: 34px 0 22px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.plan-card {
  margin: 0 0 20px;
  padding: 24px 24px 22px;
  border: 2px solid var(--blue);
  background: #fff;
  position: relative;
}

.plan-card.gold {
  border-color: #e1aa16;
  background: var(--gold-soft);
  margin-top: 24px;
}

.popular {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  min-width: 150px;
  border-radius: 999px;
  background: #ffc546;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.plan-card h2 {
  margin: 0 0 18px;
  color: #244b8f;
  font-size: 22px;
}

.plan-card.gold h2,
.plan-card.gold .price {
  color: #a05d00;
}

.plan-card p,
.benefits p {
  margin: 10px 0;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 17px;
  line-height: 1.35;
}

.plan-card .icon,
.benefits .icon,
.security-row .icon,
.guarantee .icon {
  color: #38c685;
}

.price {
  margin-top: 22px;
  color: #226ad6;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.plan-card small {
  display: block;
  margin-top: 5px;
  color: #3a3a3a;
  font-size: 14px;
}

.plan-card .plan-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.plan-card.gold .plan-cta {
  background: var(--gold);
}

.security-row {
  min-height: 82px;
  margin-bottom: 14px;
  padding: 16px 26px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  background: #eef6ff;
  border: 1px solid #d2e2ff;
  color: #244b8f;
  font-size: 17px;
}

.security-row.green {
  background: #daf9e8;
  border-color: #c6efd6;
  color: var(--green);
}

.benefits {
  margin-top: 28px;
}

.benefits h2 {
  color: var(--text);
}

.bonus-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #bed8ff;
  background: #edf5ff;
}

.bonus-card.pink {
  border-color: #ebd3eb;
  background: #fff5ff;
}

.bonus-card.fasting {
  position: relative;
  margin-top: 22px;
  padding-top: 28px;
  border: 2px solid #f5ae22;
  background: linear-gradient(180deg, #fff8df, #fffef7);
  box-shadow: 0 12px 26px rgba(202, 128, 0, 0.16);
}

.bonus-ribbon {
  position: absolute;
  left: 18px;
  top: -13px;
  border-radius: 999px;
  background: #f0a000;
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .4px;
}

.bonus-card strong {
  font-size: 18px;
}

.bonus-card p {
  margin: 5px 0 0;
  font-size: 17px;
}

.bonus-card b {
  color: #118b4b;
}

.bonus-card span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.guarantee {
  margin-top: 28px;
  padding: 28px 22px;
  border: 1px solid #c8ead5;
  background: transparent;
  text-align: center;
}

.guarantee .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.guarantee img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.guarantee h2 {
  color: var(--text);
  margin-bottom: 18px;
}

.guarantee p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 16px;
  }

  .title {
    font-size: 21px;
  }

  .answer {
    font-size: 15px;
  }

  .plan-hero strong {
    font-size: 24px;
  }
}
