/* Loudr website: black, with the app's stone as the one light colour. */
:root {
  --bg: #000000;
  --raised: #0c0c0c;
  --line: #222120;
  --line-strong: #3a3836;
  --text: #f2f0ec;
  --muted: #a39d93;
  --stone: #e9e6e0;
  --ink: #1a1917;
  --sans: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
em { font-style: normal; }
main { overflow: hidden; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.nav-link:hover { color: var(--text); border-color: var(--line-strong); }
.stars { padding-left: 8px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, 10vh, 112px) 16px clamp(120px, 18vh, 190px);
}
.logo { position: relative; margin-bottom: 30px; }
.logo img {
  display: block;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.6));
  animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--raised) 70%, transparent);
  color: var(--stone); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
h1 {
  position: relative; margin: 0;
  font: 600 clamp(38px, 5.6vw, 68px)/1.05 var(--sans);
  letter-spacing: -0.045em;
}
h1 em { color: var(--muted); }
.lead {
  position: relative; max-width: 31em; margin: 18px 0 0;
  color: var(--muted); font-size: clamp(15px, 1.5vw, 17px);
}

.downloads { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 264px; padding: 13px 26px 13px 22px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--raised); color: var(--text);
  text-decoration: none; text-align: left;
  transition: transform 0.15s ease-out, border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.button:hover { transform: translateY(-2px); border-color: var(--muted); }
.button:active { transform: translateY(0); }
.button[hidden], .fine[hidden] { display: none; }
.button-text { display: flex; flex-direction: column; line-height: 1.3; }
.button strong { font-weight: 600; font-size: 16px; }
.button small { font-size: 12.5px; color: var(--muted); }
/* The button for the visitor's own system is the light one. */
.button.primary { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.button.primary small { color: #5f5a53; }
.button.primary:hover { background: #fbfaf8; border-color: #fbfaf8; }
:is(a, video):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.fine { position: relative; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.fine a { margin-left: 6px; text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }

/* The waveform from the logo, stretched along the bottom of the hero. */
.wave {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; align-items: center; justify-content: center; gap: clamp(5px, 1vw, 10px);
  height: 86px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.wave i {
  width: clamp(3px, 0.55vw, 6px); height: 100%; border-radius: 99px;
  background: var(--line-strong);
  transform: scaleY(0.12);
  animation: wave 2.6s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-duration: 3.1s; }
.wave i:nth-child(4n) { animation-duration: 2.2s; }
.wave i:nth-child(5n + 1) { animation-delay: -0.4s; }
.wave i:nth-child(5n + 2) { animation-delay: -1.1s; }
.wave i:nth-child(5n + 3) { animation-delay: -1.7s; }
.wave i:nth-child(5n + 4) { animation-delay: -0.8s; }
.wave i:nth-child(7n) { animation-delay: -2s; }
@keyframes wave { 50% { transform: scaleY(1); } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) scale(0.94); } }

/* ---------- Sections ---------- */
section:not(.hero) { width: min(1080px, 100% - 32px); margin: 0 auto; }

.film video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 22px; border: 1px solid var(--line); background: var(--raised);
}
.caption { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.support {
  position: relative; overflow: hidden;
  margin-top: clamp(72px, 12vh, 130px) !important; max-width: 760px;
  padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 26px; background: var(--raised); border: 1px solid var(--line);
}
.support > * { position: relative; }
.cup {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--stone);
}
.steam { animation: steam 2.8s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: 0.25; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1px); } }
h2 { margin: 20px 0 12px; font: 600 clamp(28px, 3.6vw, 40px)/1.1 var(--sans); letter-spacing: -0.04em; }
h2 em { color: var(--muted); }
.support p { margin: 0; color: var(--muted); max-width: 30em; }
.support-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text);
  text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform 0.15s ease-out, border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.pill:hover { transform: translateY(-2px); border-color: var(--muted); }
.pill.primary { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.pill.primary:hover { background: #fbfaf8; border-color: #fbfaf8; }
.pill[hidden] { display: none; }

.thanks {
  margin-top: clamp(64px, 10vh, 110px) !important;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.thanks h2 { margin-top: 0; }
.thanks p { margin: 0; color: var(--muted); max-width: 30em; }
.thanks .support-actions { margin-top: 22px; }

/* ---------- Cursor light ---------- */
/* A wide soft glow that trails the pointer across the whole page. */
.glow {
  position: fixed; top: 0; left: 0; z-index: 4;
  width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 224, 0.11), rgba(255, 244, 224, 0.04) 45%, transparent);
  mix-blend-mode: screen; pointer-events: none;
  opacity: 0; transition: opacity 0.5s ease-out; will-change: transform;
}
.glow.on { opacity: 1; }
/* Surfaces marked data-spot light up under the pointer. */
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 244, 224, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease-out;
}
[data-spot]:hover::before { opacity: 1; }
.button { position: relative; overflow: hidden; }
.button > * { position: relative; }
.button.primary::before { display: none; }

footer {
  width: min(1080px, 100% - 32px); margin: clamp(56px, 9vh, 96px) auto 0; padding: 26px 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .downloads { flex-direction: column; align-self: stretch; }
  .button { min-width: 0; justify-content: center; }
  .film video { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; transform: scaleY(0.4); }
  .wave i:nth-child(odd) { transform: scaleY(0.75); }
  .logo img { animation: none; }
  .button, .pill { transition: none; }
  .steam { animation: none; }
  .glow { display: none; }
}
