:root {
  --wine-ink: #2B060D;
  --wine-dark: #3F0A13;
  --wine-mid: #56121B;
  --wine-light: #6F2A26;
  --gold: #C9A05C;
  --gold-soft: #E4CDA4;
  --paper: #F7F1E8;
  --paper-deep: #EFE5D6;
  --white: #FFFFFF;
  --text: #2A1012;
  --text-muted: #7A5C5C;
  --text-on-dark: #F3E4DA;
  --text-on-dark-muted: #C9A8A0;
  --success: #2F6F4F;
  --shadow: 0 24px 60px -24px rgba(43, 6, 13, 0.45);
  --radius: 20px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font);
  margin: 0 0 14px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 14px; }

button { font-family: inherit; }

/* ============ TOPBAR ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 6, 13, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 160, 92, 0.25);
}

.topbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar__brand { display: flex; align-items: center; gap: 12px; }

.topbar__logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 2px;
}

.topbar__name { display: flex; flex-direction: column; line-height: 1.2; }

.topbar__name strong {
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar__name span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ============ HERO + CALCULADORA ============ */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 80% -10%, rgba(111, 42, 38, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 110%, rgba(201, 160, 92, 0.12), transparent 55%),
    linear-gradient(170deg, var(--wine-ink) 0%, var(--wine-dark) 55%, var(--wine-mid) 100%);
  color: var(--text-on-dark);
  scroll-margin-top: 66px;
  overflow: hidden;
}

/* Imagem de fundo decorativa (padrão SVG on-brand) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-pattern.svg") no-repeat center center / cover;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 20px clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Mantém o texto acompanhando o topo do formulário e ocupando bem a coluna */
.hero__copy {
  align-self: start;
  padding-top: 6px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201, 160, 92, 0.4);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(30px, 4.4vw, 50px);
  color: var(--white);
  max-width: 14em;
}

.hero__title em { font-style: normal; color: var(--gold); }

.hero__lead {
  font-size: clamp(15px, 1.9vw, 18px);
  max-width: 30em;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}

.hero__lead strong { color: var(--gold-soft); }

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__badges li {
  font-size: 13px;
  color: var(--text-on-dark);
  background: rgba(243, 228, 218, 0.08);
  border: 1px solid rgba(243, 228, 218, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
}

.hero__rule {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--wine-light) 60%, transparent 100%);
}

/* ============ SECTIONS ============ */

.section { padding: clamp(52px, 8vw, 88px) 20px; }

.section__inner { max-width: 1160px; margin: 0 auto; }

.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine-light);
  font-weight: 700;
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(25px, 4vw, 38px);
  color: var(--wine-dark);
  max-width: 18em;
}

.section__lead {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

/* ============ WIZARD ============ */

.wizard { width: 100%; }

.progress { margin-bottom: 14px; }

.progress__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(43, 6, 13, 0.12);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--wine-light), var(--wine-dark));
  transition: width 0.4s ease;
}

.step {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.5vw, 34px);
  animation: rise 0.35s ease;
}

.step.is-active { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step__incentive {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wine-mid);
  background: linear-gradient(90deg, rgba(201, 160, 92, 0.18), rgba(201, 160, 92, 0.04));
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 13px;
  margin: 0 0 18px;
}

.step__title {
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--wine-dark);
  margin-bottom: 6px;
}

.step__hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---------- Fields ---------- */

.field-block { margin-bottom: 18px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wine-mid);
  margin-bottom: 7px;
}

.lbl__opt { font-weight: 400; color: var(--text-muted); }

.field {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid rgba(63, 10, 19, 0.2);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus {
  border-color: var(--wine-light);
  box-shadow: 0 0 0 3px rgba(111, 42, 38, 0.16);
  background: var(--white);
}

.field--textarea { min-height: 92px; resize: vertical; }

.field--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236F2A26' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
  cursor: pointer;
}

.field__error {
  color: #B3261E;
  font-size: 13px;
  min-height: 18px;
  margin: 4px 0 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--wine-dark);
  flex-shrink: 0;
}

.checkbox--tiny { font-size: 13px; margin-top: 9px; color: var(--text-muted); }
.checkbox--tiny input { width: 16px; height: 16px; }

.checkbox--consent {
  margin-top: 4px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid rgba(63, 10, 19, 0.12);
  border-radius: 12px;
}

/* ---------- Choices ---------- */

.choice-group { display: flex; flex-direction: column; gap: 10px; }

.choice-group--inline { flex-direction: row; }
.choice-group--inline .choice { flex: 1; text-align: center; }

.choice {
  text-align: left;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1.5px solid rgba(63, 10, 19, 0.2);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice:hover { border-color: var(--wine-light); background: var(--paper); }

.choice.is-selected {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  color: var(--white);
}

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 10, 19, 0.2);
  background: var(--white);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:has(input:checked) { border-color: var(--wine-dark); background: var(--wine-dark); color: var(--white); }
.chip input { accent-color: var(--wine-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--wine-light), var(--wine-dark));
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(43, 6, 13, 0.6);
}

.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--hero {
  background: linear-gradient(135deg, var(--gold), #B48A45);
  color: var(--wine-ink);
  font-size: 16px;
  padding: 16px 32px;
  box-shadow: 0 16px 34px -12px rgba(201, 160, 92, 0.55);
}

.btn--hero:hover { transform: translateY(-2px); }

.btn--small { background: var(--gold); color: var(--wine-ink); padding: 10px 20px; font-size: 13px; }
.btn--small:hover { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--wine-mid);
  border: 1.5px solid rgba(63, 10, 19, 0.22);
}

.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.step__nav .btn--primary { margin-left: auto; }

/* ---------- Resultado ---------- */

.step--result { text-align: center; }

.result__icon { font-size: 44px; margin-bottom: 8px; }

.result__text { color: var(--text-muted); margin: 0 auto 20px; }

.result__card {
  background: var(--paper);
  border: 1px solid rgba(63, 10, 19, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  text-align: left;
  font-size: 14px;
  color: var(--wine-mid);
}

.result__disclaimer { margin-top: 16px; font-size: 12px; color: var(--text-muted); }

/* ============ PROFISSÕES ============ */

.section--professions { background: var(--paper); }

.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.prof-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid rgba(63, 10, 19, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prof-card:hover {
  transform: translateY(-3px);
  border-color: var(--wine-light);
  box-shadow: 0 18px 40px -20px rgba(63, 10, 19, 0.35);
}

.prof-card__icon { font-size: 30px; }
.prof-card strong { font-size: 18px; font-weight: 700; color: var(--wine-dark); }
.prof-card span:last-child { font-size: 14px; color: var(--text-muted); line-height: 1.45; }

.prof-grid__note { margin-top: 26px; font-size: 15px; color: var(--text-muted); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--wine-light);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: var(--wine-dark); }

/* ============ COMO FUNCIONA ============ */

.section--steps {
  background: var(--paper-deep);
  border-top: 1px solid rgba(63, 10, 19, 0.07);
  border-bottom: 1px solid rgba(63, 10, 19, 0.07);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.how-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  border: 1px solid rgba(63, 10, 19, 0.08);
}

.how-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wine-dark);
  color: var(--gold-soft);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.how-card strong { display: block; font-size: 18px; font-weight: 700; color: var(--wine-dark); margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ============ URGÊNCIA / PROVA ============ */

.section--proof { background: var(--paper); }

.proof {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}

.proof__title { font-size: clamp(23px, 3.4vw, 33px); color: var(--wine-dark); }
.proof__text p { color: var(--text-muted); }
.proof__text .btn { margin-top: 10px; }

.proof__list {
  list-style: none;
  margin: 0;
  padding: 28px;
  background: var(--wine-dark);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.proof__list li { padding-left: 28px; position: relative; font-size: 15px; color: var(--text-on-dark-muted); }
.proof__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.proof__list strong { color: var(--white); }

@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */

.footer {
  background: var(--paper);
  text-align: center;
  padding: 46px 20px 36px;
  border-top: 1px solid rgba(63, 10, 19, 0.08);
}

.footer__logo { height: 72px; margin-bottom: 16px; }
.footer__disclaimer { max-width: 560px; margin: 0 auto; font-size: 12px; color: var(--text-muted); }

/* ============ Responsive ============ */

@media (max-width: 480px) {
  .topbar__name span { display: none; }
}
