:root {
  --bg: #f8f7f4; --card: #ffffff; --ink: #101b2d; --muted: #556070; --line: #e3e1db;
  --accent: #1d5fa0; --accent-ink: #ffffff; --warn: #8a3b12; --warn-bg: #fdecdf;
  --purple: #7b4ea3; --red: #c8453a; --green: #3a9a4a; --blue: #2e7fc1; --yellow: #f2c23a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15191e; --card: #1d232a; --ink: #e8e6e1; --muted: #a3acb8; --line: #2f3740;
    --accent: #6aaee8; --accent-ink: #0d1a2a; --warn: #ffb48a; --warn-bg: #3a2318; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; }
.brand img { height: 40px; width: auto; display: block; }
.top { border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--purple) 0 20%, var(--red) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--yellow) 80%) 1; }
.tag { color: var(--muted); font-size: .95rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 32px 0 8px; }
.hero p { color: var(--muted); }
.step, .how { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 20px 0; }
h2 { font-size: 1.2rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
#step-upload .num { background: var(--purple); } #step-genres .num { background: var(--red); } #step-pay .num { background: #2f7d3c; }
.num { background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex: none; }
.drop { display: flex; flex-direction: column; gap: 4px; border: 2px dashed var(--line); border-radius: 10px;
  padding: 24px; text-align: center; cursor: pointer; }
.drop:focus-within, .drop.over { border-color: var(--accent); }
.drop.busy { opacity: .6; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop small, .muted { color: var(--muted); font-size: .92rem; }
.cols, .row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin: 8px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; }
textarea { width: 100%; resize: vertical; font-weight: 400; }
button, .button { font: inherit; border-radius: 8px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.primary { background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 700; }
.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, .button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.msg { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
progress { width: 100%; height: 14px; accent-color: var(--accent); }
.how ul { padding-left: 20px; }
.foot { color: var(--muted); font-size: .9rem; padding-bottom: 40px; }
nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
nav a, .foot a, .how a, .hero a { color: var(--accent); }
nav a { text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.tier { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 14px; font-weight: 400; position: relative; }
label.tier { cursor: pointer; }
label.tier:has(input:checked) { border-color: var(--accent); }
label.tier:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tier input { position: absolute; opacity: 0; }
.tier.off { opacity: .45; cursor: not-allowed; }
.tname { font-weight: 700; }
.tprice { font-size: 1.6rem; font-weight: 800; }
.tline { color: var(--muted); font-size: .92rem; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.doc h2 { margin-top: 28px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc code, .doc kbd { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: .92em; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.form { display: grid; gap: 12px; max-width: 380px; }
input[type=email], input[type=password], input[type=text] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 400; }
.list-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; flex-wrap: wrap; }
.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; }
.drop.small { padding: 12px; }
a { color: var(--accent); }
a.button.primary, a.primary { color: var(--accent-ink); }
.trial { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.review-row { display: grid; grid-template-columns: 1fr minmax(160px, 220px); gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; }
.review-row .t { font-weight: 600; }
.review-row .a { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .review-row { grid-template-columns: 1fr; } }
