:root {
  --bg: #09090d;
  --surface: #13131a;
  --surface-2: #1b1b25;
  --border: #272733;
  --text: #f3f3f7;
  --muted: #9b9bb0;
  --accent: #c6ff3d;
  --accent-ink: #0d1400;
  --violet: #8b5cff;
  --danger: #ff6b6b;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(198, 255, 61, .08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
p { margin: 0; }
.muted { color: var(--muted); font-weight: 400; }
.center { text-align: center; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 16px;
}
.logo { font: 700 22px var(--display); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.03em; }
.logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 16px;
}
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--text); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
section { margin-top: 56px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 20px;
  font: 600 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: #d4ff66; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: #3d3d50; background: var(--surface); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { margin-top: 28px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(198, 255, 61, .3); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 6vw, 60px); }
.hl { color: var(--accent); }
.sub { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 17px; }

.linkbar {
  display: flex; gap: 8px; max-width: 720px; margin: 30px auto 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.linkbar:focus-within { border-color: var(--accent); }
.linkbar input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  font: 500 16px var(--font); padding: 0 14px;
}
.linkbar input::placeholder { color: #6a6a80; }
.form-error { color: var(--danger); margin-top: 12px; font-size: 14px; }

.microcopy { color: var(--muted); font-size: 14px; margin-top: 12px; }
.microcopy b { color: var(--accent); font-weight: 600; }
.microcopy a { color: var(--accent); }

.finder { max-width: 720px; margin: 26px auto 0; text-align: left; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.finder label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.finder-row { display: flex; gap: 8px; }
.finder-row input { flex: 1; min-width: 0; }
select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font: 500 14px var(--font); padding: 0 10px;
}
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.clip-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; padding: 0; font: inherit; }
.clip-card:hover { border-color: var(--accent); }
.clip-card img, .clip-card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--surface-2); }
.clip-card div { padding: 8px 10px 10px; }
.clip-card b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-card small { color: var(--muted); font-size: 12px; }
.clip-card em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); }
.hook-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--font); cursor: pointer; }
.hook-btn:hover { border-color: var(--accent); color: var(--accent); }

.account { display: flex; align-items: center; gap: 10px; }
.account .who { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .plan-badge { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(198, 255, 61, .35); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.chip input:disabled + span { opacity: .6; cursor: not-allowed; }

.auth {
  width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.auth::backdrop { background: rgba(5, 5, 8, .75); backdrop-filter: blur(4px); }
.auth form { display: grid; gap: 8px; position: relative; }
.auth h2 { font-size: 24px; padding-right: 30px; }
.auth .muted { font-size: 14px; margin-bottom: 10px; }
.auth .label { margin: 8px 0 0; }
.auth input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font: 400 16px var(--font); padding: 12px 14px;
}
.auth input:focus { outline: 0; border-color: var(--accent); }
.auth .btn { margin-top: 12px; }
.auth .form-error { margin-top: 4px; }
.auth-close { position: absolute; top: -8px; right: -8px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; padding: 6px 10px; }
.auth-switch { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.auth-switch button { background: none; border: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; padding: 0; }

.options {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
  max-width: 720px; margin: 26px auto 0; text-align: left;
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; display: block; }
.label .muted { text-transform: none; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); user-select: none;
  transition: all .15s ease;
}
.chip:hover span { border-color: #3d3d50; color: var(--text); }
.chip input:checked + span { background: rgba(198, 255, 61, .12); border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Painéis */
.panel, .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.panel { max-width: 720px; margin: 32px auto 0; }
.clip-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; min-height: 20px; }
.clip-meta img { width: 108px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.clip-meta b { display: block; font: 700 17px var(--display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.steps .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none;
  display: grid; place-items: center; font-size: 12px; color: var(--accent-ink);
}
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps .pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.error-panel { border-color: rgba(255, 107, 107, .4); text-align: center; }
.error-panel p { color: var(--muted); margin: 10px 0 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Resultado */
.result { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 36px; }
.phone-col { display: grid; gap: 10px; position: sticky; top: 16px; }
.phone {
  position: relative; aspect-ratio: 9/16; border-radius: 30px; overflow: hidden; background: #000;
  border: 6px solid #20202b; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px #33334a;
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-busy {
  position: absolute; inset: 0; background: rgba(9, 9, 13, .82); display: grid; place-content: center; justify-items: center;
  gap: 12px; font-size: 14px; font-weight: 600;
}
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.side { display: grid; gap: 16px; min-width: 0; }
.card-head h2 { font-size: 22px; overflow-wrap: anywhere; }
.card-head p { margin-top: 4px; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin: 18px 0 14px; box-shadow: inset 0 -1px 0 var(--border); overflow-x: auto; overflow-y: hidden; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer;
  font: 600 14px var(--font); padding: 10px 12px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.copy-field { margin-bottom: 14px; }
.copy-field .field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.copy-field .label { margin: 0; }
textarea, input[type="text"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font: 400 15px/1.5 var(--font); padding: 12px 14px; resize: vertical;
}
textarea:focus, input[type="text"]:focus { outline: 0; border-color: var(--accent); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.badge.ai { color: var(--accent); border-color: rgba(198, 255, 61, .35); }

.adjust summary { cursor: pointer; font: 700 17px var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.adjust summary::-webkit-details-marker { display: none; }
.adjust summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.adjust[open] summary::after { content: "–"; }
.adjust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-top: 20px; }
.field.full { grid-column: 1 / -1; }
.row { display: flex; gap: 8px; align-items: center; }
.row input[type="text"] { flex: 1; min-width: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.trim { display: grid; gap: 4px; }
.cropper { position: relative; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; user-select: none; }
.cropper img { display: block; width: 100%; height: auto; opacity: .75; pointer-events: none; }
.crop-rect {
  position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); cursor: move; border-radius: 4px;
}
.crop-handle {
  position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: nwse-resize; border: 2px solid var(--accent-ink);
}
.adjust-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Recentes */
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.recent-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; padding: 0; font: inherit; }
.recent-item:hover { border-color: var(--accent); }
.recent-item video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #000; }
.recent-item div { padding: 10px 12px; }
.recent-item b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Marketing */
.how h2, .plans h2 { text-align: center; }
.how-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.how article, .plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.how b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(139, 92, 255, .18); color: #b9a1ff; font: 700 16px var(--display); margin-bottom: 14px; }
.how h3, .plan h3 { font-size: 19px; }
.how p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(198, 255, 61, .07), transparent 45%), var(--surface); }
.plan .tag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font: 700 40px var(--display); margin: 10px 0 14px; letter-spacing: -.03em; }
.price small { font: 500 15px var(--font); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; color: var(--muted); font-size: 15px; flex: 1; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 9px; font-weight: 700; }

footer { border-top: 1px solid var(--border); padding: 26px 16px 40px; text-align: center; color: var(--muted); font-size: 13px; }
footer p { max-width: 640px; margin: 0 auto; }

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.foot-links { margin-top: 10px; }
.foot-links button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

.legal { max-width: 760px; padding-top: 12px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: #c9c9d6; margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal a { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; color: #c9c9d6; }
.legal th { background: var(--surface); color: var(--text); }

.notice {
  max-width: 720px; margin: 18px auto 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; text-align: left;
  background: rgba(255, 196, 61, .09); border: 1px solid rgba(255, 196, 61, .4); color: #ffe3a3;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 6px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); padding: 0; }
.check a { color: var(--accent); }
.auth-link { background: none; border: 0; color: var(--muted); font: 500 13px var(--font); cursor: pointer; padding: 0; text-align: left; text-decoration: underline; justify-self: start; }
.auth .ok { color: var(--accent); font-size: 14px; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--text); color: #111;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

@media (max-width: 860px) {
  .result { grid-template-columns: 1fr; }
  .phone-col { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .how-grid, .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top nav a:not(.btn) { display: none; }
  .account .who { display: none; }
  .linkbar, .finder-row { flex-direction: column; }
  .finder-row select { padding: 12px 10px; }
  .linkbar input { padding: 12px 10px; }
  .options, .adjust-grid { grid-template-columns: 1fr; }
  section { margin-top: 44px; }
}
