/* RC-ACS, site principal. Uma folha só, sem dependências. Tema claro e escuro pelo sistema. */
:root {
  --bg: #ffffff;
  --band: #f5f6fb;
  --surface: #ffffff;
  --line: #e3e6ef;
  --text: #12162a;
  --text-2: #4b536b;
  --muted: #6c7590;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef0ff;
  --ink: #0f1120;
  --ok: #0f7a43;
  --ok-soft: #dcf7e6;
  --off: #5d667a;
  --off-soft: #eceef3;
  --series-1: #2a78d6;
  --series-3: #1baf7a;
  --code-bg: #0f1120;
  --code-text: #e6e9f5;
  --code-muted: #8f98b3;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(20, 24, 60, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e17;
    --band: #111424;
    --surface: #161a2b;
    --line: #262b42;
    --text: #eceef7;
    --text-2: #b9c0d6;
    --muted: #8d96b0;
    --brand: #7c75f7;
    --brand-strong: #6d66f5;
    --brand-soft: #1f2144;
    --ok: #4ade80;
    --ok-soft: #12301f;
    --off: #a3abbe;
    --off-soft: #232838;
    --series-1: #3987e5;
    --series-3: #199e70;
    --code-bg: #070912;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 17.5px; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.links a { color: var(--text-2); text-decoration: none; }
.links a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 11px; background: var(--brand-strong); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background 0.15s, transform 0.15s; }
.button:hover { background: var(--brand); transform: translateY(-1px); }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { background: var(--band); }
.button.light { background: #fff; color: #2e2a8f; }
.button.light:hover { background: #eef0ff; }

/* ---------- abertura ---------- */
.hero { padding: 72px 0 84px; background: radial-gradient(1200px 520px at 85% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 650; font-size: 13.5px; letter-spacing: 0.02em; margin-bottom: 14px; }
.lead { margin-top: 20px; font-size: 18.5px; color: var(--text-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; font-size: 14px; color: var(--muted); }
.facts strong { display: block; color: var(--text); font-size: 15px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--band); box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.shot-body { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 9px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
.shot .tile rect { fill: var(--surface); stroke: var(--line); }
.shot text { font-family: inherit; }
.shot .tile-label text { font-size: 11px; fill: var(--muted); }
.shot .tile-value text { font-size: 22px; font-weight: 700; fill: var(--text); letter-spacing: -0.5px; }
.shot .grid-line line, .shot .row-line line { stroke: var(--line); }
.shot .axis { stroke: var(--muted); stroke-opacity: 0.5; }
.shot .bar-a path { fill: var(--series-1); }
.shot .line-b { fill: none; stroke: var(--series-3); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.shot .row-text text { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.shot .row-note text { font-size: 11.5px; fill: var(--muted); }
.shot .pill-ok rect { fill: var(--ok-soft); }
.shot .pill-ok text { fill: var(--ok); font-size: 11px; font-weight: 600; text-anchor: middle; }
.shot .pill-off rect { fill: var(--off-soft); }
.shot .pill-off text { fill: var(--off); font-size: 11px; font-weight: 600; text-anchor: middle; }

/* ---------- seções ---------- */
section { padding: 84px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { margin-top: 12px; font-size: 17.5px; color: var(--text-2); max-width: 44em; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps p, .cards p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.flow { display: block; width: 100%; height: auto; margin-top: 36px; }
.flow text { font-family: inherit; text-anchor: middle; }
.flow-box rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.flow-title text { font-size: 16px; font-weight: 700; fill: var(--text); }
.flow-sub text { font-size: 12.5px; fill: var(--muted); }
.flow-arrow path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-note text { font-size: 12px; fill: var(--text-2); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards article { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.specs { margin: 30px 0 0; display: grid; gap: 18px; }
.specs div { padding-left: 16px; border-left: 3px solid var(--brand); }
.specs dt { font-weight: 700; }
.specs dd { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.device { width: 100%; height: auto; }
.device text { font-family: inherit; text-anchor: middle; }
.dev-body rect { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.dev-term rect { fill: var(--brand); opacity: 0.85; }
.dev-label text { font-size: 13px; fill: var(--muted); }
.dev-chip rect { fill: var(--band); stroke: var(--line); stroke-width: 1.5; }
.dev-small text { font-size: 12px; font-weight: 600; fill: var(--text-2); }
.dev-screen { fill: var(--ink); }
.dev-qr rect { fill: #fff; }
.dev-hole rect { fill: var(--ink); }
.dev-code text { font-size: 11px; font-weight: 700; fill: #c9cdf5; letter-spacing: 1.5px; }
.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks strong { color: var(--text); }
.plain { margin: 26px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }
.code { background: var(--code-bg); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--code-text); }
.code .c { color: var(--code-muted); }
.cta { background: linear-gradient(135deg, #4338ca, #312e81); color: #fff; }
.cta-inner { text-align: center; display: grid; justify-items: center; gap: 16px; }
.cta p { color: #d7d9fb; max-width: 36em; font-size: 17.5px; }
.cta .button { margin-top: 10px; }
.foot { padding: 26px 0; font-size: 13.5px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
  .links { display: none; }
  .top-row .button { margin-left: auto; }
  .flow { display: none; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .hero { padding: 44px 0 60px; }
  .wrap { padding: 0 18px; }
  .steps, .cards, .checks, .facts { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .actions .button { flex: 1 1 auto; }
}
@media print {
  .top, .cta .button { display: none; }
  section { padding: 28px 0; }
}
