/* BraboPlayer v7 — tema escuro/claro, casca (topo, rodapé, barra inferior) e páginas internas.
   Nas páginas internas é carregado depois de site.css e sobrescreve o visual. */
:root, :root[data-theme="dark"] {
  --bg: #070708; --bg-2: #0d0d10; --card: #0f0f12; --panel: #0f0f12; --panel-2: #16161a;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --hair: rgba(255,255,255,.08); --hair-2: rgba(255,255,255,.14);
  --text: #f4f1ec; --muted: #a8a29a; --dim: #6f6b65;
  --o: #ff6b1a; --o2: #ff8a3d; --orange: #ff6b1a; --orange-2: #ff8a3d; --pink: #ff2d55; --ink: #120d09;
  --glow: rgba(255,107,26,.45); --glass: rgba(20,20,23,.6); --gridline: rgba(255,255,255,.045);
  --h1a: #fff; --h1b: rgba(255,255,255,.55); --aur: .75; --blend: screen; --soft: rgba(255,107,26,.08);
  --green: #3ddc84; --yellow: #ffcc33; --red: #ff4d4d;
  --r: 14px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf8f5; --bg-2: #f1ede7; --card: #ffffff; --panel: #ffffff; --panel-2: #f6f3ee;
  --line: rgba(20,14,8,.09); --line-2: rgba(20,14,8,.16); --hair: rgba(20,14,8,.09); --hair-2: rgba(20,14,8,.16);
  --text: #17120d; --muted: #675f56; --dim: #978d81;
  --o: #f25a05; --o2: #ff6b1a; --orange: #f25a05; --orange-2: #ff6b1a; --ink: #fff;
  --glow: rgba(255,107,26,.3); --glass: rgba(255,255,255,.72); --gridline: rgba(20,14,8,.05);
  --h1a: #17120d; --h1b: rgba(23,18,13,.62); --aur: .35; --blend: multiply; --soft: rgba(255,107,26,.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; transition: background .3s, color .3s; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--o); color: #fff; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.o { color: var(--o); }
h1, h2, h3 { font-stretch: 100%; letter-spacing: -.025em; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 15px var(--sans); background: var(--o); color: #fff; border: 1px solid var(--o); box-shadow: 0 8px 30px -6px var(--glow); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; }
:root[data-theme="dark"] .btn:not(.line):not(.glass):not(.danger) { color: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -6px var(--glow); background: var(--o2); }
.btn.line, .btn.glass { background: var(--glass); color: var(--text); border-color: var(--hair-2); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.line:hover, .btn.glass:hover { border-color: var(--o); background: var(--soft); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(255,77,77,.4); box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

/* ---------- topo flutuante ---------- */
.top { position: fixed; left: 0; right: 0; top: 14px; z-index: 40; background: none; border: 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; min-height: 0; width: min(1000px, 100% - 32px); margin-inline: auto; padding: 0 10px 0 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.top .logo { display: flex; align-items: center; }
.top .logo img, .top .logo img.logo-full { height: 28px; width: auto; }
.logo-l { display: none !important; }
:root[data-theme="light"] .logo-l { display: block !important; }
:root[data-theme="light"] .logo-d { display: none !important; }
.tnav { display: flex; gap: 4px; }
.tnav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.tnav a:hover { background: var(--hair); color: var(--text); }
.tnav a[aria-current="page"] { color: var(--text); background: var(--hair); }
.top-r { display: flex; align-items: center; gap: 8px; }
.top-r .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .3s; }
.theme:hover { background: var(--hair); transform: rotate(20deg); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* ---------- barra inferior (celular) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tnav, .top-r .btn { display: none; }
  .top { top: 10px; }
  .top-in { height: 54px; padding: 0 8px 0 18px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; padding: 6px; border-radius: 24px; background: var(--glass); border: 1px solid var(--hair-2); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 18px; font-size: 11px; font-weight: 600; color: var(--muted); -webkit-tap-highlight-color: transparent; transition: color .15s, background .15s; }
  .tabbar svg { width: 23px; height: 23px; transition: transform .2s; }
  .tabbar a[aria-current="page"] { color: var(--o); background: var(--soft); }
  .tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }
  .tabbar a:active svg { transform: scale(.9); }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- selos das lojas ---------- */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--hair-2); transition: border-color .2s, transform .2s; }
.store:hover { border-color: var(--o); transform: translateY(-2px); }
.store .si { width: 64px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid rgba(0,0,0,.06); overflow: hidden; flex: none; }
.store .si svg { width: 46px; height: auto; max-height: 24px; display: block; }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.store b { display: block; font-size: 15px; line-height: 1.3; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--o); font-size: 22px; line-height: 1; font-family: var(--sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- rodapé ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--hair); padding: 70px 0 30px; color: var(--muted); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; align-items: start; }
.foot .logo-full { height: 30px; width: auto; margin-bottom: 14px; }
.foot p { color: var(--dim); font-size: 14px; max-width: 420px; margin: 0; }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.foot ul a:hover { color: var(--o); }
.foot .stores { display: grid; gap: 10px; }
.foot .stores .store { padding: 8px 16px 8px 8px; } .foot .stores .si { width: 58px; height: 32px; } .foot .stores .si svg { width: 40px; max-height: 20px; } .foot .stores b { font-size: 13px; }
.legalbar { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.legalbar .plat { display: flex; gap: 22px; align-items: center; }
.legalbar .plat svg { width: 52px; height: auto; max-height: 16px; color: var(--muted); display: block; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child, .foot-in > :last-child { grid-column: 1 / -1; } }

/* ---------- animações ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.aur { position: absolute; inset: -20% -10% auto; height: 1100px; pointer-events: none; z-index: 0; filter: blur(90px); opacity: var(--aur); }
.aur i { position: absolute; border-radius: 50%; mix-blend-mode: var(--blend); animation: aurf 18s ease-in-out infinite alternate; }
.aur i:nth-child(1) { width: 640px; height: 640px; left: 18%; top: 4%; background: #ff6b1a; }
.aur i:nth-child(2) { width: 520px; height: 520px; right: 12%; top: 14%; background: #ff2d55; opacity: .55; animation-duration: 22s; }
.aur i:nth-child(3) { width: 460px; height: 460px; left: 40%; top: 30%; background: #ffb020; opacity: .45; animation-duration: 26s; }
@keyframes aurf { to { transform: translate(80px, 60px) scale(1.15); } }
.grad { background: linear-gradient(90deg, #ffb020, #ff6b1a 45%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* =================================================================== páginas internas */
.page-head { position: relative; overflow: hidden; padding: 150px 0 56px; background: none; border: 0; text-align: center; }
.page-head .aur { inset: -60% -10% auto; height: 800px; opacity: calc(var(--aur) * .8); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 800; margin: 0; background: linear-gradient(180deg, var(--h1a) 30%, var(--h1b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head .lede { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 620px; }
.ch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--o); margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; background: var(--soft); border: 1px solid rgba(255,107,26,.25); }
.ch::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--o); box-shadow: 0 0 10px var(--o); }
.page-body { padding: 10px 0 100px; }
.panel { background: var(--card); border: 1px solid var(--hair); border-radius: 22px; box-shadow: 0 20px 60px -30px rgba(0,0,0,.35); }
.panel-head { border-bottom: 1px solid var(--hair); padding: 18px 24px; }
.panel-body { padding: 26px; }
.aside .panel + .panel { margin-top: 14px; }
.aside h3 { font-size: 18px; }
.aside ol { color: var(--muted); }
.input { background: var(--bg-2); border: 1px solid var(--hair-2); border-radius: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--o); box-shadow: 0 0 0 4px var(--soft); }
.field > label:not(.plan), .label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.stepper { border: 1px solid var(--hair); border-radius: 999px; padding: 5px; gap: 4px; background: var(--card); }
.stepper span { border: 0 !important; border-radius: 999px; text-align: center; font-family: var(--sans); font-weight: 600; text-transform: none; font-size: 14px; color: var(--dim); padding: 10px 12px; }
.stepper span.on { background: linear-gradient(90deg, #ff8a3d, var(--o)); color: #fff; box-shadow: 0 6px 20px -6px var(--glow); }
.stepper span.done { color: var(--text); }
.plan { background: var(--bg-2); border: 1px solid var(--hair-2); border-radius: 16px; transition: border-color .15s, background .15s; }
.plan:has(input:checked) { border-color: var(--o); background: var(--soft); }
.plan .price, .price-strip .big { font-stretch: 100%; letter-spacing: -.03em; }
.pix img { border-radius: 16px; }
.waiting { border-radius: 14px; border-color: var(--hair-2); }
.done-box .check { border-radius: 16px; color: #fff; }
.tag { border-radius: 999px; border-color: var(--hair-2); }
.kv dt, .kv dd { border-color: var(--hair); }
.kv dt { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.license { border-radius: 16px; border-color: var(--hair-2); background: var(--bg-2); }
.pl { border-color: var(--hair); }
.pl .kind { border-radius: 12px; border-color: rgba(255,107,26,.3); background: var(--soft); }
.empty { border-radius: 16px; border-color: var(--hair-2); }
.seg { border-radius: 999px; border-color: var(--hair-2); padding: 4px; gap: 4px; background: var(--bg-2); }
.seg button { border: 0 !important; border-radius: 999px; color: var(--muted); }
.seg button.on { background: var(--o); color: #fff; }
.notice { border-radius: 14px; border: 1px solid rgba(255,204,51,.35); border-left-width: 4px; background: rgba(255,204,51,.08); }
.notice.bad { border-color: rgba(255,77,77,.4); background: rgba(255,77,77,.08); }
.meter { background: var(--hair); }
.contact-line { border-color: var(--hair); }
.toast { border-radius: 999px; padding: 12px 22px; background: var(--text); color: var(--bg); }
.status.info { color: #6d86ff; }
:root[data-theme="light"] .status.ok { color: #13a058; }
:root[data-theme="light"] .status.warn, :root[data-theme="light"] .counter.near b { color: #b98900; }
:root[data-theme="light"] .error { color: #d62828; }
.split { gap: 22px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 560px) { .stepper span { font-size: 12px; padding: 9px 4px; white-space: nowrap; } .page-head { padding-top: 120px; } .page-body .panel-body { padding: 20px; } }
@media (max-width: 560px) { .plan { grid-template-columns: auto 1fr; } .plan .price { grid-column: 2; font-size: 24px; } }
/* páginas legais */
.legal { margin: 0 auto; max-width: 880px; background: var(--card); border: 1px solid var(--hair); border-radius: 24px; padding: clamp(22px, 5vw, 52px); box-shadow: 0 20px 60px -30px rgba(0,0,0,.3); overflow-wrap: anywhere; }
.legal h2 { letter-spacing: -.025em; font-stretch: 100%; }
.legal a, .lang-switch a { color: var(--o); }
.legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.legal th { background: var(--bg-2); }
.legal th, .legal td { border-color: var(--hair-2); }
.legal .updated { font-family: var(--sans); }
.lang-switch { margin-top: 18px; }
/* ajustes finos de responsividade */
img, svg, video { max-width: 100%; }
input, select, textarea { font-size: 16px; } /* evita zoom automático no iPhone */
@media (max-width: 380px) { .wrap { width: calc(100% - 24px); } .tabbar a { font-size: 10px; } .page-head h1 { font-size: 38px; } .store { padding-right: 12px; } }
@media (min-width: 861px) and (max-width: 1100px) { .tnav a { padding: 8px 10px; font-size: 13px; } }
@media (max-height: 500px) and (orientation: landscape) { .tabbar { height: 54px; } .tabbar span { display: none; } body { padding-bottom: 76px; } }
.legal th, .legal td { overflow-wrap: normal; word-break: normal; min-width: 150px; } .legal td:first-child, .legal th:first-child { min-width: 190px; }
