:root {
  --rose: #f4d9e2;
  --rose-deep: #ebc3d1;
  --paper: #fff6f9;
  --ink: #2b0d22;
  --ink-soft: #6a3f58;
  --raspberry: #c72d62;
  --plum: #661d49;
  --vinyl: #1d1020;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--rose);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--raspberry); text-underline-offset: 0.18em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; border-radius: 6px; }
b { font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 16px; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); font-weight: 750; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 720; }
h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 34em; text-wrap: pretty; }

/* Header */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 700 1.3rem/1 var(--display); font-variation-settings: "wdth" 85;
}
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgb(102 29 73 / 0.25); }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.top nav a:hover { color: var(--raspberry); }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  color: var(--ink); font: 600 0.95rem var(--body); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  transition: rotate 0.2s, translate 0.2s, opacity 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { translate: 0 -5px; }
.menu-icon::after { translate: 0 5px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { translate: 0; rotate: 45deg; }
.menu-open .menu-icon::after { translate: 0; rotate: -45deg; }

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .top nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 6px);
    flex-direction: column; gap: 0; padding: 8px;
    background: var(--paper); border-radius: 20px;
    box-shadow: 0 24px 48px -16px rgb(61 12 40 / 0.4), 0 0 0 1px rgb(102 29 73 / 0.08);
  }
  .menu-open .top nav { display: flex; }
  .top nav a { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; }
  .top nav a:hover { background: var(--rose); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--ink);
  color: var(--ink); text-decoration: none; font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}
.button:hover { background: var(--ink); color: var(--paper); }
.button.primary { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.button.primary:hover { background: var(--plum); border-color: var(--plum); }
.button.soon, .button.soon:hover { gap: 10px; cursor: default; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fineprint { font-size: 0.92rem; color: var(--ink-soft); }

/* Phone frame */
.phone { margin: 0; position: relative; isolation: isolate; }
.phone::before {
  content: ""; position: absolute; inset: -1.55% -3.4%; z-index: -1;
  border-radius: 15.5% / 7.1%;
  background: linear-gradient(145deg, #4a3a45, #17101a 45%, #3a2c36);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.18),
    0 30px 60px -20px rgb(61 12 40 / 0.45),
    0 12px 24px -12px rgb(61 12 40 / 0.35);
}
.phone img { width: 100%; height: auto; border-radius: 11.4% / 5.3%; }
.phone::after {
  content: ""; position: absolute; top: 1.35%; left: 50%; translate: -50% 0;
  width: 29%; height: 2.5%; border-radius: 999px; background: #000;
}
figcaption {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px);
  text-align: center; font-weight: 600; font-size: 0.95rem;
}

/* Hero: the record is the one loud element on the page */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vw, 60px) var(--gutter) clamp(60px, 9vw, 120px);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); }
.turntable { position: relative; aspect-ratio: 1; }
.deck { position: absolute; top: 0; left: 0; width: 118%; aspect-ratio: 1; }
.record {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 37%, rgb(255 255 255 / 0.05) 37.4%, transparent 38%),
    repeating-radial-gradient(circle at 50% 50%, #1d1020 0 3px, #2a1830 3px 4px),
    #1d1020;
  box-shadow: 0 40px 80px -30px rgb(61 12 40 / 0.6), inset 0 0 0 6px #160b18;
  animation: spin 7.2s linear 2s infinite;
}
.record::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgb(255 255 255 / 0.10) 14%, transparent 20% 60%, rgb(255 255 255 / 0.08) 64%, transparent 70%);
}
.label {
  position: absolute; inset: 31%; border-radius: 50%;
  background: radial-gradient(circle, var(--vinyl) 0 4%, transparent 4.5%), linear-gradient(135deg, #ffd8e2, #f26f96);
  display: grid; place-items: center;
}
.label::after {
  content: ""; width: 54%; height: 46%;
  background:
    linear-gradient(var(--plum), var(--plum)) 0% 50% / 11% 26% no-repeat,
    linear-gradient(var(--plum), var(--plum)) 22% 50% / 11% 62% no-repeat,
    linear-gradient(var(--plum), var(--plum)) 50% 50% / 11% 100% no-repeat,
    linear-gradient(var(--plum), var(--plum)) 78% 50% / 11% 58% no-repeat,
    linear-gradient(var(--plum), var(--plum)) 100% 50% / 11% 26% no-repeat;
  border-radius: 4px;
  -webkit-mask: radial-gradient(circle, transparent 0 9%, #000 9.5%);
          mask: radial-gradient(circle, transparent 0 9%, #000 9.5%);
}
@keyframes spin { to { rotate: 360deg; } }

/* The tonearm swings in from outside the record and sets the needle down, then the record starts */
.tonearm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arm {
  transform-box: view-box; transform-origin: 923px 75px;
  filter: drop-shadow(0 14px 18px rgb(29 16 32 / 0.45));
  animation: needle-drop 1.9s cubic-bezier(0.5, 0, 0.2, 1) 0.3s both;
}
@keyframes needle-drop {
  0% { rotate: -34deg; }
  70% { rotate: 1.5deg; }
  100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .record { animation: none; }
  .arm { animation: none; }
}
.hero-phone { position: absolute; width: 46%; left: -6%; bottom: -16%; rotate: -4deg; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .turntable { width: min(100%, 460px); margin: 10px auto 70px; }
  .deck { width: 88%; }
  .hero-phone { left: 0; bottom: -14%; width: 44%; }
}

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(32px, 6vw, 90px);
  max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gutter);
}
.feature.reverse .feature-copy { order: 2; }
.feature-copy p { color: var(--ink); }
.feature-copy.narrow { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 34em; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, var(--rose) 0 22%, var(--raspberry) 26%);
}

.phones { display: grid; align-items: end; }
.trio { grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); }
.trio .phone:nth-child(2) { translate: 0 -8%; }
.pair { grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 3vw, 30px); max-width: 560px; justify-self: center; width: 100%; }
.pair .phone:first-child { translate: 0 6%; }

.fan { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 4%; }
.fan .phone:nth-child(1) { rotate: -7deg; translate: 12% 6%; }
.fan .phone:nth-child(2) { z-index: 1; scale: 1.08; }
.fan .phone:nth-child(3) { rotate: 7deg; translate: -12% 6%; }

/* The assistant section sits on the record's vinyl */
.assistant {
  max-width: none;
  background: var(--vinyl);
  color: var(--paper);
  padding-left: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
  padding-right: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
}
.assistant .feature-copy p, .assistant .facts { color: #f1dce6; }
.assistant h2 { color: #ffd8e2; }
.assistant .facts li::before { background: radial-gradient(circle, var(--vinyl) 0 22%, #f26f96 26%); }
.assistant .phone::before { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), 0 30px 60px -20px rgb(0 0 0 / 0.7); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
}

/* Shelf: a horizontal row of phones, like sleeves on a shelf */
.shelf-section { padding: clamp(60px, 9vw, 120px) 0; background: var(--rose-deep); }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 22vw, 260px);
  gap: clamp(20px, 3vw, 40px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 30px max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter)) 60px;
  scrollbar-width: thin; scrollbar-color: var(--plum) transparent;
}
.shelf .phone { scroll-snap-align: start; }

/* Details */
.details { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gutter); }
.details dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 34px clamp(24px, 4vw, 56px); margin: 40px 0 0;
}
.details dl > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.details dt { font: 680 1.3rem/1.2 var(--display); font-variation-settings: "wdth" 85; margin-bottom: 6px; }
.details dd { margin: 0; color: var(--ink-soft); }

.privacy {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 9vw, 110px);
}
.privacy p {
  max-width: 24em; margin: 0;
  font: 600 clamp(1.6rem, 3.2vw, 2.6rem)/1.15 var(--display); font-variation-settings: "wdth" 85;
  letter-spacing: -0.015em; color: var(--plum); text-wrap: balance;
}

/* Release, sponsor and other apps */
.release {
  max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 110px) var(--gutter);
  background: var(--paper); border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (max-width: 1240px) { .release { border-radius: 0; } }
.release img { border-radius: 22px; box-shadow: 0 16px 36px -14px rgb(102 29 73 / 0.5); margin-bottom: 28px; }
.release p { margin-left: auto; margin-right: auto; }
.release .servers { justify-content: center; margin: 8px 0 32px; }
.release .button { margin-bottom: 14px; }
.servers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.servers li {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink-soft);
  font-weight: 500; font-size: 0.95rem;
}

.sponsor {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.sponsor h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sponsor p { margin: 0; color: var(--ink-soft); }
.sponsor .button { gap: 10px; }

.site-footer {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start;
  font-size: 0.95rem; color: var(--ink-soft);
}
.site-footer p { margin: 10px 0 0; max-width: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--raspberry); text-decoration: underline; }
.footer-products { grid-column: 1 / -1; border-top: 1.5px solid rgb(102 29 73 / 0.2); padding-top: 22px; }
.footer-products p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.footer-products ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 44px; }
.footer-products a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.footer-products img { flex: none; }
.footer-products a > span { display: flex; flex-direction: column; gap: 2px; }
.footer-products a > span > span { color: var(--ink-soft); font-size: 0.86rem; }
.footer-products a:hover strong { color: var(--raspberry); }
.footer-note { grid-column: 1 / -1; border-top: 1.5px solid rgb(102 29 73 / 0.2); padding-top: 18px; font-size: 0.86rem; }
@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .trio { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fan { padding: 0; }
}

/* Privacy policy page */
.policy { max-width: 46rem; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 24px; }
.policy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.policy h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.2em; line-height: 1.1; }
.policy p, .policy ul { max-width: none; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 10px; }
.policy li::marker { color: var(--raspberry); }
.updated { color: var(--ink-soft); font-size: 0.95rem; }
.policy-summary {
  margin: 28px 0 0; padding: 22px 24px; border-radius: 20px; background: var(--paper);
  font-size: 1.12rem; color: var(--plum);
}
[aria-current="page"] { color: var(--raspberry) !important; }
