:root {
  --bg: #faf7f0;
  --card: #ffffff;
  --text: #2b2b26;
  --muted: #8a8578;
  --accent: #5b6b47;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, white);
  --border: #e7e2d6;
}

* { box-sizing: border-box; }

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

header {
  text-align: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  letter-spacing: 6px;
  font-size: 28px;
}

#brandLogo {
  max-height: 44px;
  max-width: 220px;
}

header p {
  margin: 6px 0 0;
  color: var(--muted);
}

main {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.progress {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.progress-bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.progress-bar span.done { background: var(--accent); }

h2 { font-size: 20px; margin: 0 0 20px; }

.hint {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .15s;
}

.option:hover { border-color: var(--accent); }
.option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }

/* honeypot anti-bot: fora da tela, sem afetar layout nem leitor de tela */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option .letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.option.selected .letter { background: var(--accent); color: #fff; }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

button.primary:disabled { opacity: .5; cursor: not-allowed; }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
  margin-top: 18px;
}

label:first-of-type { margin-top: 0; }

input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

.result-wrap { display: flex; flex-direction: column; gap: 24px; }

.result-head { display: flex; flex-direction: column; }
.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.result-title { font-size: 26px; margin: 0 0 12px; }
.result-desc { color: var(--muted); line-height: 1.6; margin: 0; }

.card h3 { font-size: 17px; margin: 0 0 16px; }

.affects { list-style: none; margin: 0 0 20px; padding: 0; }
.affects li { display: flex; gap: 14px; margin-bottom: 14px; line-height: 1.5; }
.affects .num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fbeaea;
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.challenge-box {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 18px 20px;
}
.challenge-box h4 { margin: 0 0 8px; font-size: 15px; }
.challenge-box p { margin: 0; color: var(--text); line-height: 1.6; }

.offer-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 18% -10%, rgba(247,177,79,.22), transparent 60%),
    radial-gradient(90% 90% at 100% 115%, rgba(247,177,79,.14), transparent 65%),
    linear-gradient(165deg, #1c130c 0%, #2e1c0f 55%, #1a1109 100%);
  color: #f3ead9;
  text-align: center;
  border: 1px solid rgba(247,177,79,.22);
  padding: 40px 30px 32px;
}

/* grain, so the gradient doesn't read as a flat digital fill */
.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.offer-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,177,79,.1);
  border: 1px solid rgba(247,177,79,.4);
  color: #f6c667;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.offer-card .badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6c667;
  box-shadow: 0 0 0 3px rgba(246,198,103,.25);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.offer-card p { line-height: 1.7; margin: 0 0 14px; color: #d9c7ab; font-size: 15px; }
.offer-card p:first-of-type {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #f5ecdc;
  margin-bottom: 18px;
}
.offer-card strong { color: #f6c667; font-weight: 600; }

.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 22px auto 0;
  padding: 17px 34px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffc266, #f2871e);
  color: #241206;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(242,135,30,.65), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer-cta::after { content: '→'; font-weight: 700; transition: transform .2s ease; }
.offer-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(242,135,30,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.offer-cta:hover::after { transform: translateX(3px); }

.offer-card .offer-footnote {
  font-size: 12px;
  color: #9c8a6d;
  margin: 18px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid rgba(247,177,79,.15);
}

.restart { text-align: center; }
.restart a { color: var(--muted); font-size: 13px; text-decoration: underline; }

#siteFooter {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 16px 40px;
}
#siteFooter a { color: var(--muted); }

.error { color: #b23; font-size: 13px; margin-top: 10px; }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.consent input[type=checkbox] {
  flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent);
}
.consent a { color: var(--text); text-decoration: underline; }
