/* Rey Motos — tema claro e minimalista: branco, preto e o vermelho da logo */
:root{
  --red:#e30613;
  --red-deep:#b8000c;
  --red-soft:#fff1f1;
  --bg:#ffffff;
  --surface:#f7f7f8;
  --surface-2:#efeff1;
  --line:#e7e7ea;
  --text:#111113;
  --muted:#6e6e76;
  --ok:#16a34a;
  --warn:#d97706;
  --radius:18px;
  --max:640px;
  --shadow:0 1px 2px rgba(16,16,20,.04),0 8px 24px rgba(16,16,20,.06);
  --display:"Archivo",system-ui,sans-serif;
  --body:"Inter",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--bg)}
body{font-family:var(--body);background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased;line-height:1.5}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
[hidden]{display:none!important}

/* Cabeçalho */
.top{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.top-inner{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:72px}
.logo{justify-self:center;display:block;width:118px;height:58px;background:url(/assets/logo-rey-motos.png) center/contain no-repeat}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;transition:background .2s}
.icon-btn:hover{background:var(--surface)}
.icon-btn svg{width:22px;height:22px}

/* Segmentado */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface);border-radius:14px;padding:4px;margin:20px 0 28px}
.seg a{text-align:center;padding:10px;border-radius:10px;font-size:14px;font-weight:500;color:var(--muted);transition:.2s}
.seg a.active{background:#fff;color:var(--text);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* Títulos de seção */
.label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.label h2{font-family:var(--display);font-style:italic;font-weight:800;font-size:13px;letter-spacing:.14em;text-transform:uppercase;display:flex;align-items:center;gap:10px}
.label h2::before{content:"";width:18px;height:3px;background:var(--red);border-radius:2px;transform:skewX(-20deg)}
.min-note{margin:-4px 0 14px;padding:10px 14px;border-radius:10px;background:#fff4f4;border:1px solid #ffd6d8;font-size:14px;color:#5a1a1d}
.label span{font-size:13px;color:var(--muted);white-space:nowrap}
section{margin-bottom:36px}

/* Imagem */
.media{position:relative;aspect-ratio:4/3;background:linear-gradient(160deg,#fafafa,#f0f0f2);overflow:hidden}
.media::after{content:"";position:absolute;inset:0;background:url(/assets/simbolo.png) center 45%/58% no-repeat;opacity:.95}
.media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.media.has-img::after{display:none}
.tag{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.tag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--muted)}
.tag.live::before{background:var(--ok);box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.tag.wait::before{background:var(--warn)}

/* Destaque */
.feature{display:block;border-radius:var(--radius);overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s}
.feature:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(16,16,20,.05),0 16px 36px rgba(16,16,20,.09)}
.feature .info{padding:18px 18px 20px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.feature h3,.hero h1{font-family:var(--display);font-style:italic;font-weight:800;font-size:22px;letter-spacing:-.01em;line-height:1.15}
.feature p{color:var(--muted);font-size:14px;margin-top:2px}
.go{flex:none;width:44px;height:44px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;transition:transform .2s}
.feature:hover .go{transform:translateX(3px)}
.go svg{width:18px;height:18px}

/* Lista */
.list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff}
.row{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:12px;border-top:1px solid var(--line);transition:background .2s}
.row:first-child{border-top:0}
.row:hover{background:var(--surface)}
.row .media{aspect-ratio:1;border-radius:12px}
.row .media::after{background-size:84%}
.row h4{font-family:var(--display);font-style:italic;font-weight:700;font-size:16px;line-height:1.2}
.row p{font-size:13px;color:var(--muted)}
.pill{font-size:11px;font-weight:600;padding:5px 9px;border-radius:999px;background:var(--surface);color:var(--muted);white-space:nowrap}
.pill.live{background:#ecfdf3;color:var(--ok)}
.pill.wait{background:#fff7ed;color:var(--warn)}
.empty{border:1px dashed var(--line);border-radius:var(--radius);padding:22px;color:var(--muted);font-size:14px;text-align:center}

/* Comunidade WhatsApp */
.community{display:flex;align-items:center;gap:14px;padding:16px;border-radius:var(--radius);background:#f0fdf4;border:1px solid #dcfce7;margin-bottom:12px}
.community .wa{flex:none;width:44px;height:44px;border-radius:12px;background:#25d366;color:#fff;display:grid;place-items:center}
.community .wa svg{width:24px;height:24px}
.community b{display:block;font-size:15px}
.community small{color:var(--muted);font-size:13px}
.community .chev{margin-left:auto;color:var(--muted)}

/* Ganhadores */
.winners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.winners::-webkit-scrollbar{display:none}
.win{scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;gap:12px;align-items:center}
.win .av{width:44px;height:44px;border-radius:50%;background:var(--red-soft);color:var(--red);font-weight:700;display:grid;place-items:center;flex:none}
.win b{display:block;font-size:14px}.win span{display:block;font-size:12px;color:var(--muted)}

/* Campanha */
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;margin:20px 0 14px}
.back:hover{color:var(--text)}
.hero{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow)}
.hero .head{padding:18px}
.hero .sub{color:var(--muted);font-size:14px}
.draw-date{margin-top:10px;font-size:13px;color:var(--muted)}
.draw-date b{color:var(--text)}
.result{margin-top:12px;padding:12px 14px;border-radius:12px;background:#ecfdf3;color:#14532d;display:grid;gap:2px;font-size:14px}
.result span{font-size:12px;color:#166534}
.stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.stats div{padding:14px 18px}
.stats div+div{border-left:1px solid var(--line)}
.stats small{display:block;font-size:12px;color:var(--muted)}
.stats strong{font-family:var(--display);font-size:20px;font-weight:800}
.stats .price strong{color:var(--red)}
.bar{height:4px;background:var(--surface-2)}
.bar i{display:block;height:100%;background:var(--red)}
.buy{margin-top:28px}
.packs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.pack{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 6px;text-align:center;font-family:var(--display);font-weight:700;font-size:18px;transition:.15s;position:relative}
.pack:hover{border-color:#c9c9cf}
.pack:active{transform:scale(.97)}
.pack.hot{border-color:var(--red);color:var(--red)}
.pack.hot::after{content:"popular";position:absolute;top:-8px;left:50%;transform:translateX(-50%);background:var(--red);color:#fff;font-family:var(--body);font-size:10px;font-weight:600;padding:1px 8px;border-radius:99px}
.qty{display:grid;grid-template-columns:52px 1fr 52px;gap:8px;margin-bottom:12px}
.qty button{background:#fff;border:1px solid var(--line);border-radius:14px;font-size:22px;height:56px}
.qty button:hover{border-color:#c9c9cf}
.qty input{background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--text);text-align:center;font-family:var(--display);font-size:22px;font-weight:800;height:56px;width:100%}
.qty input::-webkit-inner-spin-button{display:none}
.cta{width:100%;background:var(--red);color:#fff;border-radius:14px;padding:0 20px;height:60px;font-weight:700;font-size:16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 20px rgba(227,6,19,.22);transition:background .2s,transform .1s}
.cta:hover{background:var(--red-deep)}
.cta:active{transform:scale(.99)}
.note{border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-size:14px;color:var(--muted);background:var(--surface)}
details{border-top:1px solid var(--line);padding:16px 2px}
details:last-of-type{border-bottom:1px solid var(--line)}
details summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";font-size:20px;color:var(--muted);transition:transform .2s}
details[open] summary::after{transform:rotate(45deg)}
details p,details li{font-size:14px;color:var(--muted);margin-top:10px;white-space:pre-line}
details ul{padding-left:18px}
.legal{margin-top:28px}

/* Textos legais */
.legal-text{font-size:15px;color:#3a3a40;line-height:1.7}
.legal-text h2{font-size:16px;font-weight:700;color:var(--text);margin:24px 0 6px}
.legal-text p{margin-bottom:10px}
.legal-text ul{padding-left:20px;margin-bottom:10px}
.legal-text li{margin-bottom:4px}
.legal-text a,.check a{color:var(--red);text-decoration:underline;text-underline-offset:2px}
.updated{font-size:12px;color:var(--muted)}
.form select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e76' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center}

/* Formulários */
.form{display:grid;gap:14px}
.form label{display:grid;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.input,.form input:not([type=checkbox]):not([type=file]),.form select,.form textarea{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px;color:var(--text);font:inherit;font-size:16px;width:100%;transition:border-color .2s,box-shadow .2s}
.form textarea{min-height:110px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(227,6,19,.1)}
.check{display:flex!important;gap:10px;align-items:flex-start;font-size:13px}
.check input{accent-color:var(--red);width:18px;height:18px;margin-top:1px;flex:none}
.btn{display:inline-grid;place-items:center;background:var(--red);color:#fff;border-radius:12px;height:52px;padding:0 18px;font-weight:600;width:100%;transition:background .2s}
.btn:hover{background:var(--red-deep)}
.btn:disabled{opacity:.6;cursor:progress}
.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line)}
.btn.ghost:hover{background:var(--surface)}
.btn.dark{background:var(--text)}
.err{color:var(--red);font-size:13px;min-height:1em}

/* Meus títulos */
.ticket{border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-top:14px;background:#fff}
.ticket header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ticket h4{font-family:var(--display);font-style:italic;font-weight:700;font-size:16px}
.ticket .meta{font-size:12px;color:var(--muted);margin:2px 0 12px}
.status{font-size:11px;font-weight:600;padding:4px 9px;border-radius:99px;color:var(--ok);background:#ecfdf3;white-space:nowrap}
.status.pend{color:var(--warn);background:#fff7ed}
.nums{display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow:auto}
.nums span{background:var(--surface);font-size:13px;font-weight:600;padding:5px 9px;border-radius:8px;font-variant-numeric:tabular-nums}

/* Suporte */
.contact{display:grid;gap:10px}
.contact a{border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:18px;display:flex;align-items:center;justify-content:space-between;font-weight:600;transition:border-color .2s}
.contact a:hover{border-color:#c9c9cf}
.contact small{display:block;font-weight:400;color:var(--muted);font-size:13px}
.contact svg{width:18px;height:18px;color:var(--muted)}
.page-title{font-family:var(--display);font-style:italic;font-weight:800;font-size:28px;margin:24px 0 18px}

/* Rodapé */
.foot{border-top:1px solid var(--line);margin-top:24px;padding:32px 0 48px;text-align:center;color:var(--muted);font-size:13px;background:var(--surface)}
.foot .logo{margin:0 auto 14px;width:96px;height:48px}
.foot nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px;margin-bottom:10px}
.drawer-legal{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted);padding-top:20px}
.drawer-legal a:hover{color:var(--text)}
.foot nav a:hover{color:var(--text)}

/* Menu lateral */
.drawer{position:fixed;inset:0;background:rgba(17,17,19,.35);opacity:0;pointer-events:none;transition:.25s;z-index:40}
.drawer.open{opacity:1;pointer-events:auto}
.drawer-panel{width:min(300px,84vw);height:100%;background:#fff;padding:18px 20px;display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:8px 0 30px rgba(0,0,0,.08)}
.drawer.open .drawer-panel{transform:none}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.drawer-head .logo{margin:0;width:100px;height:50px}
.drawer nav a{display:block;padding:14px 0;border-bottom:1px solid var(--line);font-family:var(--display);font-style:italic;font-weight:700;font-size:18px}
.drawer nav a:hover{color:var(--red)}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(17,17,19,.4);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:.25s;z-index:50}
.modal.open{opacity:1;pointer-events:auto}
.modal-card{background:#fff;width:100%;max-width:480px;border-radius:24px 24px 0 0;padding:24px 20px 28px;max-height:92vh;overflow:auto;transform:translateY(40px);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.modal.open .modal-card{transform:none}
.modal-card h3{font-family:var(--display);font-style:italic;font-weight:800;font-size:22px}
.modal-card .sub{color:var(--muted);font-size:14px;margin-bottom:18px}
.summary{background:var(--surface);border-radius:14px;padding:14px;font-size:14px;display:grid;gap:6px;margin-bottom:18px}
.summary div{display:flex;justify-content:space-between;color:var(--muted)}
.summary b{color:var(--text);font-size:17px}
.pix{display:grid;gap:12px;text-align:center}
.qr{width:220px;height:220px;margin:0 auto;padding:10px;border:1px solid var(--line);border-radius:16px;display:grid;place-items:center;background:#fff}
.qr img,.qr canvas{width:100%!important;height:auto!important}
.copy{display:flex;gap:8px}
.copy input{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;font-size:12px;color:var(--muted)}
.copy .btn{width:auto}
.steps{text-align:left;font-size:13px;color:var(--muted);background:var(--surface);border-radius:12px;padding:12px 14px 12px 30px}
.timer{color:var(--red);font-weight:700}

.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--text);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:600;opacity:0;transition:.3s;z-index:60;max-width:calc(100% - 32px);pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}
.skeleton{height:320px;border-radius:var(--radius);background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

@media (min-width:600px){.modal{align-items:center}.modal-card{border-radius:24px}}
@media (max-width:400px){.feature h3,.hero h1{font-size:20px}.pack{font-size:16px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
