/* SoundCanvas — one stylesheet, no framework, no build step. */
:root {
  --paper: #FBF6EC;
  --deep: #F4ECDD;
  --ink: #2B2530;
  --muted: rgba(43, 37, 48, .58);
  --hair: rgba(43, 37, 48, .10);
  --coral: #FF5A5F;
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }

/* ── header ─────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(251, 246, 236, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
header.site.scrolled { border-bottom-color: var(--hair); }
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: inherit; text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
nav.top a {
  color: var(--ink); opacity: .55; text-decoration: none; font-size: 14px; margin-left: 22px;
  transition: opacity .2s ease;
}
nav.top a:hover, nav.top a:focus-visible { opacity: 1; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 88px 0 40px; }
h1 {
  font-size: clamp(40px, 7.2vw, 74px);
  line-height: 1.02; letter-spacing: -.035em; margin: 0 0 24px; max-width: 12ch;
}
.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 540px; margin: 0 0 36px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta {
  display: inline-block; background: var(--coral); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 15px 28px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover, .cta:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 90, 95, .28); }
.ghost {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 15px 22px; border-radius: 999px; border: 1px solid var(--hair);
}
.ghost:hover, .ghost:focus-visible { border-color: rgba(43,37,48,.28); }
.soon { font-size: 14px; color: var(--muted); }

.stage {
  background: var(--deep); border-radius: var(--radius);
  padding: 46px 30px; margin: 52px 0 0; overflow: hidden;
}
.stage svg { display: block; width: 100%; height: auto; }

/* the stroke draws itself once, then breathes */
.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s ease-out .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.playhead { animation: sweep 6s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes sweep {
  0%   { transform: translateX(-2px); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(300px); opacity: 0; }
}
.note { opacity: 0; animation: pulse 6s ease-out infinite; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(.6); }
  8% { opacity: .9; transform: scale(1.15); }
  22% { opacity: 0; transform: scale(1.9); }
}

/* ── sections ───────────────────────────────────────────── */
section { padding: 78px 0; }
section + section { border-top: 1px solid var(--hair); }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 560px; margin: 0 0 44px; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.step .num {
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; color: var(--coral);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.palette { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; margin: 0 0 18px; }
.palette span {
  aspect-ratio: 1; border-radius: 50%; display: block;
  transition: transform .25s ease;
}
.palette span:hover { transform: scale(1.14); }
.palette-name { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.card h3 { font-size: 16px; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.quote {
  background: #fff; border: 1px solid var(--hair); border-radius: 22px;
  padding: 30px 32px; font-size: 19px; line-height: 1.5; max-width: 720px;
}
.quote strong { color: var(--coral); }

details {
  border-bottom: 1px solid var(--hair); padding: 18px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; max-width: 640px; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ── footer ─────────────────────────────────────────────── */
footer.site {
  padding: 44px 0 60px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
footer.site a { color: inherit; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* ── legal pages ────────────────────────────────────────── */
.legal { padding: 64px 0 90px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 19px; margin: 38px 0 10px; letter-spacing: 0; }
.legal p, .legal li { color: rgba(43,37,48,.78); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--coral); }
.legal .callout {
  background: #fff; border: 1px solid var(--hair); border-radius: 20px;
  padding: 24px 26px; margin: 26px 0 34px; font-size: 16.5px;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 50;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 620px) {
  .palette { grid-template-columns: repeat(6, 1fr); }
  .hero { padding-top: 56px; }
}
