:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-soft: #e7e9ea;
  --muted: #71767b;
  --accent: #1d9bf0;
  --line: #2f3336;
  --max: 42rem;
  --gutter: 1.25rem;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.55rem 0.8rem;
  background: var(--bg);
  color: var(--fg);
  z-index: 5;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

/* Home */

.home {
  overflow-x: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #031018 0%, #000 46%),
    #000;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.15) 58%, rgba(0, 0, 0, 0.72) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  background: radial-gradient(circle, rgba(29, 155, 240, 0.72), rgba(29, 155, 240, 0) 68%);
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: 34%;
  right: -8%;
}

.orb-b {
  width: min(64vw, 680px);
  height: min(64vw, 680px);
  left: -14%;
  bottom: -18%;
  animation-delay: -8s;
  background: radial-gradient(circle, rgba(29, 155, 240, 0.5), rgba(10, 60, 110, 0.05) 70%);
}

.rings {
  position: absolute;
  left: 50%;
  top: 68%;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.rings span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(29, 155, 240, 0.45);
  border-radius: 50%;
  animation: ring 5.6s ease-out infinite;
}

.rings span:nth-child(2) { animation-delay: 1.8s; }
.rings span:nth-child(3) { animation-delay: 3.6s; }

.eq {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.55vw;
  width: min(100%, 980px);
  height: 46%;
  transform: translateX(-50%);
  opacity: 0.72;
  mask-image: linear-gradient(to top, transparent 0%, #000 22%, #000 62%, transparent 100%);
}

.eq span {
  flex: 1 1 0;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(29, 155, 240, 0.15), #1d9bf0 70%, #9ad6ff);
  transform-origin: bottom center;
  animation: eq 1.35s ease-in-out infinite;
}

.eq span:nth-child(1) { height: 28%; animation-delay: -0.2s; }
.eq span:nth-child(2) { height: 48%; animation-delay: -0.7s; }
.eq span:nth-child(3) { height: 70%; animation-delay: -0.35s; }
.eq span:nth-child(4) { height: 40%; animation-delay: -1.1s; }
.eq span:nth-child(5) { height: 86%; animation-delay: -0.55s; }
.eq span:nth-child(6) { height: 58%; animation-delay: -0.9s; }
.eq span:nth-child(7) { height: 34%; animation-delay: -0.15s; }
.eq span:nth-child(8) { height: 92%; animation-delay: -0.8s; }
.eq span:nth-child(9) { height: 64%; animation-delay: -1.2s; }
.eq span:nth-child(10) { height: 46%; animation-delay: -0.4s; }
.eq span:nth-child(11) { height: 78%; animation-delay: -0.95s; }
.eq span:nth-child(12) { height: 36%; animation-delay: -0.25s; }
.eq span:nth-child(13) { height: 84%; animation-delay: -0.65s; }
.eq span:nth-child(14) { height: 52%; animation-delay: -1.05s; }
.eq span:nth-child(15) { height: 30%; animation-delay: -0.5s; }
.eq span:nth-child(16) { height: 62%; animation-delay: -0.85s; }
.eq span:nth-child(17) { height: 44%; animation-delay: -0.3s; }

.brand-bar,
.home main,
.home-footer {
  position: relative;
  z-index: 1;
}

.brand-bar {
  width: min(calc(100% - 2.5rem), 1080px);
  display: flex;
  align-items: center;
  min-height: 4.25rem;
}

.brand,
.brand:visited,
.brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.home main {
  width: min(100% - 2rem, 1080px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 0.5rem;
}

.home h1 {
  max-width: 18em;
  font-weight: 800;
  font-size: clamp(2.05rem, 5.4vw, 4.15rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.home h1 span {
  display: block;
}

.sub {
  max-width: 28rem;
  margin-top: clamp(0.75rem, 1.6vw, 1.1rem);
  color: var(--fg-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.store,
.store:visited,
.store:hover {
  display: inline-block;
  margin-top: clamp(1rem, 2vw, 1.45rem);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store:hover {
  transform: translateY(-3px) scale(1.04);
}

.store:active {
  transform: translateY(-1px) scale(0.98);
}

.store img {
  display: block;
  height: clamp(52px, 7vw, 68px);
  width: auto;
}

.phone {
  width: min(70vw, 300px);
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0.25rem;
  font-size: clamp(11px, 3.6vw, 14px);
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55));
}

.bezel {
  position: relative;
  padding: 0.42rem;
  border-radius: 2.35rem;
  background: linear-gradient(160deg, #2a2a2e, #0a0a0c 42%, #1a1a1e);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(29, 155, 240, 0.28);
}

.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: 2rem;
  background: #000;
}

.island {
  position: absolute;
  z-index: 3;
  top: 1.6%;
  left: 50%;
  width: 32%;
  height: 3.6%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px #000;
}

.side {
  position: absolute;
  width: 3px;
  background: #2c2c30;
  border-radius: 2px;
}

.side-silent {
  left: -2px;
  top: 16%;
  height: 5%;
}

.side-vol {
  left: -2px;
  top: 24%;
  height: 13%;
}

.side-power {
  right: -2px;
  top: 28%;
  height: 16%;
}

.app {
  height: 100%;
  padding: 7.5% 5.5% 4.5%;
  text-align: left;
  color: #fff;
  font-size: 1em;
  line-height: 1.25;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.4em;
  padding: 0 0.35em 0 0.7em;
  font-weight: 650;
  font-size: 0.92em;
  letter-spacing: -0.02em;
}

.status-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.08em;
  height: 0.72em;
}

.sig i {
  display: block;
  width: 0.16em;
  border-radius: 0.5px;
  background: #fff;
}

.sig i:nth-child(1) { height: 30%; }
.sig i:nth-child(2) { height: 50%; }
.sig i:nth-child(3) { height: 74%; }
.sig i:nth-child(4) { height: 100%; }

.bat {
  display: inline-block;
  width: 1.35em;
  height: 0.68em;
  padding: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.18em;
  position: relative;
}

.bat::after {
  content: "";
  position: absolute;
  right: -0.18em;
  top: 0.18em;
  width: 0.1em;
  height: 0.28em;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.85);
}

.bat i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 0.08em;
  background: #fff;
}

.lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  margin-top: 0.85em;
  padding: 0 0.15em;
}

.lib-title {
  font-size: 2.05em;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.credit-pill {
  min-width: 2.1em;
  padding: 0.28em 0.55em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.92em;
  text-align: center;
}

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

.rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65em;
  align-items: center;
  padding: 0.72em 0.1em;
  border-top: 1px solid #2f3336;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.35em;
  height: 2.35em;
  border-radius: 50%;
  background: #1d9bf0;
  color: #000;
  font-weight: 700;
  font-size: 0.95em;
}

.avatar-b { background: #8ecdf8; }
.avatar-c { background: #e7e9ea; }

.row-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.name {
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.handle,
.preview {
  color: #71767b;
}

.handle {
  font-size: 0.86em;
}

.preview {
  margin-top: 0.18em;
  font-size: 0.86em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.play {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border: 1.5px solid #2f3336;
  border-radius: 50%;
  color: #fff;
}

.play svg {
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
}

.play-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}

.mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.12em;
  height: 0.85em;
}

.mini-eq i {
  display: block;
  width: 0.16em;
  height: 100%;
  border-radius: 1px;
  background: #000;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}

.mini-eq i:nth-child(2) { animation-delay: -0.25s; height: 70%; }
.mini-eq i:nth-child(3) { animation-delay: -0.5s; height: 45%; }

.dock {
  position: absolute;
  left: 4.5%;
  right: 4.5%;
  bottom: 4.2%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55em;
  align-items: center;
  padding: 0.55em 0.7em;
  border-radius: 0.9em;
  background: #16181c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.dock-play {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
}

.dock-play svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}

.dock-copy {
  min-width: 0;
}

.scrub {
  display: block;
  height: 0.22em;
  margin-top: 0.35em;
  border-radius: 999px;
  background: #2f3336;
  overflow: hidden;
}

.scrub i {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--accent);
}

.dock-time {
  color: #71767b;
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
}

.home-footer {
  width: min(calc(100% - 2.5rem), 1080px);
  margin-top: auto;
  padding: 0.85rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.home-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.home-footer a,
.home-footer a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  text-decoration: none;
}

.home-footer a:hover {
  text-decoration: underline;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

@keyframes ring {
  0% { transform: scale(0.42); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.42); }
  50% { transform: scaleY(1); }
}

@media (min-width: 900px) {
  .phone {
    width: min(32vw, 360px);
    font-size: 15px;
  }

  .home h1 span {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .rings span,
  .eq span,
  .mini-eq i,
  .store {
    animation: none;
    transition: none;
  }

  .eq span,
  .mini-eq i {
    transform: none;
  }
}

/* Legal pages */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  gap: 1rem;
}

.wordmark,
.wordmark:visited,
.wordmark:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.header-cta,
.header-cta:visited {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.65rem 0;
  min-height: 2.75rem;
}

.header-cta:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 4.5rem;
  padding: 1.5rem 0 calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.15rem;
}

.site-footer a,
.site-footer a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  text-decoration: underline;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose {
  padding-top: 3.25rem;
  padding-bottom: 0.5rem;
}

.prose h1 {
  font-size: clamp(2.35rem, 8vw, 3.25rem);
  letter-spacing: -0.045em;
}

.prose .updated {
  margin-top: 0.85rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.35rem;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--fg-soft);
}

.prose p {
  margin-top: 0.75rem;
}

.prose ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.prose li {
  margin-top: 0.4rem;
}

.prose li::marker {
  color: var(--muted);
}

@media (min-width: 800px) {
  :root {
    --gutter: 2rem;
  }

  .prose {
    padding-top: 5rem;
  }

  .site-footer {
    margin-top: 6rem;
  }
}

@media (max-width: 380px) {
  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #000;
  }

  .skip,
  .site-header,
  .atmosphere {
    display: none;
  }

  .site-footer,
  .home-footer {
    border-top: 1px solid #ccc;
  }

  .prose p,
  .prose li,
  .prose .updated,
  .site-footer p,
  .sub {
    color: #222;
  }

  a,
  a:visited,
  .header-cta,
  .home-footer a {
    color: #000;
  }
}
