/* ==========================================================
   Masterclass De viajante a agente lucrativo — estilos compartilhados
   Paleta: azul-marinho, dourado, branco e bege
   ========================================================== */
:root {
  --navy: #0d1b33;
  --navy-2: #13284a;
  --gold: #c9a24a;
  --gold-2: #e0bd6b;
  --beige: #f4ece0;
  --beige-2: #e9dcc7;
  --white: #ffffff;
  --text: #1c2433;
  --muted: #5d6573;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(13, 27, 51, 0.18);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 80px 0; }
.section--beige { background: var(--beige); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.gold { color: var(--gold); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 10%, rgba(201,162,74,.18), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 48px 0 80px;
  overflow: hidden;
}
.hero__brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: .02em;
  margin-bottom: 40px;
}
.hero__brand span { color: var(--gold); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero__lead { font-size: 1.08rem; color: rgba(255,255,255,.86); max-width: 580px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.badges li {
  border: 1px solid rgba(201,162,74,.55);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Formulário ---------- */
.form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}
.form-card h3 { color: var(--navy); text-align: center; margin-bottom: 4px; }
.form-card__sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid #d6d9df;
  border-radius: 10px;
  background: #fbfbfc;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.2); background: #fff; }
.field.is-invalid input { border-color: #c0392b; }
.field__error { display: none; color: #c0392b; font-size: .8rem; margin-top: 4px; }
.field.is-invalid .field__error { display: block; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-note a { color: inherit; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  width: auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 17px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(201,162,74,.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,74,.45); filter: brightness(1.03); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn--block { display: block; width: 100%; }
.btn--whats { background: linear-gradient(180deg, #2fd46b, #1fb457); color: #fff; box-shadow: 0 8px 20px rgba(31,180,87,.35); }

/* ---------- Listas ---------- */
.questions, .checks { list-style: none; padding: 0; margin: 26px 0; }
.questions li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(13,27,51,.06);
}
.checks li { position: relative; padding: 14px 0 14px 42px; border-bottom: 1px solid var(--beige-2); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 13px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center;
  font-weight: 800; font-size: .9rem;
}
.highlight {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  border-top: 2px solid var(--gold);
  padding-top: 18px;
  margin-top: 26px;
}
.section--navy .highlight { color: var(--gold-2); }

/* ---------- Aulas ---------- */
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; text-align: left; }
.lesson {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.lesson::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); }
.lesson__tag { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.lesson__date { display: block; font-size: .9rem; color: var(--muted); margin: 4px 0 14px; font-weight: 600; }
.lesson h3 { color: var(--navy); }
.lesson p { color: var(--muted); margin: 0; }

/* ---------- Bio ---------- */
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.45); font-size: .9rem; text-align: center; padding: 20px;
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo--frame { outline: 2px solid var(--gold); outline-offset: 10px; }
.stats { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
.section--navy .stats span { color: rgba(255,255,255,.7); }

/* ---------- Galeria bastidores ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery .photo { aspect-ratio: 4 / 3; box-shadow: none; }

/* ---------- CTA final ---------- */
.final { text-align: center; }
.final p { color: rgba(255,255,255,.82); }
.final .btn { margin-top: 18px; }

/* ---------- Rodapé ---------- */
.footer { background: #08132a; color: rgba(255,255,255,.6); font-size: .82rem; padding: 30px 0; text-align: center; }
.footer a { color: rgba(255,255,255,.75); }
.footer p { margin: 4px 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,19,42,.75); backdrop-filter: blur(3px); }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .25s ease; }
.modal__close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
}
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
body.no-scroll { overflow: hidden; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Página de obrigado ---------- */
.thanks { min-height: 100vh; display: flex; flex-direction: column; }
.thanks .hero { flex: 1; display: flex; align-items: center; padding: 60px 0; }
.thanks__box { max-width: 640px; margin: 0 auto; text-align: center; }
.check-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; margin: 0 auto 22px;
  font-size: 2.2rem; font-weight: 800;
}
.progress { height: 10px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin: 22px auto 8px; max-width: 420px; }
.progress span { display: block; height: 100%; width: 90%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: inherit; }
.progress-label { font-size: .82rem; color: var(--gold-2); font-weight: 600; }

/* ---------- Páginas legais ---------- */
.legal-header { background: var(--navy); color: var(--white); padding: 24px 0; }
.legal-header .hero__brand { margin: 0; }
.legal-header a { color: inherit; text-decoration: none; }
.legal { padding: 56px 0 72px; }
.legal h1 { color: var(--navy); margin-bottom: .3em; }
.legal h2 { color: var(--navy); font-size: 1.35rem; margin: 2em 0 .5em; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.legal a { color: var(--navy); }
.legal li { margin-bottom: .4em; }

/* ---------- CTA fixo (só celular) ---------- */
.sticky-cta { display: none; }

/* ---------- Responsivo ---------- */
/* Tablet */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; max-width: 620px; margin: 0 auto; }
  .hero__brand { max-width: 620px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
  .hero__lead { max-width: none; }
  .bio { grid-template-columns: 1fr; gap: 36px; max-width: 620px; margin: 0 auto; }
  .bio .photo { width: 100%; max-width: 360px; margin: 0 auto; }
  .lessons { gap: 18px; }
}

/* Celular */
@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.6; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  .topbar { font-size: .72rem; padding: 8px 12px; letter-spacing: .02em; }

  /* Hero: título → selos → formulário → texto de apoio */
  .hero { padding: 24px 0 44px; }
  .hero__brand { margin-bottom: 18px; font-size: 1rem; text-align: center; }
  .hero__grid { gap: 0; }
  .hero__text { display: contents; }
  .hero .eyebrow { order: 1; text-align: center; font-size: .68rem; margin-bottom: 10px; }
  .hero h1 { order: 2; text-align: center; font-size: 1.75rem; margin-bottom: 14px; }
  .hero .badges { order: 3; justify-content: center; margin: 0 0 22px; gap: 8px; }
  .hero .badges li { font-size: .78rem; padding: 5px 12px; }
  .hero .form-card { order: 4; }
  .hero__lead { order: 5; font-size: .98rem; text-align: center; margin: 26px 0 0; }

  h2 { font-size: 1.5rem; }
  .eyebrow { font-size: .7rem; }

  .form-card { padding: 22px 18px 18px; border-radius: 12px; }
  .form-card h3 { font-size: 1.15rem; }
  .form-card__sub { font-size: .82rem; margin-bottom: 16px; }
  .field input { padding: 12px 13px; font-size: 16px; } /* 16px evita zoom no iPhone */

  .btn { width: 100%; padding: 16px 18px; font-size: .92rem; }

  .questions li { padding: 12px 14px; font-size: .95rem; }
  .checks li { padding: 12px 0 12px 40px; }
  .checks li::before { top: 11px; width: 26px; height: 26px; }
  .highlight { font-size: 1.12rem; }

  .lessons { grid-template-columns: 1fr; margin: 28px 0; }
  .lesson { padding: 24px 20px; }

  .bio { gap: 28px; }
  .bio .photo { max-width: 280px; }
  .photo--frame { outline-offset: 6px; }
  .stats { gap: 24px; justify-content: center; }
  .stats > div { text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .gallery .photo:last-child { display: none; }

  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; }

  /* CTA fixo aparece depois que o formulário do topo sai da tela */
  .sticky-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 27, 51, .96);
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
    transform: translateY(110%);
    transition: transform .3s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { padding: 14px 16px; box-shadow: none; }
  .footer { padding-bottom: 90px; }

  .thanks .hero { padding: 40px 0; }
  .thanks h1 { font-size: 1.8rem; }
  .check-icon { width: 62px; height: 62px; font-size: 1.8rem; }
}

/* Celulares bem pequenos */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.55rem; }
  h2 { font-size: 1.35rem; }
  .topbar { font-size: .66rem; }
}
