/* Song Their Story: warm, giftable, phone-first. No frameworks, no web fonts (fast, private). */
:root {
  --bg: #fff8f1;
  --bg-2: #fdeee6;
  --surface: #ffffff;
  --ink: #2a1f3d;
  --ink-2: #5c5170;
  --muted: #675c7b;
  --line: #f0e2d8;
  --brand: #c93e52;
  --brand-ink: #ffffff;
  --brand-dark: #a92f44;
  --brand-soft: #fde4e4;
  --gold: #f2b544;
  --gold-soft: #fff1d4;
  --plum: #3d2a5c;
  --lilac: #efe7fb;
  --ok: #1f7a55;
  --ok-soft: #e3f5ec;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --danger: #b3261e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42, 31, 61, 0.06), 0 8px 24px rgba(42, 31, 61, 0.08);
  --shadow-lg: 0 2px 6px rgba(42, 31, 61, 0.08), 0 18px 48px rgba(42, 31, 61, 0.14);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --focus: 0 0 0 3px #fff, 0 0 0 5px #3d2a5c;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  max-width: 100%;
}
a {
  color: var(--brand-dark);
}
a:hover {
  color: var(--brand);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}
/* Headings are focused from script (tabindex="-1") so screen readers start at the new question; they are not
   controls, so no focus box on them. Real controls keep the ring above. */
:is(h1, h2, h3)[tabindex='-1']:focus,
:is(h1, h2, h3)[tabindex='-1']:focus-visible {
  outline: none;
  box-shadow: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
.h3 {
  font-size: 1.3rem;
}
.flush {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--plum);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 99;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 680px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.center {
  text-align: center;
}
.hidden,
[hidden] {
  display: none !important;
}

/* ---------- header / footer ---------- */
.demo-banner {
  background: var(--plum);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 12px;
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo svg {
  width: 32px;
  height: 32px;
  flex: none;
}
.site-foot {
  margin-top: 64px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0;
}
.site-foot a {
  color: var(--ink-2);
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--brand);
  color: var(--brand-ink);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(217, 71, 90, 0.28);
}
.btn:hover {
  background: var(--brand-dark);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  background: #d9cfd6;
  color: #6f6577;
  box-shadow: none;
  cursor: not-allowed;
}
.btn.big {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.08rem;
}
.btn.block {
  width: 100%;
}
.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn.secondary:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  box-shadow: none;
  padding-left: 10px;
  padding-right: 10px;
}
.btn.ghost:hover {
  color: var(--ink);
  background: rgba(61, 42, 92, 0.06);
}
.btn.small {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.92rem;
}
.btn .spin {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- cards / chips / fields ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card,
.card + details.card,
details.card + .card {
  margin-top: 16px;
}
.card > :last-child {
  margin-bottom: 0;
}
details.card > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  margin: 0;
}
details.card > summary::-webkit-details-marker {
  display: none;
}
details.card > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -4px;
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 400;
}
details.card[open] > summary::after {
  content: '\2013';
}
details.card[open] > summary {
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6b4a00;
  font-size: 0.85rem;
  font-weight: 600;
}
.pill.rose {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.field {
  display: block;
  margin: 0 0 18px;
}
.field > span,
.label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.hint {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
  font-weight: 400;
}
input[type='text'],
input[type='email'],
input[type='password'],
textarea,
select {
  width: 100%;
  font: 400 1.05rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.15s ease;
}
textarea {
  min-height: 110px;
  resize: none; /* grows with the text instead (field-sizing, with a script fallback that sets the height) */
  field-sizing: content;
  overflow-wrap: anywhere;
}
/* the answer counter: amber near the limit, red at it */
.hint-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}
.hint-row .hint {
  margin-top: 6px;
}
.hint.count {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hint.count.warn {
  color: var(--warn);
  font-weight: 600;
}
.hint.count.limit {
  color: var(--danger);
  font-weight: 600;
}
/* a focused field is scrolled into view with room for the sticky header and the Continue bar */
.field,
fieldset.plain {
  scroll-margin-top: 84px;
  scroll-margin-bottom: 120px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(61, 42, 92, 0.12);
}
[aria-invalid='true'] {
  border-color: var(--danger) !important;
}
.error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 0 0;
}
.error:empty {
  display: none;
}
fieldset.plain {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip input,
.tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}
.chip input:checked + span {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.chip input:focus-visible + span,
.tile input:focus-visible + span {
  box-shadow: var(--focus);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  display: block;
}
.tile span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all 0.12s ease;
}
.tile b {
  font-size: 1.02rem;
}
.tile small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.tile input:checked + span {
  border-color: var(--plum);
  background: var(--lilac);
  box-shadow: inset 0 0 0 1px var(--plum);
}
.notice {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--warn-soft);
  color: #5b3a00;
  margin: 0 0 16px;
}
.notice.ok {
  background: var(--ok-soft);
  color: #134d36;
}
.notice.info {
  background: var(--lilac);
  color: var(--plum);
}
.notice.danger {
  background: #fdeceb;
  color: var(--danger);
  border: 1px solid #f2b8b3;
}
.notice.danger a {
  color: var(--danger);
  font-weight: 700;
}
.notice.danger p + p,
.notice.danger .row {
  margin-top: 8px;
}

/* ---------- home ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #ffd9cf 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #f6e3ff 0%, transparent 55%), var(--bg);
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero {
    padding: 72px 0 88px;
  }
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34em;
}
.start-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.start-row input {
  flex: 1 1 220px;
  min-height: 56px;
}
.start-row .btn {
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .start-row .btn {
    flex: 1 1 100%;
  }
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-2);
  font-size: 0.93rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.trust li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: 1px;
}
.giftcard {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(160deg, #3d2a5c 0%, #5b3a7a 55%, #d9475a 130%);
  color: #fff;
  border-radius: 26px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.giftcard small {
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.giftcard h3 {
  font-size: 1.7rem;
  margin: 6px 0 2px;
}
.giftcard .wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  margin: 18px 0 14px;
}
.giftcard .wave i {
  flex: 1;
  height: 40%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 3px;
}
.giftcard .wave i:nth-child(3n) {
  height: 75%;
}
.giftcard .wave i:nth-child(4n + 1) {
  height: 55%;
}
.giftcard .wave i:nth-child(5n + 2) {
  height: 95%;
}
.giftcard .wave i:nth-child(7n) {
  height: 28%;
}
.giftcard .lyric {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
}
.giftcard .play {
  position: absolute;
  right: 22px;
  bottom: -22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
section.block {
  padding: 56px 0 8px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 26px;
}
.steps3 {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps3 .card {
  margin: 0;
  position: relative;
  padding-top: 58px;
}
.steps3 .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .occasion-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.occasion-grid a {
  display: block;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.occasion-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.occasion-grid a span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.get-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .get-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}
.get-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.get-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.get-list .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lilac);
  display: grid;
  place-items: center;
  color: var(--plum);
}
.price-card {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff7ef 100%);
}
.price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0;
}
.promise {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid #f6dfa9;
  border-radius: var(--radius);
  padding: 20px;
}
.promise .seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: #4a3300;
}
.demo-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.demo {
  margin: 0;
}
.demo .player {
  height: 100%;
  box-shadow: var(--shadow);
}
.demo .meta {
  color: var(--muted);
  font-size: 0.88rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 12px;
  font-size: 1.4rem;
  color: var(--brand);
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details p {
  color: var(--ink-2);
}
/* "Your songs": links back to the songs made in this browser (home page and the form's first screen) */
.your-songs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}
.your-songs .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.your-songs a {
  display: inline-block;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--plum);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.your-songs a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* ---------- guided form ---------- */
.flow {
  padding: 18px 0 40px;
}
.flow-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.bar {
  flex: 1;
  height: 8px;
  background: #f1e3da;
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  border-radius: 99px;
  transition: width 0.35s ease;
}
.step-count {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.step h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
}
.step .sub {
  color: var(--ink-2);
  margin-bottom: 22px;
}
.step-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0) 0%, var(--bg) 30%);
  margin-top: 8px;
}
/* while typing (the on-screen keyboard is up) the Continue bar stays in the flow, so it never covers the field */
#flow.typing .step-actions {
  position: static;
  background: none;
}
.reveal-more summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 600;
  margin: 4px 0 12px;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list li > div {
  min-width: 0;
}
.summary-list b {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.summary-list .val {
  overflow-wrap: anywhere;
}
.summary-list button {
  flex: none;
}

/* ---------- song page ---------- */
.song-head {
  padding-top: 26px;
  padding-bottom: 8px;
}
#app > * + *,
#after > * + * {
  margin-top: 16px;
}
#app > h1 {
  margin-top: 10px;
}
.lyrics-paper {
  background: #fffdf8;
  border: 1px solid #efe1cf;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px;
}
.lyrics-paper textarea {
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
  min-height: 420px;
  padding: 16px 18px;
  resize: none;
}
.lyrics-paper textarea:focus {
  box-shadow: none;
}
.lyrics-view {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0;
}
.lyrics-view .tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 800;
  margin-top: 14px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
/* "your lyric video is being made": the little equalizer stays beside the text */
.row.video-wait {
  flex-wrap: nowrap;
  gap: 14px;
}
.row.video-wait .eq {
  flex: none;
}
.stack > * + * {
  margin-top: 14px;
}
.progress-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.progress-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.progress-steps li .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  font-size: 0.8rem;
}
.progress-steps li.done {
  color: var(--ink);
}
.progress-steps li.done .dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.progress-steps li.now {
  color: var(--ink);
  font-weight: 700;
}
.progress-steps li.now .dot {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
}
.eq i {
  width: 7px;
  border-radius: 3px;
  background: var(--brand);
  animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) {
  animation-delay: -0.2s;
  background: var(--gold);
}
.eq i:nth-child(3) {
  animation-delay: -0.4s;
}
.eq i:nth-child(4) {
  animation-delay: -0.6s;
  background: var(--plum);
}
.eq i:nth-child(5) {
  animation-delay: -0.8s;
}
@keyframes eq {
  0%,
  100% {
    height: 20%;
  }
  50% {
    height: 100%;
  }
}
.big-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.unlock {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, #fff 0%, #fff5f2 100%);
}
.unlock ul {
  padding-left: 1.2em;
  margin: 8px 0 18px;
}
.video-teaser {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(170deg, #3d2a5c, #6b3f7a 60%, #d9475a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.video-teaser .t {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.video-teaser .l {
  font-family: var(--serif);
  opacity: 0.85;
  font-style: italic;
}
.video-teaser .lock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  white-space: nowrap;
}
video.lyric-video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #000;
}
video.lyric-video + .row {
  margin-top: 14px; /* the download button below the video */
}
.share-box input {
  font-size: 0.95rem;
}
.versions label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

/* ---------- audio player ---------- */
.player {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.player .pbtn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(217, 71, 90, 0.3);
}
.player .pbtn:hover {
  background: var(--brand-dark);
}
.player .ptitle {
  font-weight: 700;
  line-height: 1.25;
}
.player .psub {
  color: var(--muted);
  font-size: 0.85rem;
}
.player input[type='range'] {
  width: 100%;
  accent-color: var(--brand);
  margin: 6px 0 0;
}
.player .ptime {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- gift reveal (share page) ---------- */
body.reveal-page {
  background: radial-gradient(900px 600px at 50% -10%, #ffd9cf 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 100%, #f1e2ff 0%, transparent 60%), var(--bg);
  min-height: 100vh;
}
.reveal {
  text-align: center;
  padding: 40px 0 20px;
}
.reveal .for {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.reveal .name {
  font-family: var(--serif);
  font-size: clamp(3rem, 16vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.reveal .from {
  font-size: 1.2rem;
  color: var(--ink-2);
  margin-bottom: 30px;
}
.tap {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font: 700 1.05rem/1.2 var(--sans);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(217, 71, 90, 0.38);
  display: inline-grid;
  place-items: center;
}
.tap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px solid rgba(217, 71, 90, 0.35);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 1;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}
.tap svg {
  display: block;
  margin: 0 auto 6px;
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}
.confetti i {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  animation: fall 2.6s ease-in forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.9;
  }
}
.fade-in {
  animation: fadein 0.6s ease both;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- policies / admin ---------- */
.prose {
  padding-top: 30px;
  padding-bottom: 30px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.6em;
}
.prose li {
  margin-bottom: 6px;
}
.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #fff;
}
.admin th,
.admin td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin .scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.admin .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.admin .kpis .card {
  padding: 14px;
  margin: 0;
}
.admin .kpis b {
  display: block;
  font-size: 1.4rem;
  font-family: var(--serif);
}
.flag {
  color: var(--danger);
  font-weight: 700;
}
