/* ScreenPlayer website
   Layout: the page is a desktop. The app's own live wallpaper (aurora.js) runs behind
   everything; the content sits on it as glass, the way the player sits on your wallpaper.
   One dark look on purpose: the product is dark. */

@font-face { font-family: 'Oswald'; font-weight: 200; font-style: normal; font-display: swap; src: url('../fonts/oswald-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  /* colour: taken from the app and the Neon Rain wallpaper */
  --night: #0b0b0e;              /* neutral: the song brings the colour */
    --ink: #f4f2ee;                /* text */
  --mist: #c8c3bd;               /* secondary text */
  --dim: #948f8a;                /* small print */
  --glass: rgba(255, 255, 255, .065);
  --glass-2: rgba(255, 255, 255, .10);
  --edge: rgba(255, 255, 255, .16);
  --edge-2: rgba(255, 255, 255, .28);
  --cream: #f3e8e4;              /* the cream card of the playing song */
  --cream-ink: #2a1430;
  --g1: #ff4fd8; --g2: #8b5cff; --g3: #ff9a3d;   /* the icon's gradient, used as light only */
  /* type */
  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;   /* the app's clock face */
  --body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  /* shape: the app's glass radii */
  --r-panel: 26px;
  --r-pill: 999px;
  --r-inner: 18px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 200; font-family: var(--display); text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--cream-ink); padding: 8px 14px; border-radius: var(--r-pill); z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- the wallpaper ---------- */
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(11, 11, 14, 0) 50%, rgba(11, 11, 14, .45) 100%); }

.page { position: relative; z-index: 1; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 80px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}

/* ---------- wordmark (top) and dock (bottom): the page's player bar ---------- */
.mark { width: min(1180px, 100%); margin-inline: auto; padding: 22px var(--gutter-r) 0 var(--gutter-l); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 2px;
  padding: 6px 6px 6px 8px; border-radius: var(--r-pill);
  max-width: calc(100% - var(--gutter-l) - var(--gutter-r));
}
.dock a { text-decoration: none; color: var(--mist); font-size: 15px; font-weight: 500; padding: 9px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.dock a:hover { color: var(--ink); background: var(--glass-2); }
.dock .dock-home { display: flex; padding: 6px; margin-right: 4px; }
.dock .btn { margin-left: 6px; color: var(--cream-ink); }
.dock .btn:hover { color: var(--cream-ink); background: #fff5f1; }
@media (max-width: 700px) {
  .dock a:not(.dock-home):not(.btn) { display: none; }
  .dock .btn { margin-left: 2px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-cream { background: var(--cream); color: var(--cream-ink); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 30px -10px rgba(255, 190, 220, .45); }
.btn-cream:hover { background: #fff5f1; }
.btn-cream .price { font-weight: 500; opacity: .7; padding-left: 10px; border-left: 1px solid rgba(42, 20, 48, .2); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-dark { background: var(--cream-ink); color: var(--cream); }
.btn-dark:hover { background: #3b1d44; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 10vw, 128px); }
.hero h1 {
  font-size: clamp(58px, 10.4vw, 164px);
  line-height: .96;
  max-width: 11ch;
}
.hero .lede { margin-top: 28px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--mist); }
.hero .cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fine { color: var(--dim); font-size: 15px; }

.desk {
  position: relative;
  margin: clamp(40px, 6vw, 80px) auto 0;
  width: min(100%, 1560px);
  aspect-ratio: 2560 / 1380;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.slides img.on { opacity: 1; }
.now { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); border-radius: var(--r-pill);
  padding: 6px 16px 6px 6px; font-size: 14px; color: var(--mist); display: flex; align-items: center; gap: 10px; white-space: nowrap; max-width: 90%; }
.now img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@media (max-width: 700px) { .now { bottom: 8%; font-size: 12px; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 120px); }
.sec h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; max-width: 14ch; }
.sec .intro { max-width: 52ch; color: var(--mist); font-size: clamp(17px, 1.3vw, 19px); margin-top: 20px; }
.head { display: grid; grid-template-columns: 1fr; gap: 8px 48px; align-items: end; }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .head .intro { margin-top: 0; padding-bottom: 10px; } }

/* ---------- closer: crops of the real desktop ---------- */
.closer { display: grid; gap: 18px; margin-top: clamp(32px, 4vw, 56px);
  grid-template-columns: repeat(6, minmax(0, 1fr)); }
.panel { border-radius: var(--r-panel); padding: 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel .crop { border-radius: var(--r-inner); width: 100%; height: auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.panel .cap { padding: 2px 10px 10px; }
.panel .cap b { display: block; font-weight: 600; font-size: 17px; }
.panel .cap span { color: var(--mist); font-size: 15px; }
.p-flow { grid-column: span 4; }
.p-list { grid-column: span 2; grid-row: span 2; }
.p-bar  { grid-column: span 4; }
.p-list .crop { flex: 1; object-fit: cover; object-position: top; min-height: 0; }
@media (max-width: 820px) {
  .closer { grid-template-columns: 1fr; }
  .p-flow, .p-list, .p-bar { grid-column: auto; grid-row: auto; }
  .p-list .crop { aspect-ratio: 470 / 520; }
}

/* ---------- lyrics ---------- */
.stage { margin-top: clamp(32px, 4vw, 56px); border-radius: var(--r-panel); padding: 10px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 900px) { .stage { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; } }
.stage-shot { width: 100%; height: auto; border-radius: var(--r-inner); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.stage-side { padding: 6px 18px 18px 6px; }
.song { color: var(--mist); font-size: 17px; max-width: 34ch; }
.styles { margin-top: 18px; color: var(--mist); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.styles i { font-style: normal; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid var(--edge); }
.beta { margin-top: 20px; max-width: 60ch; color: var(--dim); font-size: 15px; }

/* ---------- light ---------- */
.lit { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .lit { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.glow { position: relative; border-radius: 22px; padding: 10px; isolation: isolate; }
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.glow::before { content: ""; position: absolute; inset: -12px; border-radius: 32px; z-index: -1; filter: blur(18px); opacity: .95;
  background: conic-gradient(from var(--sweep), var(--g1), var(--g2), var(--g3), var(--g1)); animation: sweep 9s linear infinite; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: 22px; z-index: -1; background: var(--night); }
.glow img { border-radius: 14px; width: 100%; height: auto; }
@keyframes sweep { to { --sweep: 360deg; } }
.lit p { color: var(--mist); max-width: 46ch; }
.lit p + p { margin-top: 14px; }

/* ---------- works with ---------- */
.names { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; font-family: var(--display); font-weight: 200;
  font-size: clamp(38px, 6vw, 92px); line-height: 1.02; }
.names li { border-top: 1px solid var(--edge); padding: .12em 0; }
.names li:last-child { border-bottom: 1px solid var(--edge); }
.where .note { margin-top: 20px; color: var(--mist); max-width: 60ch; }

/* ---------- install ---------- */
.steps { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: s; }
.steps li { border-radius: var(--r-panel); padding: 22px 24px 26px; counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 200; font-size: 64px; line-height: 1; color: var(--mist); display: block; }
.steps b { display: block; font-weight: 600; margin-top: 10px; font-size: 18px; }
.steps p { color: var(--mist); font-size: 15px; margin-top: 6px; }

/* ---------- price: the cream card ---------- */
.price-wrap { perspective: 1400px; margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.card {
  background: linear-gradient(160deg, #f8efec, #ecdcd8); color: var(--cream-ink);
  border-radius: 28px; padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 #fff;
  transform: rotateY(-7deg) rotateX(2deg);
  transform-origin: 70% 50%;
}
.card .amount { font-family: var(--display); font-weight: 200; font-size: clamp(88px, 11vw, 150px); line-height: .9; letter-spacing: -.01em; }
.card .once { font-size: 18px; margin-top: 10px; color: #4e4360; }
.card ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 16px; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3)); }
.card .cta { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.card .fine { color: #6f5676; }
.price-copy p { color: var(--mist); max-width: 46ch; }
.price-copy p + p { margin-top: 14px; }

/* ---------- faq ---------- */
.faq .list { margin-top: clamp(24px, 3vw, 40px); max-width: 760px; }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-child { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 200; font-size: 30px; line-height: .6; color: var(--mist); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--mist); padding-bottom: 20px; max-width: 62ch; }

/* ---------- footer ---------- */
.foot { padding-block: 40px 110px; display: grid; gap: 18px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--edge); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .legal { max-width: 80ch; }

@media (max-width: 700px) {
  .card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow::before { animation: none; }
  .line .w { transition: none; }
}
