/* OneSound site.
   One loud thing (the turntable of posters on the landing page); everything
   around it stays quiet. Colours are the app's own. */

:root {
  --stage: #060b18;   /* the app's background */
  --deck: #0e1626;    /* the app's card fill */
  --spot: #3ea6ff;    /* the app's accent */
  --ice: #7fd4ff;
  --crown: #ffc940;
  --text: #eef4ff;
  --sub: #b4c2d8;
  --mute: #8395ae;
  --line: rgba(127, 212, 255, .14);

  /* Condensed and heavy like an arena banner, matching the posters. */
  --display: "Big Shoulders Display", "Noto Sans KR", "Noto Sans SC", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Noto Sans KR", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: max(22px, env(safe-area-inset-left));
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(6, 11, 24, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
/* The sign-in screen's wordmark: "One" in white, "Sound" in the accent with
   a glow that beats. */
.brand { display: flex; align-items: center; }
.wm {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  font: 800 25px/1.1 "Urbanist", var(--body);
  letter-spacing: -.02em;
  color: #fff;
  overflow: hidden;
  padding: 2px 4px 2px 0;
}
.wm i { font-style: normal; display: inline-block; }
.wm .s { color: var(--spot); text-shadow: 0 0 9px rgba(62, 166, 255, .45); }
.lang {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  border: 0;
  background: none;
  color: var(--mute);
  font: 500 13px var(--body);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--deck); color: var(--text); }

/* ------------------------------------------------------------------- hero */
.hero { padding-block: 48px 30px; overflow: hidden; text-align: center; }
.hero h1 {
  font: 800 clamp(54px, 9vw, 120px)/.92 var(--display);
  letter-spacing: -.005em;
  margin: 0 auto 22px;
  max-width: 11em;
  text-wrap: balance;
}
/* "Coming soon", in the crown's gold, glinting. */
.soon {
  position: relative;
  display: inline-block;
  margin: 0 auto 22px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 201, 64, .45);
  border-radius: 999px;
  background: rgba(255, 201, 64, .08);
  box-shadow: 0 0 24px rgba(255, 201, 64, .18), inset 0 0 12px rgba(255, 201, 64, .08);
  font: 800 clamp(18px, 2.2vw, 24px)/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.soon .label {
  background: linear-gradient(100deg, #ffb020 0%, var(--crown) 35%, #fff7d6 50%, var(--crown) 65%, #ffb020 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 201, 64, .45));
}
.soon .spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  transform: scale(var(--s, 1));
  background: radial-gradient(circle, #fff 0 18%, var(--crown) 40%, transparent 72%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  pointer-events: none;
}

.lead { color: var(--sub); max-width: 36em; margin: 0 auto 30px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--stage);
}
.store.alt { background: none; color: var(--text); border: 1px solid var(--line); }
a.store { text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(62, 166, 255, .35); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11.5px; opacity: .7; line-height: 1.2; }
.store strong { display: block; font: 600 16px/1.25 var(--body); }

/* The Android test build: the one real download, so it leads. */
.beta { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.beta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px 13px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3ea6ff, #1f6fe0);
  box-shadow: 0 10px 30px rgba(62, 166, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.beta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(62, 166, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.beta-btn:active { transform: translateY(0); }
.beta-btn svg { width: 26px; height: 26px; flex: none; color: #b8f5c8; }
.beta-btn small { display: block; font-size: 11.5px; opacity: .85; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.beta-btn strong { display: block; font: 700 17px/1.25 var(--body); }
.beta-meta { margin: 0; font-size: 13px; color: var(--mute); }
.beta-meta a { color: var(--ice); text-decoration: underline; text-underline-offset: 2px; }
.visits {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--sub);
}
.visits strong { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.visits-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.beta-how { margin: 0; max-width: 30em; font-size: 12.5px; color: var(--mute); }

/* The turntable: posters standing in a ring on a record. */
.deck {
  --w: 200px;              /* poster width */
  --h: calc(var(--w) * 1.778);
  --r: 330px;              /* ring radius */
  position: relative;
  margin-top: 40px;
  height: calc(var(--h) + 230px);
  perspective: 1500px;
  perspective-origin: 50% 10%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.deck.dragging { cursor: grabbing; }
.ring {
  --a: 0deg;
  position: absolute;
  left: 50%;
  top: 10px;
  width: var(--w);
  height: var(--h);
  margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d;
  transform: rotateX(-7deg) rotateY(var(--a));
}
.slot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r));
}
.face, .back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(127, 212, 255, .25), 0 0 40px rgba(62, 166, 255, .25),
    0 30px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  background: #000;
}
.face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* A glossy edge, as if the poster were printed on card. */
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 32%);
  pointer-events: none;
}
.back {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #141c2c, #0a0f1a);
}
.back img { width: 34%; opacity: .55; border-radius: 22%; }

/* The record the phones stand on, laid flat at their feet. */
.record {
  --d: calc(var(--r) * 2 + var(--w) * .9);
  position: absolute;
  left: 50%;
  top: 100%;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  transform: rotateX(90deg);
  background:
    radial-gradient(circle, #0e1626 0 13%, transparent 13.4%),
    radial-gradient(circle, var(--spot) 0 14.5%, transparent 15%),
    repeating-radial-gradient(circle, #05070d 0 2px, #0b111d 2.5px 4px),
    #05070d;
  box-shadow: 0 0 0 2px rgba(62, 166, 255, .35), 0 0 80px rgba(62, 166, 255, .25);
}
/* Light pooling under the record. */
.deck::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(92%, 760px);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(62, 166, 255, .22), transparent);
  pointer-events: none;
}
.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

/* ---------------------------------------------------------------- a round */
.round { padding-block: 100px 60px; }
.round h2, .more h2, .cta h2 {
  font: 800 clamp(34px, 4.4vw, 54px)/1 var(--display);
  letter-spacing: 0;
  margin: 0 0 40px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before {
  content: counter(step);
  display: block;
  font: 800 64px/1 var(--display);
  color: var(--spot);
  margin-bottom: 18px;
}
.steps h3 { font: 800 28px/1.1 var(--display); margin: 0 0 8px; }
.steps p { color: var(--sub); margin: 0; max-width: 30em; }

/* ------------------------------------------------- packs, and with friends */
.more { padding-block: 60px; }
.more .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.more h2 { margin-bottom: 14px; }
.more p { color: var(--sub); margin: 0 0 18px; max-width: 32em; }
.packs { color: var(--mute); font-size: 15px; line-height: 1.9; }
.code {
  display: inline-block;
  font: 800 34px var(--display);
  letter-spacing: .12em;
  color: var(--crown);
}

/* -------------------------------------------------------------- closing */
.cta { padding-block: 80px 110px; text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--sub); margin: 0 auto 30px; }
.cta .stores { justify-content: center; }

/* ------------------------------------------------------------ legal pages */
.doc { padding-block: 30px 90px; }
.doc article { max-width: 760px; margin: 0 auto; }
.doc h1 { font: 800 clamp(44px, 7vw, 68px)/1 var(--display); margin: 0 0 12px; }
.doc .updated { color: var(--mute); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font: 800 26px/1.15 var(--display); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--sub); }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .note {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--deck);
  border-left: 3px solid var(--spot);
}

/* ----------------------------------------------------------------- footer */
footer {
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a:hover { color: var(--text); }

/* ---------------------------------------------------------------- chinese */
/* Big Shoulders has no CJK, and its condensed caps don't suit Hanzi: Chinese
   pages set in Noto Sans SC, a little smaller and without the tight tracking. */
:lang(zh) {
  --display: "Noto Sans SC", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
}
:lang(zh) .hero h1 { font-weight: 900; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.12; letter-spacing: .01em; word-spacing: -.3em; }
:lang(zh) .round h2, :lang(zh) .more h2, :lang(zh) .cta h2, :lang(zh) .doc h1 { font-weight: 900; letter-spacing: .01em; }
:lang(zh) .steps h3, :lang(zh) .doc h2 { font-weight: 700; }
:lang(zh) .soon { letter-spacing: .3em; }

/* ----------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .deck { --w: 124px; --r: 180px; margin-top: 30px; height: calc(var(--h) + 150px); }
  .steps, .more .wrap { grid-template-columns: 1fr; gap: 36px; }
  .round { padding-block: 70px 30px; }
}

/* --------------------------------------------------------------- motion */
/* Notes drifting down behind everything (drawn by site.js). */
.notes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, footer { position: relative; z-index: 1; }

/* "Name it." carries the accent, with light sweeping across it. */
.hero .hl, .hero .hl .w, .cta h2 {
  background: linear-gradient(100deg, var(--spot) 0%, var(--ice) 38%, #fff 50%, var(--ice) 62%, var(--crown) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .hl:has(.w) { background: none; }

@media (prefers-reduced-motion: no-preference) {
  /* The headline arrives word by word; the rest follows it in. */
  .js .hero h1 .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(.45em) rotate(3deg);
    animation: word-in .8s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: calc(120ms + var(--d) * 90ms);
  }
  .js .hero .hl .w {
    animation: word-in .8s cubic-bezier(.2, .8, .2, 1) forwards, shine 5s ease-in-out infinite;
    animation-delay: calc(120ms + var(--d) * 90ms), 1.4s;
  }
  .js .hero .soon { animation: fade-up .7s both; }
  .soon .label { animation: shine 2.8s ease-in-out infinite; }
  .soon .spark { opacity: 0; animation: twinkle 2.8s var(--t) ease-in-out infinite; }
  .soon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 240, 190, .35) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat;
    animation: shine 2.8s ease-in-out infinite;
    pointer-events: none;
  }
  .js .hero .lead { animation: fade-up .8s .75s both; }
  .js .hero .stores { animation: fade-up .8s .95s both; }
  .js .hero .beta { animation: fade-up .8s 1.1s both; }
  /* Light crossing the download button now and then. */
  .beta-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat;
    animation: shine 3.2s 2s ease-in-out infinite;
    pointer-events: none;
  }
  .js .hero .deck { animation: fade-up 1.1s .5s both; }
  .cta h2.in { animation: shine 5s 1s ease-in-out infinite; }

  /* Sections rise in as they scroll into view. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--d, 0) * 120ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .steps li::before { transform: scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), opacity .5s; transition-delay: calc(var(--d, 0) * 120ms + .2s); transform-origin: left bottom; }
  .js .steps li.in::before { transform: none; opacity: 1; text-shadow: 0 0 24px rgba(62, 166, 255, .55); }

  /* The wordmark lands letter by letter, then light crosses it and
     "Sound" pulses, as on the sign-in screen. */
  .wm i {
    opacity: 0;
    transform: translateY(.45em) scale(.6);
    animation: letter-in .68s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--n) * 90ms);
  }
  .wm .s {
    animation: letter-in .68s cubic-bezier(.34, 1.56, .64, 1) forwards,
      beat 1.6s 1.5s ease-in-out infinite;
    animation-delay: calc(var(--n) * 90ms), 1.5s;
  }
  .wm::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%) no-repeat;
    background-size: 250% 100%;
    background-position: 150% 0;
    mix-blend-mode: overlay;
    animation: sweep 3.2s 1.5s linear infinite;
    pointer-events: none;
  }

  /* The room code flips into place like a scoreboard. */
  .code .ch { display: inline-block; min-width: .62em; text-align: center; }
  .code .ch.lock { animation: lock .35s cubic-bezier(.3, 1.6, .5, 1); }
}

@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes shine { 0%, 15% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes beat {
  0%, 100% { text-shadow: 0 0 5px rgba(62, 166, 255, .35); }
  50% { text-shadow: 0 0 14px rgba(62, 166, 255, .75); }
}
@keyframes sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(calc(var(--s, 1) * .2)) rotate(0deg); }
  45% { opacity: 1; transform: scale(var(--s, 1)) rotate(90deg); }
  70% { opacity: 0; transform: scale(calc(var(--s, 1) * .4)) rotate(140deg); }
}
@keyframes lock { from { transform: translateY(-30%) scale(1.25); text-shadow: 0 0 18px rgba(255, 201, 64, .8); } }

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