/* ─── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #0F2D1F;
  --green-rich:   #2D6A4F;
  --green-soft:   #A8C5B5;
  --cream:        #F7F3EC;
  --cream-dark:   #EDE8DF;
  --amber:        #C8821A;
  --white:        #FFFFFF;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --max-w: 1120px;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--green-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ─── Fade-in animations ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }
.fade-in.delay-6 { transition-delay: 0.6s; }

/* ─── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-color: var(--cream-dark);
  box-shadow: 0 2px 16px rgba(15, 45, 31, 0.07);
  background: rgba(247, 243, 236, 0.97);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}
.nav__logo span {
  color: var(--green-rich);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-rich);
  color: var(--white);
  padding: 0.75rem 1.5rem;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 45, 31, 0.22);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-primary--lg {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: var(--green-deep);
  color: var(--white);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1.25rem;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52c77d;
  position: relative;
  flex-shrink: 0;
}
.hero__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(82, 199, 125, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.7); opacity: 0; }
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--green-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero__disclaimer {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: rgba(168, 197, 181, 0.75);
  letter-spacing: 0.01em;
}

/* Hero stat card */
.hero__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 197, 181, 0.2);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stat-box {
  background: rgba(168, 197, 181, 0.1);
  border: 1px solid rgba(168, 197, 181, 0.18);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-box__num {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-box__num--amber { color: var(--amber); }
.stat-box__label {
  font-size: 0.82rem;
  color: var(--green-soft);
  line-height: 1.4;
}

/* ─── Section headings ───────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--green-deep);
}
.section-sub {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--green-rich);
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* ─── How It Works ───────────────────────────────────────────────────── */
.how {
  background: var(--cream);
  padding-block: var(--section-pad);
}
.how__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.step__body {
  font-size: 0.9rem;
  color: var(--green-rich);
  line-height: 1.65;
}
.step--highlight {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.step--highlight .step__num {
  background: var(--amber);
  color: var(--green-deep);
}
.step--highlight .step__title { color: var(--white); }
.step--highlight .step__body  { color: var(--green-soft); }
.step__price {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--amber);
}

/* ─── Problem ────────────────────────────────────────────────────────── */
.problem {
  background: var(--cream-dark);
  padding-block: var(--section-pad);
}
.problem__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border-left: 4px solid var(--green-rich);
}
.pain-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.pain-card__body {
  font-size: 0.88rem;
  color: var(--green-rich);
  line-height: 1.65;
}
.pain-card:nth-child(3) {
  border-left-color: var(--amber);
}
.pain-card:nth-child(3) .pain-card__title { color: var(--amber); }

/* ─── What You Get ───────────────────────────────────────────────────── */
.wyg {
  background: var(--cream);
  padding-block: var(--section-pad);
}
.wyg__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.wyg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.feature-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-item__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.4;
}
.wyg__note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--green-rich);
  opacity: 0.8;
  font-style: italic;
}

/* ─── Checker ────────────────────────────────────────────────────────── */
.checker {
  background: var(--green-deep);
  padding-block: var(--section-pad);
}
.checker__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.checker__head .section-heading { color: var(--white); }
.checker__head .section-sub {
  color: var(--green-soft);
  opacity: 1;
  margin-top: 0.5rem;
}
/* ─── Quiz card ──────────────────────────────────────────────────────── */
.quiz-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 197, 181, 0.15);
  max-width: 680px;
  margin-inline: auto;
  box-shadow: 0 8px 40px rgba(15, 45, 31, 0.18);
}

.quiz__top {
  padding: 1.75rem 2rem 0;
}

.quiz__prog-track {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.quiz__prog-fill {
  height: 100%;
  background: var(--green-rich);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz__prog-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-rich);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz__body {
  padding: 1.75rem 2rem 1.25rem;
}

/* ─── Individual steps ───────────────────────────────────────────────── */
.quiz__step {
  display: none;
}

.quiz__step.active {
  display: block;
  animation: stepIn 0.28s ease both;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz__question {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 1.4rem;
}

.quiz__hint {
  font-size: 0.8rem;
  color: var(--green-rich);
  opacity: 0.75;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

/* ─── Option rows ────────────────────────────────────────────────────── */
.quiz__opts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz__opt {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  cursor: pointer;
  background: var(--cream);
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.quiz__opt:hover {
  border-color: var(--green-rich);
  background: rgba(45, 106, 79, 0.04);
}

.quiz__opt.selected {
  border-color: var(--green-rich);
  background: rgba(45, 106, 79, 0.07);
}

.quiz__opt input[type="radio"],
.quiz__opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--green-soft);
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.quiz__opt input[type="radio"] {
  border-radius: 50%;
}

.quiz__opt input[type="checkbox"] {
  border-radius: 4px;
}

.quiz__opt input[type="radio"]:checked,
.quiz__opt input[type="checkbox"]:checked {
  border-color: var(--green-rich);
  background: var(--green-rich);
}

.quiz__opt input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.quiz__opt input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quiz__opt span {
  font-size: 0.9rem;
  color: var(--green-deep);
  line-height: 1.4;
}

.quiz__opt.selected span {
  font-weight: 500;
}

.quiz__error {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #b94040;
  font-weight: 500;
}

/* ─── Nav footer ─────────────────────────────────────────────────────── */
.quiz__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem 1.6rem;
  border-top: 1px solid var(--cream-dark);
}

.quiz__btn-back {
  background: transparent;
  color: var(--green-rich);
  border: 1.5px solid var(--cream-dark);
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.quiz__btn-back:hover {
  border-color: var(--green-rich);
  background: rgba(45, 106, 79, 0.05);
  transform: none;
  box-shadow: none;
}

/* ─── Results ────────────────────────────────────────────────────────── */
.quiz__result {
  padding: 2rem 2rem 2.25rem;
  animation: stepIn 0.35s ease both;
}

.verdict {
  margin-bottom: 1.25rem;
}

.verdict__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.verdict__badge--low {
  background: rgba(45, 106, 79, 0.11);
  color: #1f5c3a;
}

.verdict__badge--high {
  background: rgba(200, 130, 26, 0.14);
  color: var(--amber);
}

.verdict__badge--mid {
  background: rgba(15, 45, 31, 0.08);
  color: var(--green-deep);
}

.verdict__text {
  font-size: 0.96rem;
  color: var(--green-deep);
  line-height: 1.72;
}

.verdict__cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.verdict__note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--green-rich);
  opacity: 0.75;
  font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(168, 197, 181, 0.15);
  padding-block: 2.5rem;
  color: var(--green-soft);
}
.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.footer__brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--green-soft);
  margin-top: 0.2rem;
}
.footer__email {
  font-size: 0.9rem;
  color: var(--green-soft);
}
.footer__email:hover { color: var(--white); }
.footer__legal {
  font-size: 0.75rem;
  color: rgba(168, 197, 181, 0.6);
  line-height: 1.6;
  border-top: 1px solid rgba(168, 197, 181, 0.12);
  padding-top: 1.5rem;
}

/* ─── Divider rule ───────────────────────────────────────────────────── */
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream-dark), transparent);
  margin-block: 0;
  border: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__grid    { grid-template-columns: 1fr; }
  .hero__card    { display: none; }
  .how__steps    { grid-template-columns: 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
  .wyg__grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wyg__grid    { grid-template-columns: 1fr; }
  .footer__main { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .quiz__top,
  .quiz__body,
  .quiz__footer,
  .quiz__result  { padding-inline: 1.25rem; }
  .quiz__top     { padding-top: 1.25rem; }
}
