/* Studio 7 — shared styles
   Dark, clean, system-font look. Colours and spacing live in the variables below. */

:root {
  --bg: #0E0E10;
  --bg-raised: #161618;
  --surface: #1C1C1E;
  --surface-2: #232326;
  --surface-3: #2C2C2E;
  --surface-4: #3A3A3C;
  --line: #262628;
  --line-2: #2C2C2E;

  --text: #F5F5F7;
  --text-2: #D1D1D6;
  --text-3: #AEAEB2;
  --muted: #98989F;

  --blue: #0071E3;
  --blue-hover: #0077ED;
  --blue-text: #4DA3FF;
  --green: #30D158;
  --red: #FF453A;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 22px;
  --pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: var(--blue-text); text-decoration: none; }
a:hover { color: #7DBBFF; }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- Text ---------- */

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.small { font-size: 13px; }
.label { font-size: 13px; color: var(--muted); }
.positive { color: var(--green); }

.display { font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.h4 { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--text-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: 500 15px var(--font);
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--surface-4); color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { background: transparent; border-color: var(--surface-4); }
.btn-outline:hover { background: var(--surface); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--surface-3); color: var(--text);
  cursor: pointer;
}

/* ---------- Cards and layout helpers ---------- */

.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card-lg { padding: 28px; border-radius: 20px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }

.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > .main { flex: 2 1 560px; min-width: 0; }
.two-col > .side { flex: 1 1 300px; min-width: 0; }

.divider-list > * { border-top: 1px solid var(--line-2); }
.divider-list > *:last-child { border-bottom: 1px solid var(--line-2); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.dot-live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--pill);
  background: var(--surface); font-size: 13px; color: var(--text-2);
}

/* ---------- Site header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: rgba(22, 22, 24, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); position: sticky; top: 0; z-index: 20; }
.site-header .container, .site-header .container-narrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--text); display: grid; place-items: center; }
.brand-mark svg { width: 14px; height: 14px; }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-nav a:not(.btn) { color: var(--text-2); }
.site-nav a:not(.btn):hover { color: var(--text); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px;
    background: var(--bg-raised); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 8px; }
  .container, .container-narrow { padding: 0 20px; }
}

/* ---------- Tabs ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { padding: 8px 14px; border-radius: var(--pill); color: var(--text-2); font-size: 14px; border: none; background: transparent; cursor: pointer; font-family: var(--font); }
.tab:hover { color: var(--text); background: var(--surface); }
.tab[aria-current="page"], .tab.is-active { background: var(--surface-3); color: var(--text); font-weight: 500; }

/* ---------- Forms ---------- */

.input {
  min-height: 48px; padding: 0 18px;
  border-radius: var(--pill); border: 1px solid var(--surface-4);
  background: var(--surface); color: var(--text);
  font: 400 16px var(--font);
  width: 280px; max-width: 100%;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--blue-text); }
.input[aria-invalid="true"] { border-color: var(--red); }

.waitlist-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.form-message { min-height: 22px; font-size: 14px; }
.form-message.is-error { color: #FF6961; }
.form-message.is-success { color: var(--green); }

/* ---------- Media placeholders ---------- */

.ph {
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--muted); font-size: 13px;
  background-size: cover; background-position: center;
}
.avatar { border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-4); display: grid; place-items: center; color: var(--text-2); font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--surface-3);
  overflow: hidden;
  display: grid; place-items: center;
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play-big {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  border: none; background: var(--text); cursor: pointer;
  display: grid; place-items: center;
}
.video.is-locked { background: var(--surface-2); }

.lock-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-4); display: grid; place-items: center; }

/* ---------- Audio player ---------- */

.player { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.player .play {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--text); cursor: pointer;
  display: grid; place-items: center;
}
.player .track { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.progress { flex: 1; order: 0; height: 4px; border-radius: 2px; background: var(--surface-4); overflow: hidden; cursor: pointer; }
.progress > span { display: block; height: 100%; width: 34%; background: var(--text); border-radius: 2px; transition: width .2s linear; }
.times { display: contents; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.times > span { flex: none; min-width: 34px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; order: 1; }
.times > span:first-child { order: -1; text-align: right; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 12px 10px 0; }
.table td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line-2); color: var(--text-3); }
.table td:first-child { color: var(--text); font-weight: 500; }
.table .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Homepage ---------- */

.hero { padding: 96px 0 64px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero .display { max-width: 900px; }
.hero .lead { max-width: 680px; }

.preview-frame { border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--line); padding: 14px; }
.preview-dots { display: flex; gap: 8px; padding: 2px 6px 14px; }
.preview-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-4); }
.preview-body { border-radius: 14px; background: var(--bg); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; }
.preview-body .item { padding: 18px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 14px; }

.band { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 96px 0; }
.container.section { padding-left: 32px; padding-right: 32px; }
.section-tight { padding: 0 0 96px; }

.feature { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.step-num { font-size: 15px; font-weight: 600; color: var(--blue-text); }

.price-card { flex: 1 1 320px; max-width: 440px; padding: 36px; border-radius: var(--radius-lg); background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 10px; }
.price-card.is-featured { border: 1px solid var(--blue); }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-note { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }

.faq details { padding: 20px 0; border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-3); font-size: 15px; line-height: 1.55; }

/* ---------- Artist page ---------- */

.banner {
  height: 240px;
  background: #1A1A1D;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.banner .bar { width: 6px; border-radius: 3px; background: var(--surface-3); }
.banner.has-image .bar { display: none; }

.artist-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-top: -56px; }
.artist-head .avatar { width: 120px; height: 120px; border: 4px solid var(--bg); font-size: 36px; }

.stats-inline { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--text-3); }
.stats-inline strong { color: var(--text); font-weight: 600; }

.post { display: flex; flex-direction: column; gap: 14px; }
.post-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.post-row > .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }

.tier { padding: 22px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.tier.is-featured { border: 1px solid var(--blue); }
.tier ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--text-3); }

.member-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--surface); font-size: 14px; font-weight: 500; }

/* Visitor / member switching on the artist page */
body[data-view="visitor"] [data-show="member"],
body[data-view="member"] [data-show="visitor"] { display: none !important; }

.view-switch {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; margin-right: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px; white-space: nowrap;
}
.view-switch .label { color: var(--text-2); }

/* iOS-style on/off switch */
.view-switch .switch,
.switch {
  -webkit-appearance: none; appearance: none;
  position: relative; display: block; flex: none;
  box-sizing: border-box;
  width: 44px; height: 26px; min-height: 0;
  margin: 0; padding: 0;
  border: none; border-radius: 13px;
  background: var(--surface-4);
  cursor: pointer; line-height: 0;
  transition: background-color .2s ease;
}
.switch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] .knob { transform: translateX(18px); }

/* Older segmented version of the preview control, kept for any page still using it */
.view-switch button[data-view] { border: none; background: transparent; color: var(--text-2); padding: 8px 14px; border-radius: var(--pill); font: 500 13px var(--font); cursor: pointer; min-height: 36px; }
.view-switch button[data-view][aria-pressed="true"] { background: var(--text); color: var(--bg); }

.brand { white-space: nowrap; }

@media (max-width: 560px) {
  /* Small screens: keep the switch, shorten its label, and drop "Log in" so nothing wraps */
  .view-switch { padding: 5px 5px 5px 10px; margin-right: 6px; gap: 8px; }
  .view-switch .label { font-size: 12px; }
  .site-header [data-show="visitor"] .btn:first-child { display: none; }
}
@media (max-width: 440px) {
  .view-switch .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .view-switch { padding-left: 5px; }
}

/* ---------- Dashboard ---------- */

.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar {
  flex: 1 1 220px; max-width: 100%;
  padding: 28px 16px;
  background: var(--bg-raised); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.sidebar .brand { padding: 0 10px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group .label { padding: 0 10px 6px; font-size: 12px; font-weight: 600; }
.side-link { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.side-link:hover { color: var(--text); background: var(--surface); }
.side-link[aria-current="page"] { background: var(--surface-3); color: var(--text); font-weight: 500; }
.sidebar .bottom { margin-top: auto; }

.app-main { flex: 999 1 560px; min-width: 0; padding: 40px 48px 64px; display: flex; flex-direction: column; gap: 28px; }

.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.stat .value { font-weight: 600; font-size: 30px; letter-spacing: -0.02em; }

.tier-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }

@media (max-width: 760px) {
  .container.section { padding-left: 20px; padding-right: 20px; }
  .app-main { padding: 28px 20px 48px; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  padding: 12px 18px; border-radius: 14px;
  background: var(--surface-3); color: var(--text); font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Cover art and thumbnails ---------- */

.cover { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; }
.cover-sm { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; }
.video.is-locked img { filter: blur(14px) brightness(0.35); transform: scale(1.1); }
.video > .stack { position: relative; z-index: 1; }

/* ---------- Logo ---------- */

.brand-logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.hero-name { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--text); }

/* ---------- Mobile hero and sign-up forms ---------- */

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .hero .container { gap: 18px; }
  .waitlist-form { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .waitlist-form .input,
  .waitlist-form .btn { width: 100% !important; max-width: none; }
}

/* ---------- Homepage header: see-through at the top, solid once you scroll ---------- */

.site-header--overlay {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .25s ease, border-color .25s ease, -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease;
}
.site-header--overlay.is-scrolled {
  background: rgba(22, 22, 24, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
/* Pull the hero up underneath the header so its glow reaches the top of the screen */
.site-header--overlay + main > .hero:first-child { margin-top: -65px; padding-top: calc(96px + 65px); }
@media (max-width: 560px) {
  .site-header--overlay + main > .hero:first-child { padding-top: calc(40px + 65px); }
}
.site-header--overlay + main > .hero:first-child .hero-glow { top: -195px; }

/* Hero title: one phrase per line on phones */
@media (max-width: 560px) {
  .hero .display .hero-line { display: block; }
}
/* Keep each phrase of the hero title together, so lines only break between phrases */
.hero .display .hero-line { white-space: nowrap; }
