:root {
  --bg: #0f0f12;
  --panel: #18181d;
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --line: #2a2a31;
  --accent: #ffd400;
  --accent-ink: #111111;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a, .linkish { color: var(--muted); text-decoration: none; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
nav a:hover, .linkish:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 22px; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { padding: 16px 30px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.drop { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255, 212, 0, .05); }
.hint { color: var(--muted); font-size: 14px; }
.trust { color: var(--muted); font-size: 14px; margin-top: 14px; }
.phone { justify-self: center; width: 250px; aspect-ratio: 9 / 18; border-radius: 34px; border: 8px solid #26262c; background: linear-gradient(160deg, #3b3b46, #15151a 55%, #2b1f0a); position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.screen { position: absolute; inset: 0; }
.demo-cap { position: absolute; left: 0; right: 0; top: 66%; text-align: center; font: 900 30px/1 "Arial Black", Arial, sans-serif; color: #fff; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.demo-cap span { display: inline-block; animation: hl 1.8s infinite; }
.demo-cap span:nth-child(2) { animation-delay: .6s; }
.demo-cap span:nth-child(3) { animation-delay: 1.2s; }
@keyframes hl { 0%, 33% { color: var(--accent); transform: scale(1.12); } 34%, 100% { color: #fff; transform: scale(1); } }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 24px 20px 56px; align-items: start; }
.stage { position: sticky; top: 12px; }
.player { position: relative; margin: 0 auto; width: 100%; max-width: calc(76vh * var(--ratio, 0.5625)); background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.player canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.status { min-height: 1.5em; color: var(--muted); margin: 10px 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.panel h2:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#perline { width: 70%; vertical-align: middle; accent-color: var(--accent); }
#perline-v { margin-left: 10px; font-weight: 700; }
.actions { display: grid; gap: 10px; margin: 0 0 6px; }
.plan-note { margin: 0; font-size: 14px; color: var(--muted); }
.lines { max-height: 340px; overflow: auto; display: grid; gap: 6px; margin-bottom: 14px; }
.line { display: flex; gap: 8px; align-items: center; }
.line .t { flex: none; width: 46px; background: none; border: 0; color: var(--muted); font: 13px/1 ui-monospace, monospace; cursor: pointer; text-align: left; padding: 0; }
.line input { flex: 1; min-width: 0; background: #0f0f12; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 15px; line-height: 1.2; }

section h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.02em; margin: 0 0 20px; }
.how, .styles-show, .pricing, .faq { padding: 48px 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-weight: 900; font-size: 28px; color: var(--accent); }
.steps strong { color: var(--ink); display: block; font-size: 18px; }
.style-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sc { aspect-ratio: 9 / 12; border-radius: var(--radius); background: linear-gradient(170deg, #34343d, #121216); display: flex; align-items: flex-end; justify-content: center; padding: 0 10px 28%; text-align: center; font: 900 22px/1.15 "Arial Black", Arial, sans-serif; color: #fff; }
.sc-pop { -webkit-text-stroke: 1.2px #000; paint-order: stroke fill; }
.sc-pop b { color: var(--accent); font-size: 1.12em; }
.sc-karaoke { font-size: 19px; text-shadow: 0 2px 0 #000; }
.sc-karaoke b { background: #16a34a; border-radius: 6px; padding: 0 5px; }
.sc-clean { font: 700 15px/1.3 system-ui, sans-serif; }
.sc-clean span { background: rgba(0, 0, 0, .62); border-radius: 6px; padding: 3px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sc-neon b { color: #22d3ee; text-shadow: 0 0 14px #22d3ee; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 38px; font-weight: 900; margin: 6px 0 10px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }

dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; max-width: 440px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.modal-inner { padding: 26px; position: relative; display: grid; gap: 12px; }
.modal-inner h3 { margin: 0; font-size: 22px; }
.modal-inner p { margin: 0; }
.x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.mini-plans { display: grid; gap: 10px; }
.code { font: 700 18px/1.3 ui-monospace, monospace; background: #0f0f12; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; user-select: all; }
.code-in { background: #0f0f12; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 16px ui-monospace, monospace; }
.offscreen { position: fixed; left: -10px; top: -10px; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0 40px; }
footer .links a { color: var(--muted); margin-right: 16px; }
footer p { margin: 8px 0; }

@media (max-width: 860px) {
  .hero-grid, .editor { grid-template-columns: 1fr; }
  .phone { display: none; }
  .stage { position: static; }
  .player { max-width: calc(60vh * var(--ratio, 0.5625)); }
  .steps, .style-cards { grid-template-columns: repeat(2, 1fr); }
  .sc { aspect-ratio: 4 / 3; padding-bottom: 12%; }
  .plans { grid-template-columns: 1fr; }
}
