/* Aviator Brasil — mobile-first editorial theme (360–430px first) */
:root{--bg:#fff;--text:#0f172a;--muted:#475569;--line:#e5e7eb;--accent:#dc2626;--accent-700:#b91c1c;--success:#16a34a;--surface:#f8fafc;--header-h:61px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;overflow-wrap:break-word}
body.has-sticky{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
@media(min-width:820px){body.has-sticky{padding-bottom:0}}
a{color:var(--accent-700)}
svg{max-width:100%}
.container{max-width:1000px;margin:0 auto;padding:12px 16px}
[id]{scroll-margin-top:calc(var(--header-h) + 12px)}

/* Header (compact, sticky) */
.header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px;padding-bottom:6px}
.logo{display:inline-flex;align-items:center;gap:10px;min-height:48px;color:var(--text);text-decoration:none;touch-action:manipulation}
.logo-mark{display:block;width:32px;height:32px;flex:0 0 32px}
.logo-text{display:flex;flex-direction:column;line-height:1.15}
.logo-text strong{font-size:1rem;letter-spacing:-.01em}
.logo-tag{font-size:.72rem;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:.82rem}
.badge .dot{width:8px;height:8px;border-radius:50%;background:var(--success)}
.age{font-weight:800;color:var(--text)}

/* Brand chip bar (one-thumb switching) */
.brand-chips{background:var(--surface);border-bottom:1px solid var(--line)}
.chips-row{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;padding-top:6px;padding-bottom:6px}
.chips-row::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;display:inline-flex;align-items:center;min-height:48px;padding:0 16px 0 10px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--text);font-weight:600;font-size:.9rem;text-decoration:none;scroll-snap-align:start;touch-action:manipulation}
.chip::before{content:"";flex:0 0 24px;width:24px;height:24px;margin-right:8px;border-radius:6px;background:center/contain no-repeat;background-image:var(--logo);box-shadow:0 0 0 1px rgba(148,163,184,.35)}
.chip[href$="aviator-lottu.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%230a0a0c'/%3E%3Cpath d='M10 3.5C8 5 8 10 7.5 14C7 18 2.500 19 3 16.500C4 14.500 8 16 10 17.500C13 19.500 18 19 21.500 17' fill='none' stroke='%23e3ae3c' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='14.500' cy='10.500' r='4.600' fill='none' stroke='%23f7d06b' stroke-width='2.200' stroke-dasharray='2.100 1.500'/%3E%3Ccircle cx='14.500' cy='10.500' r='1.400' fill='%23f7d06b'/%3E%3C/svg%3E")}
.chip[href$="aviator-onabet.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%2316090b'/%3E%3Cg fill='none' stroke='%23ee2737' stroke-width='2'%3E%3Ccircle cx='11' cy='13' r='7.500'/%3E%3Ccircle cx='11' cy='13' r='3.800'/%3E%3C/g%3E%3Ccircle cx='11' cy='13' r='1.300' fill='%23ee2737'/%3E%3Cpath d='M11 13L19 5M17 4.500l3-1.500-1.500 4' stroke='%23ee2737' stroke-width='1.800' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
.chip[href$="aviator-blaze.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%230f1923'/%3E%3Cg transform='translate(4.200 2.200) scale(.14)'%3E%3Cpath d='M46 0C54 26 30 38 18 58C6 78 8 110 28 126C44 139 78 139 94 122C110 106 108 82 98 68C94 62 92 54 94 42C84 48 80 50 74 46C70 32 62 14 46 0Z' fill='%23f12c4c'/%3E%3Cg transform='rotate(-8 56 92)'%3E%3Crect x='28' y='64' width='56' height='56' rx='13' fill='%23fff'/%3E%3Cg fill='%23f12c4c'%3E%3Ccircle cx='45' cy='81' r='6'/%3E%3Ccircle cx='67' cy='81' r='6'/%3E%3Ccircle cx='45' cy='103' r='6'/%3E%3Ccircle cx='67' cy='103' r='6'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.chip[href$="aviator-recebabet.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%23002a7a'/%3E%3Cpath d='M6.500 5.500C10 9 14 14.500 17.500 19' stroke='%230088ff' stroke-width='3.800' stroke-linecap='round' fill='none'/%3E%3Cpath d='M18 5.500C14.500 9.500 10 15 6 18.500' stroke='%2338a8ff' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")}
.chip[href$="aviator-bravobet.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%23e50914'/%3E%3Ctext x='11.500' y='18' font-size='17' font-style='italic' fill='%23fff' font-family='Arial,Helvetica,sans-serif' font-weight='900' text-anchor='middle'%3EB%3C/text%3E%3C/svg%3E")}
.chip[href$="aviator-brazino777.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%23064e2b'/%3E%3Ctext x='12' y='15.500' font-size='10.500' fill='%23ffcc00' font-family='Arial,Helvetica,sans-serif' font-weight='900' text-anchor='middle'%3E777%3C/text%3E%3C/svg%3E")}
.chip[href$="aviator-betboom.html"]{--logo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%230b0708'/%3E%3Ctext x='12' y='16.500' font-size='12.500' letter-spacing='-.5' font-family='Arial,Helvetica,sans-serif' font-weight='900' text-anchor='middle'%3E%3Ctspan fill='%23ff1e27'%3EB%3C/tspan%3E%3Ctspan fill='%23f8f700'%3EB%3C/tspan%3E%3C/text%3E%3C/svg%3E")}
.chip:hover{border-color:#cbd5e1}
.chip[aria-current="page"]{background:var(--text);border-color:var(--text);color:#fff}

/* Breadcrumbs */
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:0;font-size:.88rem;color:var(--muted)}
.breadcrumbs a{display:inline-flex;align-items:center;min-height:48px;padding:0 4px 0 0;color:var(--muted);text-decoration:none;touch-action:manipulation}
.breadcrumbs a:hover{color:var(--accent)}

/* Hero */
.hero{padding:2px 0 8px}
.kicker{margin:0;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:var(--accent)}
.hero h1{font-size:1.42rem;line-height:1.22;margin:4px 0 10px;letter-spacing:-.01em}
@media(min-width:820px){.hero h1{font-size:1.9rem}}
.hero p{color:var(--muted);margin:0 0 12px}
.lead{font-size:1.02rem}
.brand-banner{display:block;width:100%;height:auto;aspect-ratio:560/220;border-radius:14px;margin:0 0 12px}
.byline{font-size:.85rem}
.byline a{display:inline-block;padding:12px 0;color:var(--muted)}
.author{display:flex;align-items:flex-start;gap:12px;margin:8px 0 0;min-width:0}
.author .avatar{display:block;width:44px;height:44px;flex:0 0 44px;margin-top:2px}
.author-info{min-width:0;flex:1 1 auto}
.author .who{margin:0;font-size:.95rem;line-height:1.35;color:var(--text)}
.author .who a{display:inline;padding:4px 0;color:var(--text);font-weight:700;text-decoration:none}
.author .who a:hover{color:var(--accent)}
.author .upd{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:2px 0 0;line-height:1.3}
.author .upd a{display:inline-flex;align-items:center;min-height:40px;padding:0 2px;color:var(--muted);font-size:.85rem}
.verified{display:inline-flex;align-items:center;min-height:24px;padding:3px 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.78rem;font-weight:700;line-height:1.2;white-space:nowrap}
.hero .author p{margin:0}
.team{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:12px}
@media(min-width:720px){.team{grid-template-columns:repeat(2,minmax(0,1fr))}}
.team-card{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:12px;background:var(--surface);min-width:0}
.team-card .avatar{display:block;width:64px;height:64px;flex:0 0 64px}
.team-card h3{margin:0 0 2px}
.team-card p{margin:0 0 6px}
.team-role{font-size:.86rem;font-weight:700;color:var(--accent-700)}
.author .who{font-weight:700}
.author .upd{color:var(--muted);font-size:.88rem}

/* Buttons */
.cta-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:0;border-radius:12px;background:var(--accent);color:#fff;font:inherit;font-weight:800;text-decoration:none;cursor:pointer;touch-action:manipulation}
.cta-btn:hover{background:var(--accent-700)}
.cta-btn:focus-visible,.chip:focus-visible,.sticky-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.hero .cta-btn{margin:0 0 14px}
@media(max-width:480px){.hero .cta-btn,.cta-bottom .cta-btn{width:100%}}
.cta-bottom{text-align:center;margin:24px 0}

/* Table of contents */
.toc{background:var(--surface);border-radius:12px;padding:8px 14px;margin:6px 0 14px}
.toc strong{display:block;padding-top:4px;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.toc ol{display:flex;flex-wrap:wrap;gap:0 18px;margin:0;padding:0;list-style:none}
.toc a{display:inline-flex;align-items:center;min-height:48px;color:var(--text);font-weight:600;text-decoration:none;touch-action:manipulation}
.toc a:hover{color:var(--accent)}

/* Content */
.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:14px 0}
.card{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px 16px}
.card h2{font-size:1.2rem;line-height:1.3;margin:4px 0 10px}
.card h3{margin:16px 0 6px;font-size:1.04rem}
.card .meta,.small{font-size:.9rem;color:var(--muted)}
.card ol{padding-left:20px}
.card ol li{margin:4px 0}
hr{border:none;border-top:1px solid var(--line);margin:20px 0}
.pix-note{font-size:.88rem;color:var(--muted)}
.pill{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:700;font-size:.85rem}

/* Tables: scroll inside the wrapper, never the page */
.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:12px;margin:12px 0}
.table-wrap table{width:100%;border-collapse:collapse;background:#fff;font-size:.88rem}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
th{background:var(--surface);font-size:.84rem}
tr:last-child td{border-bottom:none}
@media(max-width:480px){.table-wrap table{font-size:.8rem}th,td{padding:8px 6px;white-space:normal;vertical-align:top;overflow-wrap:normal}th{font-size:.76rem}}

/* FAQ */
.faq{margin:14px 0}
.faq h2{font-size:1.2rem;margin:4px 0 10px}
.faq details{border:1px solid var(--line);border-radius:12px;padding:0 14px;background:#fff}
.faq details+details{margin-top:10px}
.faq summary{position:relative;display:flex;align-items:center;min-height:48px;padding:8px 28px 8px 0;list-style:none;cursor:pointer;font-weight:700;touch-action:manipulation}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:2px;top:50%;transform:translateY(-50%);font-size:1.3rem;color:var(--muted)}
.faq details[open] summary::after{content:"–"}
.faq details[open]{border-color:#cbd5e1}
.faq .answer{color:var(--muted);padding:0 0 12px}

/* Demo block: click-to-load facade, fixed aspect ratio (no CLS) */
.demo h2{margin:6px 0 10px}
.demo-frame{position:relative;width:100%;aspect-ratio:3/4;max-height:560px;border-radius:14px;overflow:hidden;background:#0b1220}
@media(min-width:820px){.demo-frame{aspect-ratio:16/9;max-height:none}}
.demo-cover{position:absolute;inset:0;width:100%;height:100%}
.demo-play{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;border:0;background:transparent;color:#fff;font:inherit;font-weight:800;font-size:1.05rem;cursor:pointer;touch-action:manipulation}
.demo-play span{background:rgba(15,23,42,.72);padding:8px 14px;border-radius:999px}
.demo-play:hover svg circle{fill:var(--accent-700)}
.demo-play:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.demo-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.demo-note{font-size:.85rem;color:var(--muted);margin:10px 0 4px}
.demo-newtab{font-size:.9rem;margin:0}
.demo-newtab a{display:inline-flex;align-items:center;min-height:48px;color:var(--accent);font-weight:600;text-decoration:none}
.demo-newtab a:hover{text-decoration:underline}

/* Contact form */
.contact-form{display:grid;gap:4px;max-width:560px}
.contact-form label{font-weight:600;margin-top:10px}
.contact-form input[type=text],.contact-form input[type=email],.contact-form select,.contact-form textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:16px}
.contact-form textarea{resize:vertical}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:3px solid #93c5fd;outline-offset:1px;border-color:#93c5fd}
.contact-form .check{display:flex;align-items:flex-start;gap:10px;min-height:48px;font-weight:400}
.contact-form .check input{width:22px;height:22px;margin:2px 0 0;flex:0 0 22px}
.contact-form button{justify-self:start;margin-top:12px}
@media(max-width:480px){.contact-form button{justify-self:stretch}}
.form-error{color:var(--accent-700);font-weight:600;margin:8px 0 0}
.form-ok{background:#dcfce7;color:#166534;padding:12px 14px;border-radius:10px}

/* Sticky mobile bottom bar */
.sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(15,23,42,.06)}
.sticky-cta .label{font-weight:700;font-size:.9rem;color:var(--text)}
.sticky-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:12px;background:var(--accent-700);color:#fff;font-weight:800;text-decoration:none;white-space:nowrap;touch-action:manipulation}
.sticky-btn:hover{background:#991b1b}
@media(min-width:820px){.sticky-cta{display:none}}

/* Footer */
.site-footer{margin-top:32px;border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:.92rem}
.footer-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:12px 0}
@media(min-width:720px){.footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:28px}}
.footer-brand{margin:0 0 6px;font-weight:800;color:var(--text)}
.footer-title{margin:0;font-size:.76rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text)}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li a{display:inline-flex;align-items:center;min-height:48px;color:var(--text);text-decoration:none;touch-action:manipulation}
.site-footer li a:hover{color:var(--accent)}
.disclaimer{margin:0;padding:12px 0;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}
.copy{margin:0 0 8px;font-size:.8rem}
