@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #09090f;
  --bg2: #0f0f18;
  --card: rgba(255, 255, 255, .045);
  --card-solid: #14141f;
  --card-hover: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f8;
  --text2: #b9b9c8;
  --muted: #7e7e93;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #f59e0b;
  --green: #22c55e;
  --red: #f43f5e;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #ec4899 55%, #f59e0b 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(236, 72, 153, .14) 55%, rgba(245, 158, 11, .12));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); opacity: .35; pointer-events: none;
}
body::before { width: 620px; height: 620px; background: #7c3aed; top: -260px; left: -180px; }
body::after { width: 520px; height: 520px; background: #db2777; top: 120px; right: -220px; opacity: .22; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

/* ------------------------------------------------------------ layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 15, .7); border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(236, 72, 153, .7);
}
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; }
.topbar nav a { white-space: nowrap; text-decoration: none; color: var(--text2); padding: 8px 14px; border-radius: 99px; font-weight: 500; font-size: 14px; }
.topbar nav a:hover, .topbar nav a.active { color: var(--text); background: var(--card-hover); }
main { padding-bottom: 80px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }

/* ------------------------------------------------------------ type */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--text2); margin: 0 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2);
  padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 14px 24px; border-radius: 99px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(236, 72, 153, .95); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--card-hover); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--text2); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.block { margin-top: 56px; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .7;
}

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: 84px 0 40px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 22px auto 18px; max-width: 860px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text2); max-width: 640px; margin: 0 auto 36px; }
.url-form {
  display: flex; gap: 8px; max-width: 720px; margin: 0 auto; padding: 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.url-form:focus-within { border-color: rgba(236, 72, 153, .6); box-shadow: 0 0 0 4px rgba(236, 72, 153, .15), var(--shadow); }
.url-form .ico { display: grid; place-items: center; padding-left: 14px; color: var(--muted); }
.url-form .ico svg { width: 20px; height: 20px; }
.url-form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; padding: 10px 6px; }
.url-form input::placeholder { color: var(--muted); }
.form-error {
  max-width: 720px; margin: 14px auto 0; color: #fda4af; font-weight: 500; font-size: 14px; display: none;
}
.form-error.show { display: block; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; align-items: center; }
.platforms span.p { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--text2); font-weight: 500; }
.advanced { max-width: 720px; margin: 16px auto 0; text-align: left; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; list-style: none; display: table; margin: 0 auto; padding: 4px 10px; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary:hover { color: var(--text2); }
.advanced-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
.advanced-body label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.advanced-body small { color: var(--muted); font-weight: 400; }
select { background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }

/* ------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text2); font-size: 14px; }

/* ------------------------------------------------------------ project grid */
.grid-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pcard {
  border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer;
  transition: transform .2s, border-color .2s; text-decoration: none; display: block;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pcard .thumb { aspect-ratio: 16/10; background: var(--card-solid) center/cover no-repeat; position: relative; }
.pcard .thumb .badge { position: absolute; top: 10px; left: 10px; }
.pcard .body { padding: 14px 16px 16px; }
.pcard .t { font-weight: 700; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pcard .s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: rgba(9, 9, 15, .75); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.badge.ok { color: #86efac; } .badge.run { color: #fcd34d; } .badge.err { color: #fda4af; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ------------------------------------------------------------ processing */
.processing { max-width: 640px; margin: 64px auto 0; text-align: center; }
.processing .thumb-lg { width: 160px; aspect-ratio: 9/16; border-radius: 18px; margin: 0 auto 22px; background: var(--card-solid) center/cover; border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.processing .thumb-lg::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(236, 72, 153, .45), transparent); animation: scan 2.2s ease-in-out infinite; }
.processing .thumb-lg.stopped::after { display: none; }
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }
.processing h2 { font-size: 28px; margin-bottom: 8px; }
.bar { height: 10px; border-radius: 99px; background: var(--card-hover); overflow: hidden; margin: 26px 0 8px; }
.bar > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.checklist li .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); flex: none; }
.checklist li .ic svg { width: 14px; height: 14px; }
.checklist li.done { color: var(--text2); }
.checklist li.done .ic { background: var(--green); border-color: var(--green); color: #052e16; }
.checklist li.now { color: var(--text); border-color: rgba(236, 72, 153, .5); background: rgba(236, 72, 153, .08); }
.checklist li.now .ic { border-color: var(--pink); border-top-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { text-align: left; margin-top: 26px; padding: 22px; border-radius: 16px; background: rgba(244, 63, 94, .08); border: 1px solid rgba(244, 63, 94, .35); }
.error-box h3 { font-size: 18px; margin-bottom: 6px; color: #fecdd3; }
.error-box p { margin: 0 0 16px; color: var(--text2); }
.error-box details { margin-top: 14px; font-size: 12px; color: var(--muted); }
.error-box pre { white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; background: rgba(0, 0, 0, .3); padding: 12px; border-radius: 10px; }

/* ------------------------------------------------------------ result */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 0; color: var(--text2); text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.r-hero { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; margin-top: 26px; }
.phone {
  width: 240px; border-radius: 30px; padding: 8px; background: linear-gradient(160deg, #2a2a3a, #11111a);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); position: relative;
}
.phone img { width: 100%; border-radius: 23px; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.phone.landscape img { aspect-ratio: 16/10; }
.r-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 14px 0 12px; }
.r-hero .summary { font-size: 18px; color: var(--text2); margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--text2); font-size: 13px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; }
.pill.hot { background: var(--grad-soft); border-color: rgba(236, 72, 153, .35); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); }
.stat .icon svg { width: 20px; height: 20px; }
.stat .tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(34, 197, 94, .12); color: #86efac; }
.stat .tag.mid { background: rgba(245, 158, 11, .12); color: #fcd34d; }
.stat .tag.low { background: rgba(148, 163, 184, .12); color: #cbd5e1; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stat .l { font-weight: 600; margin-top: 2px; }
.stat .d { color: var(--muted); font-size: 13px; margin-top: 6px; }

.hook { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 30px; background: var(--grad-soft); border-color: rgba(236, 72, 153, .3); }
.hook .big-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .9); }
.hook .big-ic svg { width: 28px; height: 28px; color: #fff; }
.hook h3 { font-size: 22px; margin-bottom: 8px; }
.hook p { margin: 0; color: var(--text); font-size: 16px; }

/* timeline */
.tl { padding: 26px; }
.tl-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 8px; }
.tl-bar div { min-width: 3px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text2); margin-bottom: 18px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.scenes { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.scenes::-webkit-scrollbar { height: 8px; } .scenes::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.scene {
  flex: none; width: 132px; border-radius: 14px; overflow: hidden; background: var(--card-solid); border: 2px solid transparent;
  cursor: pointer; scroll-snap-align: start; transition: border-color .15s, transform .15s; text-align: left; padding: 0;
}
.scene:hover { transform: translateY(-2px); }
.scene.sel { border-color: var(--pink); }
.scene .img { height: 120px; background: #000 left center/cover no-repeat; position: relative; }
.scene .img .time { position: absolute; bottom: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); }
.scene .cap { padding: 8px 10px 10px; font-size: 12px; }
.scene .cap b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene .cap span { color: var(--muted); }
.scene-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.scene-detail img { width: 100%; border-radius: 14px; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.fact .fi { width: 30px; height: 30px; border-radius: 9px; background: var(--card-hover); display: grid; place-items: center; color: var(--text2); }
.fact .fi svg { width: 15px; height: 15px; }
.fact .fl { font-size: 12px; color: var(--muted); font-weight: 600; }
.fact .fv { font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: var(--card-hover); border: 1px solid var(--line); font-size: 12px; font-weight: 600; margin: 3px 6px 3px 0; color: var(--text2); }
.chip.new { border-color: rgba(245, 158, 11, .5); color: #fcd34d; }

/* structure stepper */
.stepper { position: relative; display: grid; gap: 14px; }
.stepper .item { display: grid; grid-template-columns: 92px 1fr; gap: 18px; }
.stepper .when { text-align: right; padding-top: 18px; font-weight: 700; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.stepper .box { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--violet)); }
.stepper .box h4 { margin: 0 0 4px; font-size: 16px; }
.stepper .box p { margin: 0; color: var(--text2); font-size: 14px; }
.stepper .box .how { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.stepper .box .how svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.rules li .ck { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; }
.rules li .ck svg { width: 14px; height: 14px; color: #fff; }

/* script */
.script { display: grid; gap: 14px; }
.beat { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.beat .n { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; text-align: center; line-height: 1.1; }
.beat .n b { font-size: 18px; } .beat .n small { font-size: 10px; color: var(--text2); display: block; }
.beat h4 { margin: 0; font-size: 17px; }
.beat .purpose { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.beat .say { font-size: 16px; line-height: 1.7; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.beat .say mark { background: rgba(236, 72, 153, .18); color: #fbcfe8; border: 1px dashed rgba(236, 72, 153, .6); border-radius: 6px; padding: 1px 6px; }
.beat .how2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--text2); }
.beat .how2 div { display: flex; gap: 8px; } .beat .how2 svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }

.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.style-grid .card { margin: 0; padding: 22px; }
.style-grid h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.style-grid h4 svg { width: 18px; height: 18px; color: var(--pink); }
.style-grid p { margin: 0; color: var(--text2); font-size: 14px; }

.cta-band { margin-top: 56px; padding: 40px; border-radius: 26px; background: var(--grad); text-align: center; position: relative; overflow: hidden; }
.cta-band h3 { font-size: 28px; margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0 auto 22px; max-width: 560px; color: rgba(255, 255, 255, .9); }
.cta-band .btn { background: #fff; color: #111; }
.notice { display: flex; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 16px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3); color: var(--text2); font-size: 14px; }
.notice svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 1px; }
details.transcript summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
details.transcript summary::-webkit-details-marker { display: none; }
details.transcript .lines { margin-top: 16px; display: grid; gap: 8px; color: var(--text2); }
details.transcript .lines span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 10px; font-size: 13px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: #fff; color: #111; padding: 12px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; transition: transform .3s; z-index: 50; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

/* dev panel */
.gap-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.gap-item img { width: 180px; border-radius: 10px; }
.status { font-size: 11px; padding: 3px 9px; border-radius: 99px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.status.open { background: rgba(244, 63, 94, .15); color: #fda4af; }
.status.in_progress { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.status.done { background: rgba(34, 197, 94, .15); color: #86efac; }
.status.rejected { background: rgba(148, 163, 184, .15); color: #cbd5e1; }
.chip.on { border-color: rgba(34, 197, 94, .5); color: #86efac; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .steps, .style-grid { grid-template-columns: 1fr; }
  .r-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .r-hero .meta, .r-hero .actions { justify-content: center; }
  .phone { width: 200px; }
  .scene-detail { grid-template-columns: 1fr; }
  .stepper .item { grid-template-columns: 1fr; gap: 6px; } .stepper .when { text-align: left; padding: 0; }
  .beat { grid-template-columns: 1fr; } .beat .how2 { grid-template-columns: 1fr; }
  .hook { grid-template-columns: 1fr; }
  .gap-item { grid-template-columns: 1fr; }
  .advanced-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .url-form { flex-direction: column; border-radius: 22px; }
  .url-form .ico { display: none; }
  .url-form input { padding: 12px; }
  .card { padding: 20px; }
  .topbar nav a.hide-sm { display: none; }
  .cta-band { padding: 28px 20px; }
}

/* ------------------------------------------------------------ tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-shade { position: absolute; inset: 0; }
.tour-spot {
  position: fixed; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(5, 5, 10, .74), 0 0 0 2px rgba(236, 72, 153, .9), 0 0 30px 6px rgba(236, 72, 153, .35);
  transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease;
}
.tour.centered .tour-spot { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(5, 5, 10, .8); }
.tour-pop {
  position: fixed; width: 360px; max-width: calc(100vw - 24px); padding: 22px; border-radius: 20px;
  background: #171724; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transition: top .3s ease, left .3s ease; animation: tourIn .25s ease;
}
@keyframes tourIn { from { opacity: 0; transform: translateY(8px); } }
.tour.centered .tour-pop { top: 50%; left: 50%; transform: translate(-50%, -50%); animation: none; }
.tour.welcome .tour-pop { width: 420px; text-align: center; padding: 30px 28px 24px; }
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-count { font-size: 12px; font-weight: 700; color: var(--pink); letter-spacing: .3px; }
.tour-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.tour-x:hover { color: var(--text); }
.tour-art { display: none; justify-content: center; margin: 4px 0 16px; }
.tour.welcome .tour-art { display: flex; }
.tour-art .logo-mark { width: 64px; height: 64px; border-radius: 20px; }
.tour-art .logo-mark svg { width: 30px; height: 30px; }
.tour-title { font-size: 19px; margin-bottom: 8px; }
.tour.welcome .tour-title { font-size: 24px; }
.tour-text { margin: 0; color: var(--text2); font-size: 14.5px; }
.tour-text b { color: var(--text); }
.tour-text mark { background: rgba(236, 72, 153, .18); color: #fbcfe8; border-radius: 6px; padding: 0 5px; }
.tour-dots { display: flex; gap: 6px; margin: 16px 0 0; }
.tour.welcome .tour-dots { display: none; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-strong); transition: width .2s; }
.tour-dots i.done { background: rgba(236, 72, 153, .5); }
.tour-dots i.on { width: 22px; background: var(--grad); }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.tour.welcome .tour-foot { flex-direction: column-reverse; gap: 14px; }
.tour.welcome .tour-nav { width: 100%; }
.tour.welcome .tour-next { width: 100%; padding: 14px; font-size: 15px; }
.tour.welcome .tour-prev { display: none; }
.tour-nav { display: flex; gap: 8px; }
.tour-skip { font-size: 13px; color: var(--muted); }
.help-btn { display: inline-flex; align-items: center; gap: 6px; }
.help-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .tour:not(.centered) .tour-pop { top: auto !important; bottom: 12px; left: 12px !important; right: 12px; width: auto; }
}

/* ------------------------------------------------------------ conta e créditos */
.show-sm { display: none; }
.credit-pill { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid rgba(236, 72, 153, .35); background: var(--grad-soft) !important; color: var(--text) !important; }
.credit-pill svg { width: 15px; height: 15px; color: var(--orange); }
.verify-banner { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .35); color: var(--text2); font-size: 14px; }
.verify-banner > svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.verify-banner > div { flex: 1; }
.credit-hint { margin-top: 14px; color: var(--muted); font-size: 13px; }
.credit-hint a { color: var(--text2); font-weight: 600; }
.notice.ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); }
.notice.ok svg { color: var(--green); }
.credits-head { margin-top: 30px; padding: 32px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, .3); }
.credits-big { font-size: clamp(40px, 7vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(236, 72, 153, .06)); }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan p { margin: 0 0 18px; font-size: 14px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan .per { color: var(--text2); font-size: 14px; margin: 4px 0 22px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; color: var(--text2); }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
table.ledger td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.ledger tr:last-child td { border-bottom: 0; }
table.ledger td:first-child { color: var(--muted); width: 140px; }
table.ledger td.plus, table.ledger td.minus { text-align: right; font-weight: 800; }
table.ledger td.plus { color: #86efac; } table.ledger td.minus { color: var(--text2); }

/* ------------------------------------------------------------ login */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; border-radius: 24px; background: rgba(20, 20, 31, .85); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text2); margin: 0 0 24px; font-size: 14.5px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text2); }
.field input { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; font-size: 15px; outline: none; color: var(--text); }
.field input:focus { border-color: rgba(236, 72, 153, .7); box-shadow: 0 0 0 4px rgba(236, 72, 153, .15); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px; }
.strength { height: 5px; border-radius: 99px; background: var(--card-hover); overflow: hidden; margin-top: 2px; }
.strength i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.strength-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.auth-card .btn-primary { width: 100%; padding: 15px; margin-top: 6px; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border: 0; }
.btn-google:hover { background: #f1f1f1; }
.btn-google svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.auth-links { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text2); display: grid; gap: 8px; }
.auth-links a { color: var(--text); font-weight: 600; }
.auth-msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.auth-msg.err { display: block; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .35); color: #fecdd3; }
.auth-msg.ok { display: block; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 13px; height: 13px; }
.consent { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.consent a { color: var(--text2); }

/* ------------------------------------------------------------ site de vendas */
.site-nav .btn { padding: 9px 18px; font-size: 14px; }
.site-hero { padding: 90px 0 30px; text-align: center; }
.site-hero h1 { font-size: clamp(38px, 6.4vw, 70px); font-weight: 800; max-width: 900px; margin: 22px auto 18px; }
.site-hero .lead { font-size: clamp(16px, 2vw, 20px); color: var(--text2); max-width: 660px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 16px 28px; font-size: 16px; }
.trust { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust svg { width: 15px; height: 15px; color: var(--green); }
.mock { margin: 60px auto 0; max-width: 980px; border-radius: 24px; padding: 10px; background: linear-gradient(160deg, rgba(139, 92, 246, .35), rgba(236, 72, 153, .2), rgba(245, 158, 11, .25)); box-shadow: 0 40px 120px -40px rgba(236, 72, 153, .55); }
.mock-inner { border-radius: 18px; background: #0d0d15; border: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: 170px 1fr; gap: 22px; text-align: left; }
.mock-phone { aspect-ratio: 9/16; border-radius: 18px; background: linear-gradient(160deg, #2b2340, #15121f); border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.mock-phone::after { content: ""; position: absolute; left: 0; right: 0; height: 35%; background: linear-gradient(180deg, transparent, rgba(236, 72, 153, .45), transparent); animation: scan 2.6s ease-in-out infinite; }
.mock-phone .play { position: absolute; inset: 0; display: grid; place-items: center; }
.mock-phone .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.mock-phone .play svg { width: 22px; height: 22px; color: #fff; }
.mock h4 { margin: 0 0 6px; font-size: 18px; }
.mock .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats div { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.mock-stats b { display: block; font-size: 22px; }
.mock-stats span { font-size: 12px; color: var(--muted); }
.mock-bar { display: flex; gap: 3px; height: 12px; margin-top: 16px; border-radius: 99px; overflow: hidden; }
.mock-script { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.mock-script mark { background: rgba(236, 72, 153, .18); color: #fbcfe8; border: 1px dashed rgba(236, 72, 153, .6); border-radius: 6px; padding: 0 5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.feature .fi2 { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 16px; }
.feature .fi2 svg { width: 22px; height: 22px; color: #f9a8d4; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text2); font-size: 14px; }
.center { text-align: center; }
.center .section-sub { max-width: 620px; margin-left: auto; margin-right: auto; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 18px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--text2); }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 80px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--text2); text-decoration: none; }
.legal { max-width: 780px; margin: 0 auto; padding: 50px 0 20px; color: var(--text2); }
.legal h1 { color: var(--text); font-size: 34px; margin-bottom: 8px; }
.legal h2 { color: var(--text); font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { line-height: 1.75; }

@media (max-width: 860px) {
  .plans, .features { grid-template-columns: 1fr; }
  .mock-inner { grid-template-columns: 1fr; } .mock-phone { max-width: 160px; margin: 0 auto; }
  .verify-banner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .show-sm { display: inline; }
  .topbar nav { gap: 2px; } .topbar nav a { padding: 8px 10px; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 26px 20px; }
}
#navAuth { display: contents; }
.topbar nav { align-items: center; }

/* credenciais (painel da equipe) */
.cred-group { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--pink); margin: 26px 0 4px; }
.cred { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 22px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cred-info > div { margin-top: 6px; font-size: 13px; }
.cred-help { font-size: 12px; }
.cred-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cred-form input { flex: 1; min-width: 180px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--text); }
.cred-msg { grid-column: 1 / -1; font-size: 13px; }
.cred-msg.ok { color: #86efac; } .cred-msg.err { color: #fda4af; }
@media (max-width: 860px) { .cred { grid-template-columns: 1fr; } }
