/*
 * MixVault's site, in the app's look (AGENTS.md, FEATURES.MD › Look): a
 * quiet dark window, colour only from the music (cover art and the Camelot
 * key colours), rows on hairlines instead of boxed cards, the system font,
 * rem sizes so text scaling carries everything.
 */

:root {
  --mv-window: #1b1b1d;
  --mv-fill: rgb(255 255 255 / 0.09);
  --mv-fill-hover: rgb(255 255 255 / 0.13);
  --mv-fill-quiet: rgb(255 255 255 / 0.045);
  --mv-hairline: rgb(84 84 88 / 0.35);
  --mv-hairline-strong: rgb(84 84 88 / 0.6);
  --mv-text: #f5f5f7;
  --mv-text-2: rgb(235 235 245 / 0.62);
  --mv-brand: #0a84ff;
  --mv-brand-ring: rgb(10 132 255 / 0.4);
  --mv-brand-fill: #0071e3;
  --mv-brand-fill-hover: #0062cc;
  --mv-link: #419cff;
  --mv-link-hover: #6cb4ff;
  --mv-ok: #30d158;
  --mv-lossless: #64d2ff;

  --mv-key-3: #b7d13f;
  --mv-key-5: #ffa83a;
  --mv-key-7: #ff5f8e;
  --mv-key-8: #cf6fff;
  --mv-key-9: #9179ff;
  --mv-key-10: #5f9dff;
  --mv-key-11: #3fc0ff;
  --mv-key-ink: #111;

  --mv-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    system-ui, sans-serif;
  --mv-fs-sm: 0.875rem;
  --mv-fs-md: 1rem;
  --mv-fs-lg: 1.125rem;
  --mv-fs-h3: 1.0625rem;
  --mv-fs-h2: 1.75rem;
  --mv-fs-h1: clamp(2.5rem, 6vw, 4.25rem);
  --mv-lh: 1.55;

  --mv-sp-1: 0.25rem;
  --mv-sp-2: 0.5rem;
  --mv-sp-3: 0.75rem;
  --mv-sp-4: 1rem;
  --mv-sp-6: 1.5rem;
  --mv-sp-8: 2rem;
  --mv-sp-12: 3rem;
  --mv-sp-20: 5rem;
  --mv-sp-28: 7rem;

  --mv-radius-sm: 0.375rem;
  --mv-radius-lg: 0.75rem;
  --mv-page: 68rem;
  --mv-gutter: clamp(1rem, 4vw, 2.5rem);

  /* The wash: the hero track's cover (Slow Burn), blurred behind the page. */
  --mv-wash-a: #b24592;
  --mv-wash-b: #f15f79;
  --mv-wash-c: #5f9dff;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  background: var(--mv-window);
  color: var(--mv-text);
  font-family: var(--mv-font);
  font-size: var(--mv-fs-md);
  line-height: var(--mv-lh);
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
}

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

a {
  color: var(--mv-link);
  text-decoration: none;
}

a:hover {
  color: var(--mv-link-hover);
}

:focus-visible {
  outline: 2px solid var(--mv-brand);
  outline-offset: 2px;
  border-radius: var(--mv-radius-sm);
}

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

.skip {
  position: absolute;
  left: var(--mv-sp-4);
  top: -3rem;
  z-index: 10;
  padding: var(--mv-sp-2) var(--mv-sp-3);
  background: var(--mv-brand-fill);
  color: #fff;
  border-radius: var(--mv-radius-sm);
}

.skip:focus {
  top: var(--mv-sp-3);
}

/* ---- The bar: like the app's sticky table header, blurred ---- */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(27 27 29 / 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--mv-hairline);
}

.bar__inner {
  display: flex;
  align-items: center;
  gap: var(--mv-sp-6);
  max-width: var(--mv-page);
  margin: 0 auto;
  padding: var(--mv-sp-3) var(--mv-gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--mv-sp-2);
  color: var(--mv-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--mv-text);
}

/* The key wheel, small: the twelve Camelot colours round a dot. */
.wordmark__dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: conic-gradient(
    #39d0b8, #63cf5e, #b7d13f, #f2cf36, #ffa83a, #ff7a4a,
    #ff5f8e, #cf6fff, #9179ff, #5f9dff, #3fc0ff, #4fe0dc, #39d0b8
  );
  -webkit-mask: radial-gradient(circle, transparent 0.22rem, #000 0.24rem);
  mask: radial-gradient(circle, transparent 0.22rem, #000 0.24rem);
  vertical-align: -0.15rem;
}

.bar__inner > nav {
  margin-left: auto;
}

.bar__nav {
  display: flex;
  gap: var(--mv-sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar__nav a {
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
}

.bar__nav a:hover {
  color: var(--mv-text);
}

@media (max-width: 40rem) {
  .bar__nav {
    display: none;
  }

  .bar__inner > .btn {
    margin-left: auto;
  }
}

/* ---- Buttons: the app's, a little larger ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 var(--mv-sp-4);
  border-radius: var(--mv-radius-sm);
  background: var(--mv-fill);
  color: var(--mv-text);
  font-size: var(--mv-fs-md);
  font-weight: 500;
  transition: background-color 120ms ease;
}

.btn:hover {
  background: var(--mv-fill-hover);
  color: var(--mv-text);
}

.btn--primary {
  background: var(--mv-brand-fill);
  color: #fff;
}

.btn--primary:hover {
  background: var(--mv-brand-fill-hover);
  color: #fff;
}

.btn--sm {
  min-height: 2rem;
  padding: 0 var(--mv-sp-3);
  font-size: var(--mv-fs-sm);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  max-width: var(--mv-page);
  margin: 0 auto;
  padding: var(--mv-sp-20) var(--mv-gutter) var(--mv-sp-12);
}

/* The app's artwork wash: the cover, blurred and faded behind the top of
   the page. The layer is full width and clips itself, so the blur never
   widens the page. */
.wash-layer {
  position: absolute;
  inset: 0 0 auto;
  height: 75rem;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.wash {
  position: absolute;
  inset: -5% -10% 0;
  background:
    radial-gradient(40% 35% at 30% 30%, var(--mv-wash-a), transparent 70%),
    radial-gradient(35% 30% at 70% 25%, var(--mv-wash-b), transparent 70%),
    radial-gradient(30% 30% at 50% 60%, var(--mv-wash-c), transparent 70%);
  opacity: 0.32;
  filter: blur(60px) saturate(1.2);
  -webkit-mask: linear-gradient(#000 40%, transparent 85%);
  mask: linear-gradient(#000 40%, transparent 85%);
}

.hero__text {
  max-width: 44rem;
}

.eyebrow {
  margin-bottom: var(--mv-sp-3);
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
  font-weight: 500;
}

h1 {
  font-size: var(--mv-fs-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  margin-top: var(--mv-sp-6);
  color: var(--mv-text-2);
  font-size: var(--mv-fs-lg);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mv-sp-3);
  margin-top: var(--mv-sp-8);
}

.fine {
  margin-top: var(--mv-sp-3);
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
}

/* A screenshot, framed like the app's window. */
.shot {
  margin: var(--mv-sp-12) 0 0;
}

.shot img {
  width: 100%;
  border-radius: var(--mv-radius-lg);
  box-shadow:
    0 0 0 1px var(--mv-hairline-strong),
    0 1.5rem 4rem rgb(0 0 0 / 0.55);
}

.shot figcaption {
  margin-top: var(--mv-sp-3);
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
}

/* ---- Sections ---- */

.section {
  max-width: var(--mv-page);
  margin: 0 auto;
  padding: var(--mv-sp-20) var(--mv-gutter) 0;
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: var(--mv-sp-3);
  row-gap: var(--mv-sp-2);
  margin-bottom: var(--mv-sp-8);
}

h2 {
  font-size: var(--mv-fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__meta {
  grid-column: 2;
  max-width: 40rem;
  color: var(--mv-text-2);
}

@media (max-width: 40rem) {
  .section__meta {
    grid-column: 1 / -1;
  }
}

/* A key chip, as in the app: sections walk round the wheel, each one
   mixing into the next. */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.125rem var(--mv-sp-2);
  border-radius: var(--mv-radius-sm);
  color: var(--mv-key-ink);
  font-size: var(--mv-fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transform: translateY(-0.2rem);
}

.key--3 { background: var(--mv-key-3); }
.key--5 { background: var(--mv-key-5); }
.key--7 { background: var(--mv-key-7); }
.key--8 { background: var(--mv-key-8); }
.key--9 { background: var(--mv-key-9); }
.key--10 { background: var(--mv-key-10); }
.key--11 { background: var(--mv-key-11); }

/* ---- Rows: the app's row language ---- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--mv-hairline-strong);
}

.row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: start;
  gap: var(--mv-sp-4);
  padding: var(--mv-sp-6) var(--mv-sp-2);
  border-bottom: 1px solid var(--mv-hairline);
}

/* A cover-sized swatch in the row's key colour. */
.row__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--mv-radius-sm);
  opacity: 0.9;
}

.row h3 {
  font-size: var(--mv-fs-h3);
  font-weight: 600;
}

.row p {
  max-width: 42rem;
  margin-top: var(--mv-sp-1);
  color: var(--mv-text-2);
}

.tag {
  padding-top: 0.125rem;
  font-size: var(--mv-fs-sm);
  font-weight: 500;
  white-space: nowrap;
}

.tag--free {
  color: var(--mv-text-2);
}

.tag--plus {
  color: var(--mv-lossless);
}

@media (max-width: 40rem) {
  .row {
    grid-template-columns: 2rem 1fr;
  }

  .row__icon {
    width: 2rem;
    height: 2rem;
  }

  .tag {
    grid-column: 2;
    padding-top: 0;
  }
}

/* ---- Pricing: two columns on hairlines, no cards ---- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--mv-hairline-strong);
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--mv-sp-4);
  padding: var(--mv-sp-8) var(--mv-sp-8) var(--mv-sp-8) 0;
}

.plan + .plan {
  padding-left: var(--mv-sp-8);
  border-left: 1px solid var(--mv-hairline);
}

.plan h3 {
  font-size: var(--mv-fs-h3);
  font-weight: 600;
}

.plan--plus h3 {
  color: var(--mv-lossless);
}

.plan__price {
  color: var(--mv-text-2);
}

.plan__amount {
  color: var(--mv-text);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: var(--mv-sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: var(--mv-sp-6);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--mv-ok);
  border-bottom: 2px solid var(--mv-ok);
  transform: rotate(-45deg);
}

.plan__how {
  max-width: 26rem;
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
}

@media (max-width: 40rem) {
  .plans {
    grid-template-columns: 1fr;
  }

  .plan,
  .plan + .plan {
    padding: var(--mv-sp-8) 0;
    border-left: 0;
  }

  .plan + .plan {
    border-top: 1px solid var(--mv-hairline);
  }
}

/* ---- Roadmap ---- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mv-sp-8);
  border-top: 1px solid var(--mv-hairline-strong);
  padding-top: var(--mv-sp-6);
}

.roadmap h3 {
  display: flex;
  align-items: center;
  gap: var(--mv-sp-2);
  margin-bottom: var(--mv-sp-3);
  font-size: var(--mv-fs-h3);
  font-weight: 600;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.dot--now { background: var(--mv-ok); }
.dot--next { background: var(--mv-brand); }
.dot--later { background: var(--mv-text-2); }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: var(--mv-sp-3) 0;
  border-bottom: 1px solid var(--mv-hairline);
  color: var(--mv-text-2);
}

.list strong {
  color: var(--mv-text);
  font-weight: 600;
}

@media (max-width: 52rem) {
  .roadmap {
    grid-template-columns: 1fr;
  }
}

/* ---- Questions: native disclosures on hairlines ---- */

.faq {
  border-top: 1px solid var(--mv-hairline-strong);
}

.faq details {
  border-bottom: 1px solid var(--mv-hairline);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--mv-sp-4);
  padding: var(--mv-sp-4) var(--mv-sp-2);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--mv-text-2);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '−';
}

.faq summary:hover {
  background: var(--mv-fill-quiet);
}

.faq details p {
  max-width: 44rem;
  padding: 0 var(--mv-sp-2) var(--mv-sp-4);
  color: var(--mv-text-2);
}

.faq details p strong {
  color: var(--mv-text);
}

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

.foot {
  margin-top: var(--mv-sp-28);
  border-top: 1px solid var(--mv-hairline);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--mv-sp-4);
  max-width: var(--mv-page);
  margin: 0 auto;
  padding: var(--mv-sp-8) var(--mv-gutter);
  color: var(--mv-text-2);
  font-size: var(--mv-fs-sm);
}

.foot__inner p {
  display: flex;
  align-items: center;
  gap: var(--mv-sp-2);
}
