:root {
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --backdrop-base: #2a1748;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--backdrop-base);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }

/* "Dusk": soft overlapping violet fields. Purple sits between Apple Music's red and the greens
   of the logo's arc and Spotify, so all three stand out on it. Lilac down the left, a mauve
   glow at the top right, deep indigo pooling at the bottom. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--backdrop-base);
  background-image:
    radial-gradient(45% 55% at 0% 30%, rgba(120, 70, 180, 0.7), rgba(120, 70, 180, 0)),
    radial-gradient(35% 40% at 100% 0%, rgba(150, 90, 170, 0.55), rgba(150, 90, 170, 0)),
    radial-gradient(60% 50% at 60% 110%, rgba(30, 14, 60, 1), rgba(30, 14, 60, 0)),
    linear-gradient(170deg, #3d2266, #2a1748 60%, #1b0f33);
}

/* Marketing page */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero { text-align: center; padding: 6vh 0 40px; }
.hero h1 { margin: 0; line-height: 0; }
.logo { width: min(78vw, 400px); height: auto; }
.lede {
  margin: 28px auto 0;
  max-width: 30em;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text);
  text-wrap: balance;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: #2a1748;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(16, 8, 36, 0.35);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(16, 8, 36, 0.45); }
.cta:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
.cta svg { width: 20px; height: 20px; flex: none; }
.cta-note { margin: 14px 0 0; font-size: 15px; color: var(--text-2); }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.points li {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.points h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.points p { margin: 0; color: var(--text-2); font-size: 16px; }
@media (min-width: 720px) {
  .points { grid-template-columns: repeat(3, 1fr); }
}

/* Where the music plays */
.where { margin-top: 56px; }
.where > h2 { margin: 0; font-size: 26px; font-weight: 700; text-align: center; }
.where-lede { margin: 8px auto 24px; max-width: 30em; text-align: center; color: var(--text-2); text-wrap: balance; }
.services { display: grid; gap: 12px; }
.service {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.service h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.svc-logo { width: 28px; height: 28px; flex: none; }
/* The Apple Music image is the square app icon; round it as iOS does. */
.svc-logo.am { border-radius: 22.5%; }
.service dl { margin: 0; }
.way { padding: 14px 0; border-top: 1px solid var(--line); }
.way:first-child { border-top: 0; }
.way dt { font-weight: 600; font-size: 16px; }
.way dd { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
/* The speaker icon hangs in the left margin, so pills that wrap line up under the first one. */
.way .outs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-left: 26px; }
.spk { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--text-3); }
.outs span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.fine { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.outs span { white-space: nowrap; }
@media (max-width: 400px) {
  .way .outs { gap: 5px; }
  .outs span { padding: 3px 8px; font-size: 12px; }
}
/* Two columns, a little wider than the page so each row of output pills fits on one line
   (narrower windows stack the two services instead). */
@media (min-width: 900px) {
  .services {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    width: min(880px, calc(100vw - 32px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.foot { margin-top: auto; padding-top: 48px; text-align: center; font-size: 14px; color: var(--text-3); }
.foot p { margin: 0; }

/* Spotify relay page */
.relay {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 16px;
  text-align: center;
}
.relay .logo { width: min(62vw, 280px); }
.relay p { margin: 0; max-width: 24em; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, 0.88); }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
