/* Waƙa Studio — shared styles. Tokens follow the design source (waka-studio-design-source). */
:root {
  --ink: #141833;
  --ink-2: #1E2449;
  --ink-3: #262D5A;
  --ink-line: #343B6B;
  --ink-line-2: #3A4170;
  --bg: #F4F5FA;
  --surface: #FFFFFF;
  --surface-2: #F7F8FC;
  --field: #FAFBFD;
  --text: #161A33;
  --body: #33385A;
  --muted: #565B78;
  --line: #DCDFEB;
  --line-2: #E3E5EF;
  --on-ink: #FFFFFF;
  --on-ink-2: #E4E6F2;
  --on-ink-3: #C9CCE0;
  --on-ink-4: #A9ADC9;
  --accent: #F0A63A;
  --amber: #8A5300;
  --amber-dark: #5E3800;
  --green: #1E7F4F;
  --ok-bg: #DDF2E6;
  --ok-fg: #145C38;
  --warn-bg: #FCEBD0;
  --warn-fg: #6E4200;
  --bad-bg: #FBE1E1;
  --bad-fg: #8E1F1F;
  --sans: 'Noto Sans', system-ui, sans-serif;
  --mono: 'Noto Sans Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100vh; }
a { color: var(--amber); }
a:hover { color: var(--amber-dark); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled, .is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
textarea::placeholder, input::placeholder { color: #8E93B3; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
#state:empty, #paneError:empty, #lyricsState:empty, #musicState:empty, #payError:empty { display: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.ic.sm { width: 16px; height: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.wide { max-width: 1280px; }
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--amber); }
.on-ink .kicker, .kicker.accent { color: var(--accent); }
.display { font-weight: 850; font-stretch: 68%; line-height: 1; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }

/* ---- Top bar ---- */
.topbar { background: var(--ink); color: var(--on-ink); }
.topbar-in { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.home .topbar-in { padding-top: 14px; padding-bottom: 14px; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.brand:hover { color: var(--on-ink); }
.brand svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 3; }
.brand span { font-weight: 800; font-stretch: 75%; font-size: 22px; }
.home .brand svg { width: 34px; height: 34px; }
.home .brand span { font-size: 24px; letter-spacing: 0.01em; }
.topnav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; }
.topnav a { color: var(--on-ink-3); text-decoration: none; font-size: 15px; padding: 12px 0; }
.topnav a:hover { color: var(--on-ink); }
.topnav a[aria-current="page"] { color: var(--on-ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.topbar-title { flex: 1 1 auto; color: var(--on-ink-3); font-size: 15px; min-width: 0; }
.topbar-link { color: var(--on-ink); text-decoration: none; font-weight: 600; padding: 12px 4px; }
.topbar-link:hover { color: var(--accent); }
.credit-chip { font-family: var(--mono); font-size: 13px; color: var(--on-ink-3); border: 1px solid var(--ink-line-2); border-radius: 999px; padding: 8px 12px; }
.secure { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-ink-3); }
.secure .ic, .lockline .ic { stroke: #7FD1A8; stroke-width: 2; }
.lang { display: flex; border: 1px solid var(--ink-line-2); border-radius: 999px; padding: 3px; }
.lang button { min-height: 38px; min-width: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--on-ink-3); font: 600 13px var(--mono); }
.lang button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }
.demo-banner { background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 15px var(--sans); text-decoration: none; text-align: center; }
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 800; }
.btn-accent:hover { color: var(--ink); filter: brightness(1.05); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; background: var(--ink-2); }
.btn-line { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--surface-2); }
.btn-soft { background: #FFFFFF; color: var(--text); border: 1.5px solid var(--line); }
.btn-soft:hover { color: var(--text); border-color: var(--ink); }
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.block { display: flex; width: 100%; padding: 14px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px var(--sans); background: #FFFFFF; color: var(--text); border: 1.5px solid var(--line); }
.pill[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.round-play { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; }
.round-play .ic { width: 18px; height: 18px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag.bad { background: var(--bad-bg); color: var(--bad-fg); }
.bars { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; height: 48px; overflow: hidden; }
.bars span { flex: none; width: 4px; border-radius: 2px; background: var(--on-ink-3); }
.bars span.on { background: var(--ink); }
.notice { border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; background: var(--warn-bg); color: var(--warn-fg); }
.notice.bad { background: var(--bad-bg); color: var(--bad-fg); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.waiting { display: flex; align-items: center; gap: 16px; background: var(--surface-2); border-radius: 18px; padding: 22px; font-size: 16px; line-height: 1.5; color: var(--body); }

/* ---- Landing ---- */
.hero { padding-top: 56px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .kicker { letter-spacing: 0.14em; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.92; font-weight: 850; font-stretch: 66%; letter-spacing: -0.01em; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--on-ink-2); max-width: 560px; }
.hero .lede-en { font-size: 15px; line-height: 1.5; color: var(--on-ink-4); max-width: 560px; }
.idea-form { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.idea-form label { font-size: 13px; color: var(--on-ink-3); font-weight: 600; }
.idea-form textarea { width: 100%; resize: vertical; background: transparent; border: 0; outline: none; color: #FFFFFF; font: 400 18px/1.5 var(--sans); }
.idea-form .foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-line-2); background: var(--ink-3); color: var(--on-ink-2); font: 500 14px var(--sans); }
.chip[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.lockline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--on-ink-4); }
.sample { flex: 1 1 380px; min-width: 0; max-width: 460px; margin: 0 auto; background: #FFFFFF; color: var(--text); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.sample-cover { position: relative; height: 210px; border-radius: 18px; background: var(--accent); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.sample-cover > svg { position: absolute; right: -50px; top: -40px; width: 260px; height: 260px; fill: none; stroke: var(--ink); stroke-opacity: 0.18; stroke-width: 1.6; }
.sample-cover .t { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.sample-cover .t .mono { font-size: 12px; letter-spacing: 0.12em; }
.sample-cover .t b { font-size: 40px; font-weight: 850; font-stretch: 68%; line-height: 1; }
.sample-player { display: flex; align-items: center; gap: 14px; }
.sample-player .round-play { width: 52px; height: 52px; }
.sample-player .bars { height: 52px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.sample-lyric { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sample-lyric .mono { font-size: 12px; letter-spacing: 0.1em; color: var(--amber); }
.sample-lyric p { font-size: 17px; line-height: 1.55; }

.section { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; }
.section-head > p { max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.55; }
h2.display { font-size: clamp(36px, 4.6vw, 60px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.steps article { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.steps .n { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--amber); }
.steps h3 { font-size: 28px; font-weight: 800; font-stretch: 72%; line-height: 1.05; }
.steps .en { font-size: 14px; font-weight: 600; color: var(--muted); }
.steps p { font-size: 15px; line-height: 1.55; color: var(--body); }
.engines { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 16px; }
.engine { flex: 1 1 460px; min-width: 0; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.engine.dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.engine h3 { font-size: 40px; font-weight: 850; font-stretch: 68%; line-height: 1; }
.engine p { color: var(--body); font-size: 16px; line-height: 1.6; }
.engine.dark p { color: var(--on-ink-3); }
.engine.dark .kicker { color: var(--accent); }
.engine ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.engine li { display: flex; gap: 10px; }
.engine li::before { content: '◆'; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { padding: 8px 14px; border-radius: 999px; background: #EEF0F7; color: var(--text); font-size: 14px; font-weight: 600; }
.audiences { padding-top: 24px; padding-bottom: 56px; }
.audiences > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.audiences .a { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.audiences b { font-size: 22px; font-weight: 800; font-stretch: 75%; }
.audiences span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pricing-band { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.plan-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.plan-head > div { display: flex; flex-direction: column; gap: 4px; }
.plan h3 { font-size: 26px; font-weight: 800; font-stretch: 75%; }
.plan-head span.sub { color: var(--muted); font-size: 14px; }
.plan.dark .plan-head span.sub { color: var(--on-ink-4); }
.plan .best { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 48px; font-weight: 850; font-stretch: 68%; }
.plan .price small { font-size: 16px; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.plan.dark .price small { color: var(--on-ink-4); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); flex: 1; }
.plan.dark ul { color: var(--on-ink-2); }
.paybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); border-radius: 20px; padding: 20px 24px; }
.paybar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.paybar b { font-weight: 700; font-size: 17px; }
.paybar .sub { color: var(--muted); font-size: 14px; }
.paybar .methods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paybar .methods > span { padding: 10px 14px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.paybar .methods > span.main { padding: 12px 18px; background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.faq { max-width: 860px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 24px; }
.faq h2 { font-size: clamp(36px, 4.6vw, 56px); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 19px; font-weight: 700; min-height: 28px; }
.faq details p { margin-top: 12px; color: var(--body); font-size: 16px; line-height: 1.6; }
.footer { background: var(--ink); color: var(--on-ink-3); }
.footer-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer .who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer .who svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 3; }
.footer nav { display: flex; gap: 20px; font-size: 14px; }
.footer nav a { color: var(--on-ink-3); padding: 12px 0; }

/* ---- Studio ---- */
.studio { padding-top: 32px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.stepnav { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.stepnav button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 64px; padding: 12px 16px; border-radius: 16px; background: transparent; color: var(--body); border: 1.5px solid transparent; }
.stepnav button[aria-current="step"] { background: #FFFFFF; color: var(--text); border-color: var(--ink); }
.stepnav .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); background: var(--line-2); color: var(--body); }
.stepnav button[aria-current="step"] .dot { background: var(--ink); color: #FFFFFF; }
.stepnav button.done .dot { background: var(--accent); color: var(--ink); }
.stepnav .lbl { display: flex; flex-direction: column; gap: 2px; }
.stepnav .lbl b { font-size: 17px; font-weight: 700; }
.stepnav .lbl span { font-size: 13px; opacity: 0.8; }
.panel { flex: 999 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.pane { display: flex; flex-direction: column; gap: 28px; }
.pane-head { display: flex; flex-direction: column; gap: 6px; }
.pane-head h1 { font-size: 44px; font-weight: 850; font-stretch: 68%; line-height: 1; }
.pane-head p { color: var(--muted); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; }
.field.light > label { font-weight: 600; font-size: 14px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select { min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: 400 16px var(--sans); background: var(--field); color: var(--text); width: 100%; }
.field textarea { width: 100%; resize: vertical; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; font: 400 17px/1.55 var(--sans); color: var(--text); background: var(--field); }
.field .invalid, .invalid { border-color: var(--bad-fg) !important; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.two { display: flex; flex-wrap: wrap; gap: 16px; }
.two > * { flex: 1 1 260px; }
.lyrics-wrap { display: flex; flex-wrap: wrap; gap: 28px; }
.lyrics-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lyrics-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lyrics-top p { font-size: 15px; }
.lsec { display: flex; flex-direction: column; gap: 6px; }
.lsec .mono { font-size: 12px; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; }
.lline { display: flex; align-items: center; gap: 8px; border-radius: 12px; background: var(--surface-2); padding: 4px 4px 4px 14px; min-height: 52px; }
.lline:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lline .txt { flex: 1; font-size: 18px; line-height: 1.5; padding: 6px 0; outline: none; min-width: 0; overflow-wrap: anywhere; }
.lline button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.lline button:hover { background: var(--line-2); color: var(--ink); }
.lyrics-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.side-dark { background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.side-dark .mono { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.side-light { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body); line-height: 1.5; }
.side-light b { font-weight: 700; color: var(--text); }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.inst { min-height: 96px; padding: 16px; border-radius: 18px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; background: #FFFFFF; color: var(--text); border: 1.5px solid var(--line); }
.inst[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.inst b { font-size: 19px; font-weight: 800; font-stretch: 78%; }
.inst span { font-size: 13px; opacity: 0.85; }
.voice-row { display: flex; flex-wrap: wrap; gap: 28px; }
.voice-row > * { flex: 1 1 280px; }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--ink); }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.takes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.take { border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--surface-2); border: 2px solid transparent; }
.take.on { background: #FFFFFF; border-color: var(--ink); }
.take-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.take-top b { font-size: 20px; font-weight: 800; font-stretch: 75%; }
.take-top button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #FFFFFF; color: var(--ink); font: 700 13px var(--sans); }
.take.on .take-top button { background: var(--ink); color: #FFFFFF; }
.take-play { display: flex; align-items: center; gap: 12px; }
.take .meta { font-size: 13px; color: var(--muted); }
.buybar { background: var(--ink); color: #FFFFFF; border-radius: 22px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.buybar > div { display: flex; flex-direction: column; gap: 4px; }
.buybar b { font-size: 22px; font-weight: 800; font-stretch: 75%; }
.buybar span.sub { font-size: 14px; color: var(--on-ink-3); }
.buybar .btn { min-height: 52px; padding: 0 24px; font-size: 16px; gap: 10px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.panel-foot .mono { font-size: 13px; color: var(--muted); }

/* ---- Checkout ---- */
.checkout { padding-top: 40px; padding-bottom: 72px; display: flex; flex-wrap: wrap-reverse; gap: 24px; align-items: flex-start; }
.co-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.co-main h1 { font-size: clamp(40px, 5vw, 60px); }
.backlink { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 10px 0; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card h2 { font-size: 22px; font-weight: 800; font-stretch: 78%; }
.card .sub { font-size: 14px; color: var(--muted); }
.two.co > * { flex: 1 1 240px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 120px; padding: 18px; border-radius: 18px; text-align: left; background: var(--surface-2); color: var(--text); border: 2px solid transparent; }
.method[aria-pressed="true"] { background: #FFFFFF; border-color: var(--ink); }
.method .top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.method .top b { font-size: 18px; font-weight: 800; font-stretch: 80%; }
.method .ring { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #A3A8C3; }
.method .ring i { width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.method[aria-pressed="true"] .ring { border-color: var(--ink); }
.method[aria-pressed="true"] .ring i { background: var(--ink); }
.method .desc { font-size: 13px; line-height: 1.45; opacity: 0.85; }
.transfer { background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.transfer .head { display: flex; flex-direction: column; gap: 4px; }
.transfer .head .mono { font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.transfer .head span:last-child { font-size: 15px; color: var(--on-ink-3); }
.acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.acct > div { display: flex; flex-direction: column; gap: 4px; }
.acct .k { font-size: 13px; color: var(--on-ink-4); }
.acct .v { font-size: 18px; font-weight: 700; }
.acct .num { display: flex; align-items: center; gap: 8px; }
.acct .num span { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.acct .num button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line-2); background: var(--ink-2); color: #FFFFFF; display: grid; place-items: center; }
.acct .amt { font-size: 22px; font-weight: 850; font-stretch: 70%; color: var(--accent); }
.transfer .notes { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--on-ink-3); line-height: 1.5; border-top: 1px solid var(--ink-line); padding-top: 14px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--body); line-height: 1.5; padding: 6px 0; }
.agree input, .line-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.paybtn { min-height: 58px; font: 800 18px var(--sans); gap: 10px; width: 100%; }
.paynote { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.paid { background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.paid .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #FFFFFF; display: grid; place-items: center; }
.paid .tick .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.paid h1 { font-size: clamp(40px, 5vw, 60px); }
.paid .refs { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 13px; color: var(--body); background: var(--bg); border-radius: 14px; padding: 14px 18px; }
.paid .dl { display: flex; flex-wrap: wrap; gap: 12px; }
.paid .dl .btn { min-height: 50px; padding: 0 20px; }
.summary { flex: 1 1 340px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.summary .song { display: flex; gap: 14px; align-items: center; }
.cover { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; }
.cover svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.summary .song div:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.summary .song b { font-size: 20px; font-weight: 800; font-stretch: 75%; line-height: 1.15; }
.summary .song span { font-size: 13px; color: var(--on-ink-3); }
.lines { display: flex; flex-direction: column; border-top: 1px solid var(--ink-line); }
.line-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 15px; }
.line-item:last-child { border-bottom: 0; }
.line-item > span:first-child { display: flex; align-items: center; gap: 10px; }
.line-item input { accent-color: var(--accent); margin: 0; }
.line-item.fee { font-size: 14px; color: var(--on-ink-3); }
label.line-item { cursor: pointer; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total span:first-child { font-size: 16px; font-weight: 600; }
.total span:last-child { font-size: 40px; font-weight: 850; font-stretch: 68%; }

/* ---- Library ---- */
.library { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.lib-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.lib-head h1 { font-size: clamp(40px, 5vw, 64px); }
.lib-head .hello { font-size: 15px; color: var(--muted); }
.lib-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 30px; font-weight: 850; font-stretch: 70%; }
.stat.dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); flex-direction: row; align-items: center; gap: 16px; }
.stat.dark > div { display: flex; flex-direction: column; gap: 2px; }
.stat.dark span { color: var(--on-ink-3); }
.stat.dark b { font-size: 20px; font-weight: 800; font-stretch: 75%; }
.stat.dark a { padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.songs { display: flex; flex-direction: column; gap: 12px; }
.song-row { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.song-row .cover { width: 76px; height: 76px; }
.song-row .cover svg { width: 40px; height: 40px; stroke-opacity: 0.6; }
.song-row .info { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.song-row .info > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.song-row h2 { font-size: 21px; font-weight: 800; font-stretch: 78%; }
.song-row .info > span { font-size: 14px; color: var(--muted); }
.song-row .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.song-row .round-play { width: 48px; height: 48px; }
.empty { background: #FFFFFF; border: 1px dashed var(--line); border-radius: 22px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); font-size: 16px; }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pay-head h2 { font-size: 32px; font-weight: 850; font-stretch: 70%; }
.pay-head span { font-size: 14px; color: var(--muted); }
.table-wrap { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; padding: 16px 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
td { padding: 16px 20px; border-bottom: 1px solid #EEF0F6; }
tr:last-child td { border-bottom: 0; }
td.date { white-space: nowrap; }
td.ref { font-family: var(--mono); font-size: 13px; color: var(--body); }
th.num, td.num { text-align: right; }
td.num { font-weight: 700; }

@media (max-width: 640px) {
  .wrap, .faq { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; padding-bottom: 56px; gap: 36px; }
  .section, .pricing, .faq { padding-top: 56px; }
  .pricing, .faq { padding-bottom: 56px; }
  .panel, .card, .engine, .paid { padding: 20px; border-radius: 22px; }
  .pane-head h1 { font-size: 36px; }
  .engine h3 { font-size: 32px; }
  .stepnav { max-width: none; flex-direction: row; overflow-x: auto; }
  .stepnav button { width: auto; min-height: 52px; padding: 8px 12px; flex: none; }
  .stepnav .lbl span { display: none; }
  .panel-foot .mono { display: none; }
}
