:root {
  --bg: #0b0b10;
  --bg-soft: #13131b;
  --panel: #181823;
  --line: #2a2a3a;
  --text: #ececf3;
  --muted: #a3a3b8;
  --brand: #8b7dff;
  --brand-strong: #6d5efc;
  --brand-ink: #ffffff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --code-bg: #0f0f17;
  --shadow: 0 20px 60px -20px rgb(0 0 0 / .6);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfe;
    --bg-soft: #f2f2f8;
    --panel: #ffffff;
    --line: #e3e3ee;
    --text: #15151f;
    --muted: #5b5b70;
    --brand: #5b4bf0;
    --brand-strong: #4b3be0;
    --code-bg: #f6f6fb;
    --ok: #166534;
    --err: #b91c1c;
    --shadow: 0 20px 50px -24px rgb(30 20 90 / .25);
    color-scheme: light;
  }
}
* { 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 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand-strong); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-strong); display: grid; place-items: center; }
.nav-right { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav-right a { color: var(--muted); text-decoration: none; }
.nav-right a:hover { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }

.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -.035em; margin: 18px auto 18px; max-width: 20ch; text-wrap: balance; }
.hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; }
.btn-primary { background: var(--brand-strong); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand-strong) 88%, #000); }
.btn-ghost { border-color: var(--line); background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.status { margin-top: 18px; font-size: 14px; color: var(--muted); }
.status strong { color: var(--text); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: middle; }
.dot.live { background: var(--ok); }
/* Estado da loja (app.js põe data-store="live" no <html> quando STORE_URL está preenchido). */
html:not([data-store="live"]) [data-show="live"], html[data-store="live"] [data-show="review"] { display: none !important; }

/* Demo */
.demo { margin: 40px auto 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); text-align: left; }
.browser { background: var(--bg-soft); border-right: 1px solid var(--line); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.url { margin-left: 8px; flex: 1; font: 12px var(--mono); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page { padding: 34px 28px 40px; position: relative; display: grid; gap: 14px; }
.fake-line { height: 10px; border-radius: 6px; background: var(--line); }
.target { position: relative; margin-top: 10px; background: #ffffff; color: #18181b; border: 1px solid #e4e4e7; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); outline: 2px dashed var(--brand); outline-offset: 6px; }
.target .tier { font-size: 13px; font-weight: 600; color: #4f46e5; margin: 0; }
.target .price { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 6px 0 0; }
.target .price span { font-size: 15px; font-weight: 400; color: #71717a; }
.target .fake-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; margin-top: 18px; border-radius: 9px; background: #4f46e5; color: #fff; font-size: 14px; font-weight: 600; }
.tag { position: absolute; top: -34px; left: -6px; font: 600 11px var(--mono); color: var(--brand-ink); background: var(--brand-strong); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.panel { display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.tablist { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
.tab { font: 600 13px var(--sans); color: var(--muted); background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--text); }
.tab-panel { flex: 1; position: relative; }
pre { margin: 0; padding: 18px; font: 12.5px/1.65 var(--mono); color: var(--text); background: var(--code-bg); overflow-x: auto; height: 100%; min-height: 260px; white-space: pre; }
.k { color: #c792ea; } .s { color: #a5e3a1; } .c { color: var(--muted); } .n { color: #f3b562; }
@media (prefers-color-scheme: light) { .k { color: #7c3aed; } .s { color: #15803d; } .n { color: #b45309; } }
.copy-btn { margin-left: auto; flex: none; font: 600 12px var(--sans); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy-btn:hover { border-color: var(--brand); }
.video-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.075rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }

.compare { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.compare td:first-child { color: var(--muted); width: 32%; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 64px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--mono); background: var(--brand-strong); color: var(--brand-ink); }
.step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pricing.two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
@media (max-width: 720px) { .pricing.two { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 24px; }
.plan h3 { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 600; }
.amount { font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; margin: 8px 0 2px; }
.amount small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: .96rem; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; width: 100%; }

.terms { margin-top: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: .95rem; color: var(--muted); }
.terms strong { color: var(--text); }
.terms ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

.signup { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 18%, var(--panel)), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.signup h2 { margin-top: 0; }
.signup p { color: var(--muted); }
form { display: grid; gap: 12px; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input[type="email"], input[type="text"] { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font-size: 16px; }
input:not([type="checkbox"]):focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 400; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand-strong); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .92rem; margin: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

.notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--brand); color: var(--text); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.notice.show { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .browser { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps, .pricing { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav-right .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
  .compare td:first-child { width: auto; }
  .compare th:nth-child(2), .compare td:nth-child(2) { display: none; }
  .tablist { flex-wrap: wrap; overflow-x: visible; }
}
