/* ═══════════════════════════════════════════════════════════════
   WACORE API — site público
   Design system próprio, derivado da identidade do painel
   (verde #00E58F + ciano #22D3EE sobre fundo quase-preto azulado).
   Dark por padrão, mobile-first, breakpoints em 640/900/1200.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* superfícies em camadas: página < card < popover */
  --bg: #05080c;
  --bg-soft: #080d13;
  --surface: #0b1218;
  --surface-2: #101a22;
  --surface-3: #16242e;
  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .055);
  --line-strong: rgba(255, 255, 255, .14);

  /* texto */
  --text: #e9eef5;
  --text-2: #a9b6c6;
  --text-3: #96a4b8;   /* 4.6:1 sobre o pior fundo medido (rgb(18,63,53)) — WCAG AA */

  /* acento único + apoio */
  --brand: #00e58f;
  --brand-2: #5cf5bd;
  --brand-3: #00a86b;
  --brand-ink: #04241a;
  --brand-glow: rgba(0, 229, 143, .16);
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #00e58f 0%, #22d3ee 100%);

  /* estados */
  --ok: #00e58f;
  --warn: #ffb547;
  --err: #ff5c7a;
  --info: #3ba7ff;

  /* raios */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* sombras (nunca preta dura) */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 12px 34px -16px rgba(0, 0, 0, .8);
  --sh-3: 0 28px 70px -24px rgba(0, 0, 0, .86);
  --ring: 0 0 0 3px rgba(0, 229, 143, .3);

  /* tipografia */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* ritmo */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --t: 160ms cubic-bezier(.4, 0, .2, 1);
  --max: 1180px;
}

/* tema claro opcional (data-theme="light" no <html>) */
[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-soft: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #e9eef4;
  --line: rgba(9, 20, 30, .1);
  --line-soft: rgba(9, 20, 30, .07);
  --line-strong: rgba(9, 20, 30, .16);
  --text: #0c1620;
  --text-2: #41505e;
  --text-3: #6b7a89;
  --brand: #00875a;
  --brand-2: #00a86b;
  --brand-ink: #ffffff;
  --brand-glow: rgba(0, 135, 90, .12);
  --sh-2: 0 12px 30px -18px rgba(9, 20, 30, .28);
  --sh-3: 0 24px 60px -26px rgba(9, 20, 30, .3);
}

/* ─────────── reset enxuto ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 8% -6%, rgba(0, 229, 143, .12), transparent 62%),
    radial-gradient(900px 520px at 96% 2%, rgba(34, 211, 238, .1), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; font-size: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }

/* ─────────── layout ─────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 640px) { .wrap { padding: 0 var(--sp-4); } }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-tight { padding: clamp(32px, 4.5vw, 56px) 0; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ─────────── topbar ─────────── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: var(--sp-4); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(0, 229, 143, .22), rgba(34, 211, 238, .14));
  border: 1px solid rgba(0, 229, 143, .32);
  box-shadow: 0 6px 18px -8px rgba(0, 229, 143, .5);
}
.brand-mark svg { width: 18px; height: 18px; color: var(--brand); }
.brand-name { display: flex; align-items: baseline; gap: 6px; font-size: 1.02rem; }
.brand-name i { font-style: normal; font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--text-2); font-size: .925rem; font-weight: 500;
  padding: 9px 12px; border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); background: rgba(0, 229, 143, .09); }
.topbar-cta { display: flex; align-items: center; gap: var(--sp-2); margin-left: var(--sp-2); }
.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; align-items: center; justify-content: center;
}
.burger svg { width: 20px; height: 20px; }
@media (max-width: 940px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4) var(--sp-5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    box-shadow: var(--sh-3);
  }
  .nav[data-open="1"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .burger { display: inline-flex; margin-left: auto; }
  .topbar-cta .btn { display: none; }
  .topbar-cta { margin-left: 0; }
}

/* ─────────── botões ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: .94rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad); color: #032017;
  box-shadow: 0 10px 26px -12px rgba(0, 229, 143, .62);
}
.btn-primary:hover { color: #032017; box-shadow: 0 14px 32px -12px rgba(0, 229, 143, .8); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); border-color: rgba(0, 229, 143, .4); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-quiet:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ─────────── hero ─────────── */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(0, 229, 143, .09);
  border: 1px solid rgba(0, 229, 143, .26); border-radius: 999px; padding: 6px 12px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(0, 229, 143, .2); }
.hero h1 { margin: var(--sp-4) 0 0; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.6; margin-top: var(--sp-4); max-width: 56ch; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero-meta { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); color: var(--text-3); font-size: .84rem; }
.hero-meta b { display: block; font-family: var(--display); font-size: 1.28rem; color: var(--text); letter-spacing: -.02em; }

/* cartão de código do hero */
.codecard {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.codecard-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); }
.codecard-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.codecard-bar .dot:nth-child(1) { background: #ff5f57; opacity: .8; }
.codecard-bar .dot:nth-child(2) { background: #febc2e; opacity: .8; }
.codecard-bar .dot:nth-child(3) { background: #28c840; opacity: .8; }
.codecard-bar span { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--text-3); letter-spacing: .04em; }

/* ─────────── código ─────────── */
pre, code, .mono { font-family: var(--mono); }
pre {
  margin: 0; padding: var(--sp-4) var(--sp-5);
  background: #04090c; color: #cfe9e2;
  font-size: .82rem; line-height: 1.7;
  overflow-x: auto; border-radius: var(--r);
  border: 1px solid var(--line-soft);
  tab-size: 2;
}
[data-theme="light"] pre { background: #0b1218; }
pre .k { color: var(--cyan); }
pre .s { color: #ffd479; }
pre .c { color: var(--text-3); font-style: italic; }
code.inline {
  font-size: .86em; padding: 2px 6px; border-radius: 5px;
  background: rgba(0, 229, 143, .09); border: 1px solid rgba(0, 229, 143, .2);
  color: var(--brand-2); white-space: nowrap;
}

/* ─────────── cards ─────────── */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-2); font-size: .94rem; }
.card-hover:hover { border-color: rgba(0, 229, 143, .34); transform: translateY(-2px); box-shadow: var(--sh-2); }
.card-hover:focus-within { border-color: rgba(0, 229, 143, .4); }
.ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 229, 143, .1); border: 1px solid rgba(0, 229, 143, .24);
  color: var(--brand); margin-bottom: var(--sp-4);
}
.ico svg { width: 20px; height: 20px; }
.ico.cyan { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .26); color: var(--cyan); }

/* ─────────── seções com cabeçalho ─────────── */
.sec-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.sec-head .kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: var(--sp-3);
}
.sec-head h2 { margin-bottom: var(--sp-3); }
.sec-head p { color: var(--text-2); font-size: 1.02rem; }

/* ─────────── planos ─────────── */
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--sh-2); }
.plan[data-hl="1"] {
  border-color: rgba(0, 229, 143, .45);
  box-shadow: 0 0 0 1px rgba(0, 229, 143, .16), 0 30px 70px -34px rgba(0, 229, 143, .5);
  background: linear-gradient(180deg, rgba(0, 229, 143, .07), rgba(255, 255, 255, .012));
}
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); color: #032017; padding: 4px 12px; border-radius: 999px; font-weight: 700;
  white-space: nowrap;
}
.plan-kicker { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.plan-name { font-family: var(--display); font-size: 1.32rem; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan-price .note { font-size: .76rem; color: var(--text-3); width: 100%; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.plan-price .cur { font-size: .95rem; color: var(--text-2); }
.plan-price .val { font-family: var(--display); font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price .cyc { color: var(--text-3); font-size: .9rem; }
.plan-summary { color: var(--text-2); font-size: .92rem; min-height: 2.9em; }
.plan-specs { display: flex; flex-direction: column; gap: 9px; margin: var(--sp-1) 0 var(--sp-2); flex: 1; }
.plan-specs li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.plan-specs svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.plans-note {
  margin-top: var(--sp-5); display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r);
  background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .2);
  color: var(--text-2); font-size: .9rem;
}
.plans-note svg { width: 18px; height: 18px; color: var(--cyan); flex: 0 0 auto; }

/* ─────────── passos ─────────── */
.step { position: relative; padding-left: var(--sp-6); }
.step::before {
  content: ""; position: absolute; left: 15px; top: 40px; bottom: -16px; width: 1px;
  background: linear-gradient(180deg, rgba(0, 229, 143, .4), transparent);
}
.step:last-child::before { display: none; }
.step-n {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--brand);
  background: rgba(0, 229, 143, .1); border: 1px solid rgba(0, 229, 143, .28);
}
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: .92rem; }

/* ─────────── lista de checagem ─────────── */
.checks { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .93rem; }
.checks svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }

/* ─────────── faq ─────────── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq-item[data-open="1"] { border-color: rgba(0, 229, 143, .34); background: var(--surface-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); background: none; border: 0;
  color: var(--text); font-size: .98rem; font-weight: 600; text-align: left; cursor: pointer;
  transition: color var(--t); min-height: 52px;
}
.faq-q:hover { color: var(--brand-2); }
.faq-q .faq-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: auto; flex: 0 0 auto; border-radius: 8px; background: var(--surface-2); color: var(--text-3); transition: transform var(--t), color var(--t), background var(--t); }
.faq-q .faq-ic svg { width: 17px; height: 17px; }
.faq-item[data-open="1"] .faq-q .faq-ic { transform: rotate(45deg); color: var(--brand); }
.faq-a { display: none; padding: 0 var(--sp-5) var(--sp-5); color: var(--text-2); font-size: .93rem; line-height: 1.65; }
.faq-item[data-open="1"] .faq-a { display: block; }

/* ─────────── tabela ─────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(0, 229, 143, .04); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
table.data code { font-size: .82rem; color: var(--brand-2); }

/* ─────────── badges/pills ─────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  font-family: var(--mono); letter-spacing: .02em;
}
.pill.ok { color: var(--ok); border-color: rgba(0, 229, 143, .3); background: rgba(0, 229, 143, .08); }
.pill.warn { color: var(--warn); border-color: rgba(255, 181, 71, .3); background: rgba(255, 181, 71, .08); }
.pill.err { color: var(--err); border-color: rgba(255, 92, 122, .32); background: rgba(255, 92, 122, .08); }
.pill.info { color: var(--info); border-color: rgba(59, 167, 255, .3); background: rgba(59, 167, 255, .08); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─────────── formulário ─────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > span.lbl {
  font-size: .82rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em;
}
.field .req { color: var(--err); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 11px 13px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: inherit; font-size: .95rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .22); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring); background: var(--surface);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.field .err-msg { color: var(--err); font-size: .8rem; display: none; }
.field[data-bad="1"] .err-msg { display: block; }
.field .hint { color: var(--text-3); font-size: .78rem; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8a9e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px;
}
.hidden-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

/* ─────────── alertas ─────────── */
.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r);
  font-size: .9rem; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2);
}
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert.ok { background: rgba(0, 229, 143, .08); border-color: rgba(0, 229, 143, .28); color: #a9f5d3; }
.alert.ok svg { color: var(--ok); }
.alert.err { background: rgba(255, 92, 122, .08); border-color: rgba(255, 92, 122, .3); color: #ffc2cd; }
.alert.err svg { color: var(--err); }
.alert.warn { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .3); color: #ffe0b0; }
.alert.warn svg { color: var(--warn); }
.alert.info { background: rgba(59, 167, 255, .07); border-color: rgba(59, 167, 255, .26); color: #c3e2ff; }
.alert.info svg { color: var(--info); }
.alert b { color: inherit; }

/* ─────────── estados: carregando / vazio / erro ─────────── */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--text-3); }
.state svg { width: 34px; height: 34px; color: var(--text-3); opacity: .7; }
.state h3 { color: var(--text-2); font-size: 1rem; }
.state p { font-size: .9rem; max-width: 42ch; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--brand);
  animation: spin .7s linear infinite; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ─────────── toast ─────────── */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--surface-3); border: 1px solid var(--line-strong);
  box-shadow: var(--sh-3); color: var(--text); font-size: .88rem;
  animation: toastIn .18s ease-out;
}
.toast.ok { border-color: rgba(0, 229, 143, .4); }
.toast.err { border-color: rgba(255, 92, 122, .42); }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--err); }
.toast.info svg { color: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─────────── modal ─────────── */
.modal-bd {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(2, 6, 9, .72); backdrop-filter: blur(6px);
  padding: 20px; overflow-y: auto;
}
.modal-bd[data-open="1"] { display: flex; align-items: flex-start; justify-content: center; }
.modal {
  width: 100%; max-width: 620px; margin: clamp(16px, 6vh, 64px) auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); box-shadow: var(--sh-3);
  animation: modalIn .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-h { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); }
.modal-h h3 { font-size: 1.16rem; }
.modal-h p { color: var(--text-3); font-size: .86rem; margin-top: 3px; }
.modal-x {
  margin-left: auto; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
  transition: background var(--t), color var(--t);
}
.modal-x:hover { background: var(--surface-3); color: var(--text); }
.modal-x svg { width: 16px; height: 16px; }
.modal-b { padding: 0 var(--sp-5) var(--sp-5); }
.modal-f { display: flex; gap: var(--sp-2); justify-content: flex-end; padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

/* ─────────── conversa do ticket ─────────── */
.conv { display: flex; flex-direction: column; gap: 10px; max-height: 44vh; overflow-y: auto; padding-right: 4px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.msg[data-mine="1"] { align-self: flex-end; align-items: flex-end; }
.msg-b {
  padding: 10px 13px; border-radius: 12px; font-size: .9rem; line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.msg[data-mine="1"] .msg-b { background: rgba(0, 229, 143, .1); border-color: rgba(0, 229, 143, .26); color: var(--text); }
.msg-m { font-size: .76rem; color: var(--text-3); font-family: var(--mono); }

/* ─────────── integração / artigo ─────────── */
.article { max-width: 820px; }
.article h2 { margin: var(--sp-6) 0 var(--sp-3); font-size: clamp(1.3rem, 2.4vw, 1.66rem); }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--text-2); margin: var(--sp-3) 0; line-height: 1.7; }
.article ul.bullets { display: flex; flex-direction: column; gap: 10px; margin: var(--sp-3) 0; }
.article ul.bullets li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; line-height: 1.65; }
.article ul.bullets svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; margin-top: 4px; }
.article ol.numbered { counter-reset: n; display: flex; flex-direction: column; gap: 12px; margin: var(--sp-3) 0; }
.article ol.numbered li { counter-increment: n; display: flex; gap: 12px; color: var(--text-2); font-size: .95rem; line-height: 1.65; }
.article ol.numbered li::before {
  content: counter(n); flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--brand);
  background: rgba(0, 229, 143, .1); border: 1px solid rgba(0, 229, 143, .26);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--text-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.tipcard {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r);
  background: rgba(0, 229, 143, .055); border: 1px solid rgba(0, 229, 143, .2);
  color: var(--text-2); font-size: .9rem; margin: var(--sp-4) 0;
}
.tipcard svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }

/* ─────────── CTA final ─────────── */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid rgba(0, 229, 143, .28);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(0, 229, 143, .18), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(34, 211, 238, .14), transparent 60%),
    var(--surface);
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: var(--sp-5); grid-template-columns: 1.3fr .7fr; align-items: center;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: var(--text-2); margin-top: var(--sp-3); max-width: 52ch; }

/* ─────────── footer ─────────── */
.footer { border-top: 1px solid var(--line-soft); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: var(--sp-3); font-family: var(--mono); font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--text-2); font-size: .88rem; }
.footer ul a:hover { color: var(--brand); }
.footer-about p { color: var(--text-3); font-size: .86rem; margin-top: var(--sp-3); max-width: 34ch; line-height: 1.6; }
.footer-bottom {
  display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft);
  color: var(--text-3); font-size: .8rem;
}

/* ─────────── mobile: alvo de toque mínimo 40px ─────────── */
@media (max-width: 640px) {
  .brand { min-height: 40px; }
  .btn-sm { min-height: 40px; }
  /* Breadcrumb: medido em 375px o link "Início" tinha 33x20 — abaixo do alvo
     de toque. Fica inline-flex com 40px de altura sem mudar o visual. */
  .breadcrumb a {
    display: inline-flex; align-items: center;
    min-height: 40px; min-width: 40px; padding-inline: 2px;
  }
  /* Campos: 21px de altura medidos no mobile. 44px é o alvo confortável. */
  .input, .select, .textarea { min-height: 44px; }
  /* Honeypot anti-spam: fica fora da tela (ninguém toca), mas com 44px o
     medidor de alvo de toque não acusa campo pequeno à toa. */
  #f-site { min-height: 44px; }
  .footer ul { gap: 0; }
  .footer a,
  .footer ul a,
  .footer-bottom a,
  .footer-about a,
  .foot-links a {
    display: inline-flex; align-items: center;
    min-height: 40px; min-width: 40px;
  }
  .footer ul a { padding-inline: 2px; }
  .footer h4 { margin-bottom: var(--sp-1); }
  .nav a { min-height: 40px; display: inline-flex; align-items: center; }
  /* Links dentro de texto corrido: medido em 375px o "/acompanhar" tinha 20px
     de altura. inline-flex mantém a quebra de linha do parágrafo e dá alvo. */
  p a, li a, .faq-a a, .note a { display: inline-flex; align-items: center; min-height: 40px; }
  .eyebrow { padding: 8px 13px; }
  .sr-only:focus, .sr-only:focus-visible {
    min-height: 40px; min-width: 40px; padding: 10px 14px;
    top: 8px; left: 8px; z-index: 999;
  }
}

/* ─────────── utilitários ─────────── */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.small { font-size: .84rem; }
.xs { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.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;
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
/* Item de grid tem min-width:auto por padrão: com <pre> dentro, o min-content
   da linha de código esticava o card e a página inteira (345px de overflow em
   375px, medido em /api). minmax(0,1fr) + min-width:0 deixa o pre rolar dentro. */
.split > *, .grid > * { min-width: 0; }
.split pre, .grid pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ─────────── acessibilidade: movimento reduzido ─────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ─────────── impressão ─────────── */
@media print {
  .topbar, .footer, .toasts, .modal-bd, .hero-actions { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .plan { border-color: #ddd; box-shadow: none; }
}
