@font-face { font-family: 'Unbounded'; src: url('/assets/unbounded-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #fbf8ff;
  --ink-soft: #ddd8ee;
  --pink: #ff74bd;
  --lilac: #c9b8ff;
  --sky-top: #241a4f;
  --sky-low: #a8568f;
  --hill: #2f1f5c;
  --stars: 0;
  --sun-x: 14vw;
  --sun-y: 72vh;
  --panel: rgba(28, 20, 66, .58);
  --edge: rgba(255, 255, 255, .2);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--sky-top); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); font: 400 clamp(16px, 1.15vw, 18px) / 1.55 'Figtree', system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The sky behind the whole page */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(var(--sky-top), var(--sky-low)); }
.stars { position: absolute; inset: 0 0 30%; opacity: var(--stars); background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 27% 61%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 41% 14%, #fff, transparent), radial-gradient(1px 1px at 58% 38%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 69% 72%, #fff, transparent), radial-gradient(1px 1px at 83% 19%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 91% 53%, #fff, transparent), radial-gradient(1px 1px at 6% 80%, #fff, transparent); background-size: 520px 420px; }
.sun { position: absolute; left: 0; top: 0; width: clamp(110px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%; translate: calc(var(--sun-x) - 50%) calc(var(--sun-y) - 50%);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 30%), radial-gradient(circle at 62% 82%, #ffb4f0, rgba(255, 180, 240, 0) 55%), radial-gradient(circle at 36% 30%, #ffc4e6, #ff74bd 38%, #ee2f96 76%, #b3167e);
  box-shadow: 0 0 90px 24px rgba(255, 150, 215, .38); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 24vh; }
.hills .far { fill: var(--hill); opacity: .62; }
.hills .near { fill: var(--hill); }

/* The crystal bar */
.bar { position: fixed; z-index: 10; left: 50%; top: 16px; translate: -50% 0; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 36px rgba(12, 8, 40, .35); }
.bar.moved { translate: none; }
.grip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: grab; touch-action: none; user-select: none; }
.grip:hover { background: rgba(255, 255, 255, .14); }
.bar.dragging .grip { cursor: grabbing; }
.grip img { display: block; width: 34px; height: 34px; }
.time { min-width: 3.4em; padding: 0 8px 0 2px; font: 300 14px 'Unbounded', sans-serif; font-variant-numeric: tabular-nums; }
.bar a { padding: 8px 13px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; text-shadow: 0 1px 8px rgba(12, 8, 40, .55); }
.bar a:hover { background: rgba(255, 255, 255, .16); }
.bar .bar-get { margin-left: 4px; background: var(--pink); color: #2c0d3a; text-shadow: none; }
.bar .bar-get:hover { background: #ff9fd3; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(28, 20, 66, .4); font-weight: 600; text-align: center; text-decoration: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.button:hover { background: rgba(28, 20, 66, .66); }
.button.solid { border-color: transparent; background: var(--pink); color: #2c0d3a; }
.button.solid:hover { background: #ff9fd3; }
.get { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Hero */
.hero { width: min(var(--wide), 100% - 32px); margin: 0 auto; padding: clamp(110px, 17vh, 170px) 0 clamp(70px, 10vh, 110px); display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { font: 500 clamp(40px, 7.4vw, 104px) / 1.05 'Unbounded', sans-serif; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(20, 12, 60, .45); }
.lede { max-width: 34em; margin: 24px 0 28px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; text-shadow: 0 1px 14px rgba(20, 12, 60, .7); }
.preview { position: relative; width: 100%; margin-top: clamp(40px, 7vh, 70px); }
.preview video { display: block; width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 22px; background: #120c2c; box-shadow: 0 40px 90px rgba(12, 8, 40, .5); }
.sound { position: absolute; right: 14px; bottom: 14px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(18, 12, 44, .78); color: var(--ink); font: 600 15px 'Figtree', sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sound:hover { background: rgba(18, 12, 44, .94); }

section { width: min(var(--wide), 100% - 32px); margin: 0 auto; padding: clamp(60px, 10vh, 110px) 0; }
h2 { font: 500 clamp(26px, 3.4vw, 46px) / 1.14 'Unbounded', sans-serif; letter-spacing: -.025em; text-align: center; text-shadow: 0 2px 24px rgba(20, 12, 60, .5); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.sub { max-width: 40em; margin: 14px auto 0; text-align: center; color: var(--ink); text-shadow: 0 1px 12px rgba(20, 12, 60, .7); }
.sub.small { font-size: 15px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.card, .platform, .steps li { border: 1px solid var(--edge); background: var(--panel); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 50px rgba(12, 8, 40, .25); }
.card { padding: 26px 24px; border-radius: 22px; transition: border-color .2s; }
.card:hover { border-color: rgba(255, 170, 220, .6); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; border: 1px solid rgba(255, 170, 220, .34); background: rgba(255, 116, 189, .14); color: #ffc0e2; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p, .platform p, .steps p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Downloads */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 36px 0 18px; }
.platform { display: flex; flex-direction: column; padding: 28px 24px; border-radius: 26px; }
.platform p { flex: 1; margin-bottom: 20px; }
dl { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--edge); font-size: 15px; }
dl div { display: flex; justify-content: space-between; gap: 14px; }
dl div[hidden] { display: none; }
dt { color: var(--ink-soft); }
dd { font-weight: 600; text-align: right; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; margin: 36px auto 18px; }
.platform.best { border-color: var(--pink); }
.platform .price { flex: none; margin: 10px 0 14px; color: var(--ink); font: 500 34px / 1.1 'Unbounded', sans-serif; }
.price small { font: 400 15px 'Figtree', sans-serif; color: var(--ink-soft); }
.plans ul { flex: 1; margin: 0 0 22px; padding-left: 20px; color: var(--ink-soft); }
.plans li + li { margin-top: 6px; }

/* Install steps, which really are a sequence */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; list-style: none; counter-reset: step; }
.steps li { padding: 24px; border-radius: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 12px; font: 300 40px / 1 'Unbounded', sans-serif; color: var(--lilac); }

.night { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 16px 30vh; text-align: center; }
.goodnight { font: 500 clamp(30px, 4.6vw, 60px) / 1.1 'Unbounded', sans-serif; letter-spacing: -.03em; }
.night .sub { margin-top: 0; }

@media (max-width: 900px) {
  .cards, .platforms, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .bar { top: auto; bottom: 12px; max-width: calc(100vw - 16px); }
  .bar a { padding: 8px 9px; font-size: 14px; }
  .time { display: none; }
  .grip { width: 40px; height: 40px; }
  .grip img { width: 32px; height: 32px; }
  .hero { padding-top: 70px; }
  html { scroll-padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
