/* Soundbite site. Tokens from docs/design/tokens.json; no JS, no third-party requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --surface: #F7F4FF;
  --surface-raised: #FFFFFF;
  --line: #E2DAFF;
  --line-strong: #8F7FD6;
  --ink: #1A1430;
  --ink-muted: #5A5078;
  --violet: #5B3BEF;
  --violet-soft: #E2DAFF;
  --stage-top: #7050FF;
  --stage-bottom: #4F2FE6;
  --on-stage: #FFFFFF;
  --lime: #C8F43A;
  --on-lime: #1A1430;
  --wave-idle: rgba(255, 255, 255, 0.38);
  --wave-active: #FFFFFF;
  --jelly-top: rgba(200, 244, 58, 0.42);
  --jelly-bottom: rgba(200, 244, 58, 0.18);
  --stage-glass-fill: rgba(255, 255, 255, 0.22);
  --stage-glass-edge: rgba(255, 255, 255, 0.75);
  --focus-ring: #4B2FE0;

  --stage-glass-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -10px 20px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(30, 10, 120, 0.35);
  --jelly-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.9), inset 0 -14px 26px rgba(255, 255, 255, 0.14), 0 16px 34px rgba(30, 10, 120, 0.4);
  --lime-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), inset 0 -6px 12px rgba(80, 120, 0, 0.2), 0 10px 24px rgba(30, 10, 120, 0.35);
  --row-shadow: 0 1px 2px rgba(26, 20, 48, 0.06);
  --stage-shadow: 0 24px 60px rgba(86, 54, 240, 0.28);

  --font-display: "Bricolage Grotesque", "SF Pro Rounded", system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --touch: 44px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-sheet: 34px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #120C26;
    --surface-raised: #1E1640;
    --line: #2E2356;
    --line-strong: #6E5FB0;
    --ink: #F4F1FF;
    --ink-muted: #B9B0D9;
    --violet: #9B85FF;
    --violet-soft: #2A1C5C;
    --stage-top: #2A1C5C;
    --stage-bottom: #120C26;
    --stage-glass-fill: rgba(190, 175, 255, 0.14);
    --stage-glass-edge: rgba(255, 255, 255, 0.36);
    --focus-ring: #C8F43A;
    --row-shadow: none;
    --stage-shadow: 0 0 0 1px #2E2356;
  }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.stage :focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: var(--space-3); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 600px) {
  .wrap { padding: 0 var(--space-8); }
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  color: var(--ink);
  text-decoration: none;
}
.brand img { display: block; width: 32px; height: 32px; }
.wordmark {
  font: 800 26px/1 var(--font-display);
  letter-spacing: -0.05em;
  padding-bottom: 3px;
}

.site-nav { display: flex; gap: var(--space-1); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font: 600 0.9375rem/1.25 var(--font-ui);
  text-decoration: none;
}
.site-nav a:hover { background: var(--violet-soft); }
.site-nav a[aria-current="page"] { color: var(--violet); }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; padding: var(--space-8) 0 var(--space-6); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: var(--space-4); }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: var(--lime-shadow);
  font: 600 1.0625rem/1.3 var(--font-ui);
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.04); }
.btn-primary svg { flex: 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .btn-primary { transition: transform 160ms cubic-bezier(.3, 1.4, .5, 1); }
  .btn-primary:active { transform: scale(0.94); }
}

/* ---------- Home ---------- */

.home {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-2) 0 0;
}

.home .wrap {
  display: grid;
  gap: var(--space-6);
}

.stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 358 / 250;
  border-radius: var(--radius-sheet);
  background: linear-gradient(170deg, var(--stage-top) 0%, var(--stage-bottom) 100%);
  box-shadow: var(--stage-shadow);
  color: var(--on-stage);
}

.viz {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 14%;
  bottom: 28%;
}

.wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 1.4%;
}
.wave i {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 99px;
  background: var(--wave-idle);
  transform-origin: 50% 50%;
}
.wave i:nth-child(n+12):nth-child(-n+30) { background: var(--wave-active); }

.wave i:nth-child(1) { height: 43%; animation-delay: -0.00s; }
.wave i:nth-child(2) { height: 73%; animation-delay: -0.13s; }
.wave i:nth-child(3) { height: 89%; animation-delay: -0.26s; }
.wave i:nth-child(4) { height: 72%; animation-delay: -0.39s; }
.wave i:nth-child(5) { height: 54%; animation-delay: -0.52s; }
.wave i:nth-child(6) { height: 15%; animation-delay: -0.65s; }
.wave i:nth-child(7) { height: 44%; animation-delay: -0.78s; }
.wave i:nth-child(8) { height: 52%; animation-delay: -0.91s; }
.wave i:nth-child(9) { height: 59%; animation-delay: -1.04s; }
.wave i:nth-child(10) { height: 40%; animation-delay: -1.17s; }
.wave i:nth-child(11) { height: 30%; animation-delay: -1.30s; }
.wave i:nth-child(12) { height: 24%; animation-delay: -1.43s; }
.wave i:nth-child(13) { height: 14%; animation-delay: -1.56s; }
.wave i:nth-child(14) { height: 28%; animation-delay: -1.69s; }
.wave i:nth-child(15) { height: 34%; animation-delay: -0.02s; }
.wave i:nth-child(16) { height: 50%; animation-delay: -0.15s; }
.wave i:nth-child(17) { height: 42%; animation-delay: -0.28s; }
.wave i:nth-child(18) { height: 33%; animation-delay: -0.41s; }
.wave i:nth-child(19) { height: 19%; animation-delay: -0.54s; }
.wave i:nth-child(20) { height: 55%; animation-delay: -0.67s; }
.wave i:nth-child(21) { height: 83%; animation-delay: -0.80s; }
.wave i:nth-child(22) { height: 81%; animation-delay: -0.93s; }
.wave i:nth-child(23) { height: 75%; animation-delay: -1.06s; }
.wave i:nth-child(24) { height: 41%; animation-delay: -1.19s; }
.wave i:nth-child(25) { height: 20%; animation-delay: -1.32s; }
.wave i:nth-child(26) { height: 38%; animation-delay: -1.45s; }
.wave i:nth-child(27) { height: 57%; animation-delay: -1.58s; }
.wave i:nth-child(28) { height: 47%; animation-delay: -1.71s; }
.wave i:nth-child(29) { height: 40%; animation-delay: -0.04s; }
.wave i:nth-child(30) { height: 31%; animation-delay: -0.17s; }
.wave i:nth-child(31) { height: 14%; animation-delay: -0.30s; }
.wave i:nth-child(32) { height: 22%; animation-delay: -0.43s; }
.wave i:nth-child(33) { height: 25%; animation-delay: -0.56s; }
.wave i:nth-child(34) { height: 46%; animation-delay: -0.69s; }
.wave i:nth-child(35) { height: 47%; animation-delay: -0.82s; }
.wave i:nth-child(36) { height: 49%; animation-delay: -0.95s; }
.wave i:nth-child(37) { height: 22%; animation-delay: -1.08s; }
.wave i:nth-child(38) { height: 30%; animation-delay: -1.21s; }
.wave i:nth-child(39) { height: 66%; animation-delay: -1.34s; }
.wave i:nth-child(40) { height: 78%; animation-delay: -1.47s; }

/* The jelly: lime-tinted glass over bars 12 to 30, grips at each end. */
.jelly {
  position: absolute;
  top: -7%;
  bottom: -7%;
  left: 25%;
  width: 52%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--jelly-top) 0%, var(--jelly-bottom) 100%);
  border: 2px solid var(--stage-glass-edge);
  box-shadow: var(--jelly-shadow);
  -webkit-backdrop-filter: saturate(220%) brightness(1.08);
  backdrop-filter: saturate(220%) brightness(1.08);
}
.jelly span {
  display: block;
  width: 8px;
  height: 40%;
  min-height: 36px;
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 0 2px 10px rgba(26, 20, 48, 0.5);
}

.chip {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--stage-glass-fill);
  border: 2px solid var(--stage-glass-edge);
  box-shadow: var(--stage-glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  backdrop-filter: blur(20px) saturate(200%);
  font: 600 0.875rem/1.3 var(--font-ui);
  white-space: nowrap;
}
.chip b { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: sb-bar 1.8s ease-in-out infinite; }
  .jelly { animation: sb-jelly 5s cubic-bezier(.45, .05, .35, 1) infinite; }
  .chip { animation: sb-float 4.5s ease-in-out infinite; }
}
@keyframes sb-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.75); } }
@keyframes sb-jelly { 0%, 100% { left: 25%; width: 52%; } 50% { left: 18%; width: 66%; } }
@keyframes sb-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

.pitch { display: flex; flex-direction: column; gap: var(--space-4); }

.pitch h1 {
  margin: 0;
  font: 800 2.125rem/1.1 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pitch .lede {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 34em;
}
.pitch .free {
  margin: 0;
  font: 700 1.375rem/1.25 var(--font-display);
  letter-spacing: -0.02em;
}
.pitch .actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.pitch .hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.features {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-1);
}
.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font: 600 0.875rem/1.3 var(--font-ui);
  text-align: center;
}
.features .tile {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-soft);
  color: var(--violet);
}

@media (max-width: 359px) {
  .pitch h1 { font-size: 1.875rem; }
  .features li { font-size: 0.8125rem; }
  .site-header .wrap { gap: var(--space-2); }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .wordmark { font-size: 22px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 6px; }
  .btn-primary { padding: 0 20px; font-size: 1rem; }
}

@media (min-width: 600px) {
  .pitch .actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-4) var(--space-5); }
}

@media (min-width: 900px) {
  .home { padding: var(--space-6) 0 var(--space-8); }
  .home .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
  }
  .home .stage { order: 2; }
  .pitch h1 { font-size: 3.5rem; line-height: 1.02; letter-spacing: -0.04em; }
  .pitch .lede { font-size: 1.1875rem; }
  .pitch .free { font-size: 1.625rem; }
  .features { max-width: 420px; justify-items: start; }
  .features li { align-items: flex-start; text-align: left; }
}

/* ---------- Text pages (support, privacy) ---------- */

.page { flex: 1; padding: var(--space-4) 0 0; }
.page .wrap { max-width: 760px; }

.page-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.page-head h1 {
  margin: 0;
  font: 700 2.125rem/1.15 var(--font-display);
  letter-spacing: -0.03em;
}
.page-head p { margin: 0; color: var(--ink-muted); }
.page-head .lede { color: var(--ink); font-size: 1.1875rem; line-height: 1.45; }

@media (min-width: 900px) {
  .page { padding-top: var(--space-8); }
  .page-head h1 { font-size: 3rem; letter-spacing: -0.04em; }
}

.section { margin: 0 0 var(--space-8); }
.section > h2 {
  margin: 0 0 var(--space-3);
  font: 700 1.375rem/1.25 var(--font-display);
  letter-spacing: -0.02em;
}
.section > p { margin: 0 0 var(--space-3); }

/* A grouped list of raised cards, like the app's Settings rows. */
.group {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--row-shadow);
  overflow: hidden;
}
.group > * {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.group > *:last-child { border-bottom: 0; }
.group h3 {
  margin: 0 0 var(--space-1);
  font: 600 1.0625rem/1.3 var(--font-ui);
}
.group p { margin: 0; }
.group p + p { margin-top: var(--space-2); }

.card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--row-shadow);
}
.card p { margin: 0; }
.card p + p, .card p + .btn-primary { margin-top: var(--space-3); }

.short {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--violet-soft);
  color: var(--ink);
}
.short p { margin: 0; font-size: 1.0625rem; }
.short p + p { margin-top: var(--space-2); }
.short strong { font-weight: 700; }

.prose p, .prose ul { margin: 0 0 var(--space-3); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-1); }

.path { font-weight: 600; white-space: nowrap; }
.muted { color: var(--ink-muted); }
.email { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.lost { flex: 1; display: flex; align-items: center; }
.lost .wrap { max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.lost h1 { margin: 0; font: 800 2.5rem/1.1 var(--font-display); letter-spacing: -0.035em; }
.lost p { margin: 0; color: var(--ink-muted); }
