/* MusicDude for Artists — prototype styles (round 3: editorial pass).
   Palette from the app tokens (apps/mobile/src/design/tokens.ts). One accent: amber marks
   *your* track wherever it appears; blue is reserved for data about other tracks/listeners. */
:root {
  --canvas: #080B12; --surface: #111722; --raised: #1B2433; --line: #2D3A50;
  --hair: rgba(166, 180, 203, .16);
  --paper: #F4F7FF; --slate: #A6B4CB; --muted: #7F91AE;
  --you: #F2C46D;            /* the artist's own track */
  --data: #59C7FF;           /* other tracks / listeners */
  --data-dim: #3781FC;
  --display: "Wix Madefor Display", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--paper); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: 1.75rem; line-height: 1.15; }
h4 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
a { color: var(--paper); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.slate { color: var(--slate); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; }
.micro { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.you { color: var(--you); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--s3); }
@media (max-width: 600px) { .wrap { padding: 0 var(--s2); } }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); font: 700 1.0625rem/1.1 var(--display); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span span { display: block; font: 400 .8125rem/1.2 var(--body); color: var(--slate); letter-spacing: 0; }
.topbar nav { display: flex; gap: var(--s2); align-items: center; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--paper); background: var(--paper); color: var(--canvas); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: #fff; }
.btn.line { background: transparent; color: var(--paper); border-color: var(--line); }
.btn.line:hover { border-color: var(--slate); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.textlink { background: none; border: 0; padding: 0; color: var(--paper); font: 500 .9375rem/1.4 var(--body); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; cursor: pointer; }
.textlink:hover { text-decoration-color: var(--paper); }

/* ---------- Report layout: a title column and a content column, rules between ---------- */
.group { padding-top: var(--s12); }
.group > header { max-width: 40rem; padding-bottom: var(--s4); }
.group > header p { color: var(--slate); margin-top: var(--s2); font-size: 1.125rem; }
.rs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--hair); scroll-margin-top: var(--s3); }
.rs-side { align-self: start; position: sticky; top: var(--s3); display: grid; gap: 12px; }
.rs-side p { color: var(--slate); font-size: 1rem; max-width: 26rem; }
.rs-meta { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.rs-body { min-width: 0; display: grid; gap: var(--s4); align-content: start; }
.rs.flash .rs-side h3 { color: var(--data); transition: color .2s; }
.rs-side h3 { transition: color 1.2s var(--ease); }
@media (max-width: 900px) { .rs { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4) 0; } .rs-side { position: static; } .group { padding-top: var(--s8); } }

/* Key figures: big type on a hairline, no boxes */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.fig { padding: var(--s2) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--hair); }
.fig + .fig { padding-left: var(--s2); border-left: 1px solid var(--hair); }
.fig:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.fig dt { font-size: .875rem; color: var(--slate); }
.fig dd { margin: 4px 0 0; font: 700 1.75rem/1.15 var(--display); letter-spacing: -.02em; }
.fig small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 600px) { .figs { grid-template-columns: 1fr 1fr; } .fig:nth-child(3n + 1) { padding-left: var(--s2); border-left: 1px solid var(--hair); } .fig:nth-child(2n + 1) { padding-left: 0; border-left: 0; } .fig dd { font-size: 1.375rem; } }

/* Rows: plain list on hairlines */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.rows li { display: flex; align-items: baseline; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--hair); min-width: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .t1 { font-weight: 500; }
.rows .t2 { color: var(--muted); font-size: .875rem; }
.rows .end { font-variant-numeric: tabular-nums; color: var(--slate); white-space: nowrap; }

/* Thin bars */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3rem; gap: var(--s2); align-items: center; font-size: .9375rem; }
.bar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { height: 4px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--data); border-radius: 2px; transform-origin: left; }
.bar .v { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; font-size: .875rem; }
@media (max-width: 600px) { .bar { grid-template-columns: 7rem minmax(0, 1fr) 2.75rem; gap: 12px; } }

/* Text tabs with a sliding underline */
.tabs { position: relative; display: flex; gap: var(--s3); border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 0 0 12px; color: var(--muted); font: 500 .9375rem/1.2 var(--body); cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--paper); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; background: var(--paper); transition: left .3s var(--ease), width .3s var(--ease); }
.pane { animation: paneIn .28s var(--ease); }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }

/* Honest empty state */
.thin { border-left: 2px solid var(--line); padding: 4px 0 4px var(--s2); color: var(--slate); max-width: 34rem; }
.thin strong { color: var(--paper); font-weight: 600; display: block; }

/* Market fit: three big numbers */
.fitrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.fitrow .x { font: 700 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fitrow .x.lo { color: var(--muted); }
.fitrow .c { margin-top: 8px; font-weight: 600; }
.fitrow p { color: var(--slate); font-size: .875rem; margin-top: 4px; }
@media (max-width: 600px) { .fitrow { grid-template-columns: 1fr; gap: var(--s2); } .fitrow > div { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: var(--s2); } .fitrow .x { grid-row: span 2; } .fitrow .c { margin: 0; } }

/* Lanes: diverging bars around 1.0× */
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 3.25rem; gap: 12px; align-items: center; font-size: .9375rem; }
.lane .axis { position: relative; height: 8px; }
.lane .axis::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1px; background: var(--line); }
.lane .axis i { position: absolute; top: 2px; height: 4px; border-radius: 2px; }
.lane .axis i.open { left: 50%; background: var(--data); }
.lane .axis i.crowd { right: 50%; background: var(--muted); }
.lane .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); font-size: .875rem; }

.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: .8125rem; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }

/* Heatmap */
.heat { display: grid; grid-template-columns: 2.5rem repeat(24, minmax(0, 1fr)); gap: 2px; font-size: .6875rem; color: var(--muted); }
.heat div { aspect-ratio: 1; border-radius: 2px; }
.heat .lbl, .heat .hr { aspect-ratio: auto; }
.heat .hr { text-align: left; }

/* Pitch text */
.pitchtext { font: 400 1.125rem/1.65 var(--body); max-width: 40rem; border-left: 2px solid var(--you); padding-left: var(--s3); white-space: pre-wrap; }

/* Compare table */
.tablewrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
table.cmp th { text-align: left; font: 500 .8125rem/1.2 var(--body); color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--hair); }
table.cmp td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
table.cmp tr.pick td:first-child { box-shadow: inset 2px 0 0 var(--you); padding-left: 12px; }
table.cmp th:first-child { padding-left: 12px; }
table.cmp td:first-child { padding-left: 12px; }
.hi { color: var(--paper); font-weight: 600; } .lo { color: var(--muted); }

/* Waveform */
.wave { width: 100%; height: auto; display: block; }
.stamp { font: 700 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--you); font-variant-numeric: tabular-nums; }

/* Release plan timeline (a real sequence, so it is numbered) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: wk; }
.timeline > li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--hair); }
.timeline > li > b { font: 700 1rem/1.4 var(--display); }
.timeline ul { margin: 0; padding-left: 18px; color: var(--slate); display: grid; gap: 6px; }
@media (max-width: 600px) { .timeline > li { grid-template-columns: 1fr; gap: 8px; } }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.split i:nth-child(1) { background: var(--data); } .split i:nth-child(2) { background: var(--data-dim); } .split i:nth-child(3) { background: var(--line); }

/* Vertical frames: sound card and teaser */
.frames { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-start; }
.vframe { width: 252px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; position: relative; flex: none;
  background: var(--canvas); border: 1px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; }
.vframe > svg.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vframe > *:not(svg) { position: relative; }
.vframe .t { font: 700 1.5rem/1.05 var(--display); letter-spacing: -.02em; }
.vframe .a { color: var(--slate); font-size: .875rem; margin-top: 4px; }
.vframe .big { font: 700 2.75rem/1 var(--display); letter-spacing: -.04em; color: var(--you); margin-top: auto; }
.vframe .kv { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--slate); border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 8px; }
.vframe .kv b { color: var(--paper); font-weight: 600; text-align: right; }
.vframe .foot { display: flex; align-items: center; gap: 8px; margin-top: var(--s2); font-size: .6875rem; color: var(--slate); }
.vframe .foot img { width: 20px; height: 20px; border-radius: 5px; }
.vframe .prog { height: 2px; background: var(--line); margin-top: 12px; }
.vframe .prog i { display: block; height: 100%; width: 0; background: var(--you); }
.vframe.playing .prog i { width: 100%; transition: width 19s linear; }
.locked-frame { opacity: .45; }
.side-note { flex: 1; min-width: 15rem; display: grid; gap: var(--s2); align-content: start; max-width: 30rem; }

/* Forms */
label.f { display: grid; gap: 8px; font-size: .875rem; color: var(--slate); }
input.in { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--paper); padding: 0 16px; font: 400 1rem/1 var(--body); width: 100%; transition: border-color .2s; }
input.in::placeholder { color: var(--muted); }
input.in:focus { outline: none; border-color: var(--slate); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--slate); }
.check input { margin-top: 3px; accent-color: var(--paper); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: var(--s3); transform: translate(-50%, 8px); opacity: 0; background: var(--paper); color: var(--canvas);
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: .9375rem; transition: opacity .2s, transform .2s var(--ease); z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Owner-only marker for placeholder numbers */
.ph { font-size: .75rem; color: var(--muted); border-bottom: 1px dashed var(--muted); white-space: nowrap; }

/* ---------- Pricing: columns divided by rules ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.tier { padding: var(--s4) var(--s4) var(--s4) 0; display: flex; flex-direction: column; gap: var(--s2); }
.tier + .tier { padding-left: var(--s4); border-left: 1px solid var(--hair); }
.tier .amt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tier .amt b { font: 700 3.5rem/1 var(--display); letter-spacing: -.04em; }
.tier .amt span { color: var(--slate); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--slate); font-size: .9375rem; flex: 1; }
.tier ul li { padding-left: 16px; position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--slate); }
.tier .btn { align-self: flex-start; }
.tier.pro h4::after { content: " — launch price"; font: 400 .9375rem/1 var(--body); color: var(--slate); }
.billing { display: flex; gap: var(--s2); font-size: .875rem; }
.billing button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; border-bottom: 1px solid transparent; }
.billing button[aria-pressed="true"] { color: var(--paper); border-color: var(--paper); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } .tier, .tier + .tier { padding: var(--s4) 0; border-left: 0; border-bottom: 1px solid var(--hair); } }

/* ---------- Dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: var(--s3) var(--s3) var(--s3) var(--s3); border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: var(--s4); }
.rail nav { position: relative; display: grid; }
.rail nav a { padding: 8px 0 8px 16px; color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.rail nav a:hover, .rail nav a.on { color: var(--paper); }
.rail nav .bar-ind { position: absolute; left: 0; width: 2px; background: var(--you); border-radius: 1px; transition: top .35s var(--ease), height .35s var(--ease); }
.rail .acct { margin-top: auto; font-size: .8125rem; color: var(--muted); display: grid; gap: 8px; }
.rail .acct a { color: var(--slate); }
.main { padding: var(--s4) clamp(16px, 4vw, 64px) var(--s12); min-width: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: var(--s2); padding: 12px var(--s2); border-right: 0; border-bottom: 1px solid var(--hair); background: var(--canvas); }
  .rail .brand > span, .rail .acct { display: none; }
  .rail nav { display: flex; overflow-x: auto; gap: var(--s2); scrollbar-width: none; min-width: 0; }
  .rail nav a { padding: 8px 0; white-space: nowrap; }
  .rail nav .bar-ind { display: none; }
  .rail nav a.on { box-shadow: inset 0 -2px 0 var(--you); }
}
.rs > *, .group, .fig { min-width: 0; }
@media (max-width: 600px) { .rows .end { white-space: normal; text-align: right; max-width: 55%; } }

/* ---------- artists.somedudes.xyz (Stage 1) ---------- */
/* Link-based scans: sections that need the uploaded file stay visible but greyed out */
.rs.locked .rs-side h3, .rs.locked .rs-side > p:not(.lock) { color: var(--muted); }
.rs.locked .rs-body { opacity: .32; filter: grayscale(1); pointer-events: none; user-select: none; }
.lock { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); font-size: .8125rem; font-weight: 500; }
.lock::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: inset 0 -4px 0 -2px currentColor; }
/* "Sample report" banner on /sample */
.sample-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s3); padding: 14px var(--s2); margin-bottom: var(--s4); border: 1px solid var(--you); border-radius: 14px; }
.sample-banner b { color: var(--you); font: 700 1rem/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.sample-banner span { flex: 1; min-width: 14rem; color: var(--slate); font-size: .9375rem; }
/* Early-access form */
select.in { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--paper); padding: 0 16px; font: 400 1rem/1 var(--body); width: 100%; }
select.in:focus { outline: none; border-color: var(--slate); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: #FF8A8A; font-size: .875rem; min-height: 1.3em; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn { text-align: center; line-height: 1.2; }
