/* ZAP do Brasil — landing + páginas legais
   Design system (DESIGN.md): verde domina, amarelo e azul pontuam. Inter. Minimalista. */

:root {
  /* Verde (primária) */
  --green-50: #e8f6ec;
  --green-100: #c6e9cf;
  --green-300: #74bc60;
  --green-500: #1aa84c;
  --green-600: #0e8c3d;
  --green-700: #00733a;
  --green-900: #04421f;
  /* Amarelo (acento) */
  --gold-300: #ffe08a;
  --gold-400: #ffd23f;
  --gold-500: #f2c200;
  /* Azul (acento secundário) */
  --blue-300: #6e9be0;
  --blue-500: #2257c4;
  --blue-700: #0f3576;
  /* Neutros */
  --bg: #ffffff;
  --surface: #f6f8f7;
  --border: #e4e9e6;
  --text: #0e1714;
  --text-muted: #5b6b64;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(4, 66, 31, 0.04), 0 2px 8px rgba(4, 66, 31, 0.05);
  --shadow-md: 0 8px 30px rgba(4, 66, 31, 0.08);
  --maxw: 1080px;
  --maxw-prose: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; display: block; }

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

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand .accent { color: var(--green-600); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ───────── Botões ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease-out, background 0.15s ease-out, box-shadow 0.15s ease-out;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--border); }
.btn-ghost:hover { background: var(--green-50); }

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(242, 194, 0, 0.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 10%, rgba(26, 168, 76, 0.10), transparent 55%);
  padding: 84px 0 72px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700);
  font-weight: 600; font-size: 13px; letter-spacing: 0.01em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
h1 .grad {
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

.hero-art { display: flex; justify-content: center; }
.phone {
  width: min(300px, 80%); aspect-ratio: 9 / 18; border-radius: 38px;
  background: linear-gradient(160deg, var(--green-600), var(--green-900));
  box-shadow: var(--shadow-md); padding: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25);
}
.phone img { width: 64%; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25)); }

/* ───────── Seções ───────── */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card.gold .ico { background: #fff8e0; color: var(--gold-600, #c99a00); }
.card.blue .ico { background: #eaf0fb; color: var(--blue-500); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ───────── Faixa privacidade ───────── */
.privacy-band { text-align: center; }
.privacy-band .container { max-width: 820px; }
.privacy-band .ico-lg {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--green-500); color: #fff;
  box-shadow: var(--shadow-md);
}
.privacy-band .ico-lg svg { width: 32px; height: 32px; }
.pill-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pill {
  background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--green-100);
}

/* ───────── CTA final ───────── */
.cta-final { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  border-radius: 24px; padding: 56px 32px; color: #fff; box-shadow: var(--shadow-md);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 480px; margin: 0 auto 28px; }
.cta-box .btn-primary { background: #fff; color: var(--green-700); }
.cta-box .btn-primary:hover { background: var(--gold-400); color: var(--green-900); }

/* ───────── Footer ───────── */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.78); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .accent { color: var(--gold-400); }
.site-footer p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-300); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.55);
}

/* ───────── Páginas legais (prosa) ───────── */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: var(--maxw-prose); }
.legal-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-header .eyebrow { margin-bottom: 16px; }
.legal-header h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 12px; }
.legal-header .updated { color: var(--text-muted); font-size: 14px; }
.legal-body h2 { font-size: 23px; margin: 40px 0 14px; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: #2b3a34; font-size: 16px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { font-weight: 500; }

.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 36px;
}
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { margin: 0 0 0 18px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 7px; font-size: 14px; }
.toc a { color: var(--green-700); }

.callout {
  background: var(--green-50); border: 1px solid var(--green-100); border-left: 4px solid var(--green-500);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
}
.callout.gold { background: #fff8e0; border-color: var(--gold-300); border-left-color: var(--gold-500); }
.callout.blue { background: #eaf0fb; border-color: var(--blue-300); border-left-color: var(--blue-500); }
.callout p:last-child { margin-bottom: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--surface); font-weight: 700; color: var(--text); }
.data-table td { color: #2b3a34; }

/* ───────── Steps (excluir conta) ───────── */
.steps { counter-reset: step; margin: 24px 0; }
.step {
  position: relative; padding: 0 0 24px 56px; border-left: 2px solid var(--green-100); margin-left: 18px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -19px; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-500); color: #fff; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.step h3 { margin: 4px 0 6px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 8px; }

/* ───────── Responsivo ───────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .phone { width: min(220px, 60%); }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .toc ol { columns: 1; }
}
