@font-face {
  font-family: Inter;
  src: url("../fonts/e4af272ccee01ff0-s.p.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #126147;
  --green-dark: #0c4935;
  --green-light: #e8f4ec;
  --ink: #142821;
  --muted: #4c6057;
  --border: #d9e6dd;
  --canvas: #f2f7f3;
  --surface: #fff;
  --radius: 1.15rem;
  --shadow: 0 16px 42px #183f2a12, 0 3px 12px #183f2a08;
  --gap: clamp(.75rem, 2vw, 1.1rem);
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.52;
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  padding: clamp(.65rem, 3.2vw, 2.75rem);
  background: radial-gradient(ellipse at top left, #e5f1e8, transparent 46%), var(--canvas);
}

button, input, a { font: inherit; }
button, .cta { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), .cta, .choice { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 5vw, 2.15rem); }
h3 { font-size: clamp(1.22rem, 3.7vw, 1.52rem); }
h3:has(> br:only-child) { display: none; }
p { color: var(--muted); }
h2 + h3, h2 + p, h3 + p, h3:has(> br:only-child) + h3 { margin-top: .55rem; }
h3:has(> br:only-child) + h3 { font-size: 1rem; letter-spacing: normal; }
h3:has(> br:only-child) + h3 strong { color: var(--muted) !important; font-weight: 550; }
img { display: block; max-width: 100%; height: auto; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

.quiz {
  width: min(100%, 35rem);
  min-width: 0;
  margin: auto;
  padding: clamp(1rem, 4vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: clamp(1.1rem, 3vw, 2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .95rem;
  margin-bottom: clamp(1.3rem, 4vw, 2rem);
}
.logo { width: 8.6rem; text-align: center; }
.logo-prefix {
  display: block;
  margin-bottom: .12rem;
  color: var(--green);
  font-size: .65rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.logo-wordmark {
  aspect-ratio: 680 / 157;
  overflow: hidden;
}
.logo-wordmark img { width: 100%; transform: translateY(-31.44%); }
.back {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0 0 .18rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--canvas);
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
}
.back:hover { background: var(--green-light); }

.flow { display: flex; flex-wrap: wrap; gap: var(--gap); }
.flow:focus { outline: none; }
.layer { min-width: 0; width: 100%; }
.half { width: calc((100% - var(--gap)) / 2); }
.layer-image img {
  width: 100%;
  max-width: 100%;
  margin: auto;
  border-radius: .9rem;
}
.layer-text { overflow-wrap: anywhere; }
.layer-text p + p { margin-top: .35rem; }
.layer-text.half { text-wrap: balance; }
.layer-text.half strong { background-color: transparent !important; }
.spacer { height: clamp(0rem, calc(var(--spacer-size) - var(--gap)), 1.35rem); }
.layer-clear { margin-block: calc(var(--gap) * -.5); }

body:has(.quiz-intro) {
  padding: 0;
  background: var(--surface);
}
.quiz-intro {
  width: min(100%, 28rem);
  padding: .75rem .75rem 2rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.quiz-intro .flow { gap: .5rem; }
.quiz-intro .layer-image img { border-radius: 0; }
.quiz-intro .cta {
  border-radius: 1rem;
  background: #15803d;
  box-shadow: 0 3px 0 #14532d;
}
.quiz-intro .cta:hover { background: #166534; }

.cta {
  display: grid;
  width: 100%;
  min-height: 3.5rem;
  place-items: center;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  background: var(--green);
  box-shadow: 0 5px 14px #12614730;
  color: #fff;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.cta:hover:not(:disabled) { background: var(--green-dark); }
.cta:disabled { background: #e9eeea; box-shadow: none; color: #58675e; cursor: default; }
.cta-option {
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: center start;
  column-gap: .8rem;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.cta-option::after {
  width: .46rem;
  height: .46rem;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  content: "";
  transform: rotate(45deg);
}
.cta-option:hover:not(:disabled) { border-color: var(--green); background: var(--green-light); }

.choices { display: grid; gap: .7rem; }
.choices.two, .comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.55rem, 2vw, .9rem);
}
.choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.choice:hover, .choice:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--green); }
.choice p { color: inherit; font-weight: 600; }
.choice ul { padding: 0; list-style: none; }
.choice input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin: 0; accent-color: var(--green); }
.choice-picture {
  flex-direction: column;
  justify-content: space-between;
  padding: .35rem .35rem .75rem;
  background: #f6f9f7;
  text-align: center;
}
.choice-picture img { width: 100%; aspect-ratio: 4 / 3; border-radius: .65rem; object-fit: cover; }

.notification, .quote, .price, .player, .video {
  padding: clamp(.85rem, 3.3vw, 1.2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7faf8;
}
.notification { border-inline-start: .22rem solid var(--green); }
.notification.success { background: var(--green-light); }
.notification p { color: var(--ink); }
.notification p + p { margin-top: .35rem; }
.quote { background: var(--surface); }
.quote p { color: var(--ink); }
.quote figcaption, .player { display: flex; align-items: center; gap: .7rem; }
.quote figcaption { margin-bottom: .6rem; }
.quote small { display: block; color: var(--muted); }
.avatar { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.player-controls { min-width: 0; flex: 1; }
.player strong { display: block; margin-bottom: .25rem; font-size: .875rem; }
audio { display: block; width: 100%; height: 2.7rem; }

progress {
  display: block;
  width: 100%;
  height: .45rem;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 1rem;
  background: var(--green-light);
}
progress::-webkit-progress-bar { background: var(--green-light); }
progress::-webkit-progress-value { border-radius: 1rem; background: var(--green); }
progress::-moz-progress-bar { border-radius: 1rem; background: var(--green); }
.metric-muted::-webkit-progress-value { background: #82928a; }
.metric-muted::-moz-progress-bar { background: #82928a; }
.loader { text-align: center; }
.loader p { margin-bottom: .45rem; }
.loader-value { color: var(--muted); font-size: .875rem; }

.comparison { align-items: stretch; text-align: center; }
.comparison figure {
  display: grid;
  align-content: space-between;
  gap: .5rem;
  overflow: hidden;
  padding: .75rem .5rem 0;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--canvas);
}
.comparison h3 { font-size: .8rem; letter-spacing: .06em; }
.comparison img { width: 100%; height: clamp(7rem, 28vw, 12.5rem); object-fit: contain; object-position: center bottom; }
.carousel { display: flex; overflow: auto; gap: .5rem; border-radius: .9rem; scroll-snap-type: x mandatory; }
.carousel img { height: 17rem; flex: 0 0 88%; object-fit: contain; scroll-snap-align: center; }
.carousel-nav { display: flex; justify-content: center; gap: .3rem; margin-top: .3rem; }
.carousel-nav button { padding: .2rem .6rem; border: none; background: transparent; color: var(--green); }
.video iframe { display: block; width: 100%; height: auto; border: 0; border-radius: .75rem; aspect-ratio: 2357 / 1101; }
.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}
.price-value { font-size: clamp(1.55rem, 6vw, 2.25rem); font-weight: 850; letter-spacing: -.04em; }
.transcript { margin-top: .6rem; font-size: .875rem; }
.transcript summary { color: var(--green-dark); cursor: pointer; }
.transcript p { margin-top: .55rem; }
.transcript-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.video-link { color: var(--green-dark); }

@media (prefers-reduced-motion: reduce) {
  .cta, .choice { transition: none; }
}
