/* ============================================================
   CNPJ Alfanumérico — design system SaaS (dark/light)
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --surface: #131b30;
  --surface-2: #18213a;
  --border: #263049;
  --border-2: #2f3b58;
  --text: #e9eef9;
  --muted: #97a3c1;
  --muted-2: #6b7799;

  --brand: #5b8cff;
  --brand-2: #38e0c8;
  --brand-ink: #06122b;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.12);
  --bad: #fb7185;
  --bad-bg: rgba(251, 113, 133, 0.12);
  --warn: #fbbf24;

  --raiz: #5b8cff;
  --ordem: #38e0c8;
  --dv: #fbbf24;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.5);
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fd;
  --bg-2: #eef2fa;
  --surface: #ffffff;
  --surface-2: #f7f9fe;
  --border: #e1e7f2;
  --border-2: #d2dbeb;
  --text: #16203a;
  --muted: #5a6785;
  --muted-2: #8a95ad;
  --brand-ink: #ffffff;
  --ok-bg: rgba(16, 155, 106, 0.1);
  --bad-bg: rgba(220, 60, 90, 0.09);
  --ok: #0f9d6a;
  --bad: #e23d5f;
  --shadow: 0 18px 50px -24px rgba(30, 50, 100, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(30, 50, 100, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 20px; font-size: 0.95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: 0.87rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn.full { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); box-shadow: 0 8px 22px -10px rgba(91, 140, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(91, 140, 255, 0.85); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark {
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); padding: 5px 9px; border-radius: 8px;
}
.brand-mark b { font-weight: 800; }
.brand-mark.small { font-size: 0.8rem; padding: 4px 7px; }
.brand-text { font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-text small { color: var(--muted); font-weight: 500; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem;
  display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
:root[data-theme="light"] .theme-icon-light { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 340px at 12% -8%, rgba(91, 140, 255, 0.18), transparent 70%),
    radial-gradient(600px 320px at 88% 0%, rgba(56, 224, 200, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600;
  color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent);
  padding: 6px 13px; border-radius: 999px; letter-spacing: 0.01em;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 var(--brand-2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-2) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; margin: 20px 0 18px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40ch; }
.lead strong { color: var(--text); font-weight: 600; }

.countdown { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.cd-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; min-width: 62px; text-align: center; box-shadow: var(--shadow-sm);
}
.cd-box span { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warn); line-height: 1.1; }
.cd-box small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cd-sep { color: var(--muted-2); font-weight: 700; font-size: 1.3rem; }
.countdown-caption { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }

/* ---------- Tool card (validador) ---------- */
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.tool-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-card-head h2 { font-size: 1.15rem; }
.muted-xs { color: var(--muted); font-size: 0.76rem; }
.muted-sm { color: var(--muted); font-size: 0.86rem; }

.input-wrap { position: relative; display: flex; gap: 10px; }
.input-wrap input {
  flex: 1; width: 100%; background: var(--bg-2); border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text);
  font-size: 1.15rem; font-family: var(--mono); letter-spacing: 0.02em; transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap.sm input { font-size: 0.98rem; padding: 11px 14px; }
.input-wrap input::placeholder { color: var(--muted-2); }
.input-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.clear-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.tool-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.verdict { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 10px; animation: pop 0.2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.verdict.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.verdict.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
.verdict .v-badge { font-size: 1.3rem; }
.verdict .v-text { color: var(--text); font-weight: 500; font-size: 0.92rem; }
.verdict .v-text b { font-weight: 700; }

/* ---------- Raio-X ---------- */
.xray { margin-top: 18px; }
.xray-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); margin-bottom: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.dot-raiz { background: var(--raiz); }
.dot-ordem { background: var(--ordem); }
.dot-dv { background: var(--dv); }
.xray-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.xcell {
  width: 40px; height: 52px; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 1.5px solid var(--border-2); background: var(--bg-2);
  font-family: var(--mono); position: relative; animation: pop 0.25s ease backwards;
}
.xcell b { font-size: 1.1rem; font-weight: 700; }
.xcell small { font-size: 0.6rem; color: var(--muted-2); }
.xcell.raiz { border-color: color-mix(in srgb, var(--raiz) 55%, transparent); }
.xcell.ordem { border-color: color-mix(in srgb, var(--ordem) 55%, transparent); }
.xcell.dv { border-color: color-mix(in srgb, var(--dv) 60%, transparent); background: color-mix(in srgb, var(--dv) 10%, var(--bg-2)); }
.xcell.is-letter b { color: var(--brand-2); }

.calc-details { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.calc-details summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.calc-details summary:hover { color: var(--text); }
.calc-body { margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); overflow-x: auto; }
.calc-body .calc-line { display: flex; gap: 6px; white-space: nowrap; }
.calc-body .calc-sum { margin-top: 8px; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-2); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin-top: 14px; }
.section-sub strong { color: var(--text); }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 860px; margin: 0 auto 44px; }
.compare-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.compare-col.highlight { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow-sm); }
.compare-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.compare-tag.old { background: var(--surface-2); color: var(--muted); }
.compare-tag.new { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-2); }
.big-code { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 10px; }
.regex-code { display: block; color: var(--brand-2); font-size: 0.95rem; margin-bottom: 14px; }
.compare-col p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.compare-arrow { font-size: 1.8rem; color: var(--brand); font-weight: 700; }

/* ---------- Impact grid ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.impact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.impact-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 0.9rem; color: var(--muted); }
.check-list.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding-left: 16px; border-left: 2px solid var(--border-2); padding-bottom: 12px; font-size: 0.88rem; color: var(--muted); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li b { color: var(--text); }
.timeline li.muted { border-color: transparent; }
.timeline li.muted::before { background: var(--muted-2); }

.regex-result { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.82rem; background: var(--bg-2); }
.regex-result.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.regex-result.bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.regex-result table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.regex-result td { padding: 4px 6px; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.regex-result code { color: var(--brand-2); }
.badge-ok { color: var(--ok); font-weight: 700; }
.badge-bad { color: var(--bad); font-weight: 700; }

/* ---------- Dropzone / lote ---------- */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 40px 24px;
  text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; background: var(--surface);
  max-width: 760px; margin: 0 auto;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); outline: none; }
.dz-icon { font-size: 2rem; color: var(--brand); display: block; margin-bottom: 8px; }
.dropzone p { margin: 4px 0; color: var(--muted); }
.dropzone strong { color: var(--text); }
.paste-row { display: flex; gap: 12px; max-width: 760px; margin: 16px auto 0; align-items: stretch; }
.paste-row textarea {
  flex: 1; background: var(--bg-2); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--mono); font-size: 0.85rem; resize: vertical;
}
.paste-row textarea:focus { outline: none; border-color: var(--brand); }

.batch-result { max-width: 860px; margin: 28px auto 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat.ok b { color: var(--ok); }
.stat.bad b { color: var(--bad); }
.batch-actions { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.result-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.result-table th { text-align: left; padding: 10px 12px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; }
.result-table td { padding: 9px 12px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.82rem; }
.result-table tr:hover td { background: var(--surface-2); }

/* ---------- API ---------- */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
/* min-width:0 impede que o <pre> de código estique o grid item além do viewport */
.api-playground, .api-docs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }
.endpoint-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.method { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.03em; }
.method.post { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-2); }
.method.get { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.endpoint-row code { font-size: 0.92rem; }
.code-out { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0 0; overflow-x: auto; font-size: 0.8rem; min-height: 120px; }
.code-out code { color: var(--muted); white-space: pre; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab { background: none; border: none; color: var(--muted); padding: 8px 14px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.code-snippet { display: none; position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-size: 0.8rem; margin: 0; }
.code-snippet.active { display: block; }
.code-snippet code { color: var(--text); white-space: pre; }
.copy-code { position: absolute; top: 10px; right: 10px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted); border-radius: 6px; padding: 3px 9px; font-size: 0.72rem; cursor: pointer; }
.copy-code:hover { color: var(--brand-2); border-color: var(--brand); }
.endpoints-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.endpoint-mini { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.endpoint-mini code { flex: 1; }

/* ---------- SDK ---------- */
.sdk-card { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sdk-tabs { padding: 6px 10px 0; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); }
.sdk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sdk-badge { font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.sdk-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.sdk-badge.tested { color: var(--ok); }
.sdk-badge.tested::before { background: var(--ok); }
.sdk-badge.ported { color: var(--muted); }
.sdk-badge.ported::before { background: var(--warn); }
.sdk-bar-actions { display: flex; gap: 8px; }
.sdk-code { border: none; border-radius: 0; margin: 0; max-height: 460px; overflow: auto; font-size: 0.8rem; }
.sdk-code code { color: var(--text); white-space: pre; display: block; }

/* ---------- Widget ---------- */
.widget-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.widget-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.demo-label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.demo-input { width: 100%; background: var(--bg-2); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-family: var(--mono); font-size: 1rem; }
.demo-input:focus { outline: none; border-color: var(--brand); }
/* estados aplicados pelo embed.js */
.cnpj-valid { border-color: var(--ok) !important; }
.cnpj-invalid { border-color: var(--bad) !important; }
.cnpj-badge { display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 600; }
.cnpj-badge.ok { color: var(--ok); }
.cnpj-badge.bad { color: var(--bad); }

/* ---------- Guia ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.guide-card h3 { font-size: 1rem; margin-bottom: 12px; color: var(--brand-2); }
.guide-card p { color: var(--muted); font-size: 0.9rem; margin: 6px 0; }
.guide-card code { color: var(--text); background: var(--bg-2); padding: 2px 6px; border-radius: 5px; }
.ascii-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ascii-table div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; font-family: var(--mono); }
.ascii-table b { display: block; font-size: 1.1rem; color: var(--brand-2); }
.ascii-table span { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--brand-2); font-size: 1.3rem; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.faq-item code { color: var(--brand-2); background: var(--bg-2); padding: 1px 6px; border-radius: 4px; }

/* ---------- CTA ---------- */
.cta-section { padding: 72px 0; }
.cta-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: 20px; padding: 44px; box-shadow: var(--shadow); }
.cta-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 10px 0 14px; }
.cta-copy p { color: var(--muted); font-size: 1rem; }
.cta-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.cta-list { list-style: none; padding: 0; margin: 0; }
.cta-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.92rem; font-weight: 500; }
.cta-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner > div { display: flex; gap: 14px; align-items: flex-start; max-width: 640px; }
.footer-inner .muted-xs { line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text);
  padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 500;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .api-grid, .cta-wrap { grid-template-columns: 1fr; }
  .impact-grid, .guide-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-wrap { padding: 28px; }
  .cd-box { min-width: 52px; padding: 8px 10px; }
  .cd-box span { font-size: 1.35rem; }
  .paste-row { flex-direction: column; }
  .header-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
