/* Rastro · landing. Sem framework, sem build. Tokens do tema escuro do sistema (web/src/styles/tokens.css). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #09090b;
  --surface: #111113;
  --fill-1: #1c1c1f;
  --fill-2: #27272a;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-placeholder: #71717a;
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-bg: #1e1b4b;
  --primary-text: #a5b4fc;
  --focus: #818cf8;
  --success: #10b981;
  --success-bg: #052e22;
  --success-text: #34d399;
  --warn: #f59e0b;
  --warn-bg: #2b1d05;
  --danger: #f43f5e;
  --danger-bg: #2e0a13;
  --danger-text: #fb7185;
  --indigo-soft: #a5b4fc;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: min(1200px, 100% - 32px);
  --shadow: 0 24px 60px -12px rgb(0 0 0 / 0.65), 0 2px 6px rgb(0 0 0 / 0.4);

  color-scheme: dark;
}
@media (min-width: 700px) { :root { --wrap: min(1200px, 100% - 64px); } }
@media (min-width: 1100px) { :root { --wrap: min(1200px, 100% - 240px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.bar-visible { scroll-padding-bottom: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, ol, ul, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-feature-settings: normal; }

.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

.t-main { color: var(--text); }
.t-muted { color: var(--text-muted); }
.only-narrow, .only-narrow-flex { display: none !important; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 1px 2px rgb(0 0 0 / 0.4);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[aria-busy="true"] { background: #4338ca; color: rgb(255 255 255 / 0.72); cursor: progress; }
.btn-secondary { background: var(--surface); border-color: var(--border-hover); color: var(--text); }
.btn-secondary:hover { background: var(--fill-1); }
.btn-ghost { background: var(--fill-1); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--fill-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: var(--r-sm); gap: 6px; }

.input {
  height: 44px; width: 100%; min-width: 0; padding: 0 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-hover); border-radius: var(--r-md);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-placeholder); }
.input:hover { border-color: #52525b; }
.input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(129 140 248 / 0.25); border-radius: var(--r-md); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(244 63 94 / 0.22); }

/* Copiar: os dois rótulos ocupam a mesma célula, o botão não muda de largura */
.copy { display: inline-grid; grid-template-areas: "x"; }
.copy > span { grid-area: x; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.copy .icon { width: 14px; height: 14px; }
.copy-b { visibility: hidden; color: var(--success-text); }
.copy.is-done .copy-a { visibility: hidden; }
.copy.is-done .copy-b { visibility: visible; }

/* ---------- Navegação ---------- */
.nav { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 5; }
.nav-in { height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo-svg { width: 28px; height: 28px; flex: none; display: block; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2);
}
.nav-links { margin-left: auto; display: flex; gap: 25px; font-size: 14.5px; }
.nav-links a { color: #d4d4d8; padding: 6px 0; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; height: 40px; font-size: 14.5px; }

/* ---------- Topo ---------- */
.hero { padding: 88px 0 64px; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 4px;
  border: 1px solid var(--border-hover); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; color: #e4e4e7; transition: border-color .15s;
}
.pill:hover { border-color: #52525b; }
.pill-tag { background: var(--primary-bg); color: var(--primary-text); border-radius: 999px; padding: 3px 9px; font-size: 13px; font-weight: 500; }
.pill-arrow { width: 14px; height: 14px; color: var(--text-muted); }
.hero-title {
  margin-top: 18px; font-size: clamp(36px, 5vw, 74px); line-height: 1.32; font-weight: 600;
  letter-spacing: -0.035em; text-wrap: balance;
}
.hero-title > span { display: block; }
.hero-sub { margin-top: 22px; max-width: 690px; font-size: 18px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

.snippet {
  margin-top: 22px; width: min(640px, 100%); height: 46px; display: flex; align-items: center; gap: 12px;
  padding: 0 7px 0 16px; background: var(--surface); border: 1px solid var(--border-hover); border-radius: var(--r-md);
}
.snippet-code { flex: 1; min-width: 0; text-align: left; font-size: 13px; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snippet-note { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.snippet-note code { font-size: 12px; color: #e4e4e7; }

.hero-form { margin-top: 24px; width: min(460px, 100%); }
.wl-row { display: flex; gap: 8px; }
.wl-row .input { flex: 1; }
.wl-btn { height: 44px; flex: none; padding: 0 16px; }
.wl-btn .icon { width: 16px; height: 16px; }
.wl-msg { min-height: 0; margin-top: 0; font-size: 13.5px; color: var(--danger-text); text-align: left; }
.wl-msg:not(:empty) { margin-top: 8px; }
.wl-done {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--border-hover); border-radius: var(--r-md);
  font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word;
}
.wl-done[hidden] { display: none; }
.wl-done .icon { color: var(--success-text); margin-top: 2px; }
.trust { margin-top: 18px; font-size: 13.5px; color: #d4d4d8; }
.trust span { color: var(--text-muted); margin: 0 4px; }

/* ---------- Palco ---------- */
.stage {
  padding: 0 0 64px; overflow-x: clip;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 45%, var(--primary-bg) 100%);
}
.stage-in { position: relative; }
.window {
  border: 1px solid var(--border-hover); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow);
}
.window-bar { position: relative; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--fill-1); border-bottom: 1px solid var(--border); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-hover); }
.window-bar .dots { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.window-url { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

.shot { position: relative; overflow: hidden; background: var(--surface); }
.shot img { position: absolute; max-width: none; height: auto; }
.shot-fail { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.shot-fail .icon { width: 20px; height: 20px; }
.shot.is-failed img { display: none; }
.shot.is-failed .shot-fail { display: flex; }
.shot.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46%; height: 40px; transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--fill-2), var(--fill-2)) center top / 100% 8px no-repeat,
    linear-gradient(var(--fill-2), var(--fill-2)) center 16px / 80% 8px no-repeat,
    linear-gradient(var(--fill-2), var(--fill-2)) center 32px / 64% 8px no-repeat;
  border-radius: 4px; opacity: .8;
}

.shot-panel { aspect-ratio: 1200 / 664; }
.shot-panel img { left: 0; top: 0; width: 120%; }

.live {
  position: absolute; left: -80px; top: 410px; width: 320px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border-hover); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.live-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-text); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.live-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.live-meta { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.dot-success { background: var(--success); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.badge > i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge .icon { width: 12px; height: 12px; }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-danger > i { background: var(--danger); }
.badge-warn { background: var(--warn-bg); color: #fbbf24; }
.badge-warn > i { background: var(--warn); }
.badge-primary { background: var(--primary-bg); color: var(--primary-text); }
.badge-primary > i { background: var(--primary-hover); }
.live-btn {
  margin-top: 14px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-hover); border-radius: var(--r-md); background: var(--bg); font-size: 13.5px; font-weight: 500;
}
.live-btn .icon { width: 14px; height: 14px; }

.term {
  position: absolute; right: -50px; top: 50px; width: 520px;
  background: #0e0e10; border: 1px solid var(--border-hover); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
}
.term-bar { height: 36px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.term-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.term-prompt, .term-ok { display: grid; grid-template-columns: 16px 1fr; color: #e4e4e7; }
.term-prompt { margin-bottom: 2px; }
.term-caret { color: var(--text-muted); }
.term-ok .term-caret { color: var(--success-text); font-weight: 700; }
.term-ok .ok { color: var(--success-text); }
.term-ok .term-opt { color: #d4d4d8; display: block; }
.term-tool {
  display: flex; align-items: baseline; gap: 10px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--fill-1);
  white-space: nowrap; overflow: hidden; color: #d4d4d8; font-size: 12px;
}
.term-tool i { color: var(--success); font-style: normal; font-size: 9px; }
.term-tool b { color: var(--primary-text); font-weight: 400; }
.term-tool span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Faixa ---------- */
.strip { border-bottom: 1px solid var(--border); background: var(--bg); }
.strip-in { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.strip-brand { display: flex; align-items: center; gap: 12px; padding-right: 28px; border-right: 1px solid var(--border); }
.strip-icon { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--fill-2); display: grid; place-items: center; }
.strip-icon .icon { width: 16px; height: 16px; }
.strip-brand p { display: flex; flex-direction: column; line-height: 1.3; }
.strip-brand b { font-weight: 600; font-size: 14.5px; }
.strip-brand span { font-size: 12.5px; color: var(--text-muted); }
.seals { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; color: #d4d4d8; }
.seals li { display: inline-flex; align-items: center; gap: 8px; }
.seals .icon { width: 15px; height: 15px; color: var(--text-muted); }

/* ---------- Manifesto e títulos ---------- */
.manifesto { padding: 112px 0 64px; }
.manifesto-text .t-muted { display: block; }
.manifesto-text { max-width: 1040px; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.16; font-weight: 600; letter-spacing: -0.03em; }

.section { padding: 112px 0 0; }
.h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.h2-lg { font-size: clamp(32px, 3.1vw, 44px); }
.h2-sm { font-size: clamp(28px, 2.5vw, 36px); }
.h3 { font-size: clamp(26px, 2.25vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.lead { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.lead-narrow { max-width: 700px; }

/* ---------- Do erro à linha ---------- */
.errors { padding-top: 112px; }
.err-grid {
  margin-top: 32px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 700fr) minmax(0, 484fr);
  grid-template-rows: auto 1fr;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.card-head { padding: 22px 24px 0; }
.card-head h3 { font-size: 15.5px; font-weight: 600; }
.card-head p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.card-error { grid-row: 1 / span 2; position: relative; display: flex; flex-direction: column; }
.card-error .err-detail { flex: 1; display: flex; flex-direction: column; }
.card-error .err-chart { flex: 1; display: flex; flex-direction: column; }
.card-error .bars { flex: 1; min-height: 128px; height: auto; }
.card-session { padding-bottom: 16px; }
.card-code { padding-bottom: 24px; }

.err-detail { position: relative; margin: 22px -40px 0 24px; padding: 14px 8px 0; background: var(--bg); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-md) 0 0 0; }
.err-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 240px; }
.err-release { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.err-title { margin-top: 14px; font-size: 19px; line-height: 1.4; color: var(--text); padding-right: 240px; }
.err-where { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); padding-right: 240px; }
.err-stats { margin-top: 18px; margin-right: 240px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.err-stats > div { padding: 14px 16px; }
.err-stats > div + div { border-left: 1px solid var(--border); }
.err-stats dt { font-size: 12.5px; color: var(--text-muted); }
.err-stats dd { margin-top: 4px; font-size: 17px; }
.err-chart { margin-top: 16px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--surface); }
.err-chart-title { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.bars { height: 128px; display: flex; align-items: flex-end; gap: 5px; padding: 14px 16px 0; position: relative; }
.bars i { flex: 1; height: calc(var(--h) * 1px); min-height: 3px; background: var(--fill-2); border-radius: 2px 2px 0 0; }
.bars i.hot { background: var(--danger); opacity: .92; height: calc(var(--h) * 1.3px); }
.bars .deploy { width: 1px; align-self: stretch; margin: 0 3px; background: var(--danger); opacity: .7; }
.axis { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 16px 18px; font-size: 11px; color: var(--text-muted); }

.loupe {
  position: absolute; left: 402px; top: 30px; width: 220px; height: 220px; border-radius: 50%;
  border: 2px solid var(--primary-hover); background: var(--surface);
  box-shadow: 0 0 0 6px rgb(99 102 241 / 0.08), 0 24px 50px -10px rgb(0 0 0 / 0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center;
}
.loupe::after {
  content: ""; position: absolute; left: -14px; bottom: 31px; width: 46px; height: 2px; background: var(--primary-hover);
  transform: rotate(-45deg); transform-origin: right center;
}
.loupe-err { font-size: 12.5px; color: var(--text); }
.loupe-br { font-size: 11.5px; color: var(--text-muted); }

.shot-player { margin-top: 16px; aspect-ratio: 956 / 448; border-block: 1px solid var(--border); background: var(--bg); }
.shot-player img { width: 150.63%; left: -8.79%; top: -110.94%; }

.code { margin: 20px 20px 0 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--text-muted); }
.code pre { white-space: normal; padding: 6px 0; font-size: 12px; line-height: 24px; color: #e4e4e7; overflow-x: auto; }
.code pre:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 0 0 var(--r-md) var(--r-md); }
.ln { display: block; padding: 0 12px 0 41px; white-space: pre-wrap; overflow-wrap: break-word; }
.ln i { font-style: normal; color: var(--text-muted); display: inline-block; width: 29px; margin-left: -29px; }
.ln-bad { background: var(--danger-bg); color: var(--danger-text); }
.ln-bad i { color: var(--danger-text); }

/* ---------- Prova ---------- */
.proof { padding-top: 120px; }
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.proof-head p { font-size: 14px; color: var(--text-muted); }
.stats { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px 22px; min-height: 150px; }
.stat-n { display: flex; align-items: baseline; gap: 6px; }
.stat-n .mono { font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.stat-n small { font-size: 14px; color: var(--text-muted); }
.stat-n .stat-word { font-size: 15px; color: #d4d4d8; margin-left: 6px; }
.stats li > p:last-child { margin-top: 22px; font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* ---------- Funil ---------- */
.funnel { padding-top: 184px; }
.funnel-grid { display: grid; grid-template-columns: minmax(0, 556fr) minmax(0, 556fr); gap: 88px; align-items: start; }
.steps { margin-top: 32px; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 250px minmax(0, 1fr) 66px; align-items: center; gap: 0; font-size: 15px; }
.step-bar { height: 28px; background: var(--fill-1); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.step-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 8px; background: var(--primary); border-radius: var(--r-sm); }
.step-n { text-align: right; font-family: var(--font); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.step-hot .step-name { font-weight: 600; }
.step-hot .step-bar { box-shadow: inset 0 0 0 1.5px var(--warn); }
.drop {
  margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--primary-bg); border-radius: var(--r-md); font-size: 15px;
}
.drop .icon { color: var(--primary-text); width: 18px; height: 18px; }
.drop a { color: var(--primary-text); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.drop a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.reports { border-bottom: 1px solid var(--border); }
.reports > div { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 0; padding: 21px 0 18px; border-top: 1px solid var(--border); }
.reports dt { font-weight: 600; font-size: 15px; }
.reports dd { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Instalar ---------- */
.install { padding-top: 184px; }
.install-grid { display: grid; grid-template-columns: minmax(0, 456fr) minmax(0, 696fr); gap: 48px; align-items: start; }
.install-grid .h2 { margin-top: 20px; }
.install-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.install-head { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 20px; font-size: 13px; color: #d4d4d8; border-bottom: 1px solid var(--border); background: var(--fill-1); }
.install-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 20px; background: var(--bg); }
.install-code code { font-size: 13.5px; color: #e4e4e7; overflow-wrap: anywhere; }
.copy-narrow { display: none; }
.install-ok { display: flex; align-items: center; gap: 8px; padding: 11px 20px; background: var(--success-bg); color: var(--success-text); font-size: 13px; border-top: 1px solid rgb(16 185 129 / 0.25); }

/* ---------- Privacidade ---------- */
.privacy { padding-top: 120px; }
.privacy-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 56px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.privacy-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--success-bg); color: var(--success-text); display: grid; place-items: center; margin-bottom: 22px; }
.privacy-icon .icon { width: 22px; height: 22px; }
.privacy-card .lead { margin-top: 12px; }
.ptable { width: 100%; margin-top: 16px; border-collapse: collapse; text-align: left; font-size: 15px; line-height: 1.55; }
.ptable th { font-size: 13px; font-weight: 600; color: #d4d4d8; padding: 12px 0; border-block: 1px solid var(--border); width: 50%; }
.ptable td { padding: 14px 24px 16px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.ptable td:first-child { color: var(--text-muted); }
.ptable td:last-child { padding-right: 0; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pdot-yes { background: var(--primary-hover); }
.pdot-no { border: 1.5px solid var(--text-muted); }

/* ---------- Perguntas ---------- */
.faq { padding-top: 216px; padding-bottom: 120px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 428fr) minmax(0, 772fr); }
.faq-list { border-bottom: 1px solid var(--border); }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 17px; font-weight: 500; min-height: 60px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--text-muted); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover .icon { color: var(--text); }
.faq-list details p { padding: 0 40px 20px 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.faq-list details code { font-size: 13.5px; background: var(--fill-1); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; color: #e4e4e7; }

/* ---------- Lista final e rodapé ---------- */
.final { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 104px; }
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final .lead { margin-top: 12px; }
.final-form { margin-top: 20px; width: min(520px, 100%); }
.final-form .input, .final-form .wl-btn { height: 48px; }
.final-form .wl-btn { padding: 0 20px; }
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 26px 0 26px; font-size: 13px; color: var(--text-muted); }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.has-bar .footer { padding-bottom: 100px; }

/* ---------- Linha de sessão (margem esquerda) ---------- */
.page { position: relative; }
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    display: block; position: absolute; top: 0; z-index: 4;
    left: calc((100% - var(--wrap)) / 2 - 28px); width: 0; height: 100%; pointer-events: none;
  }
}
.rail-track, .rail-fill { position: absolute; left: -0.5px; width: 1px; }
.rail-track { background: var(--border-hover); }
.rail-fill { background: var(--primary-hover); transition: height .35s ease; }
.rmark {
  --c: var(--text-muted); --ct: var(--text-muted);
  position: absolute; left: -84px; width: 94px; height: 34px; padding: 0 24px 0 0;
  background: none; border: 0; cursor: pointer; pointer-events: auto; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 16px; border-radius: var(--r-sm);
}
.rmark[data-tone="primary"] { --c: var(--primary-hover); --ct: var(--primary-text); }
.rmark[data-tone="danger"] { --c: var(--danger); --ct: var(--danger-text); }
.rmark[data-tone="success"] { --c: var(--success); --ct: var(--success-text); }
.rmark[data-tone="warn"] { --c: var(--warn); --ct: var(--warn); }
.rmark[data-tone="indigo"] { --c: var(--indigo-soft); --ct: var(--indigo-soft); }
.rmark-t { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.rmark-l { font-size: 11px; color: #d4d4d8; }
.rmark-dot { position: absolute; right: 3px; top: 8px; width: 14px; height: 14px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 50%; }
.rmark-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); transition: width .2s, height .2s, box-shadow .2s; }
.rmark.is-future .rmark-dot::before { opacity: .45; }
.rmark.is-future .rmark-t, .rmark.is-future .rmark-l { opacity: .78; }
.rmark.is-current .rmark-dot::before { width: 14px; height: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 16px 2px color-mix(in srgb, var(--c) 55%, transparent); }
.rmark.is-current .rmark-t, .rmark.is-current .rmark-l { color: var(--ct); font-weight: 700; }
.rmark:hover .rmark-l { color: var(--text); }
.rmark:focus-visible { outline: none; }
.rmark:focus-visible .rmark-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); }
.rmark:focus-visible .rmark-dot { width: 20px; height: 20px; right: 0; }

/* ---------- Barra fixa ---------- */
.bar {
  position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(1200px, 100% - 24px); height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 10px 0 13px;
  background: rgb(17 17 19 / 0.92); border: 1px solid var(--border-hover); border-radius: var(--r-lg);
  box-shadow: 0 18px 50px -10px rgb(0 0 0 / 0.75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear 0s;
}
.bar[data-hidden] { transform: translate(-50%, calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
.bar-play { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18); }
.bar-play:hover { background: var(--primary-hover); }
.bar-play .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.bar-play .i-pause, .bar-play[aria-pressed="true"] .i-play { display: none; }
.bar-play[aria-pressed="true"] .i-pause { display: block; }
.bar-play:focus-visible { border-radius: 50%; }
.bar-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.bar-time, .bar-end { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bar-line { position: relative; flex: 1; min-width: 60px; height: 20px; margin: 0 4px; }
.bar-track, .bar-fill { position: absolute; left: 0; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 2px; }
.bar-track { right: 0; background: var(--fill-2); }
.bar-fill { width: 0; background: var(--primary); opacity: .75; }
.bar-marks { position: absolute; inset: 0; }
.bar-marks i { position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--c, var(--text-muted)); }
.bar-marks i.is-future { opacity: .45; }
.bar-head { position: absolute; top: 50%; left: 0; width: 2px; height: 16px; border-radius: 1px; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgb(9 9 11 / 0.6); }
.btn-bar { height: 40px; padding: 0 16px; font-size: 14.5px; display: inline-grid; grid-template-areas: "x"; }
.btn-bar > span { grid-area: x; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bar-cta-b { visibility: hidden; }
.bar.is-listed .btn-bar { background: var(--surface); border-color: var(--border-hover); box-shadow: none; }
.bar.is-listed .btn-bar:hover { background: var(--fill-1); }
.bar.is-listed .bar-cta-a { visibility: hidden; }
.bar.is-listed .bar-cta-b { visibility: visible; }
.bar-cta-b .icon { width: 14px; height: 14px; color: var(--success-text); }

/* ---------- Larguras médias ---------- */
@media (max-width: 1359px) {
  .err-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .card-error { grid-column: 1 / -1; grid-row: auto; }
  .loupe { left: auto; right: 64px; }
}
@media (max-width: 1279px) {
  .live { left: -24px; }
  .term { right: -24px; width: 480px; }
  .steps li { grid-template-columns: 200px minmax(0, 1fr) 60px; }
  .funnel-grid { gap: 56px; }
  .reports > div { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  .live { left: 16px; top: auto; bottom: -40px; }
  .term { right: 16px; top: 40px; width: 440px; }
  .stage { padding-bottom: 96px; }
  .funnel-grid { grid-template-columns: 1fr; gap: 56px; }
  .install-grid { grid-template-columns: 1fr; gap: 28px; }
  .install-grid .h2 { margin-top: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 20px; }
}
@media (max-width: 959px) {
  .live { display: none; }
  .term { position: relative; right: auto; top: auto; width: auto; margin-top: 16px; }
  .stage { padding-bottom: 56px; }
}

/* ---------- Celular ---------- */
@media (max-width: 699px) {
  html.bar-visible { scroll-padding-bottom: 80px; }
  .only-wide { display: none !important; }
  .only-narrow { display: inline !important; }
  .only-narrow-flex { display: block !important; }

  .nav-in { height: 56px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; height: 40px; padding: 0 12px; font-size: 14px; }

  .hero { padding: 36px 0 40px; }
  .hero-in { align-items: flex-start; text-align: left; }
  .pill { font-size: 12.5px; gap: 8px; max-width: 100%; }
  .pill-arrow { display: none; }
  .hero-title { margin-top: 18px; font-size: clamp(34px, 9.6vw, 40px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: wrap; }
  .hero-sub { margin-top: 16px; font-size: 16.5px; }
  .snippet { margin-top: 22px; height: 46px; }
  .hero-form { width: 100%; margin-top: 16px; }
  .wl-row { flex-direction: column; gap: 10px; }
  .wl-row .input, .wl-btn { height: 48px; width: 100%; }
  .wl-row .input { flex: none; }
  .hero-form .wl-btn .icon { display: none; }
  .trust { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
  .trust span { margin: 0 1px; }

  .stage { padding-bottom: 48px; }
  .live { display: none; }
  .shot-panel { aspect-ratio: 358 / 232; }
  .shot-panel img { width: 197%; left: -35.8%; top: -12.4%; }
  .window { border-radius: var(--r-md); }
  .window-bar { justify-content: flex-start; padding-left: 58px; height: 30px; }
  .window-url { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .window-bar .dots { left: 10px; }
  .dots i { width: 7px; height: 7px; }
  .term { position: relative; right: auto; top: auto; width: auto; margin-top: -2px; font-size: 12px; border-radius: var(--r-md); }
  .term-bar { display: none; }
  .term-body { padding: 12px 14px 14px; gap: 6px; }
  .term-opt { display: none !important; }
  .term-tool { background: none; padding: 0; gap: 8px; }
  .term-tool i { color: var(--primary-text); }

  .strip-in { flex-direction: column; align-items: flex-start; padding: 22px 0; gap: 14px; }
  .strip-brand { border-right: 0; padding-right: 0; }
  .seals { gap: 10px 18px; }
  .seal-consent { order: 4; }

  .manifesto { padding: 64px 0 24px; }
  .manifesto-text { font-size: 26px; line-height: 1.2; }
  .manifesto-text .t-muted { display: block; margin-top: 24px; }

  .section, .errors { padding-top: 72px; }
  .h2, .h2-lg { font-size: 28px; }
  .h2-sm { font-size: 27px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 16px; margin-top: 12px; }

  .err-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .card-head { padding: 18px 16px 0; }
  .err-detail { margin: 18px 16px 18px; padding: 0; background: none; border: 0; }
  .err-release, .err-where, .card-error .err-chart, .loupe { display: none; }
  .err-badges { padding-right: 0; }
  .err-title { margin-top: 14px; font-size: 13px; padding-right: 0; }
  .err-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; border: 0; background: none; margin-top: 12px; margin-right: 0; }
  .err-stats > div { padding: 0; }
  .err-stats > div + div { border: 0; }
  .err-stats dd { font-size: 15px; margin-top: 2px; }
  .err-badges .badge > i, .err-badges .badge .icon { display: none; }
  .card-session { padding-bottom: 0; }
  .shot-player { border-bottom: 0; }
  .code { margin: 16px 0 0; border: 0; border-radius: 0; background: none; }
  .code-head, .ln-86 { display: none; }
  .ln { padding: 0 16px 0 42px; }
  .ln i { width: 26px; margin-left: -26px; }
  .card-code { padding-bottom: 16px; }

  .proof { padding-top: 88px; }
  .proof-head { flex-direction: column; gap: 14px; }
  .proof-head p { font-size: 15.5px; line-height: 1.55; }
  .stats { gap: 10px; margin-top: 22px; }
  .stats li { padding: 20px 16px 16px; min-height: 0; border-radius: var(--r-md); }
  .stat-n .mono { font-size: 30px; }
  .stat-n .stat-word { display: none; }
  .stats li > p:last-child { margin-top: 14px; font-size: 13px; }

  .funnel { padding-top: 96px; }
  .funnel-grid { gap: 22px; }
  .steps { margin-top: 18px; gap: 12px; }
  .steps li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .step-bar { grid-column: 1 / -1; grid-row: 2; height: 22px; }
  .step-n { grid-row: 1; grid-column: 2; }
  .drop { align-items: flex-start; font-size: 14.5px; }
  .drop .icon { display: none; }
  .drop a { display: block; margin-left: 0; margin-top: 2px; }
  .reports > div { grid-template-columns: 1fr; padding: 14px 0 12px; }
  .reports dd { line-height: 1.5; }

  .install { padding-top: 96px; }
  .install-head { padding: 0 8px 0 14px; min-height: 48px; background: var(--surface); }
  .copy-narrow { display: inline-grid; }
  .copy-wide { display: none; }
  .install-code { padding: 16px 14px; background: var(--surface); }
  .install-code code span { display: block; }
  .install-code code span + span { padding-left: 2ch; }
  .install-ok { padding: 10px 14px; align-items: flex-start; }
  .install-ok .icon { margin-top: 2px; }

  .privacy { padding-top: 96px; }
  .privacy-card { background: none; border: 0; border-radius: 0; padding: 0; align-items: flex-start; text-align: left; }
  .privacy-icon { margin-bottom: 18px; }
  .ptable { margin-top: 26px; font-size: 14.5px; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody { border-top: 1px solid var(--border); display: block; }
  .ptable tr { display: block; padding: 14px 0 16px; border-bottom: 1px solid var(--border); }
  .ptable td { display: grid; grid-template-columns: 78px 1fr; padding: 0; border: 0; }
  .ptable td + td { margin-top: 8px; }
  .ptable td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--text-muted); padding-top: 2px; }
  .ptable td:first-child::before { color: var(--primary-text); }
  .ptable td:last-child { color: var(--text); }

  .faq { padding-top: 120px; padding-bottom: 56px; }
  .faq-grid { gap: 16px; }
  .faq-list summary { font-size: 16px; padding: 14px 0; min-height: 52px; }
  .faq-list details p { padding-right: 8px; font-size: 15px; }

  .final { padding: 64px 0 64px; }
  .final-in { align-items: flex-start; text-align: left; }
  .final-form { width: 100%; margin-top: 18px; }

  .footer-in { flex-direction: column; gap: 4px; }
  body.has-bar .footer { padding-bottom: 92px; }

  .bar { left: 12px; right: 12px; width: auto; transform: none; bottom: 12px; height: 56px; gap: 10px; padding: 0 8px 0 14px; }
  .bar[data-hidden] { transform: translateY(calc(100% + 20px)); }
  .bar-title, .bar-end { display: none; }
  .bar-play[aria-pressed="false"] { display: none; }
  .btn-bar { height: 40px; padding: 0 14px; font-size: 14px; }
}

/* Telas muito estreitas */
@media (max-width: 359px) {
  .hero-title { font-size: 31px; }
  .btn-bar { padding: 0 10px; font-size: 13px; }
}

/* ---------- Movimento reduzido e alto contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bar-play { display: none !important; }
}
@media (forced-colors: active) {
  .input:focus-visible,
  .rmark:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}
