/* SafeAuthEntry — site de divulgação. Sem dependências externas (CSP: tudo de 'self'). */

:root {
  --bg: #f7f7fb;
  --bg-alt: #eff0f7;
  --surface: #ffffff;
  --line: #e2e4ee;
  --fg: #12131a;
  --muted: #5c6176;
  --accent: #5b4cf0;
  --accent-2: #8b5cf6;
  --accent-fg: #ffffff;
  --accent-soft: rgba(91, 76, 240, 0.09);
  --ok: #16a34a;
  --shadow: 0 24px 60px -24px rgba(30, 27, 75, 0.35), 0 2px 6px rgba(30, 27, 75, 0.06);
  --glow: rgba(124, 108, 255, 0.28);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c11;
    --bg-alt: #0f1118;
    --surface: #151821;
    --line: #262a37;
    --fg: #eceef5;
    --muted: #a3a9bd;
    --accent: #8f84ff;
    --accent-2: #b197fc;
    --accent-fg: #0b0c11;
    --accent-soft: rgba(143, 132, 255, 0.13);
    --ok: #4ade80;
    --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);
    --glow: rgba(124, 108, 255, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c11;
  --bg-alt: #0f1118;
  --surface: #151821;
  --line: #262a37;
  --fg: #eceef5;
  --muted: #a3a9bd;
  --accent: #8f84ff;
  --accent-2: #b197fc;
  --accent-fg: #0b0c11;
  --accent-soft: rgba(143, 132, 255, 0.13);
  --ok: #4ade80;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);
  --glow: rgba(124, 108, 255, 0.22);
  color-scheme: dark;
}

/* Imagens específicas de tema */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, kbd { font-family: "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 0.88em; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--fg); line-height: 1.4; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #5b4cf0, #8b5cf6); color: #fff; box-shadow: 0 10px 24px -10px #5b4cf0; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px #5b4cf0; }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: inherit; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--fg); background: var(--accent-soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.lang:focus-within { border-color: var(--accent); }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding-right: 2px; }
.lang select:focus { outline: none; }
.lang select option { background: var(--surface); color: var(--fg); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.glow { position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 20px; letter-spacing: -0.035em; font-weight: 750; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: 14px; font-weight: 500; }
.chips .ic { width: 16px; height: 16px; color: var(--accent); }

.hero-visual { position: relative; justify-self: center; }
.popup-frame { width: min(380px, 80vw); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); transform: rotate(1.5deg); }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float .ic { width: 18px; height: 18px; }
.float-a { left: -150px; top: 21%; color: var(--ok); }
.float-a span { color: var(--fg); }
.float-b { right: -110px; bottom: 9%; color: var(--accent); animation-delay: -3s; }
.float-b span { color: var(--fg); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Seções */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.kicker { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 720; }
.sub { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent-soft); -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.step-ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { color: var(--muted); }

.video-card { margin: 56px 0 0; }
.video-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b0c11; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 16px; font-size: 15px; }
.video-card figcaption span { color: var(--muted); }

/* Linhas de recursos */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 32px 0; }
.row.reverse .row-copy { order: 2; }
.row h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.row-copy > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.row-shot { justify-self: center; width: min(340px, 78vw); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; 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' fill='none' stroke='%237c6cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.grid { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card .ic { width: 24px; height: 24px; color: var(--accent); }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* Segurança */
.security { position: relative; }
.sec-grid { display: grid; grid-template-columns: 1fr 1.1fr 0.8fr; gap: 32px; align-items: start; }
.flow { display: grid; gap: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.flow-node .ic { width: 22px; height: 22px; color: var(--accent); }
.flow-node strong { display: block; font-size: 15px; }
.flow-node span { display: block; color: var(--muted); font-size: 13px; }
.flow-arrow { position: relative; height: 54px; margin-left: 26px; border-left: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.flow-arrow::after { content: ""; position: absolute; left: -7px; bottom: -2px; border: 6px solid transparent; border-top-color: var(--accent); }
.flow-arrow span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.sec-list li { display: flex; gap: 14px; }
.sec-list .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.sec-list h3 { font-size: 17px; margin-bottom: 4px; }
.sec-list p { color: var(--muted); font-size: 15px; }
.locked { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); max-width: 300px; justify-self: center; }

.perms { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perms h3 { font-size: 20px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
td code { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 6px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Galeria */
.gallery-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 1280 / 800; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-stage img.fading { opacity: 0; }
.gallery-stage .icon-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow); opacity: .92; }
.g-prev { left: 16px; }
.g-next { right: 16px; }
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.thumbs button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.thumbs button:hover { color: var(--fg); }
.thumbs button[aria-selected="true"] { background: #5b4cf0; border-color: #5b4cf0; color: #fff; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* CTA final */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-inner img { filter: drop-shadow(0 16px 30px var(--glow)); }
.final h2 { max-width: 720px; }
.final p { color: var(--muted); font-size: 18px; max-width: 560px; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand.small { font-size: 15px; gap: 8px; }
.ver { color: var(--muted); font-weight: 500; font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--fg); }
.footer .fine { margin: 0 0 0 auto; }

/* Responsivo */
@media (max-width: 1040px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .locked { display: none; }
  .float-a { left: -60px; }
  .float-b { right: -40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-ctas, .chips { justify-content: center; }
  .steps, .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 40px; }
  .row.reverse .row-copy { order: 0; }
  .sec-grid { grid-template-columns: 1fr; }
  .footer .fine { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .nav-cta { display: none; }
  .lang { padding: 0 8px; }
  .float { display: none; }
  .nav-inner { gap: 12px; }
  .popup-frame { transform: none; }
  .btn-lg { width: 100%; }
  .gallery-stage .icon-btn { width: 36px; height: 36px; }
  .g-prev { left: 8px; } .g-next { right: 8px; }
  .perms { padding: 20px 16px; }
  th, td { padding: 10px 8px; }
}
@media (max-width: 440px) {
  .nav .brand span { display: none; }
}
