:root {
  --bg: #f5fbf9;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #10231f;
  --muted: #5c736e;
  --line: rgba(16, 35, 31, 0.08);
  --brand: #20c997;
  --brand-deep: #0e9f80;
  --brand-soft: #dffff5;
  --accent: #29b6f6;
  --warning: #ffb454;
  --shadow: 0 24px 70px rgba(16, 35, 31, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(41, 182, 246, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(32, 201, 151, 0.18), transparent 20%),
    linear-gradient(180deg, #f8fffd 0%, #eef8f5 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.hero,
.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 32px 0 56px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.hero__glow--one {
  top: 96px;
  right: -32px;
  width: 240px;
  height: 240px;
  background: rgba(41, 182, 246, 0.22);
}

.hero__glow--two {
  top: 280px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: rgba(32, 201, 151, 0.18);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
}

.hero__copy,
.hero-card,
.quiz__card,
.loading__content,
.result__main {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero__copy,
.hero-card,
.quiz__card,
.loading__content,
.result__main {
  border-radius: var(--radius-lg);
}

.hero__copy {
  padding: 40px;
}

.hero__copy h1,
.section-heading h2,
.result__tips h3,
.question h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.hero__copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero__copy p {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 31, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.age-card {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 253, 250, 0.88));
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.age-card label {
  font-size: 0.96rem;
  font-weight: 700;
}

.age-card__controls {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 12px;
}

input[type="number"],
input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(16, 35, 31, 0.1);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus {
  border-color: rgba(32, 201, 151, 0.62);
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.12);
}

.age-card small {
  color: var(--muted);
}

.hero__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero__signals div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.hero__signals strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.hero__signals span {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-card {
  padding: 26px;
}

.hero-card__badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
}

.hero-card__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.4);
  animation: pulse 2s infinite;
}

.hero-card__ring,
.result__ring {
  display: grid;
  place-items: center;
  margin: 30px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 42%, transparent 43%),
    conic-gradient(from 180deg, var(--accent), var(--brand), #81f0c7, var(--accent));
}

.hero-card__ring {
  width: 230px;
  height: 230px;
}

.result__ring {
  width: min(320px, 72vw);
  height: min(320px, 72vw);
}

.hero-card__ring > div,
.result__ring-core {
  display: grid;
  place-items: center;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 252, 248, 0.98));
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.hero-card__ring strong,
.result__ring-core strong {
  font-family: "Sora", sans-serif;
  line-height: 1;
}

.hero-card__ring strong {
  font-size: 4rem;
}

.result__ring-core strong {
  font-size: clamp(4rem, 12vw, 6rem);
}

.hero-card__ring span,
.result__ring-core span,
.result__comparison,
.result__summary,
.question p,
.loading__content p {
  color: var(--muted);
}

.hero-card__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card__list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 35, 31, 0.08);
  line-height: 1.5;
}

.content {
  padding-bottom: 72px;
}

.section {
  margin-top: 24px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.03;
  max-width: 16ch;
}

.question p,
.loading__content p,
.result__summary {
  margin: 0;
  line-height: 1.7;
}

.quiz__card,
.loading__content,
.result__main {
  padding: 28px;
}

.quiz__progress-top,
.quiz__actions,
.loading__steps,
.result__actions,
.result__layout {
  display: flex;
}

.quiz__progress-top,
.quiz__actions,
.result__actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(16, 35, 31, 0.08);
  overflow: hidden;
}

.progress-bar {
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transition: width 0.25s ease;
}

.question {
  padding: 26px 0 28px;
}

.question__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(41, 182, 246, 0.12), rgba(32, 201, 151, 0.2));
  font-size: 1.7rem;
}

.question h3 {
  margin-top: 20px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.question p {
  margin-top: 12px;
  max-width: 60ch;
}

.options {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option:hover,
.option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(32, 201, 151, 0.42);
  box-shadow: 0 16px 40px rgba(16, 35, 31, 0.08);
}

.option.is-selected {
  border-color: rgba(32, 201, 151, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 255, 245, 0.7));
}

.option__emoji {
  font-size: 1.45rem;
}

.option__copy strong {
  display: block;
  font-size: 1rem;
}

.option__copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.option__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(16, 35, 31, 0.14);
  color: transparent;
}

.option.is-selected .option__check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: 0 20px 40px rgba(32, 201, 151, 0.24);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.button--whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #1fba5d, #24d366);
  box-shadow: 0 20px 40px rgba(36, 211, 102, 0.24);
}

.loading {
  display: grid;
  gap: 20px;
}

.loading__content {
  text-align: center;
}

.loading__ring {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 8px solid rgba(16, 35, 31, 0.06);
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}

.loading__steps {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.loading__steps span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 31, 0.08);
  font-size: 0.92rem;
}

.result__layout {
  align-items: stretch;
  gap: 20px;
}

.result__main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.result__comparison {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.result__summary {
  margin-top: 12px;
  font-size: 1rem;
}

.result__disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.result__tips {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.result__tips h3 {
  font-size: 1.15rem;
}

.result__tips ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result__tips li {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(223, 255, 245, 0.5), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.ad-slot {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(16, 35, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.ad-slot__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-slot .adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.ad-slot--top {
  margin-bottom: 24px;
}

.ad-slot--feature {
  min-height: 160px;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(32, 201, 151, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
  }
}

@media (max-width: 980px) {
  .hero__content,
  .result__layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero__signals {
    grid-template-columns: 1fr;
  }

  .age-card__controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero {
    padding-top: 18px;
  }

  .hero__copy,
  .hero-card,
  .quiz__card,
  .loading__content,
  .result__main {
    padding: 22px;
  }

  .quiz__actions,
  .result__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .option {
    grid-template-columns: auto 1fr;
  }

  .option__check {
    display: none;
  }

  .section-heading h2 {
    max-width: none;
  }
}

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