:root {
  --ink: #2b2140;
  --bg: #fff7ec;
  --panel: #ffffff;
  --line: #f0e2cf;
  --muted: #6e6383;
  --accent: #ff5a5f;
  --accent-ink: #ffffff;
  --good: #2f9e62;
  --warn: #c77a00;
  --bad: #c8414a;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(43, 33, 64, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: #c2363c; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 6vw, 54px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 10px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 12px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; border-radius: 10px; z-index: 10; }

main { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }

.site-header { display: flex; align-items: center; gap: 18px; padding: 14px 20px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 99px; font-weight: 700; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { background: #ffe7d6; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: #c9bfd6; }
.sync-dot[data-state="synced"] { background: var(--good); }
.sync-dot[data-state="syncing"] { background: #ffd23f; }
.sync-dot[data-state="error"], .sync-dot[data-state="offline"] { background: var(--bad); }

.claim { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: #fff1b8; padding: 10px 16px; font-weight: 600; }

.site-footer { border-top: 2px dashed var(--line); padding: 26px 20px 40px; max-width: 1100px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 99px;
  padding: 12px 22px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 #c2363c; transition: transform .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c2363c; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--panel); color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn.small { padding: 6px 14px; font-size: 15px; box-shadow: 0 3px 0 #c2363c; }
.btn.ghost.small { box-shadow: 0 3px 0 var(--line); }
.btn.big { padding: 18px 34px; font-size: 22px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.card { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
.error { color: var(--bad); font-weight: 600; min-height: 1em; }
.ok { color: var(--good); font-weight: 600; }
.notice { background: #fff1b8; border-radius: 14px; padding: 10px 14px; }
.honeypot { position: absolute; left: -9999px; }

label { display: block; font-weight: 700; margin: 12px 0 4px; }
input, textarea, select { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; }
input[type="checkbox"] { width: auto; }
form .btn { margin-top: 14px; }

/* ── Landing ─────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 20px 0 30px; }
.hero .lead { font-size: 20px; color: var(--muted); }
.rainbow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rainbow span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: var(--shadow); animation: bob 2.4s ease-in-out infinite; }
.rainbow span:nth-child(2n) { animation-delay: .3s; }
.rainbow span:nth-child(3n) { animation-delay: .6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rainbow span { animation: none; } }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; margin-right: 8px; font-size: 16px; }
section { margin: 46px 0; }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

/* ── App ─────────────────────────────────────────────────── */
.notes { display: flex; gap: 8px; flex-wrap: wrap; }
.note-chip { border: 3px solid transparent; border-radius: 99px; padding: 6px 14px 6px 6px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.note-chip .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.note-chip[aria-pressed="true"] { border-color: var(--ink); }
.stage { text-align: center; padding: 26px 18px; }
.big-note { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 900; box-shadow: 0 10px 0 rgba(0,0,0,.08); transition: transform .2s; }
.big-note.listening { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.meter { position: relative; height: 54px; max-width: 520px; margin: 18px auto; border-radius: 99px; background: linear-gradient(90deg, #ffd6d6, #fff1b8 30%, #c9f2d9 45%, #c9f2d9 55%, #fff1b8 70%, #ffd6d6); }
.meter .needle { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 4px; background: var(--ink); left: 50%; transition: left .08s linear; }
.meter .needle[hidden] { display: none; }
.meter .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(43,33,64,.25); }
.meter-labels { display: flex; justify-content: space-between; max-width: 520px; margin: -8px auto 0; font-size: 13px; color: var(--muted); }
.result { font-size: 22px; font-weight: 800; }
.result.bullseye { color: var(--good); }
.result.close { color: #3a8d5c; }
.result.near { color: var(--warn); }
.result.off, .result.unclear { color: var(--bad); }
.take-list { list-style: none; padding: 0; margin: 0; }
.take-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.take-list li:last-child { border-bottom: 0; }
.take-list audio { width: 100%; max-width: 280px; height: 36px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #f3ecfb; color: var(--muted); }
.stat { font-size: 34px; font-weight: 900; }
.spark { width: 100%; height: 80px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 20px 0; }
.pick { aspect-ratio: 1; border: 0; border-radius: 28px; color: #fff; font: inherit; font-size: 26px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 0 rgba(0,0,0,.12); transition: transform .1s; }
.pick small { display: block; font-size: 15px; font-weight: 700; opacity: .9; }
.pick:active { transform: translateY(4px); }
.pick.right { outline: 6px solid var(--good); }
.pick.wrong { opacity: .35; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.conflict { background: #fff1b8; border-radius: 12px; padding: 8px 10px; margin-top: 6px; font-size: 14px; }
