/* ============================================================
   ZapRadar — design system
   Tokens, reset, tipografia, botões, utilitários e chrome comum.
   ============================================================ */

:root {
  --ink: #0b141a;
  --ink-soft: #1f2c34;
  --body: #3d4b47;
  --muted: #64756f;
  --faint: #93a29c;

  --green: #25d366;
  --green-600: #1eb958;
  --green-deep: #128c7e;
  --green-dark: #075e54;
  --green-ink: #043b34;
  --mint: #e8f8ef;
  --mint-line: #c9ecd8;

  --bg: #f6f8f6;
  --card: #ffffff;
  --line: #e4e9e6;
  --line-strong: #d3dbd6;

  --danger: #e5484d;
  --danger-bg: #fdecec;
  --amber: #f5a524;
  --amber-bg: #fff7e8;
  --amber-ink: #8a5a00;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 26, .06), 0 2px 8px rgba(11, 20, 26, .04);
  --shadow-md: 0 8px 24px -8px rgba(11, 20, 26, .18), 0 2px 6px rgba(11, 20, 26, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 20, 26, .28), 0 8px 20px -12px rgba(11, 20, 26, .16);
  --shadow-green: 0 12px 28px -10px rgba(37, 211, 102, .55);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: rgba(37, 211, 102, .28); color: var(--green-ink); }

:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 18px;
}

.shell--wide { max-width: 760px; }

.stack > * + * { margin-top: var(--gap, 16px); }

.section { padding: 34px 0 0; }

.section__head { text-align: center; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(21px, 5.4vw, 25px); letter-spacing: -.03em; }
.section__head p { margin-top: 7px; font-size: 14px; color: var(--muted); }

/* ---------- chrome ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(246, 248, 246, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(228, 233, 230, .8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  font-size: 15px;
}

.brand img { width: 26px; height: 26px; border-radius: 8px; object-fit: contain; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-ink);
  background: var(--mint);
  border: 1px solid var(--mint-line);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.live b { font-variant-numeric: tabular-nums; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- botões ---------- */

.btn {
  --btn-bg: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: var(--shadow-green);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); filter: saturate(1.06); }
.btn:active { transform: translateY(0) scale(.995); }
.btn[disabled] { opacity: .62; pointer-events: none; box-shadow: none; }

.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn--ghost {
  background: #fff;
  color: var(--green-ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--dark {
  background: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(11, 20, 26, .6);
}

.btn--sm { min-height: 44px; font-size: 14px; padding: 10px 16px; border-radius: 12px; }

.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn__spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ---------- cartões e selos ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--mint);
  color: var(--green-ink);
  border: 1px solid var(--mint-line);
}

.pill--warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #f6dfae; }
.pill--danger { background: var(--danger-bg); color: #a3282c; border-color: #f7cfd0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* ---------- rodapé ---------- */

.footer {
  margin-top: 40px;
  padding: 26px 18px 34px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer__links a:hover { color: var(--green-deep); text-decoration: underline; }
.footer small { display: block; max-width: 520px; margin: 0 auto; line-height: 1.6; color: var(--faint); }

/* ---------- animações ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
