/* =====================================================================
   Navalha — design system
   ===================================================================== */
:root {
  --bg: #0B0B0B;
  --bg-2: #0F0F0F;
  --panel: #141414;
  --panel-2: #1B1B1B;
  --panel-3: #242424;
  --line: #262626;
  --line-2: #333333;
  --text: #F2EEE6;
  --text-2: #B8B3AA;
  --text-3: #7D7972;
  --accent: #FF3B2F;
  --accent-hover: #FF5246;
  --accent-soft: rgba(255, 59, 47, .12);
  --ok: #34C77B;
  --c-open: #9B8CFF;
  --c-cut: #5B5B66;
  --c-det: #3BA7F5;
  --c-laugh: #F5B83D;
  --c-res: #34C77B;
  --c-text: #E879F9;
  --c-img: #22D3EE;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, canvas, video { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 5px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); color: var(--text); background: var(--panel-2);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.secondary { background: var(--panel-2); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--panel-3); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 5px; }
.btn.block { width: 100%; }
.btn [data-lucide], .btn .lucide { width: 17px; height: 17px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: transparent; border: 0; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 14px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 4px; }
.seg-ctrl { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-ctrl button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.seg-ctrl button:hover { color: var(--text); }
.seg-ctrl button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--panel-3); border-radius: 99px; transition: background .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:disabled + i { opacity: .4; cursor: not-allowed; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.wordmark { position: relative; display: inline-block; font: 900 21px/1 var(--font-display); font-stretch: 72%; letter-spacing: .01em; text-transform: uppercase; color: transparent; padding-top: 1px; }
.wordmark::before, .wordmark::after { content: attr(data-text); position: absolute; inset: 1px 0 0 0; color: var(--text); }
/* o "corte" da navalha: a metade de cima desliza um pouco ao longo de uma diagonal */
.wordmark::before { clip-path: polygon(0 0, 100% 0, 100% 34%, 0 70%); transform: translate(.07em, -.04em); }
.wordmark::after { clip-path: polygon(0 74%, 100% 38%, 100% 100%, 0 100%); }
.beta { font: 500 9.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 3px 5px 2px; margin-left: -2px; }
.brand.small .brand-mark { width: 22px; height: 22px; }
.brand.small .wordmark { font-size: 17px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow.ok { color: var(--ok); }
.eyebrow.ok::before, .eyebrow.plain::before { display: none; }
.eyebrow [data-lucide], .eyebrow .lucide { width: 15px; height: 15px; }

/* grão de película nas páginas públicas */
.grain { position: relative; isolation: isolate; overflow-x: clip; }
.grain::after { content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain::after { animation: none; } .ticker-track { animation: none !important; } }

/* =====================================================================
   LANDING
   ===================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 800px; }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }

.landing h1, .landing h2, .login h1 { font-family: var(--font-display); font-stretch: 72%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: .9; }
.landing .btn.lg { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; font-size: 14px; }

.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-size: clamp(76px, 10.5vw, 152px); margin: 22px 0 28px; }
.hero h1 .cut { position: relative; display: inline-block; color: var(--accent); }
.hero h1 .cut::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .06em; background: var(--bg); transform: rotate(-8deg); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.lead { font-size: 18px; color: var(--text-2); max-width: 520px; }
.lead.small { font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 28px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-3); font: 500 12px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points [data-lucide], .hero-points .lucide { width: 14px; height: 14px; color: var(--accent); }

/* telemóvel do hero */
.hero-visual { position: relative; display: flex; justify-content: center; padding-top: 10px; }
.hero-visual::before { content: "9:16"; position: absolute; left: -40px; top: -20px; font: 900 180px/1 var(--font-display); font-stretch: 72%; color: transparent; -webkit-text-stroke: 1px var(--line-2); z-index: 0; }
.mock-window { position: relative; z-index: 1; width: 340px; }
.mock-bar { display: none; }
.mock-body { position: relative; display: block; }
.mock-phone { width: 300px; margin: 0 auto; aspect-ratio: 9/16; border-radius: 34px; padding: 9px; background: #050505; border: 1px solid #2a2a2a; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 6px #121212; transform: rotate(-3deg); }
.mock-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #111; }
.mock-scene { position: absolute; inset: 0; transition: background .12s; }
.mock-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 20%, transparent 40%, rgba(0,0,0,.6)); }
.mock-shot-ico { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); color: rgba(255,255,255,.9); }
.mock-shot-ico [data-lucide], .mock-shot-ico .lucide { width: 56px; height: 56px; stroke-width: 1.3; }
.mock-tag { position: absolute; left: 12px; top: 14px; display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 4px; background: rgba(0,0,0,.66); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--c-res); } .dot.d { background: var(--c-det); } .dot.l { background: var(--c-laugh); } .dot.o { background: var(--c-open); } .dot.c { background: var(--c-cut); }
/* autocolantes à volta do telemóvel */
.mock-side { position: absolute; inset: 0; pointer-events: none; }
.mock-stat { position: absolute; display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; background: var(--text); color: #0B0B0B; border-radius: 3px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.8); }
.mock-stat small { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.mock-stat b { font: 900 26px/1 var(--font-display); font-stretch: 72%; }
.mock-stat:nth-child(1) { left: -12px; top: 70px; transform: rotate(-6deg); background: var(--accent); color: #fff; }
.mock-stat:nth-child(2) { right: -18px; top: 190px; transform: rotate(5deg); }
.mock-stat:nth-child(3) { left: -26px; top: 330px; transform: rotate(4deg); background: var(--c-laugh); }
.mock-stat:nth-child(4) { right: -10px; top: 430px; transform: rotate(-4deg); }
.mock-timeline { position: relative; z-index: 2; margin: -96px -24px 0; padding: 10px 12px 12px; background: rgba(18,18,18,.94); border: 1px solid var(--line-2); border-radius: 6px; backdrop-filter: blur(6px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); }
.mock-ruler { height: 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 20px); margin-bottom: 7px; opacity: .8; }
.mock-clips { display: flex; gap: 2px; height: 28px; }
.mock-clips span { border-radius: 3px; position: relative; overflow: hidden; }
.mock-clips span::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 18px); }
.c-open { background: color-mix(in srgb, var(--c-open) 60%, #222); }
.c-cut { background: #3a3a3a; }
.c-det { background: color-mix(in srgb, var(--c-det) 60%, #222); }
.c-laugh { background: color-mix(in srgb, var(--c-laugh) 60%, #222); }
.c-res { background: color-mix(in srgb, var(--c-res) 60%, #222); }
.mock-wave { position: relative; height: 28px; margin-top: 5px; background: var(--accent-soft); border-radius: 3px; }
.mock-wave svg { width: 100%; height: 100%; }
.mock-wave path { fill: rgba(255,59,47,.6); }
.mock-beats { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 25px); }
.mock-head { position: absolute; top: 6px; bottom: 8px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }

/* faixa a correr */
.ticker { background: var(--accent); color: #0B0B0B; overflow: hidden; border-top: 1px solid #000; border-bottom: 1px solid #000; transform: rotate(-1.2deg); margin: -6px -20px 0; position: relative; z-index: 3; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 11px; font: 900 26px/1 var(--font-display); font-stretch: 72%; text-transform: uppercase; white-space: nowrap; }
.ticker-track svg { width: 22px; height: 22px; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .split h2 { font-size: clamp(44px, 6vw, 84px); margin: 16px 0 18px; }
.section-head h2 em, .split h2 em, .cta-inner h2 em { font-style: normal; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.step { padding: 34px 32px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 32px; }
.step:last-child { border-right: 0; }
.step-n { display: block; font: 900 120px/.8 var(--font-display); font-stretch: 72%; color: transparent; -webkit-text-stroke: 1.5px var(--text-3); }
.step:hover .step-n { -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 22px; margin: 26px 0 10px; text-transform: uppercase; font-stretch: 85%; font-weight: 800; letter-spacing: .01em; }
.step p { color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.feature { padding: 32px 30px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; position: relative; }
.feature:hover { background: var(--panel); }
.feature > [data-lucide], .feature > .lucide { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.6; }
.feature h3 { font-size: 19px; margin: 26px 0 8px; text-transform: uppercase; font-stretch: 85%; font-weight: 800; letter-spacing: .01em; }
.feature p { color: var(--text-2); font-size: 14.5px; }
.feature .f-n { position: absolute; top: 30px; right: 26px; font: 500 11px var(--font-mono); color: var(--text-3); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; color: var(--text-2); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks [data-lucide], .ticks .lucide { color: var(--accent); }
.spec-card { background: var(--text); color: #0B0B0B; border-radius: 4px; padding: 26px 28px 14px; transform: rotate(1.5deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.spec-card::before { content: "Ficha técnica"; display: block; font: 900 34px/1 var(--font-display); font-stretch: 72%; text-transform: uppercase; padding-bottom: 14px; border-bottom: 3px solid #0B0B0B; }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed rgba(0,0,0,.25); gap: 16px; font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { font: 500 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: #555; padding-top: 2px; }
.spec-row b { font-weight: 700; text-align: right; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 34px; display: flex; flex-direction: column; }
.plan.featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan.featured li, .plan.featured .price span { color: rgba(255,255,255,.88); }
.plan.featured li [data-lucide], .plan.featured li .lucide { color: #fff; }
.plan.featured .btn.primary { background: #0B0B0B; color: #fff; }
.plan.featured .btn.primary:hover { background: #222; }
.plan-badge { position: absolute; top: 22px; right: 22px; font: 500 11px var(--font-mono); padding: 5px 9px; border-radius: 3px; background: #0B0B0B; color: #fff; letter-spacing: .05em; text-transform: uppercase; }
.plan h3 { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.price { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 6px; }
.price b { font: 900 60px/.9 var(--font-display); font-stretch: 72%; text-transform: uppercase; }
.price span { color: var(--text-3); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.plan li [data-lucide], .plan li .lucide { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }

.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font: 700 18px var(--font); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(currentColor, currentColor) center/14px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 14px no-repeat; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--text-2); padding: 0 0 24px; max-width: 680px; }

.cta-band { padding: 120px 0; background: var(--accent); color: #0B0B0B; border-bottom: 1px solid #000; }
.cta-inner { display: grid; gap: 36px; justify-items: start; }
.cta-inner h2 { font-size: clamp(56px, 9vw, 132px); max-width: 1000px; }
.cta-inner h2 em { color: #fff !important; }
.cta-band .btn.primary { background: #0B0B0B; color: #fff; }
.cta-band .btn.primary:hover { background: #222; }

.site-footer { padding: 56px 0 28px; overflow: hidden; }
.foot-big { font: 900 clamp(90px, 23vw, 330px)/.78 var(--font-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.01em; color: var(--panel-2); user-select: none; white-space: nowrap; margin-bottom: 28px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-form-side { padding: 28px 40px; display: flex; flex-direction: column; }
.login-card { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; }
.login-card h1 { font-size: 64px; margin-bottom: 12px; }
.notice { display: flex; gap: 10px; margin: 22px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.notice [data-lucide], .notice .lucide { color: var(--accent); width: 17px; height: 17px; margin-top: 1px; }
#demoBanner { margin-bottom: 24px; }
.notice.warn { border-color: rgba(255,59,47,.5); background: var(--accent-soft); color: var(--text); margin: 0 0 20px; }
.oauth { display: grid; gap: 10px; margin-top: 26px; }
.oauth-btn { height: 46px; background: var(--panel); border: 1px solid var(--line-2); justify-content: center; font-weight: 600; }
.oauth-btn:hover:not(:disabled) { background: var(--panel-2); border-color: var(--text-3); }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-3); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stack { display: grid; }
.form-note { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.form-note.err { color: #FF8A73; }
.legal { margin-top: 18px; font-size: 12px; color: var(--text-3); }
.login-aside { position: relative; overflow: hidden; background: var(--accent); color: #0B0B0B; display: flex; align-items: flex-end; padding: 56px; }
.login-aside::before { content: "NAVALHA"; position: absolute; right: -0.06em; top: -0.08em; font: 900 260px/.8 var(--font-display); font-stretch: 72%; writing-mode: vertical-rl; color: rgba(0,0,0,.1); }
.aside-inner { position: relative; max-width: 460px; }
.aside-inner blockquote { margin: 0 0 36px; font: 900 72px/.88 var(--font-display); font-stretch: 72%; text-transform: uppercase; }
.aside-list { display: grid; gap: 14px; border-top: 2px solid #0B0B0B; padding-top: 22px; }
.aside-list div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.aside-list [data-lucide], .aside-list .lucide { color: #0B0B0B; }

/* =====================================================================
   APP
   ===================================================================== */
.app-nav { height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.app-links { display: flex; gap: 4px; }
.app-links a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.app-links a:hover { color: var(--text); background: var(--panel); }
.app-links a.on { color: var(--text); background: var(--panel-2); }
.app-links [data-lucide], .app-links .lucide { width: 16px; height: 16px; }
.user-menu { margin-left: auto; position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 8px 0 4px; border-radius: 99px; background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; font: 500 13px var(--font); }
.user-btn:hover { background: var(--panel); }
.user-btn [data-lucide], .user-btn .lucide { width: 15px; height: 15px; color: var(--text-3); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-3) center/cover; display: grid; place-items: center; font: 700 12px var(--font); color: var(--text); }
.dropdown { position: absolute; right: 0; top: 46px; min-width: 230px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.drop-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drop-head b { display: block; font-size: 14px; } .drop-head small { color: var(--text-3); }
.dropdown button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 500 14px var(--font); cursor: pointer; }
.dropdown button:hover { background: var(--panel-2); color: var(--text); }

.page { max-width: 1160px; margin: 0 auto; padding: 36px 24px 120px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: 52px; margin-bottom: 8px; }
.view.app h1 { font-stretch: 72%; font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { font-size: 16px; }
.import-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { display: none; }
.dropzone > [data-lucide], .dropzone > .lucide { width: 26px; height: 26px; color: var(--text-2); }
.dropzone.small { flex-direction: row; justify-content: center; padding: 18px; gap: 10px; }
.dropzone.small > [data-lucide], .dropzone.small > .lucide { width: 20px; height: 20px; }
.dropzone u { color: var(--text); text-underline-offset: 3px; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-top: 16px; }
.clip-grid:empty { display: none; }
.clip-tile { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 9/16; border: 1px solid var(--line); }
.clip-tile img { width: 100%; height: 100%; object-fit: cover; }
.clip-tile .n { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.7); font: 600 11px/20px var(--font); text-align: center; }
.clip-tile .d { position: absolute; bottom: 6px; right: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.7); font: 600 11px var(--font); }
.clip-tile .acts { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 6px; opacity: 0; transition: opacity .15s; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.clip-tile:hover .acts { opacity: 1; }
.clip-tile .acts button, .clip-tile .rm { width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.clip-tile .acts button:hover, .clip-tile .rm:hover { background: rgba(0,0,0,.9); }
.clip-tile .acts [data-lucide], .clip-tile .acts .lucide, .clip-tile .rm [data-lucide], .clip-tile .rm .lucide { width: 14px; height: 14px; }
.clip-tile .rm { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; }
.clip-tile:hover .rm { opacity: 1; }
.clip-tile .acts button:disabled { opacity: .3; }
.hint-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.hint-line [data-lucide], .hint-line .lucide { width: 15px; height: 15px; margin-top: 2px; }
.music-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.music-ico { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.music-meta { min-width: 0; display: flex; flex-direction: column; }
.music-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-meta span { font-size: 12.5px; }
.music-card canvas { grid-column: 1 / -1; width: 100%; height: 40px; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 14px max(24px, calc((100vw - 1160px) / 2 + 24px)); background: rgba(10,10,11,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }

/* Processamento */
.processing { display: grid; place-items: center; min-height: calc(100vh - 60px); padding-bottom: 36px; }
.proc-card { width: 100%; max-width: 520px; text-align: center; }
.proc-spinner { position: relative; width: 84px; height: 84px; margin: 0 auto 24px; }
.proc-spinner svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.proc-spinner circle { fill: none; stroke-width: 3; }
.proc-spinner .trk { stroke: var(--panel-3); }
.proc-spinner .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; transition: stroke-dashoffset .3s; }
.proc-spinner b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 17px var(--font-display); }
.proc-card h1 { font-size: 40px; margin-bottom: 8px; }
.proc-steps { list-style: none; padding: 0; margin: 32px 0 24px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.proc-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.proc-steps li:last-child { border-bottom: 0; }
.proc-steps li b { display: block; font-weight: 600; font-size: 14px; }
.proc-steps li small { font-size: 12.5px; }
.proc-steps .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.proc-steps li.active { color: var(--text); }
.proc-steps li.active .st { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-steps li.done { color: var(--text-2); }
.proc-steps li.done .st { border: 0; background: var(--ok); }
.proc-steps li.done .st::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #06180E; border-bottom: 2px solid #06180E; transform: translateY(-1px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.proc-thumbs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.proc-thumbs img { width: 40px; height: 71px; object-fit: cover; border-radius: 6px; opacity: .35; border: 1.5px solid transparent; transition: opacity .2s, border-color .2s; }
.proc-thumbs img.done { opacity: .8; }
.proc-thumbs img.on { opacity: 1; border-color: var(--accent); }
.warn-line { margin-top: 18px; font-size: 13px; color: var(--c-laugh); }
.proc-error { margin-top: 20px; padding: 16px; border-radius: 12px; border: 1px solid rgba(255,138,115,.35); background: rgba(255,138,115,.06); }
.proc-error p { color: #FFB4A3; margin-bottom: 12px; font-size: 14px; }

/* Resultado */
.result-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; min-height: calc(100vh - 200px); }
.result-player { width: min(360px, 80vw); }
.phone-frame { position: relative; aspect-ratio: 9/16; border-radius: 26px; padding: 7px; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.phone-frame canvas { width: 100%; height: 100%; border-radius: 20px; background: #000; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.big-play [data-lucide], .big-play .lucide { width: 28px; height: 28px; margin-left: 3px; fill: #000; }
.player-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.scrubber { flex: 1; }
.tc { font: 500 13px var(--font); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.result-info h1 { font-size: clamp(44px, 5vw, 64px); margin: 14px 0 12px; }
.result-info > .muted { max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 28px 0 20px; }
.stats div { background: var(--panel); padding: 14px 16px; }
.stats small { display: block; color: var(--text-3); font-size: 12px; }
.stats b { font: 700 20px var(--font-display); }
.moments-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.legend { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lgd { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.lgd.open { background: var(--c-open); } .lgd.det { background: var(--c-det); } .lgd.laugh { background: var(--c-laugh); } .lgd.res { background: var(--c-res); }
.moments-bar { display: flex; gap: 2px; height: 26px; border-radius: 7px; overflow: hidden; }
.moments-bar span { background: var(--c-cut); }
.moments-bar .abertura { background: var(--c-open); } .moments-bar .pormenor { background: var(--c-det); } .moments-bar .riso { background: var(--c-laugh); } .moments-bar .resultado { background: var(--c-res); }
.result-actions { display: flex; gap: 12px; margin: 32px 0 12px; flex-wrap: wrap; }

/* Os meus vídeos */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.v-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.v-media { position: relative; aspect-ratio: 9/16; background: #000; }
.v-media video { width: 100%; height: 100%; object-fit: cover; }
.v-meta { padding: 12px 14px 4px; }
.v-meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-meta small { color: var(--text-3); font-size: 12.5px; }
.v-acts { display: flex; gap: 4px; padding: 6px 8px 10px; }
.v-acts .btn { height: 32px; padding: 0 10px; font-size: 13px; flex: 1; }
.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--panel-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--text-2); }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 22px; }

/* =====================================================================
   EDITOR
   ===================================================================== */
.editor { height: 100vh; display: grid; grid-template-rows: 56px minmax(0, 1fr) auto auto auto; background: var(--bg); overflow: hidden; }
.ed-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ed-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ed-title { display: flex; flex-direction: column; min-width: 0; }
.ed-title b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title small { font-size: 11.5px; color: var(--text-3); }
.ed-center { display: flex; gap: 2px; }
.ed-right { display: flex; justify-content: flex-end; }
.ed-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.ed-stage { display: grid; place-items: center; padding: 16px; min-height: 0; background: var(--bg-2); position: relative; }
.ed-canvas-wrap { position: relative; height: 100%; max-height: 100%; aspect-ratio: 9/16; max-width: 100%; }
.ed-canvas-wrap canvas { width: 100%; height: 100%; border-radius: 6px; background: #000; touch-action: none; }
.ed-props { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 18px; }
.props-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.props-title h3 { font-size: 15px; }
.props-sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 18px; }
.props-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.props-sec:first-of-type { border-top: 0; padding-top: 4px; }
.props-sec > h4 { margin: 0 0 12px; font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13.5px; color: var(--text-2); }
.prop-row:last-child { margin-bottom: 0; }
.prop-row .val { color: var(--text); font-variant-numeric: tabular-nums; font-size: 13px; }
.prop-range { margin-bottom: 14px; }
.prop-range .prop-row { margin-bottom: 6px; }
.tag { font: 600 11px var(--font); padding: 3px 8px; border-radius: 6px; background: var(--panel-3); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.tag.abertura { background: color-mix(in srgb, var(--c-open) 22%, transparent); color: var(--c-open); }
.tag.pormenor { background: color-mix(in srgb, var(--c-det) 22%, transparent); color: var(--c-det); }
.tag.riso { background: color-mix(in srgb, var(--c-laugh) 22%, transparent); color: var(--c-laugh); }
.tag.resultado { background: color-mix(in srgb, var(--c-res) 22%, transparent); color: var(--c-res); }
.tag.texto { background: color-mix(in srgb, var(--c-text) 22%, transparent); color: var(--c-text); }
.tag.imagem { background: color-mix(in srgb, var(--c-img) 22%, transparent); color: var(--c-img); }
.heat { width: 100%; height: 44px; border-radius: 8px; cursor: pointer; background: #000; }
.heat-legend { display: flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.style-opt { height: 52px; border-radius: 9px; border: 1px solid var(--line-2); background: #2a2a30; cursor: pointer; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; padding: 0; }
.style-opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.logo-lib { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.logo-lib button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2) center/70% no-repeat; cursor: pointer; }
.logo-lib button:hover { border-color: var(--accent); }
.logo-lib .add { display: grid; place-items: center; color: var(--text-2); background-image: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.stepper button { width: 32px; height: 30px; border: 0; background: var(--bg-2); color: var(--text); cursor: pointer; font-size: 16px; }
.stepper button:hover { background: var(--panel-3); }
.stepper span { min-width: 64px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.props-actions { display: flex; gap: 8px; margin-top: 8px; }
.props-actions .btn { flex: 1; height: 34px; font-size: 13px; }
.btn.danger { color: #FF8A73; }

.ed-transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; padding: 0 14px; border-top: 1px solid var(--line); }
.tr-left { display: flex; gap: 6px; }
.tr-center { display: flex; align-items: center; gap: 6px; }
.tr-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.ed-transport input.zoom-range { width: 110px; }
.play-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--text); color: #000; display: grid; place-items: center; cursor: pointer; }
.play-btn [data-lucide], .play-btn .lucide { fill: #000; width: 16px; height: 16px; }
.play-btn.playing [data-lucide], .play-btn.playing .lucide { fill: none; }
.ed-tools { display: flex; gap: 2px; padding: 6px 10px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ed-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 500 11.5px var(--font); cursor: pointer; }
.ed-tools button:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.ed-tools button:disabled { opacity: .3; cursor: not-allowed; }
.ed-tools button.on { color: var(--accent); }
.tool-sep { width: 1px; background: var(--line); margin: 6px 6px; flex: none; }

.ed-timeline { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--bg-2); height: 226px; user-select: none; }
.tl-labels { border-right: 1px solid var(--line); background: var(--panel); }
.tl-label { height: 54px; display: grid; place-items: center; color: var(--text-3); }
.tl-label [data-lucide], .tl-label .lucide { width: 16px; height: 16px; }
.tl-label.ruler-sp { height: 26px; }
.tl-label.video { height: 72px; }
.tl-label#tlLabelOverlay { height: 54px; }
.tl-scroll { overflow-x: auto; overflow-y: hidden; position: relative; }
.tl-inner { position: relative; height: 100%; padding-right: 50vw; min-width: 100%; }
.tl-ruler { position: relative; height: 26px; cursor: pointer; border-bottom: 1px solid var(--line); }
.tl-ruler .tk { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--line-2); }
.tl-ruler .tk.major { height: 11px; background: var(--text-3); }
.tl-ruler .tl-num { position: absolute; top: 3px; font: 500 10.5px var(--font); color: var(--text-3); transform: translateX(4px); font-variant-numeric: tabular-nums; }
.tl-overlays { position: relative; height: 54px; }
.tl-video { position: relative; height: 72px; }
.tl-audio { position: relative; height: 54px; }
.tl-audio canvas { position: absolute; left: 0; top: 8px; height: 38px; }
.tl-beats { position: absolute; inset: 8px 0; pointer-events: none; }
.tl-beats i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.14); }
.tl-beats i.bar { background: rgba(255,255,255,.3); }

.clip { position: absolute; top: 8px; height: 56px; border-radius: 7px; overflow: hidden; background: #000; cursor: grab; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.clip.dragging { opacity: .55; cursor: grabbing; z-index: 3; }
.clip .strip { position: absolute; inset: 0; display: flex; pointer-events: none; }
.clip .strip img { height: 100%; width: auto; aspect-ratio: 9/16; object-fit: cover; flex: none; opacity: .92; }
.clip .kbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.clip .kbar.abertura { background: var(--c-open); } .clip .kbar.pormenor { background: var(--c-det); } .clip .kbar.riso { background: var(--c-laugh); } .clip .kbar.resultado { background: var(--c-res); } .clip .kbar.corte { background: transparent; }
.clip .cl-info { position: absolute; top: 4px; left: 5px; display: flex; gap: 4px; pointer-events: none; }
.clip .cl-info span { padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.66); font: 600 10px/1.5 var(--font); display: inline-flex; align-items: center; gap: 3px; }
.clip .cl-info [data-lucide], .clip .cl-info .lucide { width: 11px; height: 11px; }
.clip.sel, .ov.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.4); z-index: 2; }
.handle { position: absolute; top: 0; bottom: 0; width: 12px; background: #fff; display: none; cursor: ew-resize; z-index: 2; }
.handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; transform: translate(-50%, -50%); background: #000; border-radius: 1px; }
.handle.l { left: 0; border-radius: 6px 0 0 6px; } .handle.r { right: 0; border-radius: 0 6px 6px 0; }
.sel .handle { display: block; }
.drop-ind { position: absolute; top: 4px; height: 64px; width: 3px; border-radius: 2px; background: var(--accent); z-index: 4; pointer-events: none; }
.ov { position: absolute; height: 22px; border-radius: 6px; cursor: grab; display: flex; align-items: center; gap: 5px; padding: 0 8px; font: 600 11px var(--font); overflow: hidden; white-space: nowrap; color: #111; }
.ov.text { background: var(--c-text); }
.ov.image { background: var(--c-img); }
.ov [data-lucide], .ov .lucide { width: 12px; height: 12px; flex: none; }
.ov .handle { width: 8px; background: rgba(255,255,255,.9); }
.ov .handle::after { height: 10px; }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 5; }
.tl-playhead span { position: absolute; top: 0; left: -6px; width: 14px; height: 14px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* ---------- Modais ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.modal-box.sm { width: min(400px, 100%); }
.modal-box h2 { font-size: 20px; margin-bottom: 8px; }
.progress { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 20px 0 4px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.done-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#exportVideo { width: 100%; max-height: 52vh; border-radius: 12px; background: #000; }
#exportDone .muted.small { margin-top: 10px; }
#exportDone .modal-actions { justify-content: stretch; }
#exportDone .modal-actions .btn { flex: 1; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--panel-2); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 11px; font-size: 14px; box-shadow: var(--shadow); max-width: min(92vw, 520px); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { padding-bottom: 64px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-n { font-size: 90px; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .import-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .result-info { width: 100%; max-width: 560px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .login-grid { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .ed-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .ed-props { border-left: 0; border-top: 1px solid var(--line); max-height: 34vh; }
  .editor { height: 100dvh; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-visual::before { font-size: 120px; right: 0; }
  .mock-window { width: 280px; }
  .mock-phone { width: 240px; }
  .mock-stat { padding: 7px 10px; } .mock-stat b { font-size: 21px; }
  .mock-stat:nth-child(1) { left: -6px; } .mock-stat:nth-child(2) { right: -8px; top: 150px; }
  .mock-stat:nth-child(3) { left: -8px; top: 260px; } .mock-stat:nth-child(4) { right: -4px; top: 340px; }
  .mock-timeline { margin: -80px -6px 0; }
  .section { padding: 80px 0; }
  .ticker-track span { font-size: 21px; padding: 11px 9px; }
  .spec-card { transform: none; }
  .login-card h1 { font-size: 52px; }
  .site-nav .wordmark { font-size: 19px; }
  .nav-cta .btn.ghost { display: none; }
  .page { padding: 24px 16px 120px; }
  .app-nav { padding: 0 12px; gap: 10px; }
  .app-nav .brand .wordmark, .app-nav .brand .beta { display: none; }
  .site-nav .beta { display: none; }
  .app-links a { padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .app-links a .lucide, .app-links a [data-lucide] { display: none; }
  #userName { display: none; }
  .action-bar { padding: 12px 16px; }
  #importSummary { display: none; }
  .action-bar .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .login-form-side { padding: 20px 16px; }
  .ed-top .btn span { display: none; }
  .ed-title small { display: none; }
  .ed-transport input.zoom-range { width: 70px; }
  .ed-timeline { height: 212px; }
  .ed-props { max-height: 26vh; padding: 12px 14px; }
  .ed-props.idle { display: none; }
  .ed-stage { padding: 8px; }
  .ed-tools button { min-width: 58px; padding: 6px 4px; }
}

/* ---------- Páginas legais ---------- */
.legal-page { padding-top: 72px; padding-bottom: 96px; }
.legal-page h1 { font-size: clamp(48px, 7vw, 88px); margin: 18px 0 28px; }
.legal-page h2 { font-size: 30px; margin: 44px 0 14px; scroll-margin-top: 80px; }
.legal-page p, .legal-page li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.legal-page a, .legal a, .foot-inner .muted a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal-page b { color: var(--text); }
