:root {
  --bg: #0f0c16;
  --surface: #191424;
  --surface-2: #231c31;
  --line: rgba(255, 255, 255, .09);
  --ink: #fff7ee;
  --muted: #b3a8c2;
  --sun: #ffc23d;
  --accent: #ff6a3d;
  --pink: #ff4f8b;
  --ok: #3ddc84;
  --err: #ff6b6b;
  --grad: linear-gradient(120deg, var(--sun), var(--accent) 50%, var(--pink));
  --card-w: min(64vw, 270px);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(255, 106, 61, .28), transparent 70%),
    radial-gradient(500px 380px at -10% 30%, rgba(255, 79, 139, .16), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 0 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.test-banner { background: var(--sun); color: #2a1600; text-align: center; font-size: 12px; font-weight: 700; padding: 5px 16px; letter-spacing: .02em; }

/* Topo */
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand b { background: var(--grad); color: #1b0d00; font-size: 13px; padding: 2px 8px; border-radius: 7px; }
.sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, var(--sun) 45%, var(--accent)); box-shadow: 0 0 18px rgba(255, 194, 61, .6); }
.top-nav { display: flex; gap: 8px; }
.chip { position: relative; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: rgba(255, 255, 255, .25); }
.dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 22px 16px 10px; display: grid; gap: 32px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sun); background: rgba(255, 194, 61, .1); border: 1px solid rgba(255, 194, 61, .25); padding: 5px 12px; border-radius: 999px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live 1.6s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } }
.hero h1 { font-size: clamp(36px, 8.5vw, 64px); font-weight: 850; margin: 16px 0 14px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 520px; }
.facts { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 22px; flex-wrap: wrap; }
.facts li { flex: 1 1 0; min-width: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.facts b { display: block; font-size: 18px; }
.facts span { font-size: 12px; color: var(--muted); }
.hero-cta { width: auto; padding-inline: 26px; }
.hero-visual { display: none; }

/* Botões */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 16px; padding: 15px 20px; background: var(--grad); color: #1b0d00; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(255, 106, 61, .7); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--sun); font-weight: 700; cursor: pointer; }

/* Carrossel: só o card do centro toca vídeo, os outros mostram a capa */
.library { padding: 34px 0 18px; }
.lib-head { max-width: 1160px; margin: 0 auto 14px; padding: 0 16px; }
.lib-head h2 { font-size: 28px; font-weight: 800; }
.lib-head p { font-size: 14px; margin-top: 4px; }
.carousel { position: relative; }
.track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px calc(50% - var(--card-w) / 2) 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 var(--card-w); aspect-ratio: 9 / 16; scroll-snap-align: center; position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--surface-2); transform: scale(.88); opacity: .55; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s, box-shadow .35s; text-align: left; }
.card.ativo { transform: scale(1); opacity: 1; box-shadow: 0 24px 60px -18px rgba(255, 79, 139, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .4s; }
.card video.on { opacity: 1; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10, 6, 16, .92)); }
.card .price { position: absolute; top: 12px; left: 12px; background: rgba(15, 12, 22, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 5px 10px; line-height: 1.15; }
.card .price small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card .price b { font-size: 17px; }
.card .dur { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; background: rgba(15, 12, 22, .6); border-radius: 99px; padding: 3px 8px; }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.card h3 { font-size: 19px; font-weight: 800; }
.card .go { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: #140b1d; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 10px; }
.card:not(.ativo) .go { opacity: 0; }
.badge { font-size: 10px; font-weight: 800; background: var(--sun); color: #2a1600; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; }
.arrow { display: none; position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(25, 20, 36, .85); font-size: 26px; line-height: 1; cursor: pointer; }
.arrow:hover { border-color: rgba(255,255,255,.3); }
.arrow.prev { left: max(16px, calc(50% - 560px)); }
.arrow.next { right: max(16px, calc(50% - 560px)); }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.2); transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--accent); }

.how { max-width: 1160px; margin: 26px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.how div { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; }
.how b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #1b0d00; font-size: 14px; }

.foot { max-width: 760px; margin: 0 auto; padding: 34px 16px 40px; text-align: center; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }

/* Modal: folha de baixo no celular, janela no computador */
.modal { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; overflow-y: auto; border: 0; border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); }
.modal[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal::backdrop { background: rgba(5, 3, 10, .7); backdrop-filter: blur(4px); }
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); margin: 0 auto 10px; }
.close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.progress-dots { list-style: none; display: flex; gap: 6px; padding: 0 44px 0 0; margin: 4px 0 18px; counter-reset: p; }
.progress-dots li { flex: 1; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.progress-dots li::before { content: ""; display: block; height: 4px; border-radius: 99px; background: var(--surface-2); margin-bottom: 6px; transition: background .3s; }
.progress-dots li.on { color: var(--ink); }
.progress-dots li.on::before { background: var(--grad); }
.step { display: flex; flex-direction: column; gap: 12px; animation: in .22s ease; }
.step.center { align-items: center; }
.step h3 { font-size: 24px; font-weight: 800; }
@keyframes in { from { opacity: 0; transform: translateX(12px); } }

input[type=tel], input[type=password] { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); }
input::placeholder { color: #7f7491; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 61, .15); }
input.invalid { border-color: var(--err); }
.error { color: var(--err); font-size: 14px; font-weight: 600; }

.pick { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: start; }
.pick-media { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.pick-media img, .pick-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); cursor: pointer; font-size: 15px; }
.pick-side { display: flex; flex-direction: column; gap: 8px; }
.pick-side h3 { font-size: 20px; padding-right: 28px; }
.res { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.res button { border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 10px 12px; cursor: pointer; text-align: left; }
.res button b { display: block; font-size: 18px; }
.res button small { color: var(--muted); font-size: 12px; }
.res button[aria-checked=true] { border-color: var(--accent); background: rgba(255, 106, 61, .12); }

.drop { position: relative; display: grid; place-items: center; min-height: 96px; border: 2px dashed rgba(255, 194, 61, .45); border-radius: 18px; background: rgba(255, 194, 61, .06); cursor: pointer; text-align: center; padding: 14px; overflow: hidden; }
.drop:hover { border-color: var(--sun); }
.drop-text { display: flex; flex-direction: column; gap: 2px; }
.drop-text b { font-size: 17px; }
.drop-text b::before { content: "＋ "; color: var(--sun); }
.drop-text small { color: var(--muted); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.drop-busy { position: relative; display: flex; align-items: center; gap: 10px; }
.drop.busy { pointer-events: none; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--sun); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.qr-box { background: #fff; padding: 12px; border-radius: 20px; box-shadow: 0 0 0 6px rgba(255, 106, 61, .18); }
.qr { display: block; width: 210px; height: 210px; }
.code { display: block; width: 100%; font: 12px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; background: var(--surface-2); color: var(--muted); border-radius: 12px; padding: 10px; max-height: 64px; overflow: auto; }
.waiting { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--sun); }

.loader { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 0deg, var(--sun), var(--accent), var(--pink), transparent 75%); animation: rot 1.3s linear infinite; }
.loader span { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 36px; animation: rot 1.3s linear infinite reverse; }
.loader.stop, .loader.stop span { animation: none; }
.loader.stop { background: var(--surface-2); }
.bar { width: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--grad); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.result { width: 100%; max-height: 62dvh; border-radius: 16px; background: #000; }

.mine { display: flex; flex-direction: column; gap: 10px; }
.order { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 8px; cursor: pointer; background: var(--surface-2); text-align: left; width: 100%; }
.order:hover { border-color: rgba(255,255,255,.25); }
.order img { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--bg); flex: none; }
.order b { display: block; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: rgba(255,255,255,.08); color: var(--muted); margin-top: 4px; }
.tag.ok { background: rgba(61, 220, 132, .14); color: var(--ok); }
.tag.run { background: rgba(255, 194, 61, .14); color: var(--sun); }
.tag.err { background: rgba(255, 107, 107, .14); color: var(--err); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #140b1d; padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 10; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }

@media (max-width: 759px) {
  .hero { padding-top: 12px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); margin: 12px 0 8px; }
  .lead { font-size: 15px; }
  .facts { margin: 14px 0 0; gap: 8px; flex-wrap: nowrap; }
  .facts li { min-width: 0; padding: 7px 10px; border-radius: 12px; }
  .facts b { font-size: 15px; }
  .facts span { font-size: 11px; }
  .hero-cta { display: none; }
  .library { padding-top: 22px; }
  .lib-head h2 { font-size: 22px; }
  .track { padding-top: 8px; }
}
@media (min-width: 760px) {
  :root { --card-w: 250px; }
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 40px; }
  .hero-visual { display: block; position: relative; height: 500px; }
  .phone { position: absolute; width: 240px; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; border: 6px solid #241d31; background: var(--surface-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
  .phone img, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .phone.front { right: 22%; top: 0; transform: rotate(3deg); box-shadow: 0 30px 90px -20px rgba(255, 79, 139, .5); }
  .phone.back { right: 2%; top: 60px; transform: rotate(10deg) scale(.86); opacity: .6; }
  .arrow { display: block; }
  .how { grid-template-columns: repeat(4, 1fr); }
  .modal { inset: 0; margin: auto; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
  .sheet-handle { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
