/* Site do DevPulse AI — mesmas cores do app (roxo/ciano), tema escuro e claro. */
:root {
  --bg: #0b0d18;
  --bg-2: #0f1222;
  --surface: #141831;
  --surface-2: #1a1f3d;
  --line: #262b52;
  --ink: #eceef8;
  --ink-2: #b9bdd6;
  --ink-3: #868cab;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --link: #a78bfa;
  --cyan: #22b8d8;
  --good: #22c55e;
  --warn: #f5b11a;
  --bad: #ef4444;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: radial-gradient(900px 420px at 15% -10%, rgba(139, 92, 246, 0.28), transparent 60%), radial-gradient(800px 420px at 90% 0%, rgba(34, 184, 216, 0.16), transparent 60%);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f7f7fb;
  --bg-2: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f2f3f9;
  --line: #dfe2ee;
  --ink: #141629;
  --ink-2: #3f4363;
  --ink-3: #6b7090;
  --accent: #7c3aed;
  --accent-2: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.1);
  --link: #6d28d9;
  --cyan: #0891b2;
  --shadow: 0 20px 50px -24px rgba(30, 30, 80, 0.25);
  --glow: radial-gradient(900px 420px at 15% -10%, rgba(124, 58, 237, 0.14), transparent 60%), radial-gradient(800px 420px at 90% 0%, rgba(8, 145, 178, 0.1), transparent 60%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace; font-size: 0.92em; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 0.08em 0.4em; border-radius: 6px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: 0.05em 0.45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 0.85em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; color: var(--ink-3); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none !important; transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d4ae0); border-color: transparent; color: #fff !important; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 13px; font-size: 0.9rem; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------- topo */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 700; text-decoration: none !important; }
.mainnav { display: flex; gap: 22px; margin-left: 12px; }
.topbar .mainnav a { color: var(--ink-2); font-weight: 500; }
.topbar .mainnav a[aria-current='page'], .topbar .mainnav a:hover { color: var(--ink); text-decoration: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { color: var(--ink-2) !important; font-size: 0.9rem; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.theme-toggle .i-sun { display: none; }
:root[data-theme='light'] .theme-toggle .i-sun { display: block; }
:root[data-theme='light'] .theme-toggle .i-moon { display: none; }
@media (max-width: 720px) {
  .mainnav { display: none; }
  .topbar-in { gap: 10px; }
  .lang { display: none; }
}

/* ------------------------------------------------------------- hero */
.hero { position: relative; padding: 72px 0 40px; background: var(--glow); }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 0.85rem; margin-bottom: 18px; }
.hero .eyebrow b { color: var(--good); font-weight: 600; }
.hero h1 { max-width: 900px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 720px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.hero .platforms { color: var(--ink-3); font-size: 0.88rem; }
.hero-shot { margin-top: 44px; position: relative; }
.hero-shot .frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-shot .pill-float { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: min(92%, 1100px); border-radius: 999px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
@media (max-width: 720px) { .hero-shot .pill-float { display: none; } }

/* ------------------------------------------------------------- seções */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.kicker { color: var(--accent-2); font-weight: 650; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 26px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a78bfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }

.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { margin-top: 10px; color: var(--ink-3); font-size: 0.9rem; }
.shot.bare img { border: 0; box-shadow: none; border-radius: 0; }
.zoom { display: block; cursor: zoom-in; }

.cta-band { text-align: center; padding: 70px 22px; border-radius: 22px; background: var(--glow), var(--surface); border: 1px solid var(--line); }
.cta-band p { color: var(--ink-2); max-width: 620px; margin: 0 auto 22px; }

.privacy-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .privacy-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-band { grid-template-columns: 1fr; } }
.privacy-band .card b { display: block; margin-bottom: 4px; }
.privacy-band .card span { color: var(--ink-2); font-size: 0.94rem; }

/* ------------------------------------------------------------- documentação (tutorial) */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding: 44px 16px 90px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.92rem; border-right: 1px solid var(--line); padding-right: 18px; }
@media (max-width: 960px) { .toc { border-right: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; } }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink-2); }
.toc li a:hover, .toc li a.active { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.toc ol ol a { padding-left: 22px; font-size: 0.88rem; }
.prose { min-width: 0; }
.prose > h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { margin-top: 2.4em; padding-top: 0.6em; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: 84px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose .shot { margin: 22px 0 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--surface); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 10px; padding: 14px 16px; margin: 18px 0; color: var(--ink-2); }
.callout.warn { border-left-color: var(--warn); }
.callout.tip { border-left-color: var(--good); }
.callout p:last-child { margin: 0; }
.callout b { color: var(--ink); }

/* ------------------------------------------------------------- FAQ */
.faq-group { margin-bottom: 36px; }
.faq-group > h2 { font-size: 1.25rem; color: var(--ink-2); margin-bottom: 12px; }
details.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.qa summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--ink-3); }
details.qa[open] summary::after { content: '–'; }
details.qa .a { padding: 0 18px 16px; color: var(--ink-2); }
details.qa .a p:last-child { margin: 0; }

/* ------------------------------------------------------------- download */
.dl-hero { padding: 64px 0 24px; background: var(--glow); }
.dl-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type='email'] { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; }
.form input[type='email']:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 0.92rem; margin: 14px 0 18px; }
.form .consent input { margin-top: 4px; accent-color: var(--accent); }
.form .msg { min-height: 1.4em; margin-top: 10px; font-size: 0.93rem; }
.form .msg.err { color: var(--bad); }
.form .msg.ok { color: var(--good); }
.hp { position: absolute; left: -5000px; }
.os-card { display: flex; flex-direction: column; gap: 10px; }
.os-card + .os-card { margin-top: 16px; }
.os-head { display: flex; align-items: center; gap: 12px; }
.os-head svg { flex: none; }
.os-head h3 { margin: 0; }
.os-files { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta b { display: block; font-size: 0.95rem; }
.file-row .meta span { font-size: 0.82rem; color: var(--ink-3); }
.file-row .badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.locked .file-row .btn { opacity: 0.45; pointer-events: none; }
.sha { font-size: 0.75rem; color: var(--ink-3); word-break: break-all; }
.reqs { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }
.reqs li { margin-bottom: 4px; }

/* ------------------------------------------------------------- rodapé */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 26px; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-3); max-width: 340px; font-size: 0.93rem; margin-top: 10px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.footer .footer-cols a { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 0.94rem; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 14, 0.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1800px, 100%); max-height: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.notfound { text-align: center; padding: 120px 16px; }
.notfound h1 { font-size: 5rem; }
.legal h2 { font-size: 1.3rem; }
.legal { padding-top: 48px; padding-bottom: 60px; }
