/* =========================================================
   Rojão AI Clipper — styles.css
   Dark-first. Tokens → base → components → sections → motion
   ========================================================= */

/* Fontes: veja css/fonts.css */

:root {
  /* surfaces */
  --bg: #08090C;
  --s1: #0E1016;
  --s2: #13161D;
  --s3: #1A1E27;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  /* text */
  --text: #EDEEF2;
  --muted: #9AA0AE;
  --dim: #6A7080;
  /* brand + product signal colors (from the app) */
  --red: #EE3B2B;
  --red-hi: #FF5B3F;
  --red-soft: rgba(238, 59, 43, .14);
  --spark: #FFB36B;
  --green: #3DD68C;
  --green-soft: rgba(61, 214, 140, .12);
  --violet: #8C6CF0;
  --blue: #3F8CF0;
  --cyan: #46E1F0;
  --amber: #E4B24C;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --header-h: 68px;

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.025em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd {
  font-family: var(--font-body);
  font-size: .78em;
  padding: .05em .45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--s3);
  color: var(--text);
}

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

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 80; height: 2px;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--spark));
  box-shadow: 0 0 16px rgba(238,59,43,.7);
}

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

section { position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: 90%; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn-xl { --h: 60px; padding: 0 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px rgba(238,59,43,.7);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--red-hi); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 40px -10px rgba(255,91,63,.8); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 12, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-sub { color: var(--muted); font-weight: 500; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav li a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.main-nav li a:hover, .main-nav li a.is-current { color: var(--text); background: rgba(255,255,255,.05); }
.nav-mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.link-login {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem;
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s;
}
.link-login:hover { background: rgba(255,255,255,.06); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 12px; cursor: pointer; position: relative; }
.burger, .burger::before, .burger::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger { top: 50%; transform: translate(-50%, -50%); }
.burger::before, .burger::after { content: ""; transform: translateX(-50%); }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translate(-50%, 6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translate(-50%, -6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    margin: 0; padding: 12px 20px 24px;
    background: rgba(10, 11, 15, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { font-size: 1.15rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); background: none !important; }
  .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .nav-mobile-actions .btn { --h: 50px; }
}
@media (max-width: 400px) { .brand-sub { display: none; } }

/* ---------------- Hero ---------------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 40% at var(--glow-x, 72%) var(--glow-y, 38%), rgba(238,59,43,.18), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(255,179,107,.05), transparent 70%);
  transition: background-position .2s linear;
}
.hero::before {
  /* subtle grid, evokes editor timeline */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 60% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 60% 30%, #000 10%, transparent 75%);
  opacity: .5;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: .88rem; color: var(--muted);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: pulse 2.2s ease-in-out infinite; }

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.6rem, 4.9vw, 4.6rem);
  font-stretch: 86%;
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; color: #C9CCD4; }
.is-loaded .hero-title .line > span { transform: none; }

.hero-sub { margin-top: 24px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--dim); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 20px;
  color: var(--muted); font-size: .83rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust li span {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid rgba(61,214,140,.28); border-radius: 50%;
  color: var(--green); background: var(--green-soft); font-size: .72rem; font-weight: 800;
}

.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-copy > .hero-title { opacity: 1; transform: none; }
.is-loaded .hero-copy > * { opacity: 1; transform: none; }
.is-loaded .hero-copy > .pill { transition-delay: .0s; }
.is-loaded .hero-copy > .hero-sub { transition-delay: .35s; }
.is-loaded .hero-copy > .hero-ctas { transition-delay: .45s; }
.is-loaded .hero-copy > .hero-note { transition-delay: .55s; }
.is-loaded .hero-copy > .hero-trust { transition-delay: .62s; }

.hero-visual { position: relative; perspective: 1600px; }
.hero-visual .app-window {
  opacity: 0; transform: translateY(30px) rotateX(8deg) scale(.97);
  transition: opacity 1s var(--ease) .25s, transform 1.2s var(--ease) .25s;
}
.is-loaded .hero-visual .app-window { opacity: 1; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }

/* ---------------- App window (mockup) ---------------- */
.app-window {
  position: relative;
  background: #0C0E13;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 40px 100px -30px rgba(0,0,0,.9),
    0 30px 120px -50px rgba(238,59,43,.45);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  transform-style: preserve-3d;
}
.app-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: #0A0B0F;
}
.app-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 10px; }
.app-name { font-weight: 600; }
.app-name em { font-style: normal; color: var(--dim); font-weight: 500; }
.app-tabs { display: flex; gap: 4px; margin-left: 8px; color: var(--muted); }
.app-tabs span { padding: 3px 8px; border-radius: 6px; }
.app-tabs .is-active { background: rgba(238,59,43,.14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(238,59,43,.35); }
.app-tabs b { font-weight: 600; font-size: 10px; padding: 0 5px; border-radius: 99px; background: var(--s3); margin-left: 3px; }
.app-tabs b.red { background: var(--red); color: #fff; }
.app-local { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; }
.app-local i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.app-projectbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.proj-name { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; }
.proj-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.proj-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-status { margin-left: auto; white-space: nowrap; color: var(--spark); }
.proj-status.done { color: var(--green); }

.app-progress { position: relative; height: 30px; border-bottom: 1px solid var(--line); overflow: hidden; transition: height .5s var(--ease), opacity .4s; }
.app-progress-bar { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, rgba(238,59,43,.05), rgba(238,59,43,.22)); border-right: 1px solid var(--red); transition: width .25s linear; }
.app-progress-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; align-items: center; text-align: center; color: var(--dim); font-size: 11px; }
.app-progress-steps span { transition: color .3s; }
.app-progress-steps span.on { color: var(--text); }
.app-progress-steps span.done { color: var(--muted); }
.app-progress.is-done { height: 0; opacity: 0; border-bottom-width: 0; }

.app-body { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); min-height: 380px; }
.cand-list { border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; counter-reset: c; }
.cand {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 8px; align-items: center;
  padding: 7px 8px; border-radius: 8px; border: 1px solid transparent;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s, border-color .3s;
}
.cand.in { opacity: 1; transform: none; }
.cand.sel { background: rgba(238,59,43,.08); border-color: rgba(238,59,43,.4); }
.cand-rank { grid-row: span 2; color: var(--dim); font-size: 10px; }
.cand-top { display: flex; align-items: baseline; gap: 6px; }
.cand-score { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.cand-time { color: var(--dim); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.cand-why { grid-column: 2; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  grid-row: span 2; align-self: center;
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted);
  transition: all .35s var(--ease-spring);
}
.status.ok { color: var(--green); border-color: rgba(61,214,140,.45); background: var(--green-soft); }
.status.no { color: #FF7A6B; border-color: rgba(238,59,43,.45); background: var(--red-soft); }

.cand-detail { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cand-detail-head { display: flex; align-items: center; justify-content: space-between; }
.score-badge { color: var(--muted); }
.score-badge b { color: var(--text); font-size: 18px; font-family: var(--font-display); margin-left: 4px; font-variant-numeric: tabular-nums; }
.player { position: relative; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.player img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.player-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #0A0B0F; }
.play-ic { width: 0; height: 0; border-left: 7px solid var(--text); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.player-track { flex: 1; height: 3px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.player-track i { display: block; height: 100%; width: 0; background: var(--red); }
.player-time { color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.meta-grid div { padding: 6px 8px; border-right: 1px solid var(--line); }
.meta-grid div:last-child { border-right: 0; }
.meta-grid dt { font-size: 9.5px; color: var(--dim); }
.meta-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tiny { display: block; font-size: 9.5px; color: var(--dim); margin-bottom: 4px; }
.transcript p { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02);
}
.chip-hot { color: #FF8A72; border-color: rgba(238,59,43,.5); background: var(--red-soft); }
.decision { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.btn-app { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; transition: all .3s var(--ease); }
.btn-app-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-app-red.pressed { background: var(--green); border-color: var(--green); color: #05140C; transform: scale(.96); }
.kbd-hints { margin-left: auto; color: var(--dim); font-size: 10px; display: flex; gap: 4px; align-items: center; }
.kbd-hints kbd { font-size: 9px; }

/* floating chips */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(20, 22, 29, .88); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.8);
  font-size: .86rem; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease-spring);
}
.float-chip.show { opacity: 1; transform: translateY(var(--fy, 0px)); }
.fc-num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.fc-1 { left: 28px; top: -24px; }
.fc-2 { right: 34px; bottom: -18px; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.float-short {
  position: absolute; z-index: 2; right: -34px; top: -34px; width: 118px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(16px) rotate(4deg);
  transition: opacity .8s var(--ease), transform .9s var(--ease-spring);
}
.float-short.show { opacity: 1; transform: translateY(var(--fy, 0px)) rotate(4deg); }
.float-short img { aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.fs-tag { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.65); padding: 2px 6px; border-radius: 5px; }

/* live band */
.live-band {
  position: relative; margin-top: clamp(56px, 7vw, 88px);
  padding: 18px 20px 14px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--s1), rgba(14,16,22,.4));
  opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .7s, transform 1s var(--ease) .7s;
}
.is-loaded .live-band { opacity: 1; transform: none; }
.live-band-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.live-dur { font-variant-numeric: tabular-nums; }
.live-wave { position: relative; height: 84px; }
.live-wave canvas { width: 100%; height: 100%; display: block; }
.scanhead {
  position: absolute; top: -6px; bottom: -6px; left: var(--scan, 0%); width: 2px;
  background: var(--red-hi); box-shadow: 0 0 18px 2px rgba(255,91,63,.7);
  border-radius: 2px;
}
.scanhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-hi); }
.spark {
  position: absolute; left: var(--x); top: -4px;
  transform: translate(-50%, -100%) scale(.6); opacity: 0;
  font-size: 10.5px; font-weight: 600; white-space: nowrap; color: var(--text);
  padding: 3px 8px; border-radius: 99px; background: var(--s3); border: 1px solid rgba(238,59,43,.5);
  transition: opacity .4s, transform .5s var(--ease-spring);
}
.spark::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 86px;
  background: linear-gradient(var(--red), transparent); transform: translateX(-50%);
}
.spark::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + 40px); width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-hi); transform: translate(-50%, -50%); box-shadow: 0 0 12px 3px rgba(255,91,63,.8);
}
.spark.lit { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.spark:nth-of-type(even) { top: 30px; }
.spark:nth-of-type(even)::after { height: 50px; top: 100%; }
.spark:nth-of-type(even)::before { top: calc(100% + 12px); }
.live-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: .75rem; color: var(--dim); font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 820px; }
  .float-short { right: -8px; }
}
@media (max-width: 700px) {
  .hero-title { font-stretch: 80%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .app-window { font-size: 11px; }
  .app-tabs span:not(.is-active), .proj-meta, .app-local { display: none; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .cand-list { border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .cand-list .cand:nth-child(n+4) { display: none; }
  .transcript, .meta-grid div:nth-child(4) { display: none; }
  .meta-grid { grid-template-columns: repeat(3, 1fr); }
  .meta-grid div:nth-child(3) { border-right: 0; }
  .kbd-hints { display: none; }
  .float-short { width: 78px; top: -24px; right: 4px; }
  .fc-1 { top: -18px; left: 8px; font-size: .78rem; padding: 8px 10px; }
  .fc-2 { right: 10px; bottom: -14px; font-size: .78rem; padding: 8px 10px; }
  .spark { font-size: 0; padding: 0; border: 0; background: none; }
  .live-band { padding: 14px 12px 10px; }
}

/* ---------------- For whom marquee ---------------- */
.for-whom { border-block: 1px solid var(--line); background: var(--s1); }
.for-whom-inner { display: flex; align-items: center; gap: 28px; padding-block: 22px; overflow: hidden; }
.for-whom p { flex: none; color: var(--muted); font-size: .95rem; }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 36px; white-space: nowrap; width: max-content; }
.marquee li { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; font-stretch: 88%; color: #D6D8DE; flex: none; display: flex; align-items: center; gap: 36px; }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.marquee-track.is-running { animation: marquee var(--marquee-dur, 30s) linear infinite; }
.for-whom:hover .marquee-track { animation-play-state: paused; }
@media (max-width: 700px) {
  .for-whom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
}

/* ---------------- Story (scroll narrative) ---------------- */
.story { padding-block: clamp(96px, 12vw, 160px) clamp(40px, 6vw, 80px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.story-stage { position: sticky; top: calc(var(--header-h) + 40px); height: min(560px, calc(100vh - var(--header-h) - 80px)); align-self: start; }
.stage-window {
  position: relative; height: 100%;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 50% 0%, #151821, #0B0D11 70%);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}
.stage-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.stage-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); }
.stage-bar em { font-style: normal; margin-left: 10px; transition: opacity .3s; }
.stage-scene {
  position: absolute; inset: 46px 0 0; padding: clamp(18px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985);
  transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .55s;
}
.stage-window[data-stage="1"] .scene-1,
.stage-window[data-stage="2"] .scene-2,
.stage-window[data-stage="3"] .scene-3,
.stage-window[data-stage="4"] .scene-4,
.stage-window[data-stage="5"] .scene-5 { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease) .1s, transform .7s var(--ease) .1s; }

/* scene 1 */
.np-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.np-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: var(--s1); display: flex; flex-direction: column; gap: 6px; }
.np-card small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.np-card strong { font-size: .98rem; }
.np-active { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.np-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-bottom: 8px; }
.np-bars i { flex: 1; background: #3A3F4B; border-radius: 3px; height: 45%; }
.np-bars i:nth-child(2) { height: 60%; }
.np-bars i.r { background: var(--red); height: 100%; }
.np-bars.v i { background: #4A3E78; height: 70%; }
.np-bars.v i:nth-child(2) { flex: 2; background: #3E4866; }
.np-bars.v i.r { background: var(--red); }
.drop-file {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.02);
  font-size: .9rem;
}
.drop-file small { display: block; color: var(--muted); font-size: .8rem; }
.file-ic { width: 34px; height: 40px; border-radius: 6px; background: linear-gradient(180deg, #2A2F3B, #1C2029); position: relative; flex: none; }
.file-ic::after { content: ""; position: absolute; left: 11px; top: 13px; border-left: 12px solid var(--red); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.file-ok { margin-left: auto; color: var(--green); font-size: .8rem; font-weight: 600; }
.stage-window[data-stage="1"] .drop-file { animation: drop-in .9s var(--ease-spring) .35s both; }

/* scene 2 */
.lanes { position: relative; display: flex; flex-direction: column; gap: 12px; }
.lane { position: relative; height: 34px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line); }
.lane span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); z-index: 1; }
.lane i {
  position: absolute; top: 6px; bottom: 6px; left: calc(var(--l) + 60px); width: var(--w);
  border-radius: 4px; background: rgba(238,59,43,.3); border: 1px solid rgba(255,91,63,.7);
  transform: scaleX(0); transform-origin: left;
}
.stage-window[data-stage="2"] .lane i { animation: grow-x .6s var(--ease) both; animation-delay: calc(var(--l) * 0.028s + .3s); }
.lane-scan { position: absolute; top: -8px; bottom: -8px; width: 2px; left: 60px; background: var(--red-hi); box-shadow: 0 0 16px rgba(255,91,63,.8); }
.stage-window[data-stage="2"] .lane-scan { animation: lane-scan 3.2s var(--ease) .2s both; }
.analysis-foot { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.analysis-count { margin-left: auto; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--s3); border-top-color: var(--red-hi); animation: spin .9s linear infinite; }

/* scene 3 */
.mini-cands { display: flex; flex-direction: column; gap: 10px; }
.mini-cand {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s1);
  font-variant-numeric: tabular-nums;
}
.mini-cand b { font-family: var(--font-display); font-size: 1.5rem; }
.mini-cand span { font-weight: 600; font-size: .95rem; }
.mini-cand small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.mini-cand em { font-style: normal; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.stage-window[data-stage="3"] .mini-cand { animation: slide-in .6s var(--ease) both; }
.stage-window[data-stage="3"] .mini-cand:nth-child(2) { animation-delay: .1s; }
.stage-window[data-stage="3"] .mini-cand:nth-child(3) { animation-delay: .2s; }
.stage-window[data-stage="3"] .mini-cand:nth-child(4) { animation-delay: .3s; }
.stage-window[data-stage="3"] .mini-cand.ok em { animation: to-ok .4s var(--ease-spring) 1s both; }
.stage-window[data-stage="3"] .mini-cand.ok:nth-child(3) em { animation-delay: 1.5s; }
.stage-window[data-stage="3"] .mini-cand.no em { animation: to-no .4s var(--ease-spring) 1.25s both; }
.stage-window[data-stage="3"] .mini-cand.no { animation: slide-in .6s var(--ease) .1s both, fade-dim .4s ease 1.3s forwards; }

/* scene 4 */
.mini-editor { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.me-phone { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.me-phone img { aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.me-tracks { position: relative; display: flex; flex-direction: column; gap: 8px; }
.me-track { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted); }
.me-track i { display: block; height: 22px; border-radius: 5px; width: var(--w, 88%); transform-origin: left; }
.t-green { background: #1F5E3B; border: 1px solid #2E8A57; }
.t-blue { background: #1E4466; border: 1px solid #2F6BA0; }
.t-caps { background: repeating-linear-gradient(90deg, #6B5620 0 22px, transparent 22px 30px); border-radius: 3px; width: 80% !important; }
.t-wave { background: repeating-linear-gradient(90deg, #3A3F4B 0 2px, transparent 2px 4px); height: 18px !important; }
.t-empty { border: 1px dashed var(--line-2); width: 30% !important; }
.me-playhead { position: absolute; top: -6px; bottom: -6px; left: 84px; width: 2px; background: var(--red-hi); box-shadow: 0 0 12px rgba(255,91,63,.8); }
.stage-window[data-stage="4"] .me-track i { animation: grow-x .7s var(--ease) both; }
.stage-window[data-stage="4"] .me-track:nth-child(2) i { animation-delay: .08s; }
.stage-window[data-stage="4"] .me-track:nth-child(3) i { animation-delay: .16s; }
.stage-window[data-stage="4"] .me-track:nth-child(4) i { animation-delay: .24s; }
.stage-window[data-stage="4"] .me-playhead { animation: playhead 4s linear .6s infinite; }

/* scene 5 */
.publish { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.pub-phone { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
.pub-phone img { aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.pub-list { display: flex; flex-direction: column; gap: 10px; }
.pub-list li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--s1); font-size: .9rem; font-weight: 500;
}
.pub-list em { margin-left: auto; font-style: normal; font-size: .76rem; font-weight: 600; color: var(--dim); }
.pf { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pf-yt { background: #FF3B30; }
.pf-ig { background: linear-gradient(135deg, #F9CE34, #EE2A7B, #6228D7); }
.pf-tt { background: linear-gradient(135deg, #25F4EE, #FE2C55); }
.pf-file { background: var(--muted); }
.stage-window[data-stage="5"] .pub-list li { animation: slide-in .5s var(--ease) both; }
.stage-window[data-stage="5"] .pub-list li:nth-child(2) { animation-delay: .15s; }
.stage-window[data-stage="5"] .pub-list li:nth-child(3) { animation-delay: .3s; }
.stage-window[data-stage="5"] .pub-list li:nth-child(4) { animation-delay: .45s; }
.stage-window[data-stage="5"] .pub-list em { animation: to-published .4s var(--ease-spring) both; animation-delay: 1.1s; }
.stage-window[data-stage="5"] .pub-list li:nth-child(2) em { animation-delay: 1.35s; }
.stage-window[data-stage="5"] .pub-list li:nth-child(3) em { animation-delay: 1.6s; }
.stage-window[data-stage="5"] .pub-list li:nth-child(4) em { animation-delay: 1.85s; }

/* steps */
.story-steps { counter-reset: s; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .28; transition: opacity .5s var(--ease); }
.step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 120px; }
.step:last-child { min-height: 64vh; }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--red-hi); display: flex; align-items: center; gap: 12px; }
.step-n::after { content: ""; height: 1px; width: 40px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.step.is-active .step-n::after { transform: none; }
.step h3 { margin-top: 14px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-stretch: 90%; }
.step p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 40ch; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 10px); height: min(360px, 48vh); z-index: 2; }
  .stage-window { box-shadow: 0 30px 40px -10px var(--bg), 0 0 0 1px var(--line-2); }
  .stage-scene { inset: 40px 0 0; padding: 16px; gap: 14px; }
  .stage-bar { padding: 10px 14px; }
  .step, .step:first-child, .step:last-child { min-height: 56vh; padding-top: 24px; justify-content: center; }
  .step:first-child { padding-top: 48px; }
  .np-card small { display: none; }
  .np-bars { height: 28px; }
  .mini-cand { padding: 8px 10px; gap: 10px; grid-template-columns: 40px 1fr auto; }
  .mini-cand b { font-size: 1.15rem; }
  .mini-cand:nth-child(4) { display: none; }
  .mini-editor { grid-template-columns: 90px 1fr; gap: 12px; }
  .me-track { grid-template-columns: 58px 1fr; font-size: .68rem; }
  .me-track i { height: 16px; }
  .me-playhead { left: 68px; }
  .publish { grid-template-columns: 100px 1fr; gap: 14px; }
  .pub-list li { padding: 8px 10px; font-size: .8rem; }
  .lane { height: 28px; }
  .lanes { gap: 8px; }
}

/* ---------------- Candidates widget ---------------- */
.cands-section { padding-block: clamp(80px, 10vw, 140px); background: linear-gradient(180deg, transparent, var(--s1) 30%, var(--s1) 70%, transparent); }
.cands-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cands-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-stretch: 90%; }
.cands-copy .lead { margin-top: 20px; font-size: 1.2rem; color: var(--text); }
.cands-copy p:not(.lead):not(.motto) { margin-top: 12px; color: var(--muted); }
.signal-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: .95rem; }
.signal-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.signal-list .chip { font-size: .8rem; padding: 4px 10px; }
.motto { margin-top: 32px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }

.review-widget {
  border-radius: var(--r-xl); border: 1px solid var(--line-2); background: #0C0E13;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
  overflow: hidden;
}
.rw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rw-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.rw-tabs button {
  border: 1px solid transparent; background: none; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; font-size: .86rem; color: var(--muted);
  transition: all .2s;
}
.rw-tabs button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.rw-tabs button.is-active { color: var(--text); background: var(--s3); border-color: var(--line-2); }
.rw-tabs b { font-weight: 600; font-size: .78rem; color: var(--dim); margin-left: 4px; font-variant-numeric: tabular-nums; display: inline-block; }
.rw-tabs b.bump { animation: bump .4s var(--ease-spring); }
.rw-sort { font-size: .82rem; color: var(--dim); }
.rw-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 420px; }
.rw-item {
  display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--s1);
  transition: border-color .3s, background-color .3s, opacity .35s, transform .35s var(--ease);
}
.rw-item:hover { border-color: var(--line-2); }
.rw-item[data-status="aprovado"] { border-color: rgba(61,214,140,.4); background: linear-gradient(90deg, rgba(61,214,140,.07), var(--s1) 50%); }
.rw-item[data-status="rejeitado"] { opacity: .5; }
.rw-item.leaving { opacity: 0; transform: translateX(16px); }
.rw-item.entering { animation: slide-in .4s var(--ease) both; }
.rw-thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.rw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rw-thumb span { position: absolute; right: 4px; bottom: 4px; font-size: .68rem; font-weight: 600; background: rgba(0,0,0,.75); padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.rw-info { min-width: 0; }
.rw-top { display: flex; align-items: center; gap: 10px; }
.rw-score { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rw-meter { width: 56px; height: 4px; background: var(--s3); border-radius: 4px; overflow: hidden; }
.rw-meter i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--red), var(--spark)); border-radius: 4px; transform-origin: left; }
.rw-ts { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rw-quote { margin-top: 3px; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-item .chips { margin-top: 6px; }
.rw-actions { display: flex; gap: 6px; align-items: center; }
.rw-actions button {
  height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: all .25s var(--ease);
}
.rw-actions svg { width: 14px; height: 14px; }
.rw-actions .ok:hover, .rw-actions .ok[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04140B; }
.rw-actions .no:hover, .rw-actions .no[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.rw-actions button:active { transform: scale(.94); }
.rw-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.rw-empty button { margin-top: 12px; }
.rw-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--dim); }

@media (max-width: 1000px) {
  .cands-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rw-item { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .rw-actions { grid-column: 1 / -1; }
  .rw-actions button { flex: 1; justify-content: center; height: 40px; }
  .rw-item .chips .chip:nth-child(n+3) { display: none; }
  .rw-sort { display: none; }
  .rw-list { min-height: 0; }
}

/* ---------------- Editor ---------------- */
.editor-section { padding-block: clamp(80px, 10vw, 140px); }
.editor-shot { margin: 0; perspective: 2000px; }
.shot-window { border-radius: var(--r-lg); transform: rotateX(var(--shot-rx, 14deg)) scale(var(--shot-s, .94)); transform-origin: 50% 100%; transition: transform .1s linear; }
.shot-window img { width: 100%; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 0; background: rgba(238,59,43,.25); cursor: pointer; padding: 0;
  display: grid; place-items: center;
  transition: transform .3s var(--ease-spring), background-color .3s;
}
.hotspot span { width: 12px; height: 12px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red-hi); animation: ring 2s ease-out infinite; }
.hotspot:hover, .hotspot.is-active { transform: scale(1.25); background: rgba(238,59,43,.45); }
.hotspot.is-active::after { animation-duration: 1.2s; }

.editor-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ef {
  text-align: left; border: 0; cursor: pointer; background: var(--bg); padding: 22px;
  display: flex; flex-direction: column; gap: 8px; position: relative;
  transition: background-color .3s;
}
.ef::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ef strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.ef span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.ef:hover { background: var(--s1); }
.ef.is-active { background: var(--s1); }
.ef.is-active::before { transform: none; }

.feed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(64px, 8vw, 110px); }
.phone-card { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone {
  width: min(100%, 240px); border-radius: 26px; padding: 7px; background: #15171D;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transition: transform .6s var(--ease);
}
.phone img { border-radius: 20px; aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.phone-card:nth-child(2) .phone { transform: translateY(-28px); }
.phone-card:hover .phone { transform: translateY(-8px) rotate(-1deg); }
.phone-card:nth-child(2):hover .phone { transform: translateY(-36px) rotate(1deg); }
.phone-card figcaption { margin-top: 22px; color: var(--muted); font-size: .95rem; max-width: 30ch; }
.phone-card figcaption strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .editor-features { grid-template-columns: 1fr 1fr; }
  .hotspot { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .hotspot span { width: 8px; height: 8px; }
}
@media (max-width: 600px) {
  .editor-shot { margin-inline: calc(clamp(20px, 4vw, 40px) * -1); padding: 0 20px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .shot-window { width: 680px; transform: none !important; }
  .editor-shot::after { content: "Arraste para ver o editor inteiro"; display: block; margin-top: 10px; font-size: .82rem; color: var(--dim); position: sticky; left: 0; }
  .signal-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .editor-features { grid-template-columns: 1fr; }
  .feed-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(clamp(20px, 4vw, 40px) * -1); padding: 40px clamp(20px, 4vw, 40px) 8px;
    scrollbar-width: none;
  }
  .feed-row::-webkit-scrollbar { display: none; }
  .phone-card { flex: 0 0 72%; scroll-snap-align: center; }
  .phone-card:nth-child(2) .phone { transform: none; }
}

/* ---------------- Benefits ---------------- */
.benefits { padding-block: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.benefit-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.benefit { padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.benefit::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.benefit.is-in::before { transform: scaleX(.35); }
.benefit h3 { font-size: 1.4rem; font-stretch: 92%; margin-top: 18px; }
.benefit p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.bviz { height: 44px; position: relative; display: flex; align-items: flex-end; gap: 5px; }
/* fast-forward: progress racing */
.bviz-fast { align-items: center; }
.bviz-fast::before { content: ""; position: absolute; inset: 20px 0; background: var(--s3); border-radius: 4px; }
.bviz-fast i { position: relative; height: 4px; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--spark)); transform-origin: left; transform: scaleX(0); }
.is-in .bviz-fast i { animation: fast-fill 2.4s var(--ease) infinite; }
/* rank bars */
.bviz-rank i { width: 18px; background: var(--s3); border-radius: 4px 4px 2px 2px; height: 30%; transition: height .8s var(--ease), background-color .6s; }
.is-in .bviz-rank i:nth-child(1) { height: 100%; background: var(--red); transition-delay: .1s; }
.is-in .bviz-rank i:nth-child(2) { height: 78%; background: #B8352A; transition-delay: .2s; }
.is-in .bviz-rank i:nth-child(3) { height: 56%; transition-delay: .3s; }
.is-in .bviz-rank i:nth-child(4) { height: 34%; transition-delay: .4s; }
/* control toggle */
.bviz-ctrl { align-items: center; }
.bviz-ctrl::before { content: ""; width: 64px; height: 32px; border-radius: 99px; background: var(--s3); border: 1px solid var(--line-2); transition: background-color .5s; }
.bviz-ctrl i { position: absolute; left: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--text); transition: transform .5s var(--ease-spring); }
.is-in .bviz-ctrl i { animation: toggle 3.2s var(--ease-spring) infinite; }
.is-in .bviz-ctrl::before { animation: toggle-bg 3.2s ease infinite; }
/* multiply */
.bviz-more { gap: 8px; align-items: center; }
.bviz-more i { width: 22px; height: 38px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--s2); transform: scale(0); }
.bviz-more i:first-child { transform: scale(1); background: var(--s3); }
.is-in .bviz-more i:nth-child(2) { animation: pop 3s var(--ease-spring) .3s infinite; }
.is-in .bviz-more i:nth-child(3) { animation: pop 3s var(--ease-spring) .5s infinite; }
.bviz-more i:not(:first-child) { background: rgba(238,59,43,.25); border-color: rgba(238,59,43,.6); }
.local-note { margin-top: 56px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .98rem; }
.local-ic { width: 28px; height: 20px; border: 1.5px solid var(--muted); border-radius: 3px; position: relative; flex: none; }
.local-ic::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 1.5px; background: var(--muted); transform: translateX(-50%); }

@media (max-width: 900px) { .benefit-list { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 520px) { .benefit-list { grid-template-columns: 1fr; } }

/* ---------------- Compare ---------------- */
.compare { padding-block: clamp(80px, 10vw, 140px); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.flow { border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: var(--s1); }
.flow h3 { font-size: 1.35rem; margin-bottom: 24px; }
.flow-before h3 { color: var(--muted); }
.flow-after { border-color: rgba(238,59,43,.35); background: radial-gradient(100% 60% at 50% 0%, rgba(238,59,43,.09), var(--s1) 70%); }
.flow ol { position: relative; display: flex; flex-direction: column; gap: 10px; }
.flow ol::before {
  content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--line-2);
}
.flow-after ol::after {
  content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s;
}
.compare-grid.is-in .flow-after ol::after { transform: none; }
.flow li {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px 11px 44px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.compare-grid.is-in .flow li { opacity: 1; transform: none; }
.flow li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--dim); }
.flow li em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--dim); padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line-2); }
.flow-before li em { color: #B7BBC6; }
.flow-after li.auto { background: rgba(238,59,43,.1); border-color: rgba(238,59,43,.4); }
.flow-after li.auto::before { background: var(--red-hi); border-color: var(--red-hi); box-shadow: 0 0 10px rgba(255,91,63,.8); }
.flow-after li.auto em { color: #fff; background: var(--red); border-color: var(--red); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------------- Pricing ---------------- */
.pricing { padding-block: clamp(80px, 10vw, 140px); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; border-radius: var(--r-xl); padding: clamp(26px, 3.5vw, 40px);
  background: var(--s1); border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.price .cur { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.price .amt { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; font-stretch: 85%; }
.price .per { color: var(--muted); font-size: 1.05rem; }
.price-eq { margin-top: 10px; font-weight: 500; }
.price-save { margin-top: 6px; color: var(--dim); font-size: .9rem; flex: 1; margin-bottom: 28px; }
.plan-featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(238,59,43,.18), transparent 55%),
    linear-gradient(180deg, #171A22, #10121A);
  border-color: rgba(238,59,43,.55);
  box-shadow: 0 0 0 4px rgba(238,59,43,.06), 0 40px 100px -40px rgba(238,59,43,.45);
}
.plan-featured h3 { color: var(--text); }
.plan-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  background: var(--red); color: #fff;
}
.included { max-width: 1180px; margin: 40px auto 0; padding: 28px clamp(22px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line); }
.included h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
.included ul { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.included li { display: flex; gap: 12px; color: var(--muted); font-size: .96rem; }
.included li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%233DD68C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: 1fr; }
  .plan-badge { top: 16px; right: 16px; }
}

/* ---------------- FAQ ---------------- */
.faq { padding-block: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.faq h2 { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 90%; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-size: 1.12rem; font-weight: 600;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text), var(--text)) center/10px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center/1.5px 10px no-repeat;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s;
}
.faq summary:hover::after { border-color: rgba(255,255,255,.3); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--red); border-color: var(--red); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 4px 24px; color: var(--muted); max-width: 64ch; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------------- Final CTA ---------------- */
.final-cta { padding-block: clamp(80px, 10vw, 150px); overflow: hidden; }
.final-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-wave { position: relative; width: 100%; max-width: 760px; height: 96px; margin-bottom: 36px; opacity: .85; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.final-wave canvas { width: 100%; height: 100%; }
.final-inner h2 { position: relative; font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-stretch: 84%; letter-spacing: -.04em; max-width: 18ch; line-height: 1; text-shadow: 0 0 40px var(--bg), 0 0 20px var(--bg); }
.final-inner .btn { margin-top: 40px; position: relative; }
.final-inner p { margin-top: 16px; color: var(--muted); position: relative; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--s1); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 32ch; font-size: .95rem; }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-nav h2 { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: var(--dim); letter-spacing: 0; margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-nav .whatsapp-link { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; font-size: .86rem; color: var(--dim); }

.whatsapp-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 7px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: #1FAD61; color: #fff;
  box-shadow: 0 14px 40px -12px rgba(31,173,97,.8), 0 8px 24px rgba(0,0,0,.35);
  text-decoration: none; font-size: .9rem; transition: transform .25s var(--ease), background-color .2s;
}
.whatsapp-fab:hover { transform: translateY(-3px); background: #25C76E; }
.whatsapp-fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.whatsapp-fab span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.16); font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.whatsapp-fab strong { font-weight: 700; }
@media (max-width: 520px) {
  .whatsapp-fab { min-height: 46px; padding-right: 12px; }
  .whatsapp-fab strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Keyframes ---------------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--red-soft); } 50% { box-shadow: 0 0 0 8px rgba(238,59,43,.04); } }
@keyframes marquee { to { transform: translateX(var(--marquee-shift, -50%)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lane-scan { from { left: 60px; } to { left: calc(100% - 2px); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes to-ok { to { color: var(--green); border-color: rgba(61,214,140,.5); background: var(--green-soft); } }
@keyframes to-no { to { color: #FF7A6B; border-color: rgba(238,59,43,.5); background: var(--red-soft); } }
@keyframes fade-dim { to { opacity: .45; } }
@keyframes to-published { to { color: var(--green); } }
@keyframes playhead { from { left: 84px; } to { left: 100%; } }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.35); color: var(--text); } }
@keyframes fast-fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } 100% { opacity: 0; } }
@keyframes toggle { 0%, 35% { transform: translateX(0); } 50%, 85% { transform: translateX(32px); } 100% { transform: translateX(0); } }
@keyframes toggle-bg { 0%, 35% { background: var(--s3); } 50%, 85% { background: var(--green); } 100% { background: var(--s3); } }
@keyframes pop { 0% { transform: scale(0); } 20%, 80% { transform: scale(1); } 100% { transform: scale(0); } }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-title .line > span, .hero-copy > *, .hero-visual .app-window, .live-band, .reveal, .flow li { opacity: 1 !important; transform: none !important; }
  .scroll-progress span { transition: none !important; }
  .spark { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  .shot-window { transform: none !important; }
  .marquee-track { flex-wrap: wrap; white-space: normal; row-gap: 8px; width: auto; }
}

/* =========================================================
   Auth page (entrar.html)
   ========================================================= */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-panel { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px); gap: 32px; }
.auth-box { flex: 1; display: flex; align-items: center; }
.auth-form { width: 100%; max-width: 400px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.auth-form.enter { animation: slide-in .5s var(--ease) both; }
.auth-form h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-stretch: 88%; }
.auth-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: -4px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.025); font-size: .78rem; font-weight: 600;
}
.auth-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(228,178,76,.1); }
.auth-lead { color: var(--muted); margin-top: -8px; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .92rem; font-weight: 600; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-row a, .auth-switch a, .auth-legal a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); font-size: .9rem; }
.field-row a:hover, .auth-switch a:hover, .auth-legal a:hover { text-decoration-color: var(--red-hi); }
.field input {
  height: 50px; width: 100%; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--s1); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover { border-color: rgba(255,255,255,.2); }
.field input:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 4px var(--red-soft); background: var(--s2); }
.field input[aria-invalid="true"] { border-color: #FF6B5B; }
.field-hint { font-size: .84rem; color: var(--dim); }
.field-err { font-size: .86rem; color: #FF8A7A; }
.pw { position: relative; }
.pw input { padding-right: 90px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn.is-loading { opacity: .75; pointer-events: none; }
.form-msg { font-size: .92rem; min-height: 1.2em; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: #FF8A7A; }
.form-msg.is-info { color: var(--muted); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s1); }
.auth-switch { color: var(--muted); font-size: .95rem; text-align: center; }
.auth-legal { color: var(--dim); font-size: .82rem; max-width: 400px; margin-inline: auto; text-align: center; }
.auth-legal a { font-size: inherit; color: var(--muted); }

.auth-art { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: radial-gradient(80% 60% at 70% 30%, rgba(238,59,43,.18), transparent 70%), var(--s1); }
.auth-art-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 48px 56px; }
.auth-shot { width: 150%; max-width: none; transform: perspective(1600px) rotateY(-10deg) rotateX(4deg); transform-origin: left center; animation: drop-in 1.2s var(--ease) both; }
.auth-chip { position: absolute; left: 40px; bottom: 30%; }
.auth-quote { margin-top: 48px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
