:root {
  --paper: #FBF5FF;      /* lilac white */
  --ink: #2A1442;        /* deep grape */
  --ink-soft: #5E4B78;
  --grape: #6B2BD9;      /* primary */
  --pom: #E2335B;        /* pomegranate — buy / create */
  --sun: #FFC93C;        /* highlights, notes */
  --mint: #19A68A;       /* success */
  --line: #E4D8F2;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --font: "Noto Sans Georgian", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B0D2C; --ink: #F6EEFF; --ink-soft: #BBA8D6; --line: #3A2557; --grape: #A57BFF;
  }
}
:root[data-theme="dark"] { --paper: #1B0D2C; --ink: #F6EEFF; --ink-soft: #BBA8D6; --line: #3A2557; --grape: #A57BFF; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

/* header */
.top { max-width: 560px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-variation-settings: "wdth" 75; }
.logo span { color: var(--pom); }
.price-chip { font-size: 15px; font-weight: 700; background: var(--sun); color: #2A1442; padding: 4px 12px; border-radius: 999px; }
.price-chip s { opacity: .55; font-weight: 500; margin-right: 2px; }

/* hero: the brand is the melody — three syllables sitting on a staff */
.hero { padding: 8px 0 20px; }
.staff {
  position: relative; height: 150px; margin: 0 -4px 6px;
  background: repeating-linear-gradient(to bottom, transparent 0 24px, var(--line) 24px 26px) 0 22px / 100% 130px no-repeat;
  display: flex; align-items: flex-end; gap: 5%; padding-left: 4px; overflow: hidden;
}
.note {
  font-weight: 900; font-variation-settings: "wdth" 62.5; font-size: clamp(56px, 18vw, 100px); line-height: 1;
  color: var(--grape); display: inline-block; transform: translateY(var(--y));
  animation: sing .9s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d);
}
.n1 { --y: -6px; --d: .05s; }
.n2 { --y: -38px; --d: .25s; color: var(--pom); }
.n3 { --y: -18px; --d: .45s; }
@keyframes sing { from { opacity: 0; transform: translateY(40px) scale(.7); } }
h1 { font-weight: 800; font-size: clamp(28px, 7.5vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: 26px; margin: 8px 0 14px; }
h3 { font-size: 17px; margin: 20px 0 8px; color: var(--ink-soft); font-weight: 600; }
.lede { color: var(--ink-soft); margin: 0 0 16px; }
.lede strong, .hint b { color: var(--pom); }
.sample { margin: 18px 0 0; }
.sample figcaption { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
audio { width: 100%; }

/* entry paths */
.paths { display: grid; gap: 12px; margin-top: 10px; }
.path {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 18px; border-radius: var(--radius-lg); border: 2px solid var(--line); background: var(--paper);
}
.path b { display: block; font-size: 20px; }
.path small { display: block; color: var(--ink-soft); font-size: 15px; }
.path .emoji { font-size: 34px; line-height: 1; }
.path.main { border-color: var(--grape); }
.path.free { border-style: dashed; border-color: var(--pom); }
.path:active { transform: scale(.98); }

/* flows */
.step { padding-top: 6px; }
.grid2, .grid3 { display: grid; gap: 10px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.pick {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 8px; min-height: 52px; cursor: pointer;
}
.pick.big { font-size: 18px; min-height: 76px; }
.pick[aria-pressed="true"] { border-color: var(--grape); background: color-mix(in srgb, var(--grape) 12%, transparent); font-weight: 700; }
textarea, input[type="email"], .big-input {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0;
}
.big-input { font-size: 20px; }
textarea { line-height: 1.6; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--grape); }
.field { display: block; margin: 18px 0 6px; }
.field span { font-size: 15px; color: var(--ink-soft); }
.counter { font-size: 15px; color: var(--ink-soft); margin: 2px 0 10px; }
.counter.over { color: var(--pom); font-weight: 700; }
.hint { font-size: 15px; color: var(--ink-soft); }
.error { background: color-mix(in srgb, var(--pom) 12%, transparent); color: var(--ink); border-left: 4px solid var(--pom); padding: 10px 12px; border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 2px solid var(--pom); color: var(--pom); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.error .fix { margin-top: 10px; min-height: 44px; font-size: 17px; }
.cf-turnstile { margin: 16px 0 4px; }

.cta, .ghost {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 19px; border-radius: 999px; padding: 14px 26px;
  min-height: 56px; cursor: pointer; text-decoration: none; border: 0;
}
.cta { background: var(--pom); color: #fff; width: 100%; margin-top: 14px; }
.cta:disabled { opacity: .5; cursor: wait; }
.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.row .cta { margin-top: 0; flex: 1; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 18px; }
.dots li { height: 6px; flex: 1; border-radius: 3px; background: var(--line); }
.dots li.on { background: var(--grape); }
.writing { font-size: 18px; color: var(--ink-soft); white-space: pre-wrap; min-height: 3em; }
.writing.typing::after { content: "▍"; color: var(--pom); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* waiting + song */
.song section { padding-top: 12px; }
.eq { display: flex; gap: 6px; height: 56px; align-items: flex-end; margin: 8px 0 18px; }
.eq i { width: 12px; border-radius: 6px; background: var(--grape); animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: .2s; background: var(--pom); }
.eq i:nth-child(3) { animation-delay: .4s; }
.eq i:nth-child(4) { animation-delay: .1s; background: var(--sun); }
.eq i:nth-child(5) { animation-delay: .3s; }
@keyframes eq { from { height: 10%; } to { height: 100%; } }
.caption { font-size: 19px; font-weight: 600; min-height: 1.6em; }
.lyric { list-style: none; padding: 0; margin: 18px 0; }
.lyric li { color: var(--ink-soft); opacity: .35; transition: opacity .6s, color .6s; padding: 1px 0; }
.lyric li.lit { opacity: 1; color: var(--ink); font-weight: 600; }
.lyric li.head { font-size: 13px; opacity: .6; margin-top: 10px; }
.upsell { margin-top: 26px; }

.foot { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 24px 16px 36px; }

@media (max-width: 360px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
