/* ==========================================================================
   4gen — estilos globais (site + AutoCare)
   Tailwind entra via CDN; aqui ficam tokens de tema, ajustes e componentes.
   ========================================================================== */

:root {
  --brand: #1d4ed8;        /* azul principal */
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-soft: #eff6ff;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mut: #64748b;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 10px 30px rgba(15, 23, 42, .06);
}

html[data-theme="dark"] {
  --brand: #3b82f6;
  --brand-600: #3b82f6;
  --brand-700: #2563eb;
  --brand-800: #1d4ed8;
  --brand-soft: #172554;

  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111a2e;
  --border: #1e293b;
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-mut: #94a3b8;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
}

a { color: inherit; }

/* Utilidades de tema (para complementar o Tailwind) ------------------------ */
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--bg-soft); }
.text-brand { color: var(--brand); }
.text-soft { color: var(--text-soft); }
.text-mut { color: var(--text-mut); }
.border-c { border-color: var(--border); }

.container-4g {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Botões ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 12px;
  padding: .75rem 1.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .28);
}
.btn-primary:hover { background: var(--brand-700); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; border-radius: 14px; }

/* Cartões ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Ícone de benefício ------------------------------------------------------- */
.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

/* Selo "Mais popular" ------------------------------------------------------ */
.badge-pop {
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
}

/* FAQ ---------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-soft);
  transition: max-height .28s ease, padding .28s ease;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 1.15rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .25s ease; color: var(--text-mut); flex: none; }

/* Prints / placeholders ---------------------------------------------------- */
.shot {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--text-mut);
  font-size: .9rem;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fundo em degradê do herói ----------------------------------------------- */
.hero-bg {
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent),
    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent);
}

/* Animação de entrada ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
