:root {
  --bg: #0b0d14;
  --bg2: #141826;
  --card: #171b2b;
  --line: #262c42;
  --ink: #f4f5fb;
  --mute: #9aa1bd;
  --accent: #ff6b35;
  --accent2: #7c5cff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #242a4a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 48px); }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; display: flex; gap: 10px; align-items: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent), var(--accent2), var(--accent)); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top-note { color: var(--mute); font-size: 14px; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.hero { text-align: center; padding: 28px 0 10px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 10px 0 14px; letter-spacing: -0.02em; }
.display { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 14px 0 14px; letter-spacing: -0.02em; font-weight: 800; }
.display em, h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--mute); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 28px; line-height: 1.5; }

.drop {
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  max-width: 560px; min-height: 220px; border: 2px dashed #3a4263; border-radius: var(--radius);
  background: rgba(255,255,255,0.02); transition: .2s; padding: 18px;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255,107,53,0.06); }
.drop-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--mute); }
.drop-inner strong { color: var(--ink); font-size: 19px; }
.drop-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--bg2); border: 1px solid var(--line); color: var(--accent); margin-bottom: 6px; }
#thumb { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#20263a 0 25%, #1a1f30 0 50%) 0 0/20px 20px; padding: 10px; }

.options { max-width: 560px; margin: 22px auto 0; display: grid; gap: 14px; text-align: left; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.field i { text-transform: none; font-style: normal; font-weight: 400; opacity: .7; letter-spacing: 0; }
input[type=text], input[type=email] { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; }
input[type=text]:focus, input[type=email]:focus { outline: 2px solid var(--accent2); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cta {
  display: block; width: 100%; max-width: 560px; margin: 24px auto 8px; padding: 17px 20px; border: 0; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent), #ff4f7b); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 30px rgba(255,107,53,.3); transition: transform .15s, opacity .15s;
}
.cta:hover:not(:disabled) { transform: translateY(-1px); }
.cta:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.fine { color: var(--mute); font-size: 13px; margin: 8px auto 0; max-width: 560px; text-align: center; }

.work { display: grid; place-items: center; min-height: 360px; }
.steps { display: grid; gap: 16px; font-size: 19px; }
.st { display: flex; gap: 14px; align-items: center; color: var(--mute); transition: color .3s; }
.st span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.st.active { color: var(--ink); }
.st.active span { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.st.done { color: var(--ink); }
.st.done span { background: var(--accent); border-color: var(--accent); }

.result { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 18px; }
@media (max-width: 860px) { .result { grid-template-columns: 1fr; } }
.stage-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; }
#stage { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; }
.play { position: absolute; inset: auto 14px 14px auto; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.panel h2 { margin: 0; font-size: 24px; }
.r-tag { margin: -8px 0 0; color: var(--mute); }
.panel .cta { margin: 4px 0 0; max-width: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ghost { background: var(--bg2); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 12px; font-weight: 600; }
.ghost small { color: var(--mute); font-weight: 400; }
.ghost:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--mute); text-decoration: underline; padding: 0; justify-self: start; }
.cost { font-size: 12px; color: var(--mute); margin: 0; font-family: ui-monospace, monospace; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); color: var(--accent); border: 1px solid var(--line); }
.how h3 { margin: 12px 0 6px; }
.how p { margin: 0; color: var(--mute); line-height: 1.5; }
footer { text-align: center; color: var(--mute); font-size: 13px; padding: 30px 0 40px; }
.note { margin: -6px 0 0; font-size: 13px; color: var(--mute); }
.note.ok { color: #5fe0a0; }
.eyebrow { display: inline-block; margin: 0; line-height: 1.4; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.promise { color: var(--ink); font-size: 15px; margin: 6px auto 0; max-width: 560px; text-align: center; line-height: 1.5; }
.promise strong { color: #5fe0a0; }
.ghost { display: grid; gap: 3px; justify-items: center; }
.ghost .sub2 { font-size: 12px; font-weight: 400; color: var(--mute); }
.stage-col { display: grid; gap: 14px; min-width: 0; }
.versions { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.vhead { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.vhead span { font-weight: 700; }
.vhead b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--bg2); color: var(--accent); font-size: 12px; }
.vhead small { color: var(--mute); }
.vlist { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.vthumb { flex: none; display: grid; gap: 6px; justify-items: center; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 6px; color: var(--mute); font-size: 12px; }
.vthumb canvas { display: block; border-radius: 6px; max-height: 110px; width: auto; }
.vthumb.on { border-color: var(--accent); color: var(--ink); }
.ghost.wide { width: 100%; }
.vthumb.paid { border-color: #5fe0a0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--mute); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.jbox { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: rgba(255,255,255,0.02); }
.jbox h3 { margin: 0; font-size: 16px; }
.gform { display: grid; gap: 10px; }
.gform input, .gform textarea { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; }
.gform textarea { resize: vertical; }
.gform .cta { margin: 0; max-width: none; }
.badge { margin: -4px 0 0; font-size: 13px; color: #5fe0a0; }
footer a, .promise a { color: var(--mute); }
.gpage { max-width: 620px; padding-top: 20px; }
.gpage h1 { font-size: clamp(30px, 5vw, 44px); }
.gpage .sub { margin: 0 0 22px; text-align: left; }
.gpage .field input[type=email], .gpage .field input[type=file] { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
.done { background: var(--card); border: 1px solid #5fe0a0; border-radius: var(--radius); padding: 20px; color: #5fe0a0; }
#vibes { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
#vibes::-webkit-scrollbar { display: none; }
#vibes .chip { flex: none; padding: 7px 11px; font-size: 13px; white-space: nowrap; }
.top-note a { color: var(--ink); }
input[type=text]:disabled { opacity: .45; }

/* ---------- SEO content sections + guide pages ---------- */
.sec { margin-top: 90px; }
.sec h2, .doc h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 10px; letter-spacing: -0.01em; }
.sec > .lead, .doc .lead { color: var(--mute); font-size: 17px; line-height: 1.55; margin: 0 0 24px; max-width: 760px; }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.exgrid.g-9x16 { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.ex { margin: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ex video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.ex-9x16 video { aspect-ratio: 9 / 16; }
.ex figcaption { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ex figcaption span { color: var(--mute); font-size: 13px; }
.ex video { cursor: pointer; }
.play-ex { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; border: 0; background: none; cursor: pointer; }
.ex-9x16 .play-ex { aspect-ratio: 9 / 16; }
.play-ex span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; box-sizing: border-box; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 18px; box-shadow: 0 8px 22px -6px rgba(0,0,0,.55); transition: transform .2s; }
.play-ex:hover span { transform: scale(1.1); }
.ex.playing .play-ex { display: none; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }
.feat div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p, .uses li, .doc p, .doc li { color: var(--mute); line-height: 1.6; margin: 0; }
.feat a, .doc a, .faq a, .small a, .uses a { color: var(--ink); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pc.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px rgba(255,107,53,.45); }
.pc h3 { margin: 0; font-size: 17px; color: var(--mute); }
.pc .amt { font-size: 38px; font-weight: 800; margin: 6px 0 12px; }
.pc .amt small { font-size: 15px; font-weight: 500; color: var(--mute); }
.pc ul { margin: 0; padding-left: 18px; color: var(--mute); line-height: 1.8; }
.tablewrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; margin: 8px 0 14px; font-size: 15px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { color: var(--mute); font-size: 13px; font-weight: 600; }
.cmp td:nth-child(2) { color: var(--ink); }
.cmp td { color: var(--mute); }
.small { color: var(--mute); font-size: 13px; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }
.uses b { color: var(--ink); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 600; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--mute); line-height: 1.6; }
.cta-end { text-align: center; }
.cta-end .lead { margin: 0 auto 20px; }
a.cta.inline, .cta.inline { display: inline-block; width: auto; padding: 16px 34px; text-decoration: none; }
.fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; }
footer p { margin: 0; }
.doc { max-width: 820px; padding-top: 16px; }
.doc h1 { font-size: clamp(32px, 5vw, 50px); text-align: left; margin: 10px 0 14px; }
.doc h2 { margin-top: 44px; font-size: clamp(22px, 2.6vw, 28px); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc .exgrid { margin: 10px 0 10px; }
.crumbs { font-size: 13px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.cta-box { margin: 56px 0 10px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; }
.cta-box h2 { margin: 0 0 8px !important; }
.cta-box p { margin: 0 0 18px; }

.hint { font-size: 13px; color: var(--mute); }
.hint.bad { color: #ff6b6b; }
input.bad { border-color: #ff6b6b; }
.resume { margin: 14px auto 0; text-align: center; font-size: 14px; color: var(--mute); }
.resume[hidden] { display: none; }

.customize { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.customize summary { cursor: pointer; list-style: none; padding: 12px 14px; display: grid; gap: 3px; position: relative; padding-right: 40px; }
.customize summary::-webkit-details-marker { display: none; }
.customize summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; line-height: 1; }
.customize[open] summary::after { content: "–"; }
.customize summary > span { font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.customize summary small { font-size: 13px; color: var(--mute); }
.customize-body { display: grid; gap: 14px; padding: 4px 14px 14px; }
.customize summary i { text-transform: none; font-style: normal; font-weight: 400; opacity: .7; letter-spacing: 0; }

/* desktop: logo drop zone on the left, the form on the right */
@media (min-width: 1000px) {
  .upload-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; max-width: 1060px; margin: 8px auto 0; align-items: stretch; text-align: left; }
  .upload-grid .drop { max-width: none; margin: 0; min-height: 260px; text-align: center; }
  .upload-grid .options { max-width: none; margin: 0; }
  .hero > .cta { margin-top: 28px; }
  .upload-grid #vibes { gap: 5px; }
  .upload-grid #vibes .chip { flex: 1 1 auto; padding: 7px 8px; }
}


/* one quiet row of reassurance under the Animate button */
.trust { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--mute); }
.trust li::before { content: "✓"; color: #5fe0a0; font-weight: 700; margin-right: 6px; }
.trust a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.trust a:hover { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* homepage sections share the hero's center line: headings + intros centered, cards stay left-aligned */
.hero ~ .sec > h2, .hero ~ .sec > .lead, .hero ~ .sec > .small { text-align: center; margin-left: auto; margin-right: auto; }
.hero ~ .sec > .lead { max-width: 760px; }

/* ---------- engine 2: stage veil, quick-version notice, syllable counter, start error ---------- */
.stage-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 13, 20, 0.55); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.jbox.quick { border-color: rgba(255, 200, 90, 0.45); background: rgba(255, 200, 90, 0.06); }
.jbox.quick h3 { color: #ffd27a; }
.jbox.quick .check { color: var(--ink); }
.hint.syl { margin-top: -2px; }
.go-error { max-width: 560px; margin: 4px auto 0; text-align: center; font-size: 14px; }
#quick-status:empty { display: none; }

/* a visitor who hit a daily limit is told so plainly (never a silent quick version) */
.limit-note { max-width: 560px; margin: 14px auto 0; padding: 12px 16px; border-radius: 12px; background: rgba(255, 176, 64, 0.12); border: 1px solid rgba(255, 176, 64, 0.45); color: var(--ink); font-size: 15px; text-align: center; }
