/* Blu Player — site do cliente (bluplayer.net). Base: site-nuvtv/assets/style.css. Mobile-first, sem build.
 * Animação: só transform / opacity (e stroke-dashoffset no logo). Movimento reduzido = só fade. */

:root {
  --bg: #050A1C;
  --bg-2: #07102A;
  --surface: #0F1838;
  --surface-2: #142048;
  --surface-3: #18245A;
  --line: #1A2552;
  --line-2: #27356E;
  --text: #EEF2FF;
  --muted: #8D98C6;
  --muted-2: #6C78A8;
  --accent: #4C8DFF;
  --accent-hi: #6AA2FF;
  --accent-lo: #2F6BE0;
  --accent-tint: rgba(76, 141, 255, .14);
  --cyan: #7FD3FF;
  --green: #3DDC97;
  --green-hi: #3DDC97;
  --green-tint: rgba(61, 220, 151, .12);
  --amber: #FFB547;
  --amber-tint: rgba(255, 181, 71, .12);
  --orange: #FFB547;
  --danger: #FF5C6C;
  --danger-tint: rgba(255, 92, 108, .12);
  --radius: 12px;
  --radius-lg: 18px;
  --gutter: 16px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
strong { font-weight: 600; color: var(--text); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

svg[viewBox="0 0 24 24"] {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .02em; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5,10,28,.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: env(safe-area-inset-top);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; display: block; flex: none; }
.topnav { display: none; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.topnav a:hover { color: var(--text); background: var(--surface); }
@media (min-width: 820px) { .topnav { display: flex; margin-right: 8px; } }
body.is-manage .topnav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .16s var(--ease-out), box-shadow .15s var(--ease);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; pointer-events: none; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-sm svg[viewBox] { width: 17px; height: 17px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -10px rgba(76,141,255,.7); }
.btn-outline { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-soft { background: var(--accent-tint); color: #9CC2FF; border-color: rgba(76,141,255,.25); }
.btn-soft svg[viewBox] { fill: currentColor; stroke: none; }
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger-ghost { color: #9CC2FF; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading svg, .btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-soft.is-loading::after { border-color: rgba(238,242,255,.25); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hover: só em quem tem mouse de verdade (nada fica "preso" no toque) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-danger:hover { background: var(--accent-hi); }
  .btn-outline:hover { border-color: #3A4A88; background: rgba(255,255,255,.06); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-soft:hover { background: rgba(76,141,255,.2); color: #C9DCFF; }
  .btn-shine { overflow: hidden; }
  .btn-shine::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: translateX(-120%) skewX(-12deg); pointer-events: none;
  }
  .btn-shine:hover::before { transform: translateX(380%) skewX(-12deg); transition: transform .7s var(--ease-out); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero::after { /* desvanece a base do hero no fundo da página */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,10,28,0), var(--bg));
}

.hero-in { position: relative; display: grid; gap: 44px; align-items: center; }
.hero h1 { font-weight: 800; letter-spacing: -.035em; }

@keyframes nv-in { to { opacity: 1; transform: none; } }
@keyframes nv-fade { to { opacity: 1; } }

.h1-line { display: block; font-size: clamp(30px, 8.2vw, 54px); line-height: 1.08; text-wrap: balance; }

/* Entrada do texto do hero, em sequência, depois da abertura do logo */
.enter { opacity: 0; transform: translateY(18px); animation: nv-in 560ms var(--ease-out) forwards; animation-delay: var(--ed, 700ms); }
.h1-line.enter { --ed: 760ms; }
.lead.enter { --ed: 840ms; }
.hero-cta.enter { --ed: 920ms; }
.chip.enter:nth-child(1) { --ed: 1000ms; }
.chip.enter:nth-child(2) { --ed: 1045ms; }
.chip.enter:nth-child(3) { --ed: 1090ms; }
.chip.enter:nth-child(4) { --ed: 1135ms; }
.chip.enter:nth-child(5) { --ed: 1180ms; }

.lead { margin-top: 18px; font-size: 17px; color: #B7C0E4; max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #C8D0EE;
  padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
.chip-wait { color: #E9C27A; }
.chip-wait::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.16); }
@media (min-width: 520px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-in { grid-template-columns: 1.02fr .98fr; gap: 56px; }
  .lead { font-size: 18px; }
}

/* ---------- Números ---------- */
.stats { padding: 0 0 8px; }
.stats-row {
  list-style: none; margin: 0; padding: 18px 8px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  font-size: clamp(30px, 9vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9CC2FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }
@media (min-width: 760px) { .stats-row { padding: 26px 16px; } .stat span { font-size: 14px; } }

/* ---------- Seções ---------- */
.section { padding: 56px 0; scroll-margin-top: 60px; }
.section h2 { font-size: clamp(26px, 6.5vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 10px; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

/* Revelar ao rolar (só com JS ativo) */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js-ready [data-reveal] {
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Passos com linha de progresso */
.steps-wrap { position: relative; margin-top: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.step {
  position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
}
.step-n {
  position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: #0F1C4A; color: #9CC2FF; font-weight: 800; font-size: 16px; border: 1px solid rgba(76,141,255,.35);
}
.step-n::before { /* estado "aceso" — só opacidade */
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(160deg, #6AA2FF, #2F6BE0); box-shadow: 0 6px 18px -6px rgba(76,141,255,.8);
  opacity: 0; transition: opacity 300ms ease;
}
.step-n span { position: relative; transition: color 300ms ease; }
.step.is-lit .step-n::before { opacity: 1; }
.step.is-lit .step-n span { color: #fff; }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 7px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.steps-line {
  position: absolute; z-index: 1; left: 37px; top: 38px; bottom: 38px; width: 2px; border-radius: 2px;
  background: var(--line-2); overflow: hidden;
}
.steps-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #6AA2FF, #2F6BE0); transform: scaleY(0); transform-origin: top; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { display: block; padding: 24px; }
  .step h3 { margin-top: 16px; }
  .steps-line {
    left: 43px; right: calc((100% - 32px) / 3 + 16px - 43px); top: 42px; bottom: auto; width: auto; height: 2px;
  }
  .steps-fill { background: linear-gradient(90deg, #6AA2FF, #2F6BE0); transform: scaleX(0); transform-origin: left; }
}

.devices { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.device-tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.device-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px 140px at 0% 0%, rgba(76,141,255,.16), transparent 70%);
}
.device-tile svg[viewBox] { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; stroke-width: 1.6; transition: transform .35s var(--ease-out); }
.device-tile strong { font-size: 17px; }
.device-tile span { font-size: 14px; color: var(--muted); }
.device-tile.is-soon { background: transparent; border-style: dashed; }
.device-tile.is-soon svg[viewBox] { color: var(--muted-2); }
.soon { align-self: flex-start; font-size: 12px !important; font-weight: 600; color: var(--amber) !important; background: var(--amber-tint); padding: 2px 8px; border-radius: 999px; margin-top: 2px; }
.devices li:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 760px) { .devices { grid-template-columns: repeat(3, 1fr); gap: 16px; } .devices li:last-child:nth-child(odd) { grid-column: auto; } .devices li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } .device-tile { padding: 22px; } }
@media (hover: hover) and (pointer: fine) {
  .device-tile:not(.is-soon):hover { border-color: var(--line-2); }
  .device-tile:not(.is-soon):hover::before { opacity: 1; }
  .device-tile:not(.is-soon):hover svg[viewBox] { transform: translateY(-3px); }
}

.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.js-ready .faq details[data-reveal] { transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out), border-color .15s; transition-delay: var(--rd, 0ms); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; min-height: 56px; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-a { padding: 0 18px 18px; color: #B7C0E4; font-size: 15px; }
.faq details[open] .faq-a { animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.section-cta { padding-top: 24px; }
.cta-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px 22px; border-radius: var(--radius-lg);
  background: radial-gradient(500px 220px at 100% 0%, rgba(76,141,255,.28), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.cta-mark { width: 44px; height: 44px; flex: none; }
.cta-card h2 { font-size: clamp(22px, 5.5vw, 30px); }
.cta-card p { color: var(--muted); margin-top: 8px; }
@media (min-width: 760px) {
  .cta-card { flex-direction: row; align-items: center; padding: 36px 40px; gap: 24px; }
  .cta-text { flex: 1; }
  .cta-mark { width: 56px; height: 56px; }
}

.sec-lead { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 36em; }
/* ---------- Instalação pelo Downloader (janela) ---------- */
.code-inline { font-family: var(--mono); font-weight: 700; color: #fff; letter-spacing: .04em; }
.dl-dialog {
  width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 22px 20px 20px; border-radius: var(--radius-lg);
  background: radial-gradient(420px 200px at 100% 0%, rgba(76,141,255,.16), transparent 70%), var(--surface);
  color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.dl-dialog::backdrop { background: rgba(2,5,16,.72); backdrop-filter: blur(3px); }
.dl-dialog[open] { animation: dl-in 220ms var(--ease-out); }
@keyframes dl-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dl-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.dl-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin: -6px -6px 0 0; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.dl-x svg[viewBox] { width: 20px; height: 20px; }
.dl-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.dl-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.dl-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(160deg, #6AA2FF, #2F6BE0); }
.dl-steps li > div > b, .dl-qr-row b { display: block; font-size: 16px; }
.dl-steps li > div > span, .dl-qr-row div > span { display: block; margin-top: 3px; font-size: 14.5px; color: #B7C0E4; }
.dl-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 10px 10px 16px; border-radius: 12px; background: #081130; border: 1px solid rgba(76,141,255,.45); box-shadow: 0 0 0 4px rgba(76,141,255,.08); }
.dl-digits { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.dl-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.dl-sub { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.dl-sub + .dl-steps { margin-top: 10px; }
.dl-steps + .dl-sub, .dl-go + .dl-sub { padding-top: 14px; border-top: 1px solid var(--line); }
.dl-qr-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.dl-qr { flex: none; width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 6px; }
.dl-link { color: #9CC2FF; font-weight: 600; }
.dl-alt { margin-top: 18px; font-size: 14px; color: #B7C0E4; }
.dl-dialog .only-phone { display: none; }
.dl-dialog.is-phone .only-phone { display: block; }
.dl-dialog.is-phone .only-desk { display: none; }
.dl-go { margin-top: 16px; }
.dl-go .btn + .btn { margin-top: 10px; } /* dois botões (ex.: HubCine Android e Windows) */
.dl-go .btn { width: 100%; }
.dl-go span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.btn.is-copied { border-color: var(--green); color: var(--green); }
@media (prefers-reduced-motion: reduce) { .dl-dialog[open] { animation: none; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 24px; }
.footer-in { display: flex; flex-direction: column; gap: 10px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand svg { width: 24px; height: 24px; display: block; }
.disclaimer { color: var(--muted); font-size: 14px; }
.copy { color: var(--muted-2); font-size: 13px; }
@media (min-width: 760px) { .footer-in { flex-direction: row; align-items: center; gap: 24px; } .copy { margin-left: auto; } }

/* ---------- Cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.h-card { font-size: 26px; font-weight: 800; }
.h-block { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.label-xs { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.field { margin-top: 16px; }
.field label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.opt { font-weight: 500; font-size: 12px; color: var(--muted-2); }
input[type="text"], input[type="password"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; /* 16px evita zoom no iOS */
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input::placeholder { color: #5A6595; }
input:hover { border-color: #33427E; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,141,255,.22); background: #0B1640; }
input[aria-invalid="true"] { border-color: #ff5a68; }
input.mono { font-family: var(--mono); letter-spacing: .06em; font-size: 17px; }
.key-input { letter-spacing: .4em !important; }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted-2); }
.form-error {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(76,141,255,.1); border: 1px solid rgba(76,141,255,.35); color: #C9DCFF; font-size: 14px;
}
form .btn-block { margin-top: 20px; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 54px; }
.pass-toggle {
  position: absolute; right: 3px; top: 3px; bottom: 3px; width: 48px;
  display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px;
  color: var(--muted); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .pass-toggle:hover { color: var(--text); background: rgba(255,255,255,.04); } }
.pass-toggle .i-eye-off { display: none; }
.pass-toggle[aria-pressed="true"] .i-eye { display: none; }
.pass-toggle[aria-pressed="true"] .i-eye-off { display: block; }

/* ---------- Manage: login ---------- */
.manage-login { padding: 24px 0 48px; }
.wrap-login { max-width: 460px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; min-height: 44px; margin-bottom: 8px;
}
.back:hover { color: var(--text); }
.login-card { padding: 24px 20px; position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.login-card > .muted { margin-top: 8px; font-size: 15px; }
.login-foot { margin-top: 16px; font-size: 13px; text-align: center; padding: 0 12px; }
@media (min-width: 520px) { .manage-login { padding-top: 48px; } .login-card { padding: 32px 28px; } }

/* ---------- Manage: dashboard ---------- */
.dash { padding: 20px 0 48px; }
.dash-grid { display: grid; gap: 20px; }
@media (min-width: 940px) {
  .dash { padding-top: 36px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
  .dash-side { position: sticky; top: 80px; }
}

.device-card { padding: 18px; }
.device-head { display: flex; align-items: center; gap: 12px; }
.device-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); flex: none; }
.device-id { min-width: 0; flex: 1; }
.device-mac { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-meta { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.device-meta > div { display: contents; }
.device-meta dt { color: var(--muted); font-size: 14px; padding: 4px 0; }
.device-meta dd { margin: 0; font-size: 14px; font-weight: 500; padding: 4px 0; text-align: right; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-trial { background: var(--amber-tint); color: var(--amber); border-color: rgba(245,165,36,.25); }
.badge-active { background: var(--green-tint); color: var(--green); border-color: rgba(34,197,94,.25); }
.badge-expired, .badge-blocked { background: var(--accent-tint); color: #F0A020; border-color: rgba(76,141,255,.3); }
.badge-live { background: var(--green-tint); color: var(--green); padding: 4px 8px; font-size: 11px; }
/* PIN da lista (21/11/2026) */
.badge-lock { background: rgba(245,165,36,.1); color: var(--amber); border-color: rgba(245,165,36,.25); padding: 4px 8px; font-size: 11px; flex: none; }
.badge-lock::before { display: none; }
.badge-lock svg[viewBox] { width: 12px; height: 12px; }
.pl-pin { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(245,165,36,.06); border: 1px solid rgba(245,165,36,.25); }
.pl-pin-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #ffdca0; }
.pl-pin-error { margin: 0; font-size: 13px; color: #ffb0b7; }
.pl-pin-actions { display: flex; gap: 8px; }
.pl-pin-actions .btn { flex: 1; }
.pin-box { margin-top: 20px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); }
.pin-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pin-head svg[viewBox] { width: 16px; height: 16px; color: var(--amber); }
.pin-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pin-mode {
  flex: 1 1 auto; min-height: 40px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--line-2); transition: border-color .15s, background-color .15s;
}
.pin-mode:hover { border-color: #33427E; }
.pin-mode[aria-pressed="true"] { border-color: var(--amber); background: rgba(245,165,36,.1); color: #ffdca0; }
.pin-mode:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,165,36,.3); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(245, 165, 36, .07); border: 1px solid rgba(245, 165, 36, .22);
  color: #d9cfb8; font-size: 14px;
}
.notice svg[viewBox] { color: var(--amber); margin-top: 1px; }
.notice strong { color: #ffdca0; }
.notice.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.5); } 100% { box-shadow: 0 0 0 10px rgba(245,165,36,0); } }

.block-head { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.count { color: var(--muted); font-size: 14px; }

.playlists { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pl {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; gap: 12px; min-width: 0;
  transition: border-color .15s;
}
.pl.is-new { animation: pl-in 420ms var(--ease-out); }
@keyframes pl-in { from { opacity: 0; transform: translateY(8px); } }
.pl.is-selected { border-color: rgba(34, 197, 94, .35); background: linear-gradient(180deg, rgba(34,197,94,.05), transparent 60%), var(--surface); }
.pl-main { min-width: 0; }
.pl-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pl-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.type-chip {
  flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: #C8D0EE;
}
.type-chip[data-type="partner"] { background: var(--accent-tint); color: #9CC2FF; }
.pl-detail { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pl-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pl-actions .btn { padding: 0 8px; }
.pl.is-selected .pl-actions { grid-template-columns: repeat(2, 1fr); }
.pl-confirm {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; border-radius: 10px; background: rgba(76,141,255,.08); border: 1px solid rgba(76,141,255,.3);
}
.pl-confirm span { flex: 1 1 100%; font-size: 14px; font-weight: 600; color: #C9DCFF; }
.pl-confirm .btn { flex: 1; }
@media (min-width: 560px) { .pl-pin { grid-column: 1 / -1; } .pl-pin-actions .btn { flex: none; } .pl-pin-actions { justify-content: flex-end; } }
@media (min-width: 560px) {
  .pl { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px 16px; }
  .pl-actions, .pl.is-selected .pl-actions { display: flex; }
  .pl-confirm { grid-column: 1 / -1; }
  .pl-confirm span { flex: 1 1 auto; }
  .pl-confirm .btn { flex: none; }
}

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 14px;
}
.empty svg[viewBox] { width: 28px; height: 28px; color: var(--muted-2); }

/* Form card */
.form-card { padding: 18px; scroll-margin-top: 76px; }
.form-card.is-editing { border-color: rgba(76,141,255,.45); box-shadow: 0 0 0 3px rgba(76,141,255,.1); }
.form-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px;
  padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
}
.tab {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; font-weight: 600;
  position: relative; z-index: 1;
  min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; }
.tab-ind { /* indicador deslizante da aba ativa */
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 16px) / 3); border-radius: 9px;
  background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.3);
  transform: translateX(calc(var(--ti, 0) * (100% + 4px)));
  transition: transform 280ms var(--ease-out);
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tab-help { margin-top: 14px; font-size: 14px; color: var(--muted); }

.partner-status { margin-top: 8px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.partner-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.partner-status.ok { color: var(--green); }
.partner-status.err { color: #F0A020; }
.partner-status.wait { color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center;
  background: #fff; color: #050A1C; font-weight: 600; font-size: 15px;
  padding: 12px 18px; border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  animation: toast-in .25s var(--ease);
}
.toast.is-error { background: var(--accent); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }


/* Botão de salvar: confirmação com check desenhado */
.btn-submit .btn-label, .btn-submit .btn-done { transition: opacity .2s ease, transform .28s var(--ease-out); }
.btn-done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
}
.btn-done svg[viewBox] { width: 22px; height: 22px; stroke-width: 2.6; }
.check-path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.btn-submit.is-success { background: #2BB673; box-shadow: 0 8px 24px -10px rgba(43,182,115,.7); pointer-events: none; }
.btn-submit.is-success .btn-label { opacity: 0; transform: translateY(-6px); }
.btn-submit.is-success .btn-done { opacity: 1; transform: none; }
.btn-submit.is-success .check-path { animation: check-draw 420ms var(--ease-out) 80ms forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 419px) {
  .device-icon { display: none; }
  .device-mac { font-size: 16px; }
}

/* ---------- Movimento reduzido: só fade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { transform: none; animation-name: nv-fade; animation-duration: 400ms; }
  .js [data-reveal] { transform: none; }
  .js-ready [data-reveal], .js-ready .faq details[data-reveal] { transition: opacity 400ms ease; transition-delay: 0ms; }
  .btn, .btn:active { transform: none; }
  .tab-ind { transition: none; }
  .faq summary::after { transition: none; }
  .faq details[open] .faq-a, .pl.is-new, .toast { animation: nv-fade-from .3s ease; }
  .check-path { stroke-dashoffset: 0; }
  .btn-submit.is-success .check-path { animation: none; }
  .btn-submit .btn-label, .btn-submit .btn-done { transform: none !important; }
  .notice.flash { animation: none; }
}
@keyframes nv-fade-from { from { opacity: 0; } }

/* anti-robô (Turnstile) no login */
.turnstile-box { min-height: 65px; margin: 4px 0 12px; }

/* Erros e exclusão continuam em vermelho (o verde é a cor da marca) */
.btn-danger { background: var(--danger); }
.btn-danger-ghost { color: #ff8a8e; }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: #FF7482; } }
input[aria-invalid="true"] { border-color: var(--danger); }
.form-error { background: var(--danger-tint); border-color: rgba(229, 72, 77, .35); color: #ffb3b5; }
.badge-expired, .badge-blocked { background: var(--danger-tint); color: #ff8a8e; border-color: rgba(229, 72, 77, .3); }
.pl-confirm { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .3); }
.pl-confirm span { color: #ffb3b5; }
.toast.is-error { background: var(--danger); }
.partner-status.err { color: #ff8a8e; }
@media (min-width: 760px) { .copy { white-space: nowrap; } }

/* Migrar para outro aparelho */
.migrate-card { margin-top: 16px; }
.migrate-card form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.mig-preview { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid rgba(76,141,255,.4); background: var(--accent-tint); }
.mig-preview div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mig-preview span { color: var(--muted); }
.mig-preview strong { text-align: right; }
.mig-rules { margin: 14px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted-2); display: flex; flex-direction: column; gap: 4px; }

/* ===== 08/11/2026: formatos, usos, aviso importante e aviso legal ===== */
.fmt-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fmt { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fmt h3 { font-size: 17px; }
.fmt-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fmt-chips li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); }
.uses { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uses li { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.uses b { font-size: 16px; }
.uses span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.legal-box { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.legal-box h2 { font-size: 24px; }
.legal-box ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.legal-box li { color: var(--muted); line-height: 1.6; }
.legal-box li strong { color: var(--text); }
.legal-box a { color: var(--text); }
.legal-more { margin-top: 16px; font-size: 14px; }
.legal-dialog { max-width: 520px; width: calc(100% - 32px); padding: 24px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.legal-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.legal-dialog h2 { font-size: 20px; }
.legal-dialog p { margin-top: 12px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.legal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.foot-links a { color: inherit; }
@media (max-width: 760px) {
  .fmt-grid, .uses { grid-template-columns: 1fr; }
}

/* Topo em celular estreito: botões Revenda + Gerenciar lista cabem só com o símbolo da marca */
@media (max-width: 399px) { .topbar-in .brand .wordmark { display: none; } }

/* =====================================================================
   Blu Player: fundo azul-marinho, gota azul, cartões arredondados (tv/src/app3/theme.js)
   ===================================================================== */
body { background: radial-gradient(1200px 700px at 80% -10%, rgba(76,141,255,.10), transparent 60%), linear-gradient(180deg, #050A1C 0%, #07102A 45%, #050A1C 100%); background-attachment: scroll; }
.wordmark { font-weight: 900; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.w-c { color: var(--accent); }
.kicker { color: var(--cyan); }

/* Hero: brilho azul e ondas da gota */
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow-1 { width: 720px; height: 720px; right: -260px; top: -260px; background: radial-gradient(closest-side, rgba(76,141,255,.28), rgba(76,141,255,0)); animation: drift-1 20s ease-in-out infinite alternate; }
.glow-2 { width: 520px; height: 520px; left: -280px; top: 35%; background: radial-gradient(closest-side, rgba(22,54,201,.30), rgba(22,54,201,0)); animation: drift-2 24s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate3d(-90px, 70px, 0) scale(1.1); } }
@keyframes drift-2 { to { transform: translate3d(110px, -50px, 0) scale(.94); } }
.waves { position: absolute; left: 50%; bottom: -120px; width: 1400px; height: 300px; transform: translateX(-50%); }
.waves i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px solid rgba(90,184,255,.16); transform: translate(-50%, -50%); }
.waves i:nth-child(1) { width: 1300px; height: 240px; border-color: rgba(61,139,255,.10); }
.waves i:nth-child(2) { width: 900px; height: 160px; }
.waves i:nth-child(3) { width: 520px; height: 92px; border-color: rgba(127,211,255,.20); }
.hero.is-off .glow { animation-play-state: paused; }

.hero-logo { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 14px); margin-bottom: 18px; }
.hero-drop { width: clamp(58px, 15vw, 84px); height: clamp(58px, 15vw, 84px); flex: none; animation: drop-in 700ms var(--ease-out) 80ms both; }
.hero-word { font-size: clamp(42px, 11.5vw, 66px); font-weight: 900; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: #fff; animation: nv-in 520ms var(--ease-out) 420ms both; opacity: 0; transform: translateY(14px); }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-40%) scale(.9); } 60% { opacity: 1; transform: translateY(4%) scale(1.02, .97); } 100% { opacity: 1; transform: none; } }
.lead { color: #B7C0E4; }

/* ---------- Tela do app (mock em CSS) ---------- */
.mock { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.mock.enter { --ed: 520ms; transform: translateY(24px) scale(.97); animation-duration: 900ms; }
.mock-glow { position: absolute; left: 8%; right: 8%; top: 10%; height: 80%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(76,141,255,.42), rgba(76,141,255,0)); }
.tv-frame {
  container-type: inline-size;
  position: relative; border-radius: 18px; padding: 8px;
  background: linear-gradient(160deg, #1d2547, #04081a 40%, #0b1230);
  box-shadow: 0 0 0 1px #243064, 0 40px 80px -30px rgba(0,0,0,.95), 0 30px 90px -40px rgba(76,141,255,.6);
}
.tv-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 11px;
  display: flex;
  background: linear-gradient(180deg, #050A1C 0%, #0A1336 55%, #111B4D 100%);
  font-size: 9px; font-size: 2.1cqw; line-height: 1.3; color: var(--text);
}
.tv-stand { width: 30%; height: 12px; margin: 0 auto; background: linear-gradient(#141a33, #070b1c); border-radius: 0 0 12px 12px; }

.m-rail { flex: none; width: 3.6em; display: flex; flex-direction: column; align-items: center; gap: .55em; padding: .9em 0; background: rgba(5,10,28,.72); border-right: 1px solid rgba(130,160,255,.12); position: relative; z-index: 2; }
.m-logo { width: 2.2em; height: 2.2em; margin-bottom: .5em; }
.m-ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .7em; color: var(--muted); }
.m-ic svg[viewBox] { width: 1.25em; height: 1.25em; stroke-width: 2; }
.m-ic.on { background: var(--accent); color: #fff; box-shadow: 0 .4em 1.2em -.3em rgba(76,141,255,.8); }
.m-sp { flex: 1; }
.m-av { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(160deg, #FFB547, #FF7A59); box-shadow: 0 0 0 .15em rgba(255,255,255,.2); }

.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 0 .6em; }
.m-feat { position: relative; flex: none; height: 52%; padding: 1em 1.3em; display: flex; align-items: flex-end; overflow: hidden; }
.m-feat::before { /* "capa" de fundo do destaque */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 90% at 78% 30%, var(--t1, #2E5BD8), transparent 70%), linear-gradient(120deg, #0B1640 10%, var(--t2, #1636C9) 120%);
  transition: opacity 400ms ease;
}
.m-feat::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(5,10,28,.92) 0%, rgba(5,10,28,.45) 55%, rgba(5,10,28,0) 100%), linear-gradient(0deg, rgba(10,19,54,1) 0%, rgba(10,19,54,0) 45%); }
.m-feat[data-tone="1"] { --t1: #3D8BFF; --t2: #1636C9; }
.m-feat[data-tone="2"] { --t1: #2BB5C9; --t2: #0E4A7A; }
.m-feat[data-tone="3"] { --t1: #C77B3B; --t2: #3B1F5E; }
.m-feat[data-tone="4"] { --t1: #B04BD8; --t2: #23206B; }
.m-feat.swap .m-feat-info { animation: feat-swap 420ms var(--ease-out); }
@keyframes feat-swap { from { opacity: 0; transform: translateY(.5em); } }
.m-feat-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3em; max-width: 62%; }
.m-kick { font-size: .78em; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.m-title { font-size: 1.85em; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.m-meta { font-size: .85em; color: #C8D0EE; }
.m-plot { display: grid; gap: .3em; margin-top: .15em; }
.m-plot i { display: block; height: .42em; border-radius: 999px; background: rgba(238,242,255,.22); }
.m-plot i:nth-child(2) { width: 70%; }
.m-btns { display: flex; gap: .45em; margin-top: .45em; }
.m-bt { display: inline-flex; align-items: center; gap: .35em; font-size: .85em; font-weight: 700; padding: .5em .9em; border-radius: .6em; background: rgba(24,36,90,.9); }
.m-bt.on { background: var(--accent); }
.m-bt svg[viewBox] { width: 1em; height: 1em; fill: currentColor; stroke: none; }
.m-clock { position: absolute; z-index: 1; right: 1.3em; top: .9em; font-size: .95em; font-weight: 700; color: #C8D0EE; font-variant-numeric: tabular-nums; }

.m-h { font-size: .9em; font-weight: 800; padding: .55em 1.3em .35em; }
.m-row { display: flex; gap: .6em; padding: .35em 1.3em; margin: -.35em 0; overflow: hidden; }
.m-card { position: relative; flex: none; width: 7.4em; aspect-ratio: 16 / 9; border-radius: .6em; overflow: hidden; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.m-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,28,.7), transparent 60%); }
.m-card i { position: absolute; z-index: 1; left: .45em; right: .45em; bottom: .4em; height: .28em; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.m-card i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 40%); background: var(--accent); border-radius: inherit; }
.m-card.is-f { transform: scale(1.08); z-index: 1; box-shadow: 0 0 0 .16em #fff, 0 .6em 1.4em -.4em rgba(76,141,255,.9); }
.t1 { background: radial-gradient(80% 90% at 70% 20%, #5AA2FF, transparent 70%), linear-gradient(150deg, #1636C9, #0B1640); }
.t2 { background: radial-gradient(80% 90% at 30% 20%, #4FD1E0, transparent 70%), linear-gradient(150deg, #0E4A7A, #071A3A); }
.t3 { background: radial-gradient(80% 90% at 60% 30%, #E39A55, transparent 70%), linear-gradient(150deg, #5A2E6B, #1A1240); }
.t4 { background: radial-gradient(80% 90% at 40% 20%, #C46BE8, transparent 70%), linear-gradient(150deg, #34207A, #120E3A); }
.t5 { background: radial-gradient(80% 90% at 60% 20%, #6FE0B0, transparent 70%), linear-gradient(150deg, #0E5A55, #061F2A); }
.m-top { gap: .2em; }
.m-rank { flex: none; display: flex; align-items: flex-end; }
.m-rank b { font-size: 4.2em; font-weight: 900; line-height: .78; letter-spacing: -.08em; margin-right: -.12em; color: transparent; -webkit-text-stroke: .045em rgba(127,211,255,.85); }
.m-rank .m-card { width: 4.4em; aspect-ratio: 2 / 3; }

/* ---------- Perfis + recursos ---------- */
.split { display: grid; gap: 24px; margin-top: 36px; align-items: center; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(76,141,255,.10), rgba(15,24,56,.6) 50%), var(--surface); border: 1px solid var(--line); }
.who { border-radius: 16px; padding: 22px 16px; text-align: center; background: linear-gradient(180deg, #050A1C, #0A1336); border: 1px solid var(--line); }
.who-h { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.who-row { display: flex; justify-content: center; gap: clamp(12px, 4vw, 26px); margin-top: 18px; }
.who-p { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.who-p b { font-weight: 600; }
.who-p.is-f b { color: #fff; }
.av { position: relative; display: block; width: clamp(56px, 15vw, 76px); aspect-ratio: 1; border-radius: 18px; }
.av::before { content: ""; position: absolute; left: 50%; top: 26%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.9); transform: translateX(-50%); }
.av::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 58%; height: 26%; border-radius: 999px 999px 8px 8px; background: rgba(255,255,255,.9); transform: translateX(-50%); }
.av1 { background: linear-gradient(160deg, #4C8DFF, #1636C9); }
.av2 { background: linear-gradient(160deg, #FF7AB6, #B04BD8); }
.av3 { background: linear-gradient(160deg, #FFC86B, #FF7A59); }
.av em { position: absolute; z-index: 1; right: -6px; top: -6px; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--green); color: #052016; }
.who-p.is-f .av { box-shadow: 0 0 0 3px #fff, 0 10px 26px -8px rgba(76,141,255,.9); }
.who-foot { margin-top: 18px; display: inline-block; font-size: 13px; font-weight: 600; color: #C8D0EE; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.split-copy h3 { font-size: 22px; font-weight: 800; }
.split-copy p { margin-top: 10px; color: #B7C0E4; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4L18 8' fill='none' stroke='%236AA2FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat; border: 1px solid rgba(76,141,255,.35); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px; } }

.feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.feat { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.feat-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; background: var(--accent-tint); color: var(--accent-hi); border: 1px solid rgba(76,141,255,.3); }
.feat-ic svg[viewBox] { width: 22px; height: 22px; stroke-width: 1.8; }
.feat b { font-size: 17px; }
.feat span:last-child { font-size: 14.5px; color: var(--muted); }
@media (min-width: 560px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* 4 aparelhos: 2 x 2 no celular, 4 numa linha no computador */
.devices li:last-child:nth-child(odd) { grid-column: auto; }
@media (min-width: 760px) { .devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } .devices li:last-child:nth-child(3n+1) { grid-column: auto; } }
.device-tile.is-soon { background: rgba(15,24,56,.35); }

/* Downloader sem código: aviso "em breve" na janela */
.dl-soon { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; color: #C8D0EE; background: var(--accent-tint); border: 1px solid rgba(76,141,255,.35); }

@media (max-width: 380px) { .hero-word { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none !important; }
  .hero-drop, .hero-word { animation: nv-fade 300ms ease forwards; transform: none; }
  .mock.enter { transform: none; animation-name: nv-fade; }
  .m-card, .m-card.is-f { transform: none; transition: none; }
  .m-feat.swap .m-feat-info { animation: none; }
}
