/* Escola do Reino — landing de inscrição.
   Estrutura: hero (texto + inscrição em etapas), faixa "quem conduz",
   benefícios, chamada direta, FAQ, rodapé escuro. Tema claro fixo. */
:root {
  color-scheme: light;
  --cream: #f5f1ea;
  --paper: #fffdf9;
  --ink: #1b1412;
  --ink-2: #4a403b;
  --muted: #7a6f68;
  --line: #e4dccf;
  --red: #b3261e;        /* títulos, destaques, ação */
  --red-ink: #ffffff;
  --wine: #7a1f1a;       /* faixa */
  --wine-deep: #2a1210;  /* card do formulário, rodapé */
  --gold: #d9a441;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.small { font-size: .85rem; }

/* ───────── Hero ───────── */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.seal { width: clamp(96px, 11vw, 140px); height: auto; display: block; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; color: var(--red); max-width: 11ch; }
.hero h1 span { color: var(--ink); }
.hero-copy p { color: var(--ink-2); max-width: 54ch; margin: 0 0 14px; }
.hero-copy strong { color: var(--ink); }
.hero-highlight { font-weight: 800; font-size: 1.35rem; color: var(--red) !important; margin-top: 22px !important; }

/* ───────── Inscrição (estilo conversacional) ───────── */
.signup { scroll-margin-top: 24px; }
.signup-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius); padding: 30px 30px 22px;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(217, 164, 65, .16) 62% 62.4%, transparent 62.4% 70%, rgba(217, 164, 65, .12) 70% 70.4%, transparent 70.4%),
    radial-gradient(120% 90% at 0% 0%, #6b1d17 0%, #3a1512 55%, var(--wine-deep) 100%);
  box-shadow: 0 24px 60px -24px rgba(58, 15, 13, .55);
}
.signup-progress { position: absolute; inset: 0 0 auto; height: 4px; background: rgba(255, 255, 255, .12); }
.signup-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }
.step { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
#lead-form { display: flex; flex-direction: column; min-height: 440px; }
#lead-form[hidden], .signup-card[hidden] { display: none; }
#lead-form .signup-actions { margin-top: auto; }
.step legend { font-size: 1.22rem; font-weight: 500; line-height: 1.4; margin-bottom: 22px; padding: 0; }
.step-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: var(--wine-deep); font-size: .78rem; font-weight: 800; margin-right: 6px; vertical-align: 2px; }
.field { display: grid; gap: 6px; font-size: .95rem; color: rgba(255, 255, 255, .82); margin-bottom: 18px; }
.field input {
  font: inherit; font-size: 1.25rem; color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .45);
  padding: 8px 0; border-radius: 0; outline: none; transition: border-color .2s;
}
.field input::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus { border-bottom-color: var(--gold); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: rgba(255, 255, 255, .8); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0 0 12px; color: #ffd2cc; font-size: .92rem; }
.signup-actions { display: flex; gap: 10px; }
.ok {
  flex: 1; display: block; text-align: center; text-decoration: none; font: inherit; font-weight: 700; font-size: 1.1rem;
  background: var(--red); color: var(--red-ink); border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.ok:hover { filter: brightness(1.1); }
.ok:active { transform: translateY(1px); }
.ok:disabled { opacity: .6; cursor: wait; }
.step-back { font: inherit; font-size: 1.1rem; width: 52px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; cursor: pointer; }
.signup-foot { margin: 14px 0 0; text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.signup-card.done { text-align: center; padding: 40px 30px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.signup-card.done[hidden] { display: none; }
.signup-card.done .ok { flex: none; width: 100%; }
.done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--wine-deep); font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.signup-card.done h2 { color: #fff; font-size: 2rem; }
.signup-card.done p { color: rgba(255, 255, 255, .82); margin: 0 0 22px; }

/* Etapas só quando o JS está ativo; sem JS o formulário aparece inteiro. */
.js .step[data-step]:not(.active) { display: none; }
.js .step.active { animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── Faixa ───────── */
.band { background: var(--wine); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.band-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); display: grid; place-items: center;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(217, 164, 65, .35), transparent 70%),
    linear-gradient(160deg, #4a1713, var(--wine-deep));
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.portrait img { width: 38%; opacity: .9; }
.band-kicker { font-size: 1.25rem; font-weight: 600; color: rgba(255, 255, 255, .85); margin: 0 0 6px; }
.band h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; color: #fff; }
.band-copy p:last-child { font-size: 1.08rem; font-weight: 500; color: rgba(255, 255, 255, .92); max-width: 56ch; margin: 0; }

/* ───────── Benefícios ───────── */
.perks { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.perks h2 { text-align: center; margin-bottom: 32px; }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.perk-list strong { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; color: var(--red); }
.perk-list span { color: var(--ink-2); font-size: .97rem; }

/* ───────── Chamada direta ───────── */
.cta { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); text-align: center; }
.cta h2 { font-family: Manrope, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.cta p { margin: 0 0 22px; }
.pill {
  display: inline-block; min-width: min(330px, 100%); background: var(--red); color: var(--red-ink); text-decoration: none;
  font-weight: 800; font-size: 1.05rem; padding: 12px 32px; border-radius: 999px; transition: filter .15s, transform .15s;
}
.pill:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ───────── FAQ ───────── */
.faq { padding: 0 0 clamp(56px, 7vw, 96px); }
.faq h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* ───────── Rodapé ───────── */
.footer { padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer.dark { background: #0d0a09; color: rgba(255, 255, 255, .78); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.25rem; }
.footer-brand span { color: var(--gold); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner { display: flex; gap: 24px; flex-wrap: wrap; }

/* ───────── Páginas simples (privacidade, obrigado, 404) ───────── */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.logo span { color: var(--red); }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--red); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.btn { display: inline-block; background: var(--red); color: var(--red-ink); padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ───────── Cookies ───────── */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .2); z-index: 50; font-size: .92rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ───────── Responsivo ───────── */
@media (max-width: 960px) {
  .perk-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .portrait { max-width: 260px; width: 100%; margin: 0 auto; }
  .band-copy { text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .perk-list { grid-template-columns: 1fr; }
  .signup-card { padding: 26px 20px 18px; }
  #lead-form { min-height: 0; }
  #lead-form .signup-actions { margin-top: 8px; }
  .step legend { font-size: 1.1rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
