/* Voxlight — lamplight dark, bookish. Literata display + Spline Sans Mono labels. */

:root {
  --bg: #0e0c09;
  --bg-raise: #16120e;
  --line: #2a231b;
  --ink: #ece4d6;
  --ink-dim: #a1937f;
  --ink-faint: #6e6353;
  --amber: #e8a33d;
  --amber-bright: #f6c76d;
  --amber-deep: #8a5a17;
  --radius: 14px;
  --serif: "Literata", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* warm ambient glow + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 70% -10%, rgba(232, 163, 61, 0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(232, 163, 61, 0.05), transparent 60%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  z-index: 0;
}

main, header.site, footer.site { position: relative; z-index: 1; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--amber-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
/* square cover mark — the app's square-cover branding */
.mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--amber-bright), var(--amber-deep));
  box-shadow: 0 0 18px rgba(232, 163, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  flex: none;
}
.mark::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px;
  top: 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(20, 12, 2, 0.55);
  box-shadow: 0 5px 0 rgba(20, 12, 2, 0.4), 0 10px 0 rgba(20, 12, 2, 0.25);
}
nav.site-nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 13px; }
nav.site-nav a { color: var(--ink-dim); }
nav.site-nav a:hover { color: var(--amber-bright); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: left; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(38px, 6.5vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
h1 em { font-style: italic; color: var(--amber-bright); }
.hero .lede {
  margin-top: 26px;
  max-width: 58ch;
  font-size: 19px;
  color: var(--ink-dim);
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

/* karaoke demo line — words illuminate in sequence, forever */
.karaoke {
  margin: 56px 0 8px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-raise), rgba(22, 18, 14, 0.4));
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.7;
  font-style: italic;
}
.karaoke .k {
  color: var(--ink-faint);
  animation: lightup 9s infinite;
  transition: color 0.3s;
}
@keyframes lightup {
  0%, 100% { color: var(--ink-faint); text-shadow: none; }
  4% { color: var(--amber-bright); text-shadow: 0 0 22px rgba(246, 199, 109, 0.55); }
  11% { color: var(--ink); text-shadow: none; }
  88% { color: var(--ink); }
  96% { color: var(--ink-faint); }
}
.karaoke .k:nth-child(1) { animation-delay: 0s; }
.karaoke .k:nth-child(2) { animation-delay: 0.55s; }
.karaoke .k:nth-child(3) { animation-delay: 1.1s; }
.karaoke .k:nth-child(4) { animation-delay: 1.5s; }
.karaoke .k:nth-child(5) { animation-delay: 2.05s; }
.karaoke .k:nth-child(6) { animation-delay: 2.5s; }
.karaoke .k:nth-child(7) { animation-delay: 3.0s; }
.karaoke .k:nth-child(8) { animation-delay: 3.4s; }
.karaoke .k:nth-child(9) { animation-delay: 3.9s; }
.karaoke .k:nth-child(10) { animation-delay: 4.5s; }
.karaoke .k:nth-child(11) { animation-delay: 5.0s; }
.karaoke .k:nth-child(12) { animation-delay: 5.6s; }
.karaoke-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 64px;
}
@media (prefers-reduced-motion: reduce) {
  .karaoke .k { animation: none; color: var(--ink); }
}

/* ---------- CTA ---------- */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(140deg, var(--amber-bright), var(--amber));
  color: #1a1206;
  font-weight: 600;
  box-shadow: 0 0 28px rgba(232, 163, 61, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(232, 163, 61, 0.45); }
.btn-ghost { border-color: var(--line); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--amber-deep); color: var(--amber-bright); }
.cta-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
p.dim { color: var(--ink-dim); max-width: 62ch; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 26px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--amber-deep); transform: translateY(-2px); }
.card .glyph {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.card p { font-size: 15.5px; color: var(--ink-dim); }

/* privacy band */
.privacy-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background:
    radial-gradient(500px 220px at 85% 0%, rgba(232, 163, 61, 0.08), transparent 70%),
    var(--bg-raise);
}
.privacy-band ul { list-style: none; margin-top: 18px; }
.privacy-band li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-dim);
  margin-bottom: 10px;
  font-size: 16px;
}
.privacy-band li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 5px;
}

/* ---------- prose pages (privacy / support) ---------- */
.prose { padding: 48px 0 80px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-dim); max-width: 68ch; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 12px 0 12px 22px; }
.prose li { margin-bottom: 8px; }
.prose .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--bg-raise);
  padding: 20px 24px;
  margin: 28px 0;
  max-width: 68ch;
}
.prose .callout p { color: var(--ink); }

/* faq */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raise);
  padding: 18px 22px;
  margin-bottom: 12px;
  max-width: 68ch;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--amber); font-family: var(--mono); }
details[open] summary::before { content: "− "; }
details p { margin-top: 12px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 36px 24px 48px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--ink-dim); }
