/* ===========================================================================
   combo-starter — design system neutro (client-agnostic).
   Reskin por cliente = trocar os TOKENS (:root). Sem estilo inline nas páginas
   (CSP style-src 'self'). Hovers/estados vivem aqui (:hover), não em JS.
   =========================================================================== */

/* ─── Tokens (troque por cliente) ─────────────────────────────────────────── */
:root {
  --c-accent:        #0B5FFF;
  --c-accent-600:    #084BCC;
  --c-accent-fg:     #ffffff;
  --c-accent-soft:   #EAF1FF;

  --c-fg:            #14181F;
  --c-muted:         #5B6472;
  --c-bg:            #ffffff;
  --c-surface:       #F6F8FB;
  --c-surface-2:     #EEF2F7;
  --c-border:        #E2E7EF;
  --c-invalid:       #B3261E;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-sans);

  --container: 1160px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(20, 24, 31, .08);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, .14);

  --step: 8px;
}

/* ─── Reset enxuto ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-fg);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--surface { background: var(--c-surface); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--c-muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); background: var(--c-accent-soft); padding: 6px 12px; border-radius: 100px; margin-bottom: 14px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }

/* ─── Botões ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn--primary { background: var(--c-accent); color: var(--c-accent-fg); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--c-accent-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-fg); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { filter: brightness(.95); transform: translateY(-1px); }

/* ─── Header / nav ────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--c-fg); }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--c-accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-muted); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--c-fg); }
.nav__cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-fg); margin: 4px 0; border-radius: 2px; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 120px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface-2)); box-shadow: var(--shadow-lg); }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* ─── Planos / pricing ────────────────────────────────────────────────────── */
.plan { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--c-accent); box-shadow: var(--shadow-lg); position: relative; }
.plan--featured::before { content: "Mais popular"; position: absolute; top: -12px; left: 32px; background: var(--c-accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; }
.plan__name { font-weight: 700; font-size: 1.1rem; }
.plan__price { font-size: 2.25rem; font-weight: 800; margin: 12px 0 4px; }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--c-muted); }
.plan__list { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.plan__list li { padding-left: 26px; position: relative; color: var(--c-muted); font-size: .95rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ─── FAQ (accordion via .is-open) ────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 40px 22px 0; font-size: 1.05rem; font-weight: 600; color: var(--c-fg); cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-accent); transition: transform .2s; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--c-muted); }
.faq__item.is-open .faq__a { max-height: 400px; }
.faq__a p { padding: 0 0 22px; margin: 0; }

/* ─── Formulários (lead) ──────────────────────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-fg); }
.field input, .field textarea, .field select {
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 13px 14px;
  font-size: 1rem; font-family: inherit; color: var(--c-fg); background: var(--c-bg); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.field textarea { resize: vertical; min-height: 130px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--c-invalid) !important; box-shadow: 0 0 0 1px var(--c-invalid); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-error { color: var(--c-invalid); font-size: .9rem; }
.lead-success { background: var(--c-accent-soft); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; }
.file-drop { border: 1.5px dashed var(--c-border); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; }
.file-drop:hover { border-color: var(--c-accent); background: var(--c-surface); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--c-fg); color: #cbd3e0; padding: 64px 0 0; }
.site-footer a { color: #cbd3e0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; font-size: .85rem; color: #8b94a6; }
.site-footer__credit a { color: #aeb8c9; font-weight: 600; }
.site-footer__credit a:hover { color: #fff; }

/* ─── Utilitários ─────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.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; }

/* ─── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 8px 24px 20px; transform: translateY(-140%); transition: transform .25s; }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
  .nav__cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
