@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }
:root {
  --bg: #0f0e12;
  --bg-2: #15141a;
  --panel: #1b1a21;
  --panel-2: #222029;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3efe8;
  --muted: #a49f99;
  --faint: #6f6a66;
  --accent: #f0a04b;
  --accent-2: #ffc27a;
  --accent-ink: #1a1208;
  --blue: #7aa7ff;
  --violet: #b48cff;
  --green: #4fd1a1;
  --pink: #f27da0;
  --paper: #faf6ee;
  --ink: #1b1813;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

/* glow background */
.glow { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow::before { width: 720px; height: 520px; left: -160px; top: -200px; background: radial-gradient(closest-side, rgba(240, 160, 75, .45), transparent); }
.glow::after { width: 760px; height: 560px; right: -220px; top: 120px; background: radial-gradient(closest-side, rgba(122, 120, 255, .28), transparent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(15, 14, 18, .72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 25px; text-decoration: none; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.langs a { font: 600 12px var(--mono); color: var(--faint); text-decoration: none; padding: 5px 8px; border-radius: 999px; }
.langs a:hover { color: var(--text); }
.langs a.on { background: rgba(255, 255, 255, .08); color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(240, 160, 75, .6); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero { padding: 76px 0 40px; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.pill-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.pill-new b { white-space: nowrap; background: rgba(240, 160, 75, .16); color: var(--accent); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 96px); line-height: .98; letter-spacing: -.025em; margin: 0 auto; max-width: 15ch; }
h1 em { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 26px auto 0; }
.signup { display: flex; gap: 8px; max-width: 520px; margin: 34px auto 0; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.signup:focus-within { border-color: rgba(240, 160, 75, .6); box-shadow: 0 0 0 4px rgba(240, 160, 75, .12); }
.signup input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 16px var(--sans); padding: 0 16px; }
.signup input::placeholder { color: var(--faint); }
.form-note { color: var(--faint); font-size: 13.5px; margin-top: 14px; }
.form-msg { min-height: 22px; font-size: 14.5px; margin-top: 10px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-extra { display: none; max-width: 520px; margin: 14px auto 0; gap: 8px; flex-wrap: wrap; justify-content: center; }
.form-extra.show { display: flex; animation: rise .4s ease both; }
.form-extra p { width: 100%; margin: 0 0 4px; color: var(--muted); font-size: 14.5px; }
.chipbtn { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 14px var(--sans); cursor: pointer; transition: all .2s; }
.chipbtn:hover { border-color: var(--accent); }
.chipbtn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.for { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 30px auto 0; color: var(--faint); font-size: 14px; }
.for span { display: inline-flex; align-items: center; gap: 8px; }
.for span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-dim, #9a6a36); }

/* film frame */
.film-wrap { margin: 56px auto 0; width: min(1180px, 100% - 32px); position: relative; }
.film-wrap::before { content: ""; position: absolute; inset: 6% 4% -4%; border-radius: 40px; background: linear-gradient(120deg, rgba(240, 160, 75, .35), rgba(122, 120, 255, .3)); filter: blur(60px); opacity: .55; z-index: -1; }
.film { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b0a0e; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.film-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.film-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.film-toggle svg { width: 16px; height: 16px; }
.film-toggle .i-play { display: none; }
.film.paused ~ .film-bar .i-play, .film-wrap:has(.film.paused) .i-play { display: block; }
.film-wrap:has(.film.paused) .i-pause { display: none; }
.film-chapters { flex: 1; display: grid; grid-template-columns: 0.7fr repeat(7, 1fr) 0.7fr; gap: 6px; }
.film-chapter { position: relative; background: none; border: 0; padding: 10px 0 0; cursor: pointer; text-align: left; color: var(--faint); font: 12.5px var(--sans); }
.film-chapter::before, .film-chapter::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); width: 100%; }
.film-chapter::after { background: var(--accent); width: calc(var(--p, 0) * 100%); }
.film-chapter.active { color: var(--text); }
.film-chapter span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.film-alt { text-align: right; margin: 10px 0 0; font-size: 13px; }
.film-alt a { color: var(--faint); }

/* ---------- STAGE ---------- */
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  font-family: var(--sans); color: var(--text); background: radial-gradient(1200px 600px at 10% -10%, #2a1d12 0%, transparent 60%), radial-gradient(900px 600px at 110% 20%, #191a33 0%, transparent 60%), #0d0c10; overflow: hidden; }
.win { position: absolute; inset: 34px 44px 34px; border-radius: 16px; background: #141318; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .7s; }
.stage[data-scene=intro] .win, .stage[data-scene=end] .win { transform: scale(.92) translateY(30px); opacity: 0; }
.win-top { height: 54px; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #100f14; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3740; }
.dots i:nth-child(1) { background: #ff6159; } .dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #28c941; }
.w-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; }
.w-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.w-mark svg { width: 15px; }
.w-crumb { color: #8d8882; font-size: 14px; margin-left: 10px; }
.w-crumb b { font-weight: 400; margin: 0 6px; } .w-crumb em { font-style: normal; color: var(--text); font-family: var(--serif); font-size: 18px; }
.w-steps { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #8d8882; }
.w-step { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid transparent; transition: all .4s; }
.w-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); font-style: normal; border: 1px solid #3a3740; transition: all .4s; }
.w-step.active { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--text); }
.w-step.active i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-step.w-done i { border-color: #9a6a36; color: var(--accent); }
.w-line { width: 22px; height: 1px; background: #3a3740; }
.win-body { position: absolute; inset: 54px 0 0; }
.lay { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.lay.on { opacity: 1; visibility: visible; transition: opacity .5s .1s, visibility 0s; }

/* waveforms */
.wave { display: flex; align-items: center; gap: 2px; height: 40px; }
.wave i { flex: 1; height: calc(var(--h) * 100%); min-height: 2px; border-radius: 2px; background: var(--c, #6f6a66); transform: scaleY(0); transform-origin: center; }
.on .wave i { animation: grow .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--base, 0s) + var(--k) * 9ms); }
@keyframes grow { to { transform: scaleY(1); } }

/* import */
.s-import { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-bottom: 60px; }
.drop { width: 960px; height: 96px; border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #a49f99; font-size: 17px; }
.drop b { color: var(--text); font-weight: 500; } .drop small { font-family: var(--mono); font-size: 12px; color: #6f6a66; }
.drop-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(240, 160, 75, .14); color: var(--accent); display: grid; place-items: center; }
.drop-ico svg { width: 20px; }
.s-import.on .drop { animation: dropPulse 1.6s ease .2s; }
@keyframes dropPulse { 30% { border-color: var(--accent); background: rgba(240, 160, 75, .07); transform: scale(1.015); } 100% { transform: none; } }
.songs { width: 960px; display: flex; flex-direction: column; gap: 12px; }
.song { display: grid; grid-template-columns: 34px 220px 1fr 190px 48px; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 14px; background: #1b1a21; border: 1px solid rgba(255, 255, 255, .07); opacity: 0; }
.s-import.on .song { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1s + var(--d) * .35s); --base: calc(1.2s + var(--d) * .35s); }
.song .wave { height: 38px; }
.song .wave i { background: var(--c); opacity: .85; }
.song-n { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font: 600 13px var(--mono); }
.song-t { display: flex; flex-direction: column; } .song-t b { font-weight: 600; font-size: 16px; } .song-t small { color: #6f6a66; font: 12px var(--mono); }
.song-m { position: relative; height: 22px; font-size: 13.5px; }
.song-m span { position: absolute; inset: 0; display: flex; align-items: center; }
.scan { color: #8d8882; } .meta { color: var(--text); font-family: var(--mono); font-size: 12.5px; opacity: 0; }
.s-import.on .scan { animation: fadeOut .3s both; animation-delay: calc(2.6s + var(--d) * .35s); }
.s-import.on .meta { animation: fadeIn .4s both; animation-delay: calc(2.8s + var(--d) * .35s); }
.song-l { color: #8d8882; font: 12.5px var(--mono); text-align: right; }
.fly { position: absolute; width: 54px; height: 66px; top: -80px; left: calc(560px + var(--d) * 60px); color: var(--accent); background: #24222b; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; opacity: 0; }
.fly svg { width: 26px; }
.s-import.on .fly { animation: fly 1s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(.25s + var(--d) * .14s); }
@keyframes fly { 0% { opacity: 0; transform: translate(260px, 0) rotate(14deg); } 20% { opacity: 1; } 75% { opacity: 1; transform: translate(0, 210px) rotate(-4deg) scale(.9); } 100% { opacity: 0; transform: translate(0, 230px) scale(.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* split */
.s-split { padding: 30px 60px; }
.sp-head { display: flex; align-items: center; gap: 10px; }
.sp-head h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 14px 0 0; }
.chip { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #23212a; color: #cfc9c1; display: inline-flex; align-items: center; gap: 6px; }
.chip.ok { background: rgba(79, 209, 161, .13); color: var(--green); opacity: 0; }
.chip.ok svg { width: 13px; }
.s-split.on .chip.ok { animation: rise .4s both 2.9s; }
.parts { display: flex; gap: 3px; margin: 20px 0 10px 150px; }
.parts i { flex: var(--w); font-style: normal; font-size: 12px; padding: 5px 8px; border-radius: 5px; background: #1f2433; color: #9fb4e8; white-space: nowrap; overflow: hidden; }
.parts i.sel { background: #3a2a17; color: var(--accent); }
.mix, .stem { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; height: 54px; }
.lane-n { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8d8882; display: flex; align-items: center; gap: 8px; }
.lane-n i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mix .wave { height: 50px; } .mix .wave i { background: #57535c; }
.stems { position: relative; margin-top: 6px; }
.stem { height: 64px; border-top: 1px solid rgba(255, 255, 255, .05); opacity: 0; }
.stem .wave { height: 46px; } .stem .wave i { background: var(--c); opacity: .9; }
.stem .lane-n { color: var(--c); }
.s-split.on .stem { animation: unfold .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.9s + var(--d) * .28s); --base: calc(1s + var(--d) * .28s); }
@keyframes unfold { from { opacity: 0; transform: translateY(-40px) scaleY(.4); } to { opacity: 1; transform: none; } }
.selbox { position: absolute; left: calc(150px + (1080px - 150px) * .235); width: calc((1080px - 150px) * .15); top: -100px; bottom: 0; border-radius: 6px; background: rgba(240, 160, 75, .1); border: 1px solid rgba(240, 160, 75, .5); opacity: 0; pointer-events: none; }
.s-split.on .selbox { animation: fadeIn .5s both 3.3s; }

/* order */
.s-order { display: flex; align-items: center; justify-content: center; }
.cards { position: relative; width: 1050px; height: 300px; }
.card { position: absolute; top: 0; left: 0; width: 290px; height: 280px; border-radius: 18px; background: #1b1a21; border: 1px solid rgba(255, 255, 255, .08); padding: 20px 22px;
  translate: calc(var(--start) * 380px) 0; opacity: 0; transition: translate .9s cubic-bezier(.6, 0, .2, 1), box-shadow .3s; }
.s-order.on .card { animation: rise .5s both; animation-delay: calc(var(--start) * .15s + .2s); }
.s-order.swap .card { translate: calc(var(--end) * 380px) 0; }
.s-order.drag .card:nth-child(2) { box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 2px var(--accent); z-index: 2; }
.card-n { font: 600 13px var(--mono); color: var(--accent); }
.card h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 10px 0 2px; }
.card p { margin: 0; color: #a49f99; font-size: 14.5px; }
.card .wave.mini { height: 54px; margin: 18px 0 14px; } .card .wave i { background: var(--c); }
.card-k { font: 12.5px var(--mono); color: #cfc9c1; background: #24222b; padding: 4px 9px; border-radius: 6px; }
.inst { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.inst i { font: 600 10.5px var(--mono); font-style: normal; color: var(--accent); border: 1px solid #6a4a26; border-radius: 5px; padding: 2px 4px; }
.tr { position: absolute; top: 100px; left: calc(290px + var(--x) * 380px); width: 90px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; opacity: 0; }
.tr::before { content: ""; position: absolute; top: -18px; left: 8px; right: 8px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.tr b { font: 600 13px var(--mono); color: var(--accent); background: #2b2014; border: 1px solid #6a4a26; padding: 4px 8px; border-radius: 8px; }
.tr small { font-size: 11px; color: #a49f99; line-height: 1.25; margin-top: 4px; }
.s-order.links .tr { animation: rise .5s both; animation-delay: calc(var(--x) * .25s); }
.cursor { position: absolute; width: 30px; left: 900px; top: 600px; opacity: 0; z-index: 5; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.s-order.on .cursor { animation: cursorMove 2.6s cubic-bezier(.5, 0, .3, 1) both .7s; }
@keyframes cursorMove { 0% { opacity: 0; transform: translate(80px, 40px); } 15% { opacity: 1; transform: translate(80px, -330px); } 30% { transform: translate(80px, -330px) scale(.88); } 75% { opacity: 1; transform: translate(-380px, -330px) scale(.88); } 85% { transform: translate(-380px, -330px); opacity: 1; } 100% { opacity: 0; transform: translate(-380px, -330px); } }

/* score */
.s-score { padding: 18px 60px 0; }
.tools { display: flex; gap: 10px; align-items: center; height: 44px; }
.tool { position: relative; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); color: #8d8882; font-size: 14px; }
.tool b { color: var(--text); font-weight: 500; }
.tool.genre { min-width: 150px; }
.tool-sp { flex: 1; }
.tool.btn { background: var(--paper); color: var(--ink); font-weight: 600; border: 0; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; }
.tool.btn svg { width: 14px; }
.g-menu { position: absolute; top: 46px; left: 0; width: 170px; background: #24222b; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; z-index: 6;
  opacity: 0; transform: translateY(-6px); transition: all .25s; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.g-menu.open { opacity: 1; transform: none; }
.g-menu i { font-style: normal; color: #cfc9c1; padding: 7px 10px; border-radius: 7px; transition: background .15s; }
.g-menu i.hi { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.paper { position: relative; margin-top: 14px; height: 556px; border-radius: 12px 12px 0 0; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); }
.s-score.on .paper { animation: paperUp .7s cubic-bezier(.2, .8, .2, 1) both; }
.stage[data-scene=restyle] .s-score.on .paper, .stage[data-scene=comment] .s-score.on .paper { animation: none; }
@keyframes paperUp { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.paper-in { position: absolute; inset: 6px 30px 0; }
.score-svg { width: 100%; height: auto; }
.sc-title { font: 30px var(--serif); text-anchor: middle; fill: var(--ink); }
.sc-sub { font: italic 12.5px var(--serif); text-anchor: middle; fill: #6b6458; }
.sc-tempo { font: 600 13px var(--serif); fill: var(--ink); }
.sc-box { fill: none; stroke: var(--ink); stroke-width: 1; }
.sc-mark { font: 600 12px var(--sans); fill: var(--ink); }
.sc-chord { font: 600 15px var(--serif); fill: var(--ink); }
.sc-name { font: 14px var(--serif); text-anchor: end; fill: #3b352c; }
.sc-line { stroke: #8f887c; stroke-width: .8; }
.sc-bar, .sc-sys { stroke: #3b352c; stroke-width: 1.1; }
.sc-sys { stroke-width: 2.4; }
.sc-ts { font: 700 19px var(--serif); fill: var(--ink); text-anchor: middle; }
.sc-head { fill: var(--ink); }
.sc-hollow { fill: var(--paper); stroke: var(--ink); stroke-width: 1.7; }
.sc-x { stroke: var(--ink); stroke-width: 1.6; }
.sc-stem { stroke: var(--ink); stroke-width: 1.2; }
.sc-beam { stroke: var(--ink); stroke-width: 4.2; }
.sc-flag { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sc-rest { fill: var(--ink); }
.paper-in .n { opacity: 0; transform-box: fill-box; transform-origin: center; }
.paper-in.on .n { animation: pop .38s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(.5s + var(--i) * 14ms); }
.paper-in.on.still .n { animation: none; opacity: 1; }
.paper-in.on.only-new .n { animation: none; opacity: 1; }
.paper-in.on.only-new .n.new { animation: popNew 1.1s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i) * 6ms); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes popNew { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.15); fill: var(--accent); } 100% { opacity: 1; transform: none; } }
.paper-in .n.new .sc-head, .paper-in .n.new .sc-stem, .paper-in .n.new .sc-beam { transition: fill 1s, stroke 1s; }
.playhead { stroke: var(--accent); stroke-width: 2.5; opacity: 0; }
.stage[data-scene=score] .paper-in.on .playhead { animation: sweep 3.6s linear both 2.5s; }
@keyframes sweep { 0% { opacity: 1; transform: translateX(0); } 97% { opacity: 1; } 100% { opacity: 0; transform: translateX(805px); } }
.comment, .rewrite, .done, .shimmer { position: absolute; opacity: 0; pointer-events: none; }
.comment { left: 640px; top: 120px; width: 270px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #1b1a21; color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font-size: 14.5px; line-height: 1.35; }
.comment::before { content: ""; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; background: #1b1a21; transform: rotate(45deg); }
.comment p { margin: 0; }
.av { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: #0b1430; font: 700 12px var(--sans); display: grid; place-items: center; }
.rewrite { right: 24px; top: 16px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #2b2014; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.rewrite svg { width: 15px; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { left: 595px; width: 405px; top: 82px; bottom: 30px; border-radius: 8px; background: linear-gradient(100deg, transparent 20%, rgba(240, 160, 75, .28) 50%, transparent 80%) -400px 0 / 400px 100% no-repeat, rgba(240, 160, 75, .08); }
.done { right: 24px; top: 16px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #1d3a2e; color: var(--green); font-size: 13.5px; font-weight: 600; }
.done svg { width: 14px; }
.stage[data-scene=comment] .s-score.on .comment { animation: rise .5s both .5s, fadeOut .4s both 2.8s; }
.stage[data-scene=comment] .s-score.on .rewrite { animation: fadeIn .3s both 1.7s, fadeOut .3s both 2.9s; }
.stage[data-scene=comment] .s-score.on .shimmer { animation: fadeIn .3s both 1.7s, shimmer 1s linear 1.8s 2, fadeOut .4s both 3.2s; }
.stage[data-scene=comment] .s-score.on .done { animation: rise .4s both 3.5s; }
@keyframes shimmer { to { background-position: 420px 0, 0 0; } }

/* export */
.s-export { display: flex; align-items: center; gap: 40px; padding: 0 60px; }
.ex-paper { position: relative; width: 520px; height: 520px; flex-shrink: 0; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 18px 18px 0 -2px #d8d1c3, 36px 36px 0 -4px #b9b1a2, 0 30px 60px rgba(0, 0, 0, .5); }
.s-export.on .ex-paper { animation: rise .6s both; }
.ex-paper .paper-in { inset: 8px 10px; }
.ex-paper .n { opacity: 1 !important; animation: none !important; }
.ex-paper .playhead { display: none; }
.ex-list { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ex { display: grid; grid-template-columns: 54px 1fr 120px 28px; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #1b1a21; border: 1px solid rgba(255, 255, 255, .08); opacity: 0; }
.s-export.on .ex { animation: rise .45s both; animation-delay: calc(.5s + var(--d) * .22s); }
.ex-t { height: 54px; border-radius: 10px; background: rgba(240, 160, 75, .14); color: var(--accent); display: grid; place-items: center; font: 700 13px var(--mono); }
.ex-n b { display: block; font-weight: 600; } .ex-n small { color: #8d8882; font-size: 13px; }
.ex-bar { height: 5px; border-radius: 4px; background: #2a2830; overflow: hidden; }
.ex-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.s-export.on .ex-bar i { animation: load .8s ease-in-out both; animation-delay: calc(1s + var(--d) * .3s); }
@keyframes load { to { transform: scaleX(1); } }
.ex-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #0d2a1f; display: grid; place-items: center; opacity: 0; }
.ex-ok svg { width: 14px; }
.s-export.on .ex-ok { animation: pop .4s both; animation-delay: calc(1.8s + var(--d) * .3s); }

/* title cards */
.card-title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.card-title.on { opacity: 1; visibility: visible; transition: opacity .6s, visibility 0s; }
.t-intro p { font-family: var(--serif); font-size: 76px; line-height: 1.05; margin: 0; max-width: 900px; letter-spacing: -.02em; }
.t-intro span { display: inline-block; opacity: 0; }
.t-intro.on span { animation: word .8s cubic-bezier(.2, .8, .2, 1) both; }
.t-intro.on span:nth-child(2) { animation-delay: .6s; } .t-intro.on span:nth-child(3) { animation-delay: 1.2s; }
.t-intro em { color: var(--accent); }
@keyframes word { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.t-end { align-content: center; gap: 0; }
.end-logo { width: 84px; height: 84px; border-radius: 22px; background: var(--accent); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 20px 60px rgba(240, 160, 75, .45); }
.end-logo svg { width: 46px; }
.t-end h2 { font: 400 72px var(--serif); margin: 0; letter-spacing: -.02em; }
.t-end p { font-size: 24px; color: #a49f99; margin: 6px 0 28px; }
.end-cta { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 18px; }
.t-end.on > * { animation: rise .7s both; }
.t-end.on > :nth-child(2) { animation-delay: .15s; } .t-end.on > :nth-child(3) { animation-delay: .3s; } .t-end.on > :nth-child(4) { animation-delay: .6s; }

/* caption (lower third) */
.caption { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 18px;
  background: rgba(15, 14, 18, .82); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; z-index: 10; white-space: nowrap; }
.caption.on { animation: capIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.caption.on.out { animation: capOut .5s ease both; }
@keyframes capOut { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes capIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cap-n { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 15px var(--mono); }
.cap-t b { display: block; font: 400 26px var(--serif); line-height: 1.1; }
.cap-t small { color: #a49f99; font-size: 14.5px; }
.stage[data-scene=intro] .caption, .stage[data-scene=end] .caption { opacity: 0 !important; animation: none; }
.film.paused .stage *, .film.paused .stage *::before, .film.paused .stage *::after { animation-play-state: paused !important; }

/* ---------- page sections ---------- */
section.block { padding: 120px 0 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { text-align: center; margin-inline: auto; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
h2 em { color: var(--accent); }
.sec-head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

.instruments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 80px; }
.instruments span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; background: rgba(255, 255, 255, .02); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.step-n { font: 600 13px var(--mono); color: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 14px 0 10px; line-height: 1.1; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
.step-art { height: 120px; margin: -6px -6px 22px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat { grid-column: span 2; padding: 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat.wide { grid-column: span 3; }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(240, 160, 75, .12); color: var(--accent); margin-bottom: 22px; }
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 0 0 10px; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }

.shots { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.shot-tabs { display: flex; flex-direction: column; gap: 8px; }
.shot-tab { text-align: left; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 16px 18px; border-radius: 14px; cursor: pointer; font: 15px var(--sans); transition: all .2s; }
.shot-tab b { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; font-size: 16px; }
.shot-tab.on { background: var(--panel); border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--accent); }
.shot-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); aspect-ratio: 16 / 10; position: relative; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .5s; }
.shot-frame img.on { opacity: 1; }

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.use h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.use p { color: var(--muted); font-size: 15px; margin: 0; }
.use .q { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--text); margin-bottom: 14px; display: block; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 32px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(240, 160, 75, .55); background: linear-gradient(180deg, rgba(240, 160, 75, .1), var(--panel) 50%); position: relative; }
.plan.featured::before { content: attr(data-badge); position: absolute; top: -12px; left: 32px; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 17px; font-weight: 600; }
.price { font-family: var(--serif); font-size: 58px; line-height: 1; margin: 18px 0 4px; }
.price small { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: rgba(79, 209, 161, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd1a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 22px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 30px var(--sans); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -6px 0 24px; max-width: 700px; }

.final { margin: 140px auto 0; text-align: center; padding: 90px 24px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(240, 160, 75, .22), transparent 70%), var(--panel); border: 1px solid var(--line); }
.final h2 { max-width: 14ch; margin: 0 auto; }

footer { padding: 70px 0 50px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; } footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* article (guides, privacy) */
.article { max-width: 720px; margin: 0 auto; padding: 70px 0 40px; }
.article h1 { font-size: clamp(40px, 6vw, 64px); max-width: none; text-align: left; }
.article h2 { font-size: 34px; margin: 52px 0 12px; }
.article p, .article li { color: #cfc9c1; font-size: 18px; }
.article .art-meta { color: var(--faint); font-size: 14px; margin: 14px 0 0; }
.article .art-meta + .art-meta { margin-top: 4px; }
.article .art-meta a { color: var(--muted); }
.art-metas { margin-bottom: 34px; }
.article .cta-box { margin: 50px 0; padding: 32px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.article .cta-box h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.article .cta-box p { margin: 0 0 18px; color: var(--muted); }
.article.wide { max-width: 1180px; }
.article h3 { font-size: 20px; margin: 32px 0 8px; }
.article strong { color: var(--text); }
.article a { color: var(--accent); }
.article .btn { color: var(--accent-ink); }
.article code { font: 15px var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 26px; }
.crumbs a { color: var(--muted) !important; text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article th, .article td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); color: #cfc9c1; white-space: nowrap; }
.article td:last-child, .article th:last-child { white-space: normal; }
.article th { font: 600 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); }
.article tr:last-child td { border-bottom: 0; }
.related { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.related a { text-decoration: none; }
.lede.left { margin: 18px 0 0; text-align: left; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text) !important; transition: border-color .25s, transform .25s; }
.guide-card:hover { border-color: rgba(240, 160, 75, .5); transform: translateY(-2px); }
.guide-card h2 { font-size: 26px !important; margin: 0 !important; line-height: 1.12; }
.guide-card p { margin: 0; font-size: 15px !important; color: var(--muted) !important; flex: 1; }
.guide-card span { font: 600 12.5px var(--mono); color: var(--accent); }
@media (max-width: 980px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } .article p, .article li { font-size: 17px; } }

/* responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .langs { margin-left: auto; }
  .steps, .uses, .pricing { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feat, .feat.wide { grid-column: span 1; }
  .shots { grid-template-columns: 1fr; }
  .shot-tabs { flex-direction: row; overflow-x: auto; }
  .shot-tab { flex: 1 0 200px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .wrap { gap: 8px; }
  .nav .brand { font-size: 0; gap: 0; }
  .langs a { padding: 5px 6px; }
  .nav .btn { padding: 0 12px; font-size: 13px; }
  .brand { font-size: 21px; }
  .hero { padding-top: 48px; }
  .signup { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input[type=email] { height: 46px; }
  .features, .uses { grid-template-columns: 1fr; }
  .film { border-radius: 14px; }
  .film-wrap { width: calc(100% - 20px); }
  .film-chapters { grid-template-columns: repeat(9, 1fr); }
  .film-chapter span { display: none; }
  section.block { padding-top: 88px; }
  .final { padding: 64px 20px; border-radius: 24px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* film-only page used to record the MP4 */
.film-only { background: #0b0a0e; margin: 0; overflow: hidden; }
.film-only .film { width: 1280px; height: 720px; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }

/* ---------- free tools ---------- */
.mwtool { margin: 34px 0 10px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-panel { padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.tool-panel + .tool-panel, .tool-panel + .table-wrap, .tool-panel + .kp-out { margin-top: 0; }
.mwtool > .tool-panel { margin-bottom: 18px; }
.tool-label { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tool-text, .tool-out { width: 100%; font: 14.5px/1.55 var(--mono); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; margin: 0; white-space: pre; overflow: auto; }
.tool-text { resize: vertical; min-height: 300px; }
.tool-text:focus, .tool-input:focus, .tool-panel select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tool-out { min-height: 300px; max-height: 520px; }
.tool-out.empty { color: var(--faint); }
.tool-input, .tool-panel select { width: 100%; height: 42px; padding: 0 12px; font: 15px var(--sans); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; }
.tool-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.tbtn { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 14px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.tbtn:hover { border-color: var(--accent); }
.tbtn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.tool-note { color: var(--faint) !important; font-size: 14px !important; margin: 0; }
.tool-err { color: var(--pink); font-size: 14.5px; min-height: 0; }
.tool-err:not(:empty) { margin: 8px 0; }
.tool-capo { margin-top: 12px; color: var(--muted); font-size: 15px; }
.tool-capo b { color: var(--text); }
.tool-check { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.stepper { display: flex; align-items: center; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.stepper button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, .06); }
.stepper output { flex: 1; text-align: center; font: 600 15px var(--mono); }
.kb { margin-top: 14px; }
.kb svg { width: 100%; height: 90px; }
.tool-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted) !important; font-size: 14px !important; margin: 6px 0 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.g { background: rgba(79, 209, 161, .55); } .sw.b { background: rgba(122, 167, 255, .45); } .sw.o { background: var(--accent); }
.tool-table td small { display: block; color: var(--faint); font-size: 12.5px; white-space: normal; }
.tool-table td { white-space: normal !important; vertical-align: top; }
.tool-table tbody tr { cursor: pointer; }
.tool-table tbody tr:hover td, .tool-table tbody tr.on td { background: rgba(240, 160, 75, .07); }
.fit { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.fit.good { background: rgba(79, 209, 161, .14); color: var(--green); }
.fit.edge { background: rgba(240, 160, 75, .14); color: var(--accent); }
.fit.no { background: rgba(242, 125, 160, .13); color: var(--pink); }
.kp-list { list-style: none; counter-reset: kp; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.kp-list li { counter-increment: kp; display: grid; grid-template-columns: 28px 1fr 170px auto; gap: 8px; align-items: center; }
.kp-list li::before { content: counter(kp); font: 600 13px var(--mono); color: var(--accent); }
.kp-btns { display: flex; gap: 4px; }
.kp-btns button { width: 34px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.kp-btns button:hover { border-color: var(--accent); }
.kp-out { display: grid; gap: 12px; }
.kp-step { padding: 20px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.kp-step p { margin: 8px 0 0; font-size: 16px !important; }
.kp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 16px; }
.kp-head em { color: var(--muted); font-style: normal; }
.kp-tag { font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 999px; margin-right: 6px; }
.kp-bars { display: inline-block; margin-top: 10px; font-size: 14.5px !important; }
.kp-piv { color: var(--faint) !important; font-size: 14px !important; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } .tool-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .tool-cards { grid-template-columns: 1fr; }
  .tool-panel { padding: 16px; }
  .kp-list li { grid-template-columns: 22px 1fr auto; }
  .kp-list li select { grid-column: 2 / 4; }
  .kp-list li .kp-btns { grid-column: 3; grid-row: 1; }
  .tool-text, .tool-out { min-height: 220px; font-size: 13px; }
}
.article .tool-text-col { padding: 20px 0 0; margin: 0; }
