/* AIEIO Music - design system + public pages. Dark "studio at night" palette, sunset gradient accent. */

@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0912;
  --bg-2: #110e1a;
  --surface: #17131f;
  --surface-2: #201a2c;
  --surface-3: #2a2238;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f0fb;
  --text-2: #d6cfe3;
  --muted: #a49cb6;
  --faint: #7b7290;
  --orange: #ff8a3d;
  --pink: #ff3d8b;
  --violet: #9b5cff;
  --mint: #3ee0b4;
  --amber: #ffc24b;
  --red: #ff5a72;
  --grad: linear-gradient(120deg, #ff8a3d 0%, #ff3d8b 52%, #9b5cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(255, 138, 61, .16), rgba(255, 61, 139, .14) 52%, rgba(155, 92, 255, .16));
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --shadow-glow: 0 10px 40px rgba(255, 61, 139, .25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(900px 500px at 15% -10%, rgba(255, 61, 139, .13), transparent 60%), radial-gradient(800px 500px at 95% 0%, rgba(155, 92, 255, .12), transparent 60%); }
main { flex: 1; }
img, svg, video, canvas { max-width: 100%; }
a { color: #ffb08a; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd2bd; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 var(--s4); letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 var(--s4); }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s4); overflow-x: auto; line-height: 1.5; }
code { background: rgba(255, 255, 255, .06); padding: .1em .35em; border-radius: 5px; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s4); }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.inline { display: inline; }

/* ---------- buttons ---------- */
.btn { --bh: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--bh); padding: 0 1.25em; border-radius: 999px; border: 0; background: var(--grad); color: #160b14; font: 650 .98rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; box-shadow: 0 6px 22px rgba(255, 61, 139, .28); white-space: nowrap; }
.btn:hover { color: #160b14; transform: translateY(-1px); box-shadow: var(--shadow-glow); filter: saturate(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); color: var(--text); box-shadow: none; }
.btn-danger { background: rgba(255, 90, 114, .14); color: #ffb3bf; border: 1px solid rgba(255, 90, 114, .4); box-shadow: none; }
.btn-danger:hover { background: rgba(255, 90, 114, .24); color: #ffd2d9; box-shadow: none; }
.btn-sm { --bh: 36px; padding: 0 .95em; font-size: .88rem; }
.btn-lg { --bh: 56px; padding: 0 1.7em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn .cost { font-weight: 500; opacity: .75; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }
.btn .spinner { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; color: #ffb08a; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #ffd2bd; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; transition: background .15s; padding: 0; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 9, 18, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s5); min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.12rem/1 var(--display); letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav-links > a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: var(--s3); }
.balance { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(255, 138, 61, .35); color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.balance:hover { color: var(--text); border-color: rgba(255, 138, 61, .7); }
.balance svg { width: 15px; height: 15px; color: var(--orange); }
.nav-user { color: var(--text-2); text-decoration: none; font-size: .92rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--s4) var(--s5); background: rgba(14, 11, 22, .98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-right { flex-wrap: wrap; padding-top: var(--s4); gap: var(--s3); }
  .nav-right .btn { flex: 1; }
}

/* ---------- alerts + forms ---------- */
.alert { padding: 12px 16px; border-radius: var(--r-sm); background: rgba(255, 90, 114, .12); border: 1px solid rgba(255, 90, 114, .35); color: #ffd0d8; margin: 0 0 var(--s4); }
.alert-ok { background: rgba(62, 224, 180, .1); border-color: rgba(62, 224, 180, .35); color: #c9f7ea; }
.alert-info { background: rgba(155, 92, 255, .12); border-color: rgba(155, 92, 255, .35); color: #e2d4ff; }
.alert-warn { background: rgba(255, 194, 75, .1); border-color: rgba(255, 194, 75, .35); color: #ffe7b8; }
.alert a { color: inherit; font-weight: 600; }
.alert > svg { width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-right: 6px; }
label { display: block; font-weight: 550; font-size: .92rem; color: var(--text-2); }
.field { margin-bottom: var(--s4); }
.field > label { margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .15s, background .15s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
select option { background: var(--surface); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 138, 61, .7); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(255, 138, 61, .16); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pink); flex: none; }
.form-stack { display: grid; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- cards + sections ---------- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.card.narrow { max-width: 460px; margin: var(--s7) auto; }
.section { padding: var(--s8) 0; }
.section-sm { padding: var(--s7) 0; }
.section-head { max-width: 680px; margin: 0 0 var(--s6); }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #ffb08a; margin-bottom: var(--s3); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.pill-hot { background: var(--grad); color: #160b14; border: 0; font-weight: 650; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--s7); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s7); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: var(--s4); }
.hero .lead { max-width: 560px; margin-bottom: var(--s5); }
.prompt-box { background: rgba(23, 19, 31, .85); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow); position: relative; }
.prompt-box::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; opacity: .55; pointer-events: none; }
.prompt-box textarea { border: 0; background: transparent; min-height: 96px; font-size: 1.05rem; box-shadow: none; padding: 10px 12px; }
.prompt-box textarea:focus { box-shadow: none; background: transparent; }
.prompt-row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s2) var(--s2) 2px; }
.prompt-row .spacer { flex: 1; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button, .seg label { border: 0; background: transparent; color: var(--text-2); font: 550 .84rem/1 var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg input:checked + span, .seg label.on { background: rgba(255, 255, 255, .14); color: var(--text); }
.seg label span { pointer-events: none; }
.hero-note { margin-top: var(--s3); font-size: .86rem; color: var(--muted); display: flex; gap: var(--s4); flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--mint); }
.hero-art { position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: var(--s7); } }
@media (max-width: 560px) { .prompt-box textarea { min-height: 132px; } }
@media (max-width: 420px) { .prompt-box textarea { min-height: 176px; } }

/* player card mock (landing) */
.player-card { background: linear-gradient(160deg, rgba(42, 34, 56, .95), rgba(20, 16, 28, .95)); border: 1px solid var(--line-2); border-radius: 26px; padding: var(--s5); box-shadow: var(--shadow), 0 0 80px rgba(155, 92, 255, .14); }
.pc-top { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.cover { flex: none; width: 76px; height: 76px; border-radius: 16px; background: var(--grad); position: relative; overflow: hidden; display: grid; place-items: center; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 45%); }
.cover svg { width: 46%; height: 46%; color: rgba(11, 9, 18, .78); position: relative; z-index: 1; }
.pc-title { font: 700 1.15rem/1.2 var(--display); }
.pc-sub { color: var(--muted); font-size: .86rem; }
.eq { display: flex; align-items: center; gap: 3px; height: 64px; margin: var(--s3) 0; }
.eq i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--orange), var(--pink) 55%, var(--violet)); height: 30%; animation: eq 1.4s ease-in-out infinite; transform-origin: center; }
.eq i:nth-child(3n) { animation-duration: 1.1s; } .eq i:nth-child(4n) { animation-duration: 1.7s; } .eq i:nth-child(5n) { animation-duration: .9s; }
.eq i:nth-child(odd) { animation-delay: -.6s; } .eq i:nth-child(7n) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 92%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 55%; } html { scroll-behavior: auto; } }
.pc-lyrics { font: 600 1.02rem/1.55 var(--display); color: var(--faint); }
.pc-lyrics .on { color: var(--text); }
.pc-lyrics .on b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-sections { display: flex; gap: 6px; margin-top: var(--s4); flex-wrap: wrap; }
.pc-sections span { font-size: .74rem; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-2); border: 1px solid var(--line); }
.pc-sections span.on { background: var(--grad-soft); border-color: rgba(255, 138, 61, .45); color: var(--text); }

/* features */
.feature { padding: var(--s5); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(255, 138, 61, .3); margin-bottom: var(--s4); color: #ffc29f; }
.feature .ficon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: var(--s2); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); counter-reset: s; }
.step { position: relative; padding: var(--s5); border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: var(--s5); width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #160b14; display: grid; place-items: center; font: 800 .95rem/1 var(--display); }
.step h3 { margin-top: var(--s2); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--s6); } }

/* composer strip illustration */
.strip { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s4); border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.strip .blk { flex: 1 1 110px; min-width: 100px; padding: var(--s3); border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.strip .blk b { display: block; font: 700 .86rem/1.2 var(--display); margin-bottom: 4px; }
.strip .blk span { display: block; font-size: .74rem; color: var(--muted); }
.strip .blk.hot { background: var(--grad-soft); border-color: rgba(255, 61, 139, .4); }

/* pricing */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); }
.pack.pop { border-color: rgba(255, 61, 139, .55); box-shadow: 0 0 0 1px rgba(255, 61, 139, .25), var(--shadow-glow); }
.pack .badge { position: absolute; top: -12px; right: var(--s5); }
.pack h3 { margin-bottom: 4px; }
.pack .price { font: 800 2.4rem/1 var(--display); margin: var(--s3) 0 4px; letter-spacing: -.02em; }
.pack .per { color: var(--muted); font-size: .86rem; margin-bottom: var(--s4); }
.pack ul { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: 8px; font-size: .93rem; color: var(--text-2); }
.pack li { display: flex; gap: 8px; align-items: flex-start; }
.pack li svg { width: 17px; height: 17px; color: var(--mint); flex: none; margin-top: 3px; }
.pack .btn { margin-top: auto; }
@media (max-width: 860px) { .packs { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.cost-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cost-table th, .cost-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }

/* track cards (public) */
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } /* minmax(0,...): long titles truncate instead of widening the page */
@media (max-width: 960px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tcards { grid-template-columns: minmax(0, 1fr); } }
.tcard { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.tcard:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .055); }
.tcard .cover { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.tcard { min-width: 0; }
.tcard .meta { min-width: 0; flex: 1; }
.tcard .tt { font: 700 1rem/1.25 var(--display); color: var(--text); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .ts { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .try { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .78rem; font-weight: 600; color: #ffb08a; text-decoration: none; }
.tcard .try:hover { color: #ffd2bd; text-decoration: underline; }
.tcard .try svg { width: 13px; height: 13px; }
.play-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #160b14; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 18px rgba(255, 61, 139, .3); transition: transform .15s; padding: 0; }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 18px; height: 18px; }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.play-btn:disabled { opacity: .4; cursor: default; transform: none; }

/* faq */
.faq { display: grid; gap: var(--s3); }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .03); padding: 0 var(--s5); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 0; font: 650 1.04rem/1.35 var(--display); display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--orange); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s4); color: var(--text-2); }

/* prose (guides + legal) */
.prose { font-size: 1.04rem; color: var(--text-2); }
.prose h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s3); color: var(--text); }
.prose h3 { margin: var(--s5) 0 var(--s2); color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.page-head { padding: var(--s7) 0 var(--s5); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: var(--s3); }
.crumbs a { color: var(--muted); }
.guide-list { display: grid; gap: var(--s4); }
.guide-item { display: block; padding: var(--s5); border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.guide-item:hover { border-color: rgba(255, 138, 61, .5); color: var(--text); transform: translateY(-2px); }
.guide-item h2 { font-size: 1.3rem; margin-bottom: var(--s2); }
.guide-item p { color: var(--muted); margin: 0; }
.cta-band { margin: var(--s7) 0 0; padding: var(--s6); border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid rgba(255, 138, 61, .3); text-align: center; }
.cta-band h2 { margin-bottom: var(--s3); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s5); margin-top: var(--s8); background: rgba(0, 0, 0, .18); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s5); }
.foot-grid h4, .foot-grid .foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: var(--s3); font-family: var(--font); font-weight: 650; }
.foot-grid a { display: block; color: var(--text-2); text-decoration: none; font-size: .92rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-grid a.logo { display: inline-flex; padding: 0; }
.foot-legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.foot-legal a { color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* auth */
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: var(--s7) var(--s4); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; margin-bottom: var(--s2); }
.auth-alt { margin-top: var(--s4); text-align: center; font-size: .92rem; color: var(--muted); }

/* toast */
.toast-host { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toast-host { left: auto; right: 24px; top: 84px; transform: none; width: 380px; } }
.toast { background: rgba(32, 26, 44, .97); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .93rem; animation: toastIn .25s ease; pointer-events: auto; cursor: pointer; }
.toast.err { border-color: rgba(255, 90, 114, .55); }
.toast { display: flex; align-items: center; gap: 10px; }
.toast > span { flex: 1 1 auto; }
.toast-act { flex: none; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 5px 12px; font: 650 .84rem/1.2 var(--font); cursor: pointer; }
.toast-act:hover { background: rgba(255, 255, 255, .14); }
.toast.ok { border-color: rgba(62, 224, 180, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 404 */
.nf { text-align: center; padding: var(--s9) 0; }
.nf .big { font: 800 clamp(4rem, 14vw, 9rem)/1 var(--display); letter-spacing: -.04em; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(5, 4, 9, .72); backdrop-filter: blur(4px); z-index: 80; display: grid; place-items: center; padding: var(--s4); }
.modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 1.35rem; }
.modal-actions { display: flex; gap: var(--s3); justify-content: flex-end; margin-top: var(--s4); flex-wrap: wrap; }
