/* Landing do Editor com IA (/pt-br/editor/, /en/editor/, /es/editor/). Só estas páginas carregam este arquivo.
   Usa os tokens do clipador.css (claro e escuro) e as classes de celular do TikTok (.phone/.screen/.feed-tabs/.rail/.post).
   As telas do editor seguem o tema do site pelos tokens --ui-* do clipador.css (escuro igual ao painel .dark; claro igual ao :root
   do painel); só a prévia do vídeo fica escura. Tudo com prefixo ed- para não colidir com outras landings. */
body.produto[data-tone="editor"] { --tone: var(--t1); --on-tone: #fff; }
.ed-page {
  --ed-bg: var(--ui-bg); --ed-panel: var(--ui-panel); --ed-panel-2: var(--ui-panel-2); --ed-line: var(--ui-line); --ed-line-2: var(--ui-line-2);
  --ed-ink: var(--ui-ink); --ed-mute: var(--ui-mute); --ed-on: var(--ui-on); --ed-tint: var(--ui-tint); --ed-ok: var(--ui-ok); --ed-purple: #7a5af0; --ed-purple-2: var(--ui-accent); --ed-green: #34c77b; --ed-yellow: #ffd60a; --ed-red: #f0487a; --ed-cyan: #22b8d9;
  overflow-x: clip;
}
.ed-page .wrap { width: min(100% - 32px, 1180px); }
.ed-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--primary-text) 35%, var(--line)); border-radius: 999px; color: var(--primary-text); background: var(--primary-soft); font: 600 12.5px var(--mono); letter-spacing: .02em; }
.ed-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ed-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ed-green) 25%, transparent); }
.ed-ico { width: 16px; height: 16px; flex: none; }
:where(.ed-page svg:not([width])) { width: 14px; height: 14px; flex: none; }

/* hero: texto centrado e a tela do editor larga embaixo */
.ed-hero { padding: 132px 0 72px; }
.ed-hero .wrap.ed-hero-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.ed-hero-copy { display: grid; justify-items: center; gap: 0; max-width: 860px; margin-inline: auto; text-align: center; }
.ed-hero h1 { margin-top: 18px; font-size: clamp(38px, 6.2vw, 78px); }
.ed-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary-text), color-mix(in srgb, var(--ed-cyan) 70%, var(--primary-text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-hero .lead { margin-inline: auto; max-width: 62ch; }
.ed-hero .actions { justify-content: center; }
.ed-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.ed-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ed-ticks svg { width: 16px; height: 16px; color: var(--ed-green); }
.ed-app-fig { margin: 0; display: grid; gap: 10px; }
.ed-app-fig figcaption { text-align: center; }

/* tela do editor (desktop) */
.ed-app { position: relative; overflow: hidden; border: 1px solid var(--ed-line-2); border-radius: 18px; color: var(--ed-ink); background: var(--ed-bg); font: 12px/1.35 var(--body); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 8%, transparent), 0 60px 120px -50px color-mix(in srgb, var(--primary) 70%, transparent), 0 30px 60px -30px var(--shadow); }
.ed-top { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-top .dots { display: flex; gap: 6px; }
.ed-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ed-line-2); }
.ed-top .name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; white-space: nowrap; }
.ed-top .name small { color: var(--ed-ok); font-weight: 500; font-size: 11px; }
.ed-cmdk { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; margin-inline: auto; padding: 0 8px 0 10px; border: 1px solid var(--ed-line-2); border-radius: 8px; color: var(--ed-mute); background: var(--ed-bg); width: min(360px, 34%); white-space: nowrap; overflow: hidden; }
.ed-cmdk span { overflow: hidden; text-overflow: ellipsis; }
.ed-cmdk kbd, .ed-kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--ed-line-2); border-radius: 5px; color: var(--ed-ink); background: var(--ed-panel-2); font: 500 10.5px var(--mono); white-space: nowrap; }
.ed-top .right { display: flex; align-items: center; gap: 8px; }
.ed-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--ed-line-2); border-radius: 7px; color: var(--ed-ink); background: var(--ed-panel-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ed-chip.is-on { border-color: color-mix(in srgb, var(--ed-purple) 70%, transparent); color: var(--ed-on); background: color-mix(in srgb, var(--ed-purple) 30%, var(--ed-panel)); }
.ed-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; color: #fff; background: var(--ed-purple); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ed-main { display: grid; grid-template-columns: 64px 214px minmax(0, 1fr) 248px; grid-template-rows: minmax(0, 1fr); height: 440px; }
.ed-main > * { min-height: 0; overflow: hidden; }
.ed-rail { display: grid; align-content: start; gap: 2px; padding: 8px 4px; border-right: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-rail span { display: grid; justify-items: center; gap: 3px; padding: 5px 2px; border-radius: 8px; color: var(--ed-mute); font-size: 9.5px; text-align: center; }
.ed-rail span svg { width: 17px; height: 17px; }
.ed-rail span.is-on { color: var(--ed-on); background: color-mix(in srgb, var(--ed-purple) 28%, transparent); }
.ed-rail span.is-ai svg { color: var(--ed-purple-2); }
.ed-lib { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; min-width: 0; padding: 12px; border-right: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-lib b { font-size: 13px; }
.ed-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border: 1px solid var(--ed-line-2); border-radius: 8px; color: var(--ed-mute); }
.ed-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; overflow: hidden; }
.ed-thumbs span { position: relative; aspect-ratio: 9 / 13; overflow: hidden; border-radius: 7px; background: #222 center / cover no-repeat; }
.ed-thumbs span::after { content: attr(data-d); position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 4px; color: #fff; background: rgb(0 0 0 / 70%); font: 500 9.5px var(--mono); }
.ed-thumbs span.is-drag { outline: 2px solid var(--ed-purple); outline-offset: -2px; }
.ed-stage { position: relative; display: grid; place-items: center; min-width: 0; padding: 14px; background: radial-gradient(60% 60% at 50% 40%, rgb(122 90 240 / 12%), transparent 70%), var(--ed-bg); }
.ed-stage .safe-tag { position: absolute; top: 12px; left: 12px; }
.ed-frame { position: relative; height: 100%; max-height: 330px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px var(--ed-line-2), 0 24px 50px -20px #000; }
.ed-frame video, .ed-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-frame .screen { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.ed-frame .screen::after { background: linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, transparent 15%, transparent 66%, rgb(0 0 0 / 65%) 100%); }
.ed-frame .feed-tabs { top: 8px; gap: 9px; font-size: 9px; }
.ed-frame .rail { right: 4px; bottom: 46px; gap: 7px; }
.ed-frame .rail .avatar { width: 22px; height: 22px; }
.ed-frame .rail .avatar::after { width: 11px; height: 11px; bottom: -6px; font-size: 9px; line-height: 11px; }
.ed-frame .rail span { font-size: 7.5px; }
.ed-frame .rail svg { width: 17px; height: 17px; }
.ed-frame .post { left: 8px; right: 34px; bottom: 9px; gap: 2px; font-size: 8px; }
.ed-frame .post b { font-size: 9px; }
.ed-frame .safe { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.ed-frame .safe i { position: absolute; border: 1px dashed rgb(240 72 122 / 75%); background: rgb(240 72 122 / 10%); }
.ed-frame .safe .b { left: 0; right: 0; bottom: 0; height: 20%; }
.ed-frame .safe .r { right: 0; width: 14%; top: 45%; bottom: 20%; }
.ed-wcap { position: absolute; z-index: 4; left: 6%; right: 18%; top: 58%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; color: #fff; font: 800 15px/1.05 "Montserrat", var(--body); text-transform: uppercase; -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.ed-wcap i { font-style: normal; padding: 1px 3px; border-radius: 4px; }
.ed-wcap i.on { color: var(--ed-yellow); }
.ed-ask { position: absolute; left: 50%; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; width: min(92%, 380px); height: 38px; padding: 0 6px 0 12px; translate: -50% 0; border: 1px solid color-mix(in srgb, var(--ed-purple) 60%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--ed-panel) 92%, transparent); box-shadow: 0 14px 36px -12px rgb(122 90 240 / 60%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ed-ask svg.spark { width: 16px; height: 16px; color: var(--ed-purple-2); }
.ed-ask .typed { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ed-ink); }
.ed-ask .send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: var(--ed-purple); }
.ed-ask .send svg { width: 14px; height: 14px; }
.ed-toast { position: absolute; right: 14px; top: 12px; z-index: 5; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--ed-green) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--ed-panel) 94%, transparent); font-size: 11.5px; }
.ed-toast svg { width: 14px; height: 14px; color: var(--ed-ok); }
.ed-toast small { color: var(--ed-mute); }
.ed-insp { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-left: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--ed-line); }
.ed-tabs span { flex: 1; padding: 6px 0; border-radius: 6px; color: var(--ed-mute); font-size: 11px; font-weight: 600; text-align: center; }
.ed-tabs span.is-on { color: var(--ed-on); background: var(--ed-panel-2); box-shadow: inset 0 0 0 1px var(--ed-line-2); }
.ed-sect { display: grid; gap: 9px; align-content: start; padding: 12px; overflow: hidden; }
.ed-sect h4 { margin: 0; color: var(--ed-mute); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ed-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ed-row b { display: block; font-size: 12px; font-weight: 600; }
.ed-row small { display: block; margin-top: 2px; color: var(--ed-mute); font-size: 10.5px; }
.ed-switch { flex: none; position: relative; width: 30px; height: 17px; margin-top: 2px; border-radius: 99px; background: var(--ed-purple); }
.ed-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.ed-slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--ed-mute); font-size: 11px; }
.ed-slider i { position: relative; height: 4px; border-radius: 4px; background: var(--ed-line-2); }
.ed-slider i::before { content: ""; position: absolute; inset: 0 55% 0 0; border-radius: 4px; background: var(--ed-purple); }
.ed-slider i::after { content: ""; position: absolute; left: 45%; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; background: #fff; }
.ed-slider em { color: var(--ed-ink); font: 500 10.5px var(--mono); font-style: normal; }
.ed-seg { display: inline-flex; gap: 2px; width: fit-content; padding: 2px; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-tint); }
.ed-seg span { padding: 4px 9px; border-radius: 6px; color: var(--ed-mute); font-size: 11px; font-weight: 600; }
.ed-seg span.is-on { color: var(--ed-on); background: var(--ed-panel); box-shadow: 0 1px 2px var(--ui-shadow), inset 0 0 0 1px var(--ed-line-2); }
.ed-hint { color: var(--ed-mute); font-size: 10.5px; }
.ed-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-styles span { display: grid; place-items: center; height: 38px; border: 1px solid var(--ed-line); border-radius: 7px; background: #1d1d22; font: 800 10px "Montserrat", var(--body); text-transform: uppercase; }
.ed-styles span.is-on { border-color: var(--ed-purple); }
.ed-styles .s1 { color: var(--ed-yellow); }
.ed-styles .s2 b { padding: 1px 4px; border-radius: 3px; background: var(--ed-purple); }
.ed-styles .s3 { color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.ed-toolbar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; overflow: hidden; border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-toolbar .sep { width: 1px; height: 18px; background: var(--ed-line-2); }
.ed-toolbar .zoom { margin-left: auto; color: var(--ed-mute); font: 500 11px var(--mono); white-space: nowrap; }
.ed-toolbar .ed-chip svg { width: 13px; height: 13px; }
.ed-toolbar .ed-chip.is-ai { color: var(--ed-on); border-color: color-mix(in srgb, var(--ed-purple) 55%, transparent); }
.ed-toolbar .ed-chip.is-ai svg { color: var(--ed-purple-2); }

/* linha do tempo */
.ed-tl { position: relative; display: grid; gap: 5px; padding: 8px 12px 12px; background: var(--ed-bg); --lab: 74px; }
.ed-ruler { position: relative; height: 18px; margin-left: var(--lab); color: var(--ed-mute); font: 500 9.5px var(--mono); background: repeating-linear-gradient(90deg, var(--ed-line-2) 0 1px, transparent 1px 10%) 0 100% / 100% 6px no-repeat; }
.ed-ruler span { position: absolute; top: 0; translate: -50% 0; }
.ed-marker { position: absolute; z-index: 3; top: 0; display: flex; align-items: center; gap: 4px; padding: 1px 6px; translate: -2px 0; border-radius: 4px 4px 4px 0; color: #1a1205; background: var(--t4); font: 700 9.5px var(--body); white-space: nowrap; }
.ed-lane { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; }
.ed-lane > b { display: flex; align-items: center; gap: 5px; color: var(--ed-mute); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ed-lane > b svg { width: 12px; height: 12px; }
.ed-track { position: relative; height: 26px; border-radius: 6px; background: var(--ed-tint); }
.ed-track.is-main { height: 34px; }
.ed-clip { position: absolute; top: 0; bottom: 0; overflow: hidden; border-radius: 6px; }
.ed-clip.v { color: #fff; border: 1px solid rgb(165 139 255 / 70%); background: linear-gradient(90deg, rgb(122 90 240 / 82%), rgb(122 90 240 / 62%)), url("../assets/landing/clipador-corte-lite.webp") 0 30% / 40px auto repeat-x; }
.ed-clip.v.sel { box-shadow: 0 0 0 2px var(--ed-on); }
.ed-clip.br { border: 1px solid rgb(34 184 217 / 70%); background: rgb(34 184 217 / 30%) center / cover no-repeat; }
.ed-clip.br::after { content: attr(data-l); position: absolute; left: 5px; top: 50%; translate: 0 -50%; padding: 1px 5px; border-radius: 4px; color: #fff; background: rgb(0 0 0 / 60%); font-size: 9.5px; font-weight: 600; }
.ed-clip.cap { border-radius: 4px; background: rgb(255 214 10 / 75%); }
.ed-clip.mus { border: 1px solid rgb(52 199 123 / 60%); background: repeating-linear-gradient(90deg, rgb(52 199 123 / 80%) 0 2px, transparent 2px 5px) 0 50% / 100% 60% no-repeat, rgb(52 199 123 / 18%); }
.ed-clip.sfx { border: 1px solid rgb(240 72 122 / 65%); background: rgb(240 72 122 / 28%); font-size: 9.5px; font-weight: 600; display: grid; place-items: center; }
.ed-cut { position: absolute; z-index: 2; top: -2px; bottom: -2px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgb(240 72 122 / 85%) 0 3px, rgb(240 72 122 / 25%) 3px 6px); }
.ed-playhead { position: absolute; z-index: 4; top: 6px; bottom: 6px; left: calc(var(--lab) + 12px + (100% - var(--lab) - 24px) * .38); width: 2px; background: var(--ed-on); box-shadow: 0 0 10px color-mix(in srgb, var(--ed-on) 60%, transparent); }
.ed-playhead::before { content: ""; position: absolute; top: -2px; left: 50%; width: 10px; height: 10px; translate: -50% 0; border-radius: 2px 2px 50% 50%; background: var(--ed-on); }

/* faixa de destaques logo abaixo do hero */
.ed-strip { padding: 28px 0; }
.ed-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ed-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.ed-strip li svg { width: 16px; height: 16px; color: var(--primary-text); }

/* pedir à IA com preço */
.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ed-split.is-rev > :first-child { order: 2; }
.ed-copy { display: grid; gap: 16px; align-content: start; }
.ed-copy > p { color: var(--muted); font-size: 17px; }
.ed-points { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.ed-points li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.ed-points li > svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: var(--primary-text); background: var(--primary-soft); }
.ed-points b { display: block; font-size: 16px; }
.ed-points span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.ed-plan { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--ed-line-2); border-radius: 20px; color: var(--ed-ink); background: radial-gradient(80% 60% at 100% 0%, rgb(122 90 240 / 22%), transparent 60%), var(--ed-panel); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--primary) 60%, transparent); font-size: 14px; }
.ed-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ed-mute); font-size: 12.5px; }
.ed-plan-head b { color: var(--ed-ink); font-size: 14px; }
.ed-me { justify-self: end; max-width: 88%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; color: #fff; background: var(--ed-purple); font-size: 13.5px; line-height: 1.45; }
.ed-ai { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--ed-line-2); border-radius: 14px 14px 14px 4px; background: var(--ed-bg); }
.ed-ai-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; font-size: 12.5px; }
.ed-free { padding: 2px 8px; border-radius: 999px; color: #06180e; background: var(--ed-green); font-size: 11px; font-weight: 700; }
.ed-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.ed-item:hover { background: var(--ed-tint); }
.ed-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--ed-purple); cursor: pointer; }
.ed-item span { display: grid; gap: 1px; min-width: 0; }
.ed-item small { color: var(--ed-mute); font-size: 11.5px; }
.ed-item em { color: var(--ed-ink); font: 500 12px var(--mono); font-style: normal; white-space: nowrap; }
.ed-item em.inc { color: var(--ed-mute); }
.ed-item:has(input:not(:checked)) span, .ed-item:has(input:not(:checked)) em { opacity: .45; text-decoration: line-through; }
.ed-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ed-line); }
.ed-total b { font-size: 15px; }
.ed-total .ed-btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
.ed-undo { display: flex; align-items: center; gap: 8px; color: var(--ed-mute); font-size: 12px; }
.ed-undo svg { width: 14px; height: 14px; color: var(--ed-ok); }

/* recursos: grade de cartões com mini telas */
.ed-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ed-card { display: grid; grid-template-rows: auto 1fr; gap: 18px; grid-column: span 2; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: border-color .25s ease, transform .3s var(--ease-out); }
.ed-card:hover { border-color: color-mix(in srgb, var(--primary-text) 40%, var(--line)); }
.ed-card.w3 { grid-column: span 3; }
.ed-card.w4 { grid-column: span 4; }
.ed-card h3 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.ed-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ed-tags span { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--surface-2); font-size: 12px; font-weight: 600; }
.ed-mini { position: relative; display: grid; gap: 8px; align-content: center; min-height: 168px; padding: 14px; overflow: hidden; border: 1px solid var(--ed-line); border-radius: 14px; color: var(--ed-ink); background: var(--ed-bg); font-size: 11.5px; }
.ed-mini .ed-tl { padding: 4px 0 0; --lab: 58px; }
.ed-mini .ed-toolbar { height: 34px; margin: -14px -14px 4px; border-top: 0; }
.ed-mini.center { place-items: center; }
.ed-capgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.ed-capgrid span { position: relative; display: grid; place-items: center; height: 64px; overflow: hidden; border: 1px solid var(--ed-line); border-radius: 10px; background: #000 center 30% / cover no-repeat; font: 800 13px "Montserrat", var(--body); text-transform: uppercase; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.ed-capgrid span::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 35%); }
.ed-capgrid span > * { position: relative; }
.ed-capgrid span small { position: absolute; left: 6px; top: 5px; color: rgb(255 255 255 / 80%); font: 600 9.5px var(--body); text-transform: none; -webkit-text-stroke: 0; }
.ed-capgrid .y { color: var(--ed-yellow); }
.ed-capgrid .p b { padding: 0 4px; border-radius: 4px; background: var(--ed-purple); -webkit-text-stroke: 0; }
.ed-capgrid .is-on { border-color: var(--ed-purple); box-shadow: 0 0 0 1px var(--ed-purple); }
.ed-libgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-libgrid span { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px; border: 1px solid var(--ed-line); border-radius: 9px; background: var(--ed-panel); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-libgrid span svg { width: 14px; height: 14px; color: var(--ed-purple-2); flex: none; }
.ed-palette { width: 100%; max-width: 360px; margin-inline: auto; overflow: hidden; border: 1px solid var(--ed-line-2); border-radius: 12px; background: var(--ed-panel); box-shadow: 0 20px 40px -20px var(--ui-shadow); }
.ed-palette .q { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-bottom: 1px solid var(--ed-line); font-size: 12.5px; }
.ed-palette .q .caret { width: 1.5px; height: 14px; margin-left: -6px; background: var(--ed-purple-2); }
.ed-palette ul { display: grid; gap: 2px; margin: 0; padding: 6px; list-style: none; }
.ed-palette li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--ed-mute); }
.ed-palette li b { color: var(--ed-ink); font-weight: 600; }
.ed-palette li small { margin-left: auto; font-size: 10.5px; }
.ed-palette li.is-on { background: color-mix(in srgb, var(--ed-purple) 22%, transparent); }
.ed-palette li svg { width: 14px; height: 14px; }
.ed-meter { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.ed-fader { display: grid; justify-items: center; gap: 6px; color: var(--ed-mute); font: 500 10px var(--mono); }
.ed-fader i { position: relative; width: 6px; height: 92px; border-radius: 6px; background: linear-gradient(0deg, var(--ed-green) 0 60%, var(--ed-yellow) 60% 82%, var(--ed-red) 82%); opacity: .9; }
.ed-fader i::after { content: ""; position: absolute; left: 50%; top: 32%; width: 20px; height: 8px; translate: -50% 0; border-radius: 3px; background: #fff; }
.ed-env { position: relative; height: 92px; border: 1px solid var(--ed-line); border-radius: 8px; background: repeating-linear-gradient(90deg, rgb(52 199 123 / 55%) 0 2px, transparent 2px 5px) 0 50% / 100% 50% no-repeat, var(--ed-tint); overflow: hidden; }
.ed-env svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-export { display: grid; gap: 8px; width: 100%; }
.ed-export .line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ed-export .line > b { width: 74px; color: var(--ed-mute); font-size: 10.5px; font-weight: 600; }
.ed-export .ed-chip { height: 24px; font-size: 11px; }
.ed-saved { display: grid; gap: 8px; width: 100%; }
.ed-saved .v { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ed-line); border-radius: 9px; background: var(--ed-panel); }
.ed-saved .v small { margin-left: auto; color: var(--ed-mute); font: 500 10.5px var(--mono); }
.ed-saved .v svg { width: 14px; height: 14px; color: var(--ed-ok); }
.ed-card .phone { max-width: 150px; margin-inline: auto; padding: 5px; border-radius: 24px; }
.ed-card .screen { border-radius: 19px; }
.ed-follow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.ed-follow .ed-seg { margin-top: 2px; }

/* tamanho compacto do layout TikTok em celulares menores */
.ed-tt-s .feed-tabs { top: 9px; gap: 9px; font-size: 9.5px; }
.ed-tt-s .rail { right: 5px; bottom: 50px; gap: 8px; }
.ed-tt-s .rail .avatar { width: 24px; height: 24px; }
.ed-tt-s .rail .avatar::after { width: 12px; height: 12px; bottom: -6px; font-size: 9px; line-height: 12px; }
.ed-tt-s .rail span { font-size: 8px; }
.ed-tt-s .rail svg { width: 18px; height: 18px; }
.ed-tt-s .post { left: 9px; right: 36px; bottom: 10px; gap: 2px; font-size: 8.5px; }
.ed-tt-s .post b { font-size: 9.5px; }
.ed-tt-s .caption { font-size: 12px; -webkit-text-stroke: 3.5px #000; top: 56%; }

/* celular: iPhone com a primeira tela do editor */
.ed-mobile { position: relative; overflow: hidden; }
.ed-mobile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 75% 45%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%); }
.ed-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.ed-iphone { position: relative; flex: none; width: 300px; aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 48px; background: linear-gradient(145deg, #2b2b31, #121215); box-shadow: 0 0 0 1px rgb(255 255 255 / 14%), inset 0 0 0 2px #050506, 0 50px 100px -40px var(--shadow), 0 30px 80px -40px color-mix(in srgb, var(--primary) 55%, transparent); }
.ed-iphone.is-back { width: 262px; margin-top: 60px; }
.ed-iscreen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 39px; color: var(--ed-ink); background: var(--ed-bg); font: 11px/1.3 var(--body); }
.ed-island { position: absolute; z-index: 9; top: 9px; left: 50%; width: 84px; height: 24px; translate: -50% 0; border-radius: 20px; background: #000; }
.ed-istatus { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 4px 26px 0 30px; font-size: 12px; font-weight: 700; }
.ed-istatus i { display: inline-block; width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.ed-istatus i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: currentColor; }
.ed-ihead { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; border-bottom: 1px solid var(--ed-line); }
.ed-ihead .x { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ed-mute); }
.ed-ihead .x svg { width: 15px; height: 15px; }
.ed-ihead .t { display: grid; flex: 1; min-width: 0; }
.ed-ihead .t b { font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-ihead .t small { color: var(--ed-ok); font-size: 9.5px; }
.ed-ihead .ed-btn { height: 26px; padding: 0 9px; font-size: 10.5px; }
.ed-ipreview { position: relative; flex: none; display: grid; place-items: center; height: 47%; padding: 6px 0; background: #000; }
.ed-ipreview .ed-frame { height: 100%; max-height: none; border-radius: 6px; }
.ed-itransport { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; color: var(--ed-mute); font: 500 10px var(--mono); }
.ed-itransport span { display: flex; align-items: center; gap: 10px; }
.ed-itransport svg { width: 15px; height: 15px; color: var(--ed-ink); }
.ed-itransport .play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ed-ink); }
.ed-itransport .play svg { width: 12px; height: 12px; color: var(--ed-bg); }
.ed-iask { display: grid; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--ed-line); }
.ed-iask .field { display: flex; align-items: center; gap: 6px; }
.ed-iask .field span { flex: 1; display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid var(--ed-line-2); border-radius: 8px; color: var(--ed-mute); font-size: 11px; white-space: nowrap; overflow: hidden; }
.ed-iask .field i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--ed-purple); }
.ed-iask .field i svg { width: 14px; height: 14px; }
.ed-ichips { display: flex; flex-wrap: wrap; gap: 5px; }
.ed-ichips span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid var(--ed-line-2); border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.ed-ichips span svg { width: 11px; height: 11px; color: var(--ed-purple-2); }
.ed-ifine { display: flex; align-items: center; justify-content: space-between; margin: auto 10px 6px; padding: 8px 10px; border-radius: 8px; background: var(--ed-panel); font-size: 10.5px; font-weight: 600; }
.ed-ifine svg { width: 12px; height: 12px; color: var(--ed-mute); }
.ed-itabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 16px; border-top: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-itabs span { display: grid; justify-items: center; gap: 3px; color: var(--ed-mute); font-size: 9.5px; font-weight: 600; }
.ed-itabs span svg { width: 18px; height: 18px; }
.ed-itabs span.is-ai { color: var(--ed-purple-2); }
.ed-itabs span.is-on { color: var(--ed-on); }
.ed-itl { display: grid; gap: 4px; padding: 6px 8px; }
.ed-itl .ed-track { height: 18px; border-radius: 4px; }
.ed-itl .ed-track.is-main { height: 26px; }
.ed-sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 50%; display: grid; grid-template-rows: auto auto 1fr; gap: 8px; padding: 8px 10px 0; border-radius: 18px 18px 0 0; background: var(--ed-panel); box-shadow: 0 -20px 40px -10px var(--ui-shadow); }
.ed-sheet .grip { justify-self: center; width: 36px; height: 4px; border-radius: 4px; background: var(--ed-line-2); }
.ed-sheet .hd { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.ed-sheet .hd small { color: var(--ed-mute); font-size: 9.5px; font-weight: 500; }
.ed-sheet ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; margin: 0; padding: 0; list-style: none; }
.ed-sheet li { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; background: var(--ed-panel-2); font-size: 9px; font-weight: 600; text-align: center; }
.ed-sheet li svg { width: 17px; height: 17px; color: var(--ed-purple-2); }
.ed-iphone-cap { margin-top: 12px; text-align: center; }
.ed-mob-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.ed-mob-points li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ed-mob-points b { display: block; font-size: 15px; }
.ed-mob-points span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ed-devices { display: flex; flex-wrap: wrap; gap: 8px; }

/* níveis */
.ed-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ed-level { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.ed-level.is-pick { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 30px 70px -40px color-mix(in srgb, var(--primary) 70%, transparent); }
.ed-level .flag { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--primary); font-size: 11.5px; font-weight: 700; }
.ed-level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ed-level-head h3 { font-size: 24px; font-weight: 800; }
.ed-price { display: flex; align-items: baseline; gap: 6px; }
.ed-price b { font: 800 34px/1 var(--body); letter-spacing: -.03em; }
.ed-price span { color: var(--muted); font-size: 13px; }
.ed-level .phone { max-width: 190px; margin-inline: auto; padding: 6px; border-radius: 30px; }
.ed-level .screen { border-radius: 24px; }
.ed-level ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ed-level li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--muted); }
.ed-level li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--primary-text); }
.ed-custom { align-content: start; background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.ed-custom-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.ed-custom-box div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.ed-custom-box div span { color: var(--muted); }
.ed-levels-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.ed-levels-foot p { max-width: 70ch; }
.ed-overlay { position: absolute; z-index: 3; left: 10px; top: 34px; padding: 3px 7px; border-radius: 6px; color: #fff; background: rgb(0 0 0 / 55%); font: 600 9.5px var(--body); }

/* comparativo */
.ed-compare .matrix .us { background: var(--primary-soft); }
.ed-compare .matrix .us strong { color: var(--primary-text); }

/* chamada final */
.ed-final { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); border-radius: 28px; background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%), radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--ed-cyan) 14%, transparent), transparent 70%), var(--surface); }
.ed-final h2 { font-size: clamp(30px, 4.2vw, 52px); }
.ed-final p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.ed-final .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.ed-final .note { color: var(--soft); font-size: 13.5px; }
.ed-final-art { display: flex; justify-content: center; gap: 12px; }
.ed-final-art .phone { max-width: 170px; padding: 6px; border-radius: 28px; }
.ed-final-art .phone + .phone { margin-top: 40px; }
.ed-final-art .screen { border-radius: 22px; }

/* celular de trás com prévia pequena; cartão Custom sem esticar a caixa */
.ed-iphone.is-back .ed-frame .post span, .ed-iphone.is-back .ed-frame .rail span:not(.avatar):nth-child(n+3) { display: none; }
.ed-iphone.is-back .ed-frame .feed-tabs { top: 6px; gap: 6px; font-size: 7.5px; }
.ed-iphone.is-back .ed-frame .rail { bottom: 24px; transform: scale(.8); transform-origin: 100% 100%; }
.ed-iphone.is-back .ed-frame .post { bottom: 6px; }
.ed-custom { grid-template-rows: auto auto auto 1fr; }
.ed-custom > ul { align-self: end; }

/* movimento: só sem preferência por movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .cl-js .ed-playhead { animation: ed-play 14s linear infinite; }
  .cl-js .ed-wcap i { animation: ed-word 2.4s steps(1) infinite; }
  .cl-js .ed-wcap i:nth-child(2) { animation-delay: .8s; }
  .cl-js .ed-wcap i:nth-child(3) { animation-delay: 1.6s; }
  .cl-js .ed-wcap i.on { color: #fff; }
  .cl-js .ed-ask .typed { animation: ed-type 7s steps(48, end) infinite; max-width: 100%; }
  .cl-js .ed-toast { animation: ed-toast 7s ease infinite; }
  .cl-js .ed-palette .q .caret { animation: ed-blink 1s steps(1) infinite; }
  .cl-js .ed-sheet { animation: ed-sheet 6s var(--ease-out) infinite; }
  .cl-js .ed-card { transition: border-color .25s ease, transform .3s var(--ease-out); }
  @media (hover: hover) { .ed-card:hover { transform: translateY(-3px); } }
  .cl-js .ed-cut { animation: ed-cut 3.5s ease-in-out infinite; }
}
@keyframes ed-play { from { left: calc(var(--lab) + 12px); } to { left: calc(100% - 14px); } }
@keyframes ed-word { 0% { color: var(--ed-yellow); transform: scale(1.08); } 33.3%, 100% { color: #fff; transform: none; } }
@keyframes ed-type { 0% { max-width: 0; } 55%, 100% { max-width: 100%; } }
@keyframes ed-toast { 0%, 58% { opacity: 0; transform: translateY(-6px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ed-blink { 50% { opacity: 0; } }
@keyframes ed-sheet { 0%, 8% { transform: translateY(100%); } 22%, 84% { transform: none; } 100% { transform: translateY(100%); } }
@keyframes ed-cut { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* responsivo */
@media (max-width: 1180px) {
  .ed-main { grid-template-columns: 60px 180px minmax(0, 1fr) 230px; }
  .ed-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ed-main { grid-template-columns: 60px minmax(0, 1fr) 236px; }
  .ed-lib { display: none; }
  .ed-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-card, .ed-card.w3, .ed-card.w4 { grid-column: span 1; }
  .ed-card.wide-md { grid-column: 1 / -1; }
  .ed-split { grid-template-columns: minmax(0, 1fr); }
  .ed-split.is-rev > :first-child { order: 0; }
  .ed-final { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ed-hero { padding: 112px 0 48px; }
  .ed-hero-copy { text-align: left; justify-items: start; }
  .ed-hero .actions, .ed-ticks { justify-content: flex-start; }
  .ed-hero .actions .button { flex: 1 1 auto; }
  .ed-app-fig figcaption { text-align: left; }
  .ed-app { border-radius: 14px; }
  .ed-main { grid-template-columns: minmax(0, 1fr); height: 380px; }
  .ed-rail, .ed-insp { display: none; }
  .ed-cmdk, .ed-top .dots, .ed-top .right .ed-chip { display: none; }
  .ed-top .right { margin-left: auto; }
  .ed-toolbar .hide-sm, .ed-toast, .ed-stage .safe-tag { display: none; }
  .ed-tl { --lab: 58px; padding: 8px 8px 10px; }
  .ed-tl .opt { display: none; }
  .ed-bento { grid-template-columns: minmax(0, 1fr); }
  .ed-follow { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .ed-card .phone { max-width: 120px; }
  .ed-levels { grid-template-columns: minmax(0, 1fr); }
  .ed-level .phone { max-width: 170px; }
  .ed-mob-points { grid-template-columns: minmax(0, 1fr); }
  .ed-phones { gap: 0; }
  .ed-iphone { width: min(300px, 82vw); }
  .ed-iphone.is-back { display: none; }
  .ed-mobile .ed-split > :last-child { order: -1; }
  .ed-final-art { display: none; }
  .ed-libgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .ed-follow { grid-template-columns: minmax(0, 1fr); }
  .ed-follow .phone { max-width: 140px; }
}

/* Hero: o editor começa meio deitado e vai ficando de pé conforme a página rola até ele (--tilt de 1 a 0, pelo editor-page.js) */
.ed-tilt { perspective: 1600px; }
.ed-tilt .ed-app {
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--tilt, 0) * 26deg)) scale(calc(1 - var(--tilt, 0) * .06)) translateY(calc(var(--tilt, 0) * -12px));
  box-shadow: 0 calc(30px + var(--tilt, 0) * 40px) calc(80px + var(--tilt, 0) * 40px) -40px color-mix(in srgb, var(--primary) 55%, transparent);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .ed-tilt .ed-app { transform: none; } }
