/* =========================================================
   Landing page A1 — páginas públicas (index, obrigado, privacidade)
   Os painéis (admin e certificadora) continuam com style.css.
   Paleta: marinho + verde, fundo marfim
   Tipografia: Fraunces (títulos) + Instrument Sans (texto)
   ========================================================= */

:root {
  --navy: #0E1B33;
  --navy-700: #1F3358;
  --navy-line: #2C4470;
  --navy-muted: #9FB0CC;
  --navy-soft: #B8C4DA;
  --green: #0B8A5C;
  --green-hover: #086B47;
  --green-soft: #DCF3E8;
  --green-tint: #F0FAF5;
  --green-glow: #6EE7B7;
  --ivory: #F4F1EA;
  --white: #FFFFFF;
  --ink: #0E1B33;
  --muted: #55617A;
  --line: #E3DFD4;
  --line-soft: #EEEAE0;
  --input-line: #D9D4C8;
  --shadow-card: 0 14px 40px rgba(14, 27, 51, 0.10);
  --shadow-photo: 0 10px 30px rgba(14, 27, 51, 0.18);
  --shadow-btn: 0 8px 20px rgba(11, 138, 92, 0.28);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 8.5vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

p { color: var(--muted); }
strong { color: var(--ink); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Ícones ---------- */
.ico { width: 1em; height: 1em; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { text-decoration: none; color: var(--white); }

.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--green);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--white);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.brand-text small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); }

.header-nav { display: none; align-items: center; gap: 28px; }
.header-nav a { font-size: 14px; font-weight: 600; color: #C9D6EA; }
.header-nav a:hover { color: var(--white); text-decoration: none; }

.secure-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--navy-line);
  color: #C9D6EA; font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* ---------- Layout principal ---------- */
.landing { display: flex; flex-direction: column; gap: 24px; padding: 24px 0 8px; }

/* ---------- Herói ---------- */
.hero-copy {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 4px 4px 0;
}

.hero-photo { position: relative; width: 132px; height: 132px; }
.hero-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--white); box-shadow: var(--shadow-photo);
}
.hero-photo .badge-check {
  position: absolute; right: 0; bottom: 4px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--ivory);
  display: grid; place-items: center; color: var(--white);
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero-copy h1 .price { color: var(--green); white-space: nowrap; }
.hero-copy .lead { font-size: 16px; max-width: 340px; }

.hero-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 2px; }
.hero-bullets li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.ico-check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; padding: 5px;
}

/* ---------- Formulário ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px 18px;
}

.form-card form { display: flex; flex-direction: column; gap: 14px; }

.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.form-head p { font-size: 13px; }
.form-price { display: none; flex-direction: column; align-items: flex-end; line-height: 1; }
.form-price small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form-price strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--green); margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--green); }

.field input {
  font-family: var(--font-body); font-size: 16px;
  height: 50px; width: 100%; padding: 0 14px;
  border: 1.5px solid var(--input-line); border-radius: 12px;
  background: var(--white); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(31, 51, 88, 0.14); }

.tipo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tipo-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border: 2px solid var(--input-line); border-radius: 12px;
  background: var(--white); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tipo-card:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.tipo-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(11, 138, 92, 0.2); }
.tipo-card .tipo-top { display: flex; align-items: center; gap: 8px; }
.tipo-card input { margin: 0; width: 16px; height: 16px; accent-color: var(--green); }
.tipo-card .tipo-nome { font-size: 15px; font-weight: 700; color: var(--ink); }
.tipo-card .tipo-sub { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 17px; font-weight: 700;
  height: 56px; padding: 0 24px; border: none; border-radius: 14px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--green-hover); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); height: 48px; font-size: 15px; }
.btn--ghost:hover { background: var(--white); text-decoration: none; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.consent {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--ivory); color: var(--muted); font-size: 12px; line-height: 1.45;
}
.consent .ico { color: var(--green); margin-top: 2px; }
.consent a { font-weight: 600; }

/* ---------- Faixa de confiança ---------- */
.trust {
  background: var(--navy); color: var(--white);
  border-radius: 18px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.trust .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); font-weight: 600; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ico-box {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--navy-700); color: var(--green-glow);
  display: grid; place-items: center; padding: 10px;
}
.trust-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--white); }
.trust-item span { font-size: 13px; color: var(--navy-soft); }

/* ---------- Seções ---------- */
.section { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.section > h2 { text-align: center; }
.section .section-sub { text-align: center; font-size: 16px; margin-top: -8px; }

/* Como funciona */
.steps { list-style: none; display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; }
.step-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  display: grid; place-items: center;
}
.step:last-child .step-num { background: var(--green); }
.step-rail::after { content: ''; width: 2px; flex-grow: 1; background: var(--input-line); margin: 6px 0; }
.step:last-child .step-rail::after { display: none; }
.step-body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; }
.step:last-child .step-body { padding-bottom: 0; }
.step-body strong { font-size: 17px; font-weight: 700; }
.step-body span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Quem indica */
.indica {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--navy); height: 480px;
}
.indica img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.indica::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(14, 27, 51, 0) 0%, rgba(14, 27, 51, 0.92) 55%, rgba(14, 27, 51, 0.98) 100%);
}
.indica-text {
  position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 1;
  display: flex; flex-direction: column; gap: 10px; color: var(--white);
}
.indica-text .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-glow); font-weight: 700; }
.indica-text blockquote { font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--white); }
.indica-text cite { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: 15px; font-weight: 700; margin-top: 4px; }
.indica-text cite::before { content: ''; width: 34px; height: 2px; background: var(--green); }
.indica.foto--vazia img { display: none; }
.indica.foto--vazia .foto-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.indica .foto-placeholder { display: none; }

/* Cartão branco genérico */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}

/* Quem atende */
.atende { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.logo-box {
  width: 180px; height: 110px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); display: block; overflow: hidden; position: relative;
}
.logo-box img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); }
.logo-box .foto-placeholder { display: none; position: absolute; inset: 0; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-align: center; padding: 8px; }
.logo-box.foto--vazia img { display: none; }
.logo-box.foto--vazia .foto-placeholder { display: grid; }
.atende p { font-size: 16px; color: var(--ink); }
.atende .meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: none; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 56px 16px 18px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; line-height: 1;
}
.faq-item[open] summary { color: var(--green); }
.faq-item[open] summary::after { content: '−'; background: var(--green-soft); color: var(--green); }
.faq-item p { padding: 0 18px 16px; font-size: 14px; line-height: 1.5; }

/* CTA final */
.cta-final {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 18px;
}
.cta-final img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: var(--shadow-photo); }
.cta-final h2 { font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; }
.cta-final p { font-size: 14px; }

/* Rodapé */
.site-footer {
  margin-top: auto; padding: 24px 16px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; font-size: 13px; color: var(--muted);
}
.site-footer .secure { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .secure .ico { color: var(--green); }
.site-footer a { font-weight: 600; }

/* ---------- /obrigado ---------- */
.obrigado { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.obrigado-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-card); padding: 28px 22px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.obrigado-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; padding: 18px; }
.obrigado-card h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
.protocolo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 12px; background: var(--ivory); }
.protocolo small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.protocolo strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: 0.02em; }
.countdown { font-size: 16px; }
.countdown strong { color: var(--green); }
.obrigado-card .note { font-size: 12px; }
.proximos { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.proximos .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.proximos .step-line { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.proximos .step-num { width: 30px; height: 30px; font-size: 14px; flex: none; }
.proximos .step-line:last-child .step-num { background: var(--green); }
.obrigado-rafa { display: flex; align-items: center; gap: 12px; padding: 4px 6px; font-size: 13px; color: var(--muted); }
.obrigado-rafa img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow-photo); flex: none; }

/* ---------- /privacidade ---------- */
.politica-hero { text-align: center; padding: 28px 0 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.politica-hero .kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.politica { padding: 24px 20px; }
.politica h2 { font-size: 1.2rem; font-weight: 600; margin-top: 1.4rem; margin-bottom: 0.4rem; }
.politica h2:first-child { margin-top: 0; }
.politica p { margin-bottom: 0.5rem; font-size: 15px; }
.politica ul { margin: 0.25rem 0 0.75rem 1.25rem; color: var(--muted); font-size: 15px; }
.politica-voltar { text-align: center; padding-top: 20px; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .container { padding: 0 40px; }
  .site-header .container { height: 76px; }
  .brand-mark { width: 38px; height: 38px; font-size: 16px; }
  .brand-text .brand-name { font-size: 19px; }
  .brand-text small { font-size: 11px; }
  .header-nav { display: flex; }
  .secure-pill { font-size: 12px; padding: 8px 12px; }

  .landing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "copy form"
      "indica form"
      "trust trust"
      "como como"
      "atende faq"
      "cta cta";
    column-gap: 64px;
    row-gap: 40px;
    align-items: start;
    padding: 64px 0 16px;
  }

  .hero-copy { grid-area: copy; align-items: flex-start; text-align: left; gap: 22px; padding: 12px 0 0; }
  .hero-photo { width: 64px; height: 64px; }
  .hero-photo .badge-check { width: 24px; height: 24px; right: -4px; bottom: -2px; padding: 3px; }
  .hero-top { display: flex; align-items: center; gap: 12px; }
  .hero-copy .lead { font-size: 19px; max-width: 520px; }
  .hero-bullets li { font-size: 16px; }

  .form-card { grid-area: form; border-radius: 24px; padding: 32px 32px 28px; box-shadow: 0 20px 50px rgba(14, 27, 51, 0.12); }
  .form-head h2 { font-size: 28px; }
  .form-head p { font-size: 14px; }
  .form-price { display: flex; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .indica { grid-area: indica; height: 380px; align-self: start; }
  .indica img { width: 46%; right: auto; }
  .indica::after {
    left: 40%; right: auto; top: 0; bottom: 0; width: 20%; height: auto;
    background: linear-gradient(90deg, rgba(14, 27, 51, 0) 0%, rgba(14, 27, 51, 1) 100%);
  }
  .indica-text { left: 50%; right: 32px; top: 40px; bottom: 36px; justify-content: space-between; }

  .trust { grid-area: trust; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-radius: 22px; padding: 28px 36px; }
  .trust .kicker { display: none; }
  .trust-item .ico-box { width: 46px; height: 46px; border-radius: 14px; }

  .section--como { grid-area: como; gap: 28px; padding-top: 24px; }
  .section--como .section-sub { font-size: 17px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
  .step-rail::after { display: none; }
  .step-num { width: 44px; height: 44px; font-size: 20px; }
  .step-body { padding-bottom: 0; }
  .step-body strong { font-size: 20px; }
  .step-body span { font-size: 15px; line-height: 1.5; }

  .section--atende { grid-area: atende; padding-top: 24px; }
  .section--atende > h2, .section--faq > h2 { text-align: left; font-size: 36px; }
  .atende { align-items: flex-start; text-align: left; padding: 28px; gap: 16px; }
  .logo-box { width: 200px; height: 120px; }
  .atende p { font-size: 17px; }
  .atende .meta { font-size: 15px; }

  .section--faq { grid-area: faq; padding-top: 24px; }
  .faq-item summary { padding: 18px 64px 18px 24px; font-size: 16px; }
  .faq-item p { padding: 0 24px 18px; font-size: 15px; max-width: 620px; }

  .section--cta { grid-area: cta; padding-top: 24px; }
  .cta-final {
    flex-direction: row; text-align: left; justify-content: space-between; gap: 32px;
    background: var(--navy); color: var(--white); border: none; border-radius: 24px; padding: 40px 48px;
  }
  .cta-final .cta-copy { display: flex; align-items: center; gap: 20px; }
  .cta-final .cta-text { display: flex; flex-direction: column; gap: 6px; }
  .cta-final img { width: 84px; height: 84px; }
  .cta-final h2 { color: var(--white); font-size: 30px; }
  .cta-final p { color: var(--navy-soft); font-size: 16px; }
  .cta-final .btn { width: auto; white-space: nowrap; flex: none; height: 58px; padding: 0 32px; }

  .site-footer { flex-direction: row; justify-content: space-between; padding: 40px; font-size: 14px; }

  .obrigado { max-width: 520px; margin: 0 auto; padding: 48px 0; }
  .politica { max-width: 760px; margin: 0 auto; padding: 32px 36px; }
  .politica-hero { padding-top: 48px; }
}

@media (min-width: 1200px) {
  .landing { grid-template-columns: minmax(0, 1fr) 560px; }
}
