:root {
  --green-950: #0f241f;
  --green-900: #16302a;
  --green-800: #1c3b32;
  --green-700: #275045;
  --green-100: #e5ece7;
  --cream: #f7f1e6;
  --cream-2: #efe6d4;
  --paper: #fffdf8;
  --gold: #b8975a;
  --gold-600: #9c7c43;
  --gold-200: #ecdcb8;
  --ink: #22302b;
  --muted: #66706a;
  --line: #e4dccb;
  --error: #a3402e;
  --radius: 16px;
  --sans: "Assistant", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Frank Ruhl Libre", "David", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2 { margin: 0; line-height: 1.3; font-weight: 500; }
p { margin: 0; }
a { color: var(--green-700); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- screens ---------- */
.screen { display: none; min-height: 100svh; }
.screen.is-active { display: block; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .screen.is-active, .answer, .progress-bar { animation: none !important; transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, #c7a76a, var(--gold) 55%, var(--gold-600));
  color: var(--green-950);
  box-shadow: 0 8px 22px rgba(156, 124, 67, .35), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(156, 124, 67, .45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-lg { min-height: 60px; font-size: 1.12rem; padding: 16px 30px; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--green-800); color: #fff; box-shadow: 0 8px 22px rgba(22, 48, 42, .3); }
.btn-whatsapp svg { color: #6fd38a; flex: none; }
.btn-whatsapp:hover { background: var(--green-700); }

/* ---------- intro ---------- */
.screen-intro { background: var(--cream); padding-bottom: 96px; }
.hero {
  background: radial-gradient(120% 90% at 50% 0%, var(--green-800), var(--green-950) 75%);
  color: var(--cream);
  text-align: center;
  padding: 28px 20px 40px;
  border-radius: 0 0 28px 28px;
}
.brand {
  font-weight: 700; letter-spacing: .38em; font-size: .82rem;
  color: var(--gold); margin-bottom: 18px;
}
.hero-art { width: min(100%, 340px); height: auto; display: block; margin: 0 auto 22px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7.4vw, 2.7rem);
  line-height: 1.32;
  max-width: 16em; margin: 0 auto;
  text-wrap: balance;
}
.hero-time { display: block; color: var(--gold-200); }
.hero-turn { display: block; color: var(--gold); margin-top: 6px; }

.story {
  max-width: 600px; margin: 0 auto;
  padding: 32px 22px 8px;
  font-size: 1.08rem;
}
.story p { margin-bottom: 18px; }
.story strong { color: var(--green-800); }
.story-beat {
  font-family: var(--serif);
  font-size: 1.32rem; color: var(--green-800);
  margin: 26px 0 !important;
}
.story-question {
  font-family: var(--serif);
  font-size: 1.5rem; color: var(--gold-600);
  text-align: center;
  margin: 30px 0 !important; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.founders {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin: 28px 0 18px;
}
.founders img {
  width: 76px; height: 76px; flex: none;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold);
}
.founders p { margin: 0 !important; }

.cta-block { text-align: center; margin: 30px 0 10px; }
.cta-block .btn { width: 100%; max-width: 440px; }
.cta-meta { margin-top: 12px !important; color: var(--muted); font-size: .95rem; }

.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(247,241,230,0), var(--cream) 35%);
  display: flex; justify-content: center;
  transform: translateY(110%); transition: transform .3s ease;
  pointer-events: none;
}
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
.sticky-cta .btn { width: 100%; max-width: 440px; }

.site-footer {
  text-align: center; font-size: .85rem; color: var(--muted);
  padding: 24px 16px; display: flex; gap: 8px; justify-content: center;
}
.site-footer a { color: var(--muted); }

/* ---------- quiz ---------- */
.screen-quiz, .screen-email { padding: 0 0 40px; }
.quiz-top {
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; color: var(--green-700);
  font-weight: 600; padding: 8px 6px; min-height: 44px; cursor: pointer;
}
.back-btn[hidden] { visibility: hidden; display: inline-flex; }
.quiz-count { color: var(--muted); font-size: .92rem; }
.progress {
  max-width: 568px; margin: 0 16px; height: 6px;
  background: var(--cream-2); border-radius: 999px; overflow: hidden;
}
@media (min-width: 600px) { .progress { margin: 0 auto; } }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--green-700));
  border-radius: inherit; transition: width .35s ease;
}

.question { max-width: 600px; margin: 0 auto; padding: 26px 16px 0; }
.question-text {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 1.75rem);
  line-height: 1.45; color: var(--green-900);
  margin-bottom: 8px; outline: none;
}
.question-note {
  font-size: .95rem; color: var(--muted);
  background: var(--paper); border-right: 3px solid var(--gold);
  padding: 8px 12px; border-radius: 6px; margin-top: 10px;
}
.answers { display: grid; gap: 12px; margin-top: 22px; }
.answer {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: right;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px; min-height: 64px;
  font-size: 1.02rem; line-height: 1.55; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  animation: rise .35s ease both;
}
.answer:nth-child(2) { animation-delay: .04s; }
.answer:nth-child(3) { animation-delay: .08s; }
.answer:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.answer:hover { border-color: var(--gold); }
.answer:active { transform: scale(.99); }
.answer-dot {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center;
}
.answer[aria-checked="true"] {
  border-color: var(--green-700); background: var(--green-100);
  box-shadow: 0 0 0 1px var(--green-700);
}
.answer[aria-checked="true"] .answer-dot { background: var(--green-700); border-color: var(--green-700); }
.answer[aria-checked="true"] .answer-dot::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg);
}

/* ---------- email gate ---------- */
.email-card, .thanks-card {
  max-width: 520px; margin: 22px auto 0; padding: 30px 22px 26px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 18px 40px rgba(22, 48, 42, .08);
  text-align: center;
}
@media (max-width: 560px) { .email-card, .thanks-card { margin: 18px 12px 0; } }
.seal { color: var(--green-700); display: flex; justify-content: center; margin-bottom: 12px; }
.seal-gold { color: var(--gold); }
.email-title, .thanks-title {
  font-family: var(--serif); font-size: clamp(1.6rem, 6.6vw, 2rem);
  color: var(--green-900); outline: none;
}
.email-sub { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-600); margin-top: 6px; }
.email-text { color: var(--ink); margin: 14px 0 22px; }

#email-form { text-align: right; position: relative; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--green-900); }
.field {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font: inherit; font-size: 1.05rem; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
.field::placeholder { color: #a8ada9; }
.field:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39, 80, 69, .15); }
.field[aria-invalid="true"] { border-color: var(--error); }
.field-error, .form-error { color: var(--error); font-size: .95rem; margin-top: 8px; }
.form-error { text-align: center; background: #fbeee9; padding: 10px 12px; border-radius: 10px; margin-top: 14px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0 22px; cursor: pointer; position: relative;
  font-size: .95rem; line-height: 1.6; color: var(--ink);
}
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.consent-box {
  flex: none; width: 24px; height: 24px; border-radius: 6px;
  border: 1.5px solid var(--gold); background: #fff; margin-top: 1px;
  display: grid; place-items: center; transition: background .15s ease;
}
.consent input:checked + .consent-box { background: var(--green-700); border-color: var(--green-700); }
.consent input:checked + .consent-box::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg);
}
.consent input:focus-visible + .consent-box { outline: 3px solid var(--gold); outline-offset: 2px; }

#send-btn { position: relative; }
.spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(15, 36, 31, .25); border-top-color: var(--green-950);
  animation: spin .8s linear infinite;
}
#send-btn.is-loading .spinner { display: inline-block; }
#send-btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.fine-print { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.6; }
.fine-print a { color: var(--muted); }

/* ---------- thanks ---------- */
.screen-thanks { padding: 24px 0 0; }
.thanks-hint { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.community {
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line);
}
.community p { margin-bottom: 18px; font-size: 1.05rem; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .hero { padding: 40px 20px 52px; border-radius: 0 0 40px 40px; }
  .story { padding-top: 44px; }
  .sticky-cta { display: none; }
  .screen-intro { padding-bottom: 20px; }
}

.nowrap { white-space: nowrap; }
