/* ==========================================================================
   SaaS que Vende — lista de espera e obrigado
   Mobile-first. Paleta IM: fundo quase preto, azul e laranja.
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-alt: #0b1020;
  --surface: #10172b;
  --surface-2: #151d35;
  --line: #222b45;
  --blue: #00c4f4;
  --orange: #ff5e00;
  --orange-hover: #ff7424;
  --white: #ffffff;
  --text-2: #b4bccc;   /* cinza-claro: 9,6:1 sobre --bg */
  --text-3: #8b93a7;
  --error: #ff8a80;
  --whatsapp: #25d366;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 700; }
a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 64px 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.625rem, 5.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.section-title--center { margin-inline: auto; text-align: center; }

.hl-blue { color: var(--blue); }
.hl-orange { color: var(--orange); }

/* ---------- Logotipo ---------- */
.brand { display: inline-flex; flex-direction: column; gap: 6px; }
.brand__name {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__name span { color: var(--blue); }
.brand__by {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-3); line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand__by img { height: 14px; width: 14px; opacity: .85; }

/* ---------- Fundo gráfico (grade + alvo) ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.target {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle,
    var(--orange) 0 9%, transparent 9.5% 22%,
    rgba(255,94,0,.28) 22.5% 34%, transparent 34.5% 48%,
    rgba(255,94,0,.12) 48.5% 70%, transparent 70.5%);
}

/* ==========================================================================
   Seção 1 · Topo
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 16px 0 48px; }
.hero .target { width: 340px; height: 340px; right: -150px; top: -120px; opacity: .55; }
.hero__inner { position: relative; display: grid; gap: 18px; }
.hero__title {
  font-size: clamp(1.75rem, 7.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.hero__title .hl-blue { display: inline; }
.hero__sub { color: var(--text-2); font-size: 1rem; line-height: 1.55; margin-top: 10px; max-width: 54ch; }
.hero__name { color: var(--white); font-weight: 600; white-space: nowrap; }
.hero__avatar { float: left; margin: 2px 12px 0 0; }
.hero__avatar img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--blue); box-shadow: 0 0 0 3px rgba(0,196,244,.15);
}

@media (min-width: 960px) {
  .hero { padding: 36px 0 96px; }
  .hero .target { width: 620px; height: 620px; right: -220px; top: auto; bottom: -260px; opacity: .5; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
  .hero__head { grid-column: 1 / -1; }
  .hero__title { margin-top: 0; }
  .hero__sub { font-size: 1.125rem; margin-top: 20px; }
  .hero__avatar img { width: 52px; height: 52px; }
  .hero__avatar { margin: 2px 16px 0 0; }
}

/* ==========================================================================
   Formulário
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
@media (min-width: 400px) { .form-card { padding: 22px 20px; } }
@media (min-width: 960px) { .form-card { padding: 32px 28px; } }

.form { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label, .field legend {
  font-size: 0.875rem; font-weight: 500; color: var(--white); padding: 0;
}
.input, .select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #2e3858;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px evita zoom automático no iOS */
}
.input::placeholder { color: #6f7890; }
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,196,244,.25); }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2300c4f4' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  white-space: normal;
}
.select:invalid { color: #6f7890; }
.select option { color: var(--white); background: var(--surface); }

.field--invalid .input, .field--invalid .select { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.8125rem; display: none; }
.field--invalid .field__error { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  font: inherit;
  font-size: 1.1875rem;  /* 19px bold = texto grande, contraste AA com o laranja */
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn svg { flex: none; }
.btn--auto { width: auto; }
.btn--whatsapp { background: var(--whatsapp); color: #062b14; }
.btn--whatsapp:hover { background: #3ee07b; }
.btn--ghost { background: transparent; border: 2px solid var(--blue); color: var(--white); }
.btn--ghost:hover { background: rgba(0,196,244,.12); }

.form__legal { font-size: 0.6875rem; color: var(--text-3); text-align: center; line-height: 1.45; }
.form__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover { color: var(--text-2); }


/* ==========================================================================
   Listas com ✔
   ========================================================================== */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 1.0625rem; }
.check {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,94,0,.14); color: var(--orange);
  margin-top: 1px;
}
.check--blue { background: rgba(0,196,244,.14); color: var(--blue); }

/* ==========================================================================
   Seção 2 · Problema
   ========================================================================== */
.problem__grid { display: grid; gap: 28px; }
.problem .checks { margin-top: 4px; }
.problem .checks li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.callout {
  margin-top: 8px;
  padding: 22px 20px;
  border-left: 4px solid var(--orange);
  background: linear-gradient(90deg, rgba(255,94,0,.12), rgba(255,94,0,0) 85%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.125rem; font-weight: 600; line-height: 1.5;
}
@media (min-width: 960px) {
  .problem__grid { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 32px; align-items: start; }
  .callout { grid-column: 1 / -1; font-size: 1.375rem; padding: 28px 32px; }
}

/* ==========================================================================
   Seção 3 · Método (linha do tempo)
   ========================================================================== */
.method__intro { color: var(--text-2); font-size: 1.0625rem; margin-top: 14px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 28px 64px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* linha vertical ligando as etapas */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 2px; background: linear-gradient(var(--blue), rgba(0,196,244,.15));
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--blue);
  color: var(--blue); font-weight: 800; font-size: 1.125rem;
}
.step:last-child .step__num { border-color: var(--orange); color: var(--orange); }
.step__body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.step__title { font-size: 1.125rem; font-weight: 700; display: block; margin-bottom: 2px; }
.step__text { color: var(--text-2); }
.method__close { margin-top: 32px; font-size: 1.0625rem; font-weight: 500; max-width: 60ch; }
.method__close strong { color: var(--blue); }

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
  .step { padding: 64px 0 0; }
  .step::before { /* seta horizontal até o próximo card */
    left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--blue), rgba(0,196,244,.25));
  }
  .step::after {
    content: ""; position: absolute; top: 16px; right: -22px;
    border: 6px solid transparent; border-left: 9px solid rgba(0,196,244,.6);
  }
  .step:last-child::after { display: none; }
  .step__body { height: 100%; padding: 20px; }
  .method__close { text-align: center; margin: 48px auto 0; }
}

/* ==========================================================================
   Seção 4 · Pra quem é
   ========================================================================== */
.who__cards { list-style: none; padding: 0; display: grid; gap: 16px; margin: 32px 0 0; }
.who__card {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 20px;
  font-size: 1.0625rem; color: var(--text-2);
  border-top: 3px solid var(--blue);
}
.who__card:nth-child(2) { border-top-color: var(--orange); }
.who__card { grid-template-columns: 44px 1fr; }
.who__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0,196,244,.12); color: var(--blue);
}
.who__icon--orange { background: rgba(255,94,0,.12); color: var(--orange); }
.who__card strong { color: var(--white); }
@media (min-width: 768px) {
  .who__cards { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
  .who__card { padding: 32px 28px; font-size: 1.125rem; }
}

/* ==========================================================================
   Seção 5 · Autoridade
   ========================================================================== */
.author { display: grid; gap: 28px; margin-top: 32px; align-items: center; }
.author__photo { position: relative; isolation: isolate; max-width: 340px; width: calc(100% - 14px); margin: 0 auto; }
.author__photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.author__photo::after { /* moldura deslocada */
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--blue); border-radius: var(--radius-lg); z-index: -1;
}
.author__bio { font-size: 1.0625rem; color: var(--text-2); }
.author__bio strong { color: var(--white); }

.stats { list-style: none; padding: 0; display: grid; gap: 14px; margin: 24px 0 0; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat__num { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.stat:nth-child(1) .stat__num { color: var(--blue); }
.stat:nth-child(2) .stat__num { color: var(--orange); }
.stat__label { color: var(--text-2); }
@media (min-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }


@media (min-width: 960px) {
  .author { grid-template-columns: 380px 1fr; gap: 72px; margin-top: 48px; }
  .author__bio { font-size: 1.1875rem; }
  .stat__num { font-size: 3rem; }
}

/* ==========================================================================
   Seção 6 · Por que entrar agora + formulário final
   ========================================================================== */
.final { overflow: hidden; }
.final .target { width: 520px; height: 520px; left: -260px; bottom: -260px; opacity: .35; }
.final__grid { position: relative; display: grid; gap: 32px; }
.final .checks { margin-top: 24px; }
.final .checks li { color: var(--text-2); }
.final .checks strong { color: var(--white); }
@media (min-width: 960px) {
  .final__grid { grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer { padding: 22px 0; border-top: 1px solid var(--line); text-align: center; color: var(--text-3); font-size: 0.875rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__logo { height: 36px; width: auto; }
.footer p + p { margin-top: 6px; }
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .footer__brand { flex-direction: row; gap: 12px; }
}
.footer a { color: var(--text-2); }

/* ==========================================================================
   Página de obrigado
   ========================================================================== */
.thanks { min-height: 100vh; position: relative; overflow: hidden; padding: 24px 0 40px; }
.thanks .target { width: 380px; height: 380px; right: -190px; top: -150px; opacity: .5; }
.thanks__wrap { position: relative; max-width: 640px; margin: 0 auto; }
.thanks__confirm { margin-top: 28px; }
.thanks__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,196,244,.14); color: var(--blue);
  border: 2px solid var(--blue);
}
.thanks__title { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-top: 16px; }
.thanks__confirm p { color: var(--text-2); margin-top: 12px; }
.thanks__confirm .thanks__mail {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  margin-top: 16px; padding: 14px 16px;
  background: rgba(0,196,244,.07); border: 1px solid rgba(0,196,244,.35);
  border-radius: var(--radius); color: var(--white); font-size: 0.9375rem;
}
.thanks__mail svg { color: var(--blue); margin-top: 1px; }
.thanks__confirm p strong { color: var(--white); }
.thanks__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.thanks__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
}
.thanks__card h2 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.thanks__card-head { display: flex; align-items: center; gap: 12px; }
.thanks__avatar { flex: none; }
.thanks__avatar img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--orange); }
.thanks__card p { color: var(--text-2); margin: 6px 0 16px; font-size: 0.9375rem; }
.thanks__card .btn { padding-inline: 10px; gap: 8px; white-space: nowrap; }
@media (max-width: 419px) {
  .thanks__card { padding: 18px 16px; }
  .thanks__card .btn svg { display: none; }
}
.thanks .footer { border-top: 0; padding-bottom: 0; margin-top: 12px; }
@media (min-width: 768px) {
  .thanks { padding-top: 40px; }
  .thanks__confirm { margin-top: 56px; }
  .thanks__wrap { max-width: 840px; }
  .thanks__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .thanks .footer__brand { flex-direction: row; justify-content: center; gap: 12px; }
  .thanks__card { padding: 28px 24px; display: flex; flex-direction: column; }
  .thanks__card .btn { margin-top: auto; }
}

/* ==========================================================================
   Botão fixo (só no celular)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,7,15,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta .btn { min-height: 48px; padding-block: 10px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.is-visible { transition: none; } }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* Utilitários */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
