:root {
  color-scheme: light;
  --background: #f5f6f8;
  --surface: #fff;
  --subtle: #eef1f6;
  --text: #181a20;
  --muted: #4d5666;
  --line: #dce1ea;
  --accent: #174fae;
  --button: #1555bc;
  --button-hover: #1047a0;
  --on-button: #fff;
  --tint: #eaf2ff;
  --backdrop: #17203380;
  --shadow: 0 14px 40px #1a284513;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101216;
  --surface: #191c23;
  --subtle: #222733;
  --text: #f5f6fa;
  --muted: #b7bfce;
  --line: #383e4c;
  --accent: #a4c6ff;
  --button: #a4c6ff;
  --button-hover: #c4d9ff;
  --on-button: #13274c;
  --tint: #1e2c46;
  --backdrop: #000b;
  --shadow: 0 14px 40px #0004;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
p, li { line-height: 1.58; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.muted { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--button);
  color: var(--on-button);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, main { width: min(1440px, 100%); margin-inline: auto; }
.header-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 28px);
  padding: 14px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand b { color: var(--accent); }
.brand-mark {
  display: inline-grid;
  width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--button);
}
.brand-mark::after {
  content: '';
  border: 4px solid transparent;
  border-left: 7px solid var(--on-button);
  border-right: 0;
}
nav { display: flex; gap: clamp(14px, 2vw, 30px); font-size: .91rem; white-space: nowrap; }
nav a { color: var(--muted); padding-block: 12px; }
nav a:hover { color: var(--accent); }
.host-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 2px var(--gutter) 0;
  color: var(--muted);
  font-size: .88rem;
}
.host-breadcrumb[hidden] { display: none; }
.host-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--subtle);
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 650;
}
.theme-toggle[hidden] { display: none; }
.settings-button[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--accent); }
.switch-track {
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 18px;
  padding: 2px;
  border-radius: 99px;
  background: #687283;
}
.switch-track::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.theme-toggle[aria-checked="true"] .switch-track { justify-content: flex-end; background: var(--button); }
.theme-toggle[aria-checked="true"] .switch-track::before { background: var(--on-button); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 650;
  text-align: center;
}
.outline { color: var(--accent); background: var(--surface); border-color: var(--line); }
.outline:hover { border-color: var(--accent); }
.primary { background: var(--button); color: var(--on-button); }
.primary:hover { background: var(--button-hover); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(42px, 6vw, 94px) var(--gutter);
}
.hero-art {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 350px;
  aspect-ratio: 1.12;
  border-radius: clamp(20px, 3vw, 36px);
  background: #35291c url('./media/stage.webp') 68% center / cover;
  box-shadow: var(--shadow);
}
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 730;
  letter-spacing: .10em;
}
h1 {
  font-size: clamp(3.05rem, 6.6vw, 6.65rem);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 760;
}
h1 em { color: var(--accent); font-style: normal; display: block; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  letter-spacing: -.055em;
  line-height: 1.07;
  font-weight: 745;
}
.lead { max-width: 38ch; margin: 20px 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.19rem); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; }
.hero-price strong { font-size: 1.18rem; }
.hero-price span { color: var(--muted); font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 15px; color: var(--muted); font-size: .9rem; }

.section { padding: clamp(42px, 6.2vw, 90px) var(--gutter); border-top: 1px solid var(--line); }
.sales-intro, .sales-access, .sales-faq, .creator { background: var(--surface); }
.letter { max-width: 48rem; }
.letter > p { max-width: 63ch; margin-top: 15px; color: var(--muted); }
.benefit-grid, .access-grid { display: grid; gap: 16px; margin-top: 28px; }
.benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefit-grid article, .access-grid article {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 32px);
  border-radius: 20px;
  background: var(--subtle);
}
.benefit-grid h3, .access-grid h3 { font-size: clamp(1.13rem, 2.3vw, 1.5rem); letter-spacing: -.025em; }
.benefit-grid p { margin-top: 8px; color: var(--muted); }
.access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.access-grid article:last-child { background: var(--tint); }
.access-grid article:last-child h3 { color: var(--accent); }
.access-grid ul { padding-left: 1.15rem; margin: 12px 0 0; color: var(--muted); }
.access-grid li + li { margin-top: 7px; }
.faq-list { max-width: 49rem; margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 15px 6px; min-height: 44px; font-weight: 690; cursor: pointer; }
.faq-list summary::marker { color: var(--accent); }
.faq-list details p { padding: 0 6px 17px; color: var(--muted); }
.sales-close { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 20px; background: var(--tint); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head > p { font-size: .9rem; }
.discovery-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
}
.channel-search {
  display: grid;
  flex: 1 1 240px;
  max-width: 26rem;
  gap: 6px;
  color: var(--text);
  font-weight: 680;
}
.channel-search input {
  width: 100%;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
}
.channel-search input::placeholder { color: var(--muted); opacity: 1; }
.channel-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#saved-channels[aria-pressed="true"] { color: var(--on-button); background: var(--button); border-color: var(--button); }
.catalog-empty { padding: 18px; border-radius: 12px; background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.filters button {
  min-height: 44px;
  padding: 8px 15px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { color: var(--on-button); background: var(--button); border-color: var(--button); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--subtle); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: #181a20;
  font-size: .85rem;
  font-weight: 680;
}
.card-body { padding: 18px 20px 16px; }
.release, .card-description { color: var(--muted); }
.release { font-size: .88rem; }
.card h3 { margin-block: 2px 5px; font-size: 1.5rem; letter-spacing: -.04em; }
.card-link {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 3px;
  color: var(--accent);
  background: none;
  border: 0;
  font-weight: 700;
}
.card-link:hover { text-decoration: underline; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; }
.card-actions .card-link { margin-top: 0; }
.card-save {
  min-width: 58px;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.card-save:hover, .card-save[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.card-save[aria-pressed="true"] { background: var(--tint); }
.card-save[aria-pressed="true"]::after { content: ' ✓'; }

.membership {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  background: var(--tint);
}
.membership h2 + p { max-width: 455px; margin: 15px 0 20px; }
.membership .lead strong { color: var(--text); }
.membership-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.membership-steps li { display: grid; gap: 5px; padding: 17px 20px; border-radius: 16px; background: var(--surface); }
.membership-steps span { color: var(--muted); line-height: 1.48; }
.creator { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; }
.footer { border-top: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: .9rem; }

dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: clamp(18px, 6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: var(--backdrop); }
.close {
  float: right;
  min-width: 44px;
  min-height: 44px;
  margin: -7px -7px 5px 5px;
  color: var(--text);
  background: var(--subtle);
  border: 0;
  border-radius: 50%;
  font-size: 1.65rem;
}
.dialog-copy { margin-top: 12px; }
.dialog-note { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.preferences { margin-block: 18px; }
.preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.preference label { display: inline-block; font-weight: 680; color: var(--text); }
.preference p { margin-top: 4px; font-size: .9rem; }
.preference select {
  width: 100%;
  min-height: 44px;
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  appearance: none;
  font: inherit;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--text) 50%) right 16px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--text) 50%, transparent 50%) right 11px center / 5px 5px no-repeat,
    var(--subtle);
}
.preference input[type="checkbox"] {
  justify-self: end;
  width: 24px;
  height: 24px;
  margin: 10px;
  accent-color: var(--button);
}
.preference :where(select, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.settings-feedback { margin-top: 8px; min-height: 1.5em; font-size: .89rem; }
.offers { display: grid; gap: 8px; margin: 20px 0 14px; }
.offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--subtle);
}
.offer h3 { font-size: 1rem; }
.offer strong { color: var(--accent); }
.offer p { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }

@media (max-width: 1020px) {
  .header-inner nav { display: none; }
  .creator { grid-template-columns: 1fr 1fr; }
  .creator .button { justify-self: start; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 1.45; }
  .grid, .membership, .creator, .benefit-grid, .access-grid { grid-template-columns: 1fr; }
  .section-head, .footer { align-items: start; flex-direction: column; gap: 8px; }
}

@media (max-width: 650px) {
  .header-actions > a { display: none; }
}

@media (max-width: 450px) {
  .theme-toggle { padding-inline: 10px; }
  .preference:has(select) { grid-template-columns: 1fr; gap: 8px; }
  .preference:has(input) { grid-template-columns: minmax(0, 1fr) auto; }
  .theme-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .settings-button { padding-inline: 12px; }
}

:root[data-motion="reduce"] { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
