/* RedCine — site do cliente. Mobile-first, sem build, sem bibliotecas.
 * Animação: só transform / opacity (e stroke-dashoffset no logo). Movimento reduzido = só fade. */

:root {
  --bg: #0B0B0F;
  --bg-2: #0F0F15;
  --surface: #15151C;
  --surface-2: #1C1C25;
  --surface-3: #24242F;
  --line: #262632;
  --line-2: #33333F;
  --text: #EDEDF2;
  --muted: #8B8B9A;
  --muted-2: #6C6C7A;
  --red: #E11D2E;
  --red-hi: #F2394A;
  --red-lo: #B5121F;
  --red-tint: rgba(225, 29, 46, .12);
  --green: #22C55E;
  --green-tint: rgba(34, 197, 94, .12);
  --amber: #F5A524;
  --amber-tint: rgba(245, 165, 36, .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(--red); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 8px; }

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

/* ---------- Wordmark ---------- */
.wordmark { font-weight: 800; letter-spacing: -.03em; font-size: 20px; line-height: 1; }
.wordmark-sm { font-size: 17px; }
.w-red { color: #fff; }
.w-cine { color: var(--red); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 15, .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-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(--red); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -10px rgba(225, 29, 46, .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(--red-tint); color: #ff8a94; border-color: rgba(225, 29, 46, .25); }
.btn-soft svg[viewBox] { fill: currentColor; stroke: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { color: #ff8a94; }
.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(237,237,242,.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(--red-hi); }
  .btn-outline:hover { border-color: #4a4a58; background: rgba(255,255,255,.06); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-soft:hover { background: rgba(225, 29, 46, .2); color: #ffb0b7; }
  .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; }
.blob {
  position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(225, 29, 46, .30), rgba(225, 29, 46, 0));
}
.blob-1 { width: 620px; height: 620px; right: -220px; top: -160px; animation: drift-1 18s ease-in-out infinite alternate; }
.blob-2 { width: 480px; height: 480px; left: -240px; top: 30%; background: radial-gradient(closest-side, rgba(179, 16, 31, .22), rgba(179, 16, 31, 0)); animation: drift-2 22s ease-in-out infinite alternate; }
.blob-3 { width: 380px; height: 380px; right: 10%; bottom: -220px; background: radial-gradient(closest-side, rgba(255, 59, 78, .16), rgba(255, 59, 78, 0)); animation: drift-3 26s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate3d(-90px, 70px, 0) scale(1.12); } }
@keyframes drift-2 { to { transform: translate3d(120px, -60px, 0) scale(.92); } }
@keyframes drift-3 { to { transform: translate3d(-70px, -90px, 0) scale(1.15); } }
.grain {
  position: absolute; inset: -50%; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.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(11,11,15,0), var(--bg));
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 1.6s steps(6) infinite; }
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-4%, 3%, 0); } 40% { transform: translate3d(3%, -5%, 0); }
  60% { transform: translate3d(-6%, -2%, 0); } 80% { transform: translate3d(5%, 4%, 0); } 100% { transform: translate3d(0, 0, 0); }
}
.hero.is-off .blob, .hero.is-off .grain, .hero.is-off .sync-ring { animation-play-state: paused; }

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

/* Logo da marca com abertura (port do brand/logo-animado.html) */
.rc-logo { display: flex; align-items: center; margin-bottom: 18px; }
.rc-mark { position: relative; width: clamp(54px, 14vw, 78px); height: clamp(54px, 14vw, 78px); flex: none; }
.rc-mark > span { position: absolute; inset: 0; }
.rc-mark svg { display: block; width: 100%; height: 100%; }
.rc-word { margin-left: clamp(10px, 3vw, 16px); font-size: clamp(44px, 12vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: #fff; }
.rc-word span { display: inline-block; }
.rc-word .c { color: var(--red); }

.rc-intro .rc-ring path { stroke-dasharray: 823; stroke-dashoffset: 823; animation: rc-draw 800ms var(--ease-out) 100ms forwards; }
.rc-intro .rc-play { opacity: 0; transform: translateX(-10%); animation: rc-in 380ms var(--ease-out) 480ms forwards; }
.rc-intro .rc-word span { opacity: 0; transform: translateY(14px); animation: rc-in 360ms var(--ease-out) forwards; }
.rc-intro .rc-word span:nth-child(1) { animation-delay: 620ms; }
.rc-intro .rc-word span:nth-child(2) { animation-delay: 665ms; }
.rc-intro .rc-word span:nth-child(3) { animation-delay: 710ms; }
.rc-intro .rc-word span:nth-child(4) { animation-delay: 755ms; }
.rc-intro .rc-word span:nth-child(5) { animation-delay: 800ms; }
.rc-intro .rc-word span:nth-child(6) { animation-delay: 845ms; }
.rc-intro .rc-word span:nth-child(7) { animation-delay: 890ms; }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }
@keyframes rc-in { to { opacity: 1; transform: none; } }
@keyframes rc-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: rc-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; }
.scene.enter { --ed: 520ms; transform: translateY(24px) scale(.97); animation-duration: 900ms; }

.lead { margin-top: 18px; font-size: 17px; color: #B4B4C2; 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: #C9C9D4;
  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); }
@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; }
}

/* ---------- Cena da TV ---------- */
.scene { position: relative; width: 100%; max-width: 520px; margin: 0 auto; perspective: 1100px; }
.scene-glow {
  position: absolute; left: 10%; right: 10%; top: 8%; height: 80%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 29, 46, .38), rgba(225, 29, 46, 0));
  transform: translate3d(0, 0, 0);
}
.tv3d { transform-origin: 50% 60%; }
.tv-frame {
  container-type: inline-size;
  position: relative; border-radius: 18px; padding: 9px;
  background: linear-gradient(160deg, #22222b, #050507 40%, #0c0c10);
  box-shadow: 0 0 0 1px #2a2a35, 0 40px 80px -30px rgba(0,0,0,.95), 0 30px 90px -40px rgba(225,29,46,.55);
}
.tv-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 10px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(225,29,46,.16), transparent 55%), linear-gradient(160deg, #17171f 0%, #0b0b10 70%);
  font-size: 9px; font-size: 2.55cqw; line-height: 1.35;
}
.tv-sheen {
  position: absolute; inset: -20%; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.06) 45%, transparent 55%);
  transform: translate3d(var(--sx, 0), 0, 0);
}
.tv-stand { width: 30%; height: 12px; margin: 0 auto; background: linear-gradient(#141419, #08080b); border-radius: 0 0 12px 12px; }

.scr {
  position: absolute; inset: 0; padding: 5.5% 6.5%;
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity 650ms ease;
}
.scr.is-on { opacity: 1; z-index: 1; }
/* filhos entram em sequência quando a tela aparece */
.scr .st { opacity: 0; transform: translateY(.7em); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.scr.is-on .st { opacity: 1; transform: none; }
.scr.is-on .st:nth-child(2) { transition-delay: 80ms; }
.scr.is-on .st:nth-child(3) { transition-delay: 160ms; }
.scr.is-on .st:nth-child(4) { transition-delay: 240ms; }

.scr-bar { display: flex; align-items: center; justify-content: space-between; }
.mini-logo { display: inline-flex; align-items: center; gap: .45em; }
.mini-logo svg { width: 1.9em; height: 1.9em; display: block; }
.mini-logo .wordmark { font-size: 1.35em; }
.scr-clock { font-size: 1.05em; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.scr-hello { margin-top: 1.1em; font-size: 1.5em; font-weight: 700; letter-spacing: -.02em; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin-top: .9em; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 3; padding: .8em; border-radius: .8em;
  background: linear-gradient(160deg, #23232d, #17171e); border: 1px solid rgba(255,255,255,.06);
  transition: transform 380ms var(--ease-out);
}
.tile:nth-child(1) { background: linear-gradient(160deg, #3a1218, #1a0d10); }
.tile svg[viewBox] { width: 2.2em; height: 2.2em; color: #fff; stroke-width: 1.6; }
.tile span { font-size: 1.05em; font-weight: 700; }
.tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px #fff, 0 .6em 1.6em -.4em rgba(225,29,46,.8);
  opacity: 0; transition: opacity 280ms ease;
}
.tile.is-focus { transform: scale(1.07); z-index: 1; }
.tile.is-focus::after { opacity: 1; }
.rail { display: flex; gap: .7em; margin-top: auto; }
.rail i { flex: 1; aspect-ratio: 2 / 1.1; border-radius: .5em; background: linear-gradient(160deg, #2a2a35, #1a1a22); }
.rail i:nth-child(2n) { background: linear-gradient(160deg, #2e1c22, #1a1418); }
.rail i:nth-child(3n) { background: linear-gradient(160deg, #1e2430, #15171d); }

.tv-pill { font-size: .95em; font-weight: 600; color: var(--amber); background: var(--amber-tint); padding: .3em .8em; border-radius: 999px; }
.scr-msg { margin-top: auto; font-size: 1.15em; color: var(--muted); }
.tv-creds { display: grid; grid-template-columns: 1.6fr 1fr; gap: .8em; margin-top: .6em; }
.tv-cred {
  background: rgba(255,255,255,.04); border: 1px solid rgba(225,29,46,.55); border-radius: .9em;
  padding: .8em 1em; box-shadow: 0 0 0 .35em rgba(225,29,46,.10);
  display: flex; flex-direction: column; gap: .2em; min-width: 0;
}
.tv-label { font-size: .9em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.tv-value { font-family: var(--mono); font-weight: 600; font-size: 1.45em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-tag {
  grid-column: 1 / -1; justify-self: end; margin: 0 .4em -.2em 0;
  font-size: 1em; font-weight: 600; color: #fff; background: var(--red);
  padding: .35em .9em; border-radius: 999px; transform: rotate(-3deg);
  box-shadow: 0 .5em 1.4em -.5em rgba(225,29,46,.8);
}
.scr-mac.is-on .tv-cred { animation: cred-pulse 1.8s ease-in-out 600ms 2; }
@keyframes cred-pulse { 50% { box-shadow: 0 0 0 .6em rgba(225,29,46,.22); } }

.sync-head { display: flex; align-items: center; gap: 1em; }
.sync-ring { width: 3em; height: 3em; flex: none; animation: spin 1.1s linear infinite; }
.sync-ring svg { display: block; width: 100%; height: 100%; }
.sync-ring path { stroke-dasharray: 560 263; }
.sync-title { font-size: 1.45em; font-weight: 700; letter-spacing: -.01em; }
.sync-sub { font-size: 1em; color: var(--muted); }
.sync-rows { margin-top: auto; display: grid; gap: .1em; }
.sync-row { display: flex; align-items: baseline; justify-content: space-between; padding: .45em 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sync-row span { color: var(--muted); font-size: 1.1em; }
.sync-row b { font-size: 1.5em; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sync-bar { margin-top: 1em; height: .45em; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.sync-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #B3101F, #FF3B4E); transform: scaleX(.04); transform-origin: left; }
.scr-sync.is-on .sync-bar i { transform: scaleX(1); transition: transform 2.2s cubic-bezier(.4, .1, .2, 1) 200ms; }

.scene-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.scene-dots i { position: relative; width: 22px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.scene-dots i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.scene-dots i.is-on::after { transform: scaleX(1); transition: transform var(--scene-dur, 3800ms) linear; }
.scene-dots i.is-done::after { transform: scaleX(1); }

/* ---------- 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, #FF8A94); -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(--red); 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: #1f1216; color: #ff8a94; font-weight: 800; font-size: 16px; border: 1px solid rgba(225,29,46,.35);
}
.step-n::before { /* estado "aceso" — só opacidade */
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(160deg, #FF3B4E, #B3101F); box-shadow: 0 6px 18px -6px rgba(225,29,46,.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, #FF3B4E, #B3101F); 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, #FF3B4E, #B3101F); 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(225,29,46,.16), transparent 70%);
}
.device-tile svg[viewBox] { width: 28px; height: 28px; color: var(--red); 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; }
@media (min-width: 760px) { .devices { grid-template-columns: repeat(4, 1fr); gap: 16px; } .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: #B4B4C2; 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(225,29,46,.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; }
}

/* ---------- 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: #55555F; }
input:hover { border-color: #44444f; }
input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, .22); background: #101017; }
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(225, 29, 46, .1); border: 1px solid rgba(225, 29, 46, .35); color: #ffb0b7; 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(--red), 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(--red-tint); color: #ff6b78; border-color: rgba(225,29,46,.3); }
.badge-live { background: var(--green-tint); color: var(--green); padding: 4px 8px; font-size: 11px; }

.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: #c4c4d0;
}
.type-chip[data-type="partner"] { background: var(--red-tint); color: #ff8a94; }
.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(225,29,46,.08); border: 1px solid rgba(225,29,46,.3);
}
.pl-confirm span { flex: 1 1 100%; font-size: 14px; font-weight: 600; color: #ffb0b7; }
.pl-confirm .btn { flex: 1; }
@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(225,29,46,.45); box-shadow: 0 0 0 3px rgba(225,29,46,.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: #ff6b78; }
.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: #0B0B0F; 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(--red); 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: #16A34A; box-shadow: 0 8px 24px -10px rgba(22,163,74,.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; }
  .blob, .grain { animation: none !important; }
  .rc-intro .rc-ring path { stroke-dashoffset: 0; animation: none; }
  .rc-intro .rc-play, .rc-intro .rc-word span { transform: none; animation: rc-fade 300ms ease forwards; }
  .enter, .scene.enter { transform: none; animation-name: rc-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; }
  .scr .st { transform: none; transition: opacity 400ms ease; }
  .tile, .tile.is-focus { transform: none; }
  .sync-ring { animation: rc-pulse 1600ms ease-in-out infinite alternate; }
  .sync-ring path { stroke-dasharray: none; }
  .scr-mac.is-on .tv-cred { animation: none; }
  .scr-sync.is-on .sync-bar i, .scene-dots i.is-on::after { transition: none; }
  .btn, .btn:active { transform: none; }
  .tab-ind { transition: none; }
  .faq summary::after { transition: none; }
  .faq details[open] .faq-a, .pl.is-new, .toast { animation: rc-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 rc-pulse { from { opacity: .55; } to { opacity: 1; } }
@keyframes rc-fade-from { from { opacity: 0; } }
