/* Namesake · one stylesheet for the landing page and the song builder.
   Concept: every song is a 7-inch single pressed for one person. */

:root {
  --blush: #F8CFD6;
  --blush-deep: #F3B7C4;
  --lipstick: #D9202F;
  --lipstick-dark: #A31320;
  --ink: #2A0D16;
  --ink-2: rgba(42, 13, 22, .74);
  --ink-3: rgba(42, 13, 22, .52);
  --line: rgba(42, 13, 22, .16);
  --vinyl: #170E11;
  --butter: #FFE08A;
  --paper: #FFF8F6;
  --note: #FFFDF8;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Radio Canada", "Segoe UI", system-ui, sans-serif;
  --hand: "Mynerve", "Segoe Script", "Bradley Hand", cursive;

  --gutter: clamp(20px, 5vw, 56px);

  /* default record colours, overridden per element by applySleeve() */
  --sleeve: #D9202F;
  --sleeve-ink: #FFF1EA;
  --label: #FFE08A;
  --label-ink: #6E1220;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "SOFT" 100;   /* rounds the Fraunces display face; other fonts ignore it */
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .band--vinyl :focus-visible, .band--lipstick :focus-visible, .footer :focus-visible { outline-color: var(--butter); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.caps { font: 600 .74rem/1.25 var(--body); letter-spacing: .14em; text-transform: uppercase; }

.h2 { font: 900 clamp(2rem, 4.6vw, 3.6rem)/1.03 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.24rem); color: var(--ink-2); max-width: 35em; margin-top: 1.1em; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 1.06rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 1.08em 1.5em; border: 0; border-radius: 14px;
  background: var(--lipstick); color: #fff;
  box-shadow: 0 5px 0 var(--lipstick-dark);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--lipstick-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lipstick-dark); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--butter { background: var(--butter); color: var(--ink); box-shadow: 0 5px 0 #C99B1F; }
.btn--butter:hover { box-shadow: 0 6px 0 #C99B1F; }
.btn--butter:active { box-shadow: 0 1px 0 #C99B1F; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--quiet:hover { background: rgba(42, 13, 22, .06); box-shadow: inset 0 0 0 2px var(--ink); transform: none; }
.btn--quiet:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--small { font-size: .95rem; padding: .85em 1.15em; border-radius: 12px; box-shadow: 0 4px 0 var(--lipstick-dark); white-space: nowrap; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.playbtn {
  flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--sleeve-ink); color: var(--sleeve);
  transition: transform .15s ease;
}
.playbtn:hover { transform: scale(1.06); }
.playbtn:active { transform: scale(.96); }
.playbtn svg { width: 24px; height: 24px; }
.playbtn .i-pause, .playbtn.is-playing .i-play { display: none; }
.playbtn.is-playing .i-pause { display: block; }

/* ---------- the record ---------- */
.record { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 18px 22px rgba(23, 14, 17, .32)); }
.record__disc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.record__sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 28deg,
    rgba(255,255,255,0) 0deg, rgba(255,255,255,.2) 22deg, rgba(255,255,255,0) 50deg,
    rgba(255,255,255,0) 180deg, rgba(255,255,255,.13) 204deg, rgba(255,255,255,0) 234deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 40%, #000 41%);
          mask: radial-gradient(circle closest-side, transparent 0 40%, #000 41%);
}
.record__label {
  position: absolute; left: 31%; top: 31%; width: 38%; height: 38%; overflow: visible;
  animation: spin 2.6s linear infinite paused;
}
.record.is-spinning .record__label { animation-play-state: running; }
.record__label-bg { fill: var(--label); transition: fill .5s; }
.record__label-ring { fill: none; stroke: var(--label-ink); stroke-opacity: .3; stroke-width: .8; }
.record__label-arc { font: 600 8.2px var(--body); letter-spacing: 1.5px; fill: var(--label-ink); transition: fill .5s; }
.record__label-name { font-family: var(--hand); fill: var(--label-ink); transition: fill .5s; }
.record__label-sub { font: 700 7.4px var(--body); letter-spacing: 1.6px; fill: var(--label-ink); transition: fill .5s; }
.record__hole { fill: var(--vinyl); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the sleeve ---------- */
.sleeve { position: relative; aspect-ratio: 1; container-type: inline-size; }
.sleeve__record {
  position: absolute; inset: 4%;
  transform: translateX(var(--peek, 40%));
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.sleeve.is-out .sleeve__record { --peek: 56%; }
.sleeve__cover {
  position: absolute; inset: 0; border-radius: 5px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 8cqw;
  background-color: var(--sleeve); color: var(--sleeve-ink);
  box-shadow: inset -16px 0 20px -16px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(0, 0, 0, .07), 0 34px 50px -30px rgba(42, 13, 22, .6);
  transition: background-color .5s, color .5s;
}
.sleeve__cover::after, .grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sleeve__imprint { font: 600 2.7cqw/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.sleeve__for { margin-top: auto; font: 900 6.4cqw/1 var(--display); }
.sleeve__name {
  font-family: var(--hand); line-height: 1.05; white-space: nowrap;
  font-size: calc(150cqw / max(var(--len, 5), 6));
  margin-top: 1cqw; transition: opacity .25s;
}
.sleeve__meta { margin-top: 5cqw; font: 600 2.7cqw/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.sleeve.is-swapping .sleeve__name, .sleeve.is-swapping .sleeve__meta { opacity: 0; }
.hype {
  position: absolute; top: 6cqw; right: 6cqw; width: 25cqw; height: 25cqw; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--label); color: var(--label-ink);
  font: 700 2.5cqw/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(12deg); transition: background-color .5s, color .5s;
}

/* ---------- announcement + nav ---------- */
.announce { background: var(--ink); color: #FBEDEA; text-align: center; font-size: .92rem; padding: 10px var(--gutter); }
.announce a { color: var(--butter); font-weight: 600; margin-left: .35em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 900 1.5rem/1 var(--display); text-decoration: none; color: inherit; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-color: currentColor; }

/* ---------- hero ---------- */
.hero { background: var(--blush); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
  padding-block: clamp(36px, 5vw, 72px) clamp(72px, 9vw, 128px);
}
.hero__title { font: 900 clamp(2.7rem, 6.2vw, 5.5rem)/.96 var(--display); letter-spacing: -.012em; }
.namefield { display: block; margin-top: .25rem; max-width: 600px; }
.namefield input {
  display: block; width: 100%; padding: 0 0 .04em; margin: 0;
  font-family: var(--hand); font-size: clamp(3.6rem, 9.4vw, 8rem); line-height: 1.12;
  color: var(--lipstick); background: none; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0;
  caret-color: var(--ink);
}
.namefield input::placeholder { color: var(--lipstick); opacity: .55; transition: opacity .25s; }
.namefield input.is-swapping::placeholder { opacity: 0; }
.namefield input:focus { outline: none; border-bottom-color: var(--lipstick); }
.namefield input:focus::placeholder { opacity: .28; }
.hero__hint { margin-top: 10px; color: var(--ink-3); font-size: .95rem; }
.hero__sub { margin-top: clamp(20px, 2.6vw, 32px); font-size: clamp(1.08rem, 1.45vw, 1.3rem); max-width: 31em; color: var(--ink-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(24px, 3vw, 36px); }
.link-play { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.link-play__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--blush); display: grid; place-items: center; transition: transform .15s; }
.link-play:hover .link-play__dot { transform: scale(1.08); }
.link-play__dot svg { width: 16px; height: 16px; margin-left: 2px; }
.hero__fine { margin-top: 22px; font-size: .95rem; color: var(--ink-2); }

.hero__visual { position: relative; }
.sleeve--hero { width: 68%; margin-left: 0; transform: rotate(-5deg); }
.sleeve--hero .sleeve__record { --peek: 6%; }
.sleeve--hero.is-ready .sleeve__record { --peek: 42%; }
.sleeve--hero.is-ready.is-out .sleeve__record { --peek: 56%; }

/* ---------- bands ---------- */
.band { padding-block: clamp(72px, 9vw, 132px); }
.band--paper { background: var(--paper); }
.band--butter { background: var(--butter); }
.band--vinyl { background: var(--vinyl); color: #FBEDEA; }
.band--vinyl .lede { color: rgba(251, 237, 234, .74); }
.band--lipstick { background: var(--lipstick); color: #FFF1EA; }

/* ---------- listen ---------- */
.crate { display: flex; align-items: flex-start; gap: 18px; margin-top: clamp(32px, 4vw, 52px); padding: 16px 4px 10px; overflow-x: auto; scrollbar-width: none; }
.crate::-webkit-scrollbar { display: none; }
.crate__item { flex: 0 0 auto; width: 136px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.crate__sleeve {
  display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1; padding: 12px; border-radius: 4px;
  background: var(--sleeve); color: var(--sleeve-ink); position: relative; overflow: hidden;
  box-shadow: inset -8px 0 10px -8px rgba(0, 0, 0, .3), 0 14px 20px -14px rgba(42, 13, 22, .55);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.crate__dot { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--label); box-shadow: inset 0 0 0 9px var(--label), inset 0 0 0 12px var(--sleeve); }
.crate__name { font-family: var(--hand); font-size: min(1.7rem, calc(236px / var(--len, 5))); line-height: 1.1; white-space: nowrap; }
.crate__meta { display: block; margin-top: 12px; color: var(--ink-2); }
.crate__item:hover .crate__sleeve { transform: translateY(-4px); }
.crate__item[aria-selected="true"] .crate__sleeve { transform: translateY(-10px) rotate(-2.5deg); }
.crate__item[aria-selected="true"] .crate__meta { color: var(--ink); }

.deck {
  margin-top: 14px; border-radius: 28px; position: relative; overflow: hidden;
  background: var(--sleeve); color: var(--sleeve-ink);
  padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(200px, 290px) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 60px); align-items: center;
  transition: background-color .5s, color .5s;
}
.deck > * { position: relative; z-index: 1; }
.deck__controls { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.deck__progress { flex: 1; min-width: 0; }
.deck__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 5px; border-radius: 3px; margin-top: 8px; background: color-mix(in srgb, var(--sleeve-ink) 26%, transparent); overflow: hidden; }
.bar__fill { height: 100%; width: 0; background: var(--sleeve-ink); border-radius: 3px; }
.deck__time { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; }
.deck__tag { opacity: .8; margin-bottom: 14px; }
.notecard {
  background: var(--note); color: var(--ink); padding: 24px 24px 28px; border-radius: 3px;
  transform: rotate(-1.6deg); box-shadow: 0 22px 30px -20px rgba(0, 0, 0, .55);
}
.notecard .deck__tag { color: var(--ink-3); opacity: 1; }
.notecard__text { font-family: var(--hand); font-size: clamp(1.3rem, 1.75vw, 1.55rem); line-height: 1.32; }
.notecard__from { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }
.lyrics { font: 500 clamp(1.1rem, 1.5vw, 1.36rem)/1.45 var(--body); }
.lyrics span { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.lyrics span + span { margin-top: .28em; }
.lyrics b { font-weight: 700; text-decoration: underline; text-decoration-color: var(--label); text-decoration-thickness: .14em; text-underline-offset: .2em; }
.deck__fine, .fine { font-size: .86rem; opacity: .75; margin-top: 18px; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__head { position: sticky; top: 40px; }
.how__head .btn { margin-top: 32px; }
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.track { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; column-gap: 18px; padding: 24px 0 26px; border-bottom: 1px solid rgba(42, 13, 22, .3); align-items: baseline; }
.track__no { font: 700 .82rem/1 var(--body); letter-spacing: .12em; }
.track__title { font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.2 var(--body); }
.track__time { font: 900 clamp(1.3rem, 2vw, 1.7rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.track__desc { grid-column: 2 / 3; margin-top: 8px; color: var(--ink-2); max-width: 33em; }

/* ---------- the gift moment ---------- */
.gift { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.phone {
  width: min(310px, 80vw); aspect-ratio: 9 / 18.6; margin-inline: auto; padding: 10px; border-radius: 44px;
  background: #0A0507; box-shadow: 0 0 0 2px #3B2A31, 0 50px 80px -30px #000; transform: rotate(-3deg);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: var(--sleeve); color: var(--sleeve-ink);
  padding: 30px 22px 20px; display: flex; flex-direction: column; text-align: center;
}
.phone__screen > * { position: relative; z-index: 1; }
.phone__brand { opacity: .8; font-size: .62rem; }
.phone__name { font-family: var(--hand); font-size: 3.3rem; line-height: 1; margin-top: 22px; }
.phone__line { margin-top: 6px; font-size: .98rem; }
.phone__record { width: 62%; margin: 18px auto 0; position: relative; }
.phone__play { position: absolute; right: -12%; bottom: -4%; width: 50px; height: 50px; border-radius: 50%; background: var(--sleeve-ink); color: var(--sleeve); display: grid; place-items: center; box-shadow: 0 8px 14px -6px rgba(0,0,0,.5); }
.phone__play svg { width: 18px; height: 18px; margin-left: 2px; }
.phone__lyrics { margin-top: 20px; font-size: .86rem; line-height: 1.5; }
.phone__lyrics span { display: block; opacity: .5; }
.phone__lyrics .is-now { opacity: 1; font-weight: 700; font-size: .95rem; }
.phone__note { margin-top: auto; background: var(--note); color: var(--ink); border-radius: 12px; padding: 12px 14px; text-align: left; font-family: var(--hand); font-size: 1.12rem; line-height: 1.25; transform: rotate(1.5deg); }
.perks { list-style: none; padding: 0; margin: clamp(32px, 4vw, 52px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 3vw, 44px); }
.perks h3 { font: 700 1.14rem/1.25 var(--body); color: var(--butter); }
.perks p { margin-top: 8px; color: rgba(251, 237, 234, .74); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(44px, 5vw, 64px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 30px 28px 32px; box-shadow: inset 0 0 0 1.5px var(--line); }
.plan--pick { background: var(--blush); box-shadow: inset 0 0 0 2px var(--ink); }
.plan__name { color: var(--ink-2); }
.plan__price { font: 900 clamp(3.2rem, 5vw, 4.4rem)/1 var(--display); margin-top: 16px; }
.plan__for { margin-top: 10px; color: var(--ink-2); min-height: 3.1em; }
.plan__list { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.plan__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.plan__list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--lipstick); }
.sticker {
  position: absolute; top: -22px; right: 22px; width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--butter); color: var(--ink);
  font: 700 .74rem/1.15 var(--body); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(11deg); box-shadow: 0 8px 14px -8px rgba(42, 13, 22, .55);
}
.plans__after { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.plans__after p { max-width: 38em; color: var(--ink-2); }
.promise { margin-top: clamp(40px, 5vw, 60px); padding: 26px 30px; border-radius: 18px; background: var(--butter); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.promise__seal { width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: var(--butter); display: grid; place-items: center; }
.promise__seal svg { width: 28px; height: 28px; }
.promise strong { display: block; font-size: 1.14rem; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.14rem/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2.5px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- final call ---------- */
.final { text-align: center; position: relative; overflow: hidden; }
.final .h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.final__field { display: block; max-width: 520px; margin: 26px auto 0; }
.final__field input {
  display: block; width: 100%; text-align: center; background: none; border: 0; border-bottom: 3px solid #FFF1EA; border-radius: 0; padding: 0 0 .04em;
  font-family: var(--hand); font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: 1.12; color: var(--butter); caret-color: #fff;
}
.final__field input::placeholder { color: var(--butter); opacity: .5; }
.final__field input:focus { outline: none; border-bottom-color: var(--butter); }
.final .btn { margin-top: 36px; }
.final__fine { margin-top: 20px; opacity: .88; }

/* ---------- footer ---------- */
.footer { background: var(--vinyl); color: rgba(251, 237, 234, .74); padding-block: 52px 40px; font-size: .95rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer .logo { color: #FBEDEA; }
.footer__tag { margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; align-content: start; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #FBEDEA; text-decoration: underline; }
.footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(251, 237, 234, .16); display: grid; gap: 8px; font-size: .86rem; max-width: 62em; }
.footer__proto { color: var(--butter); }

/* =====================================================================
   The builder (create.html)
   ===================================================================== */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 41%); min-height: 100vh; min-height: 100dvh; }
.builder__main { padding: 0 var(--gutter) 64px; }
.builder__inner { max-width: 620px; margin-inline: auto; }
.builder__bar { display: flex; align-items: center; gap: 20px; padding-block: 22px; }
.builder__exit { margin-left: auto; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.builder__exit:hover { color: var(--ink); text-decoration: underline; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 10px 0 0; }
.steps li { padding-top: 10px; border-top: 4px solid var(--line); color: var(--ink-3); transition: border-color .3s, color .3s; }
.steps li.is-done { border-color: var(--ink); color: var(--ink-2); }
.steps li.is-now { border-color: var(--lipstick); color: var(--ink); }

.step { padding-top: clamp(32px, 5vw, 60px); }
.step[hidden] { display: none; }
.step__title { font: 900 clamp(2.1rem, 4.4vw, 3.3rem)/1.03 var(--display); letter-spacing: -.008em; text-wrap: balance; }
.step__title:focus { outline: none; }
.step__title em { font-family: var(--hand); font-style: normal; font-size: 1.22em; color: var(--lipstick); line-height: .9; }
.step__sub { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 32em; }
.step__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 40px; }

.field { display: block; border: 0; padding: 0; margin: 30px 0 0; min-width: 0; }
.field__label, .field > legend { display: block; padding: 0; font-weight: 600; font-size: 1.04rem; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field__hint { margin-top: 5px; color: var(--ink-2); font-size: .94rem; }
.input, .textarea {
  display: block; width: 100%; margin-top: 10px; padding: 15px 16px; font-size: 1.1rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
}
.textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: 3px solid var(--lipstick); outline-offset: 2px; }
.input--hand { font-family: var(--hand); font-size: 2rem; line-height: 1.2; padding-block: 8px; color: var(--lipstick); }
.input--hand::placeholder { color: var(--lipstick); opacity: .4; }
.field__error { margin-top: 8px; color: var(--lipstick-dark); font-weight: 600; font-size: .95rem; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 500; transition: background-color .15s, color .15s; }
.chip:hover span { background: var(--blush); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--lipstick); outline-offset: 2px; }
.chip--prompt span { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); font-size: .95rem; padding: 8px 14px; }
button.chip { border: 0; background: none; padding: 0; }

.meter { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.meter__bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: var(--lipstick); border-radius: 3px; transition: width .3s; }
.meter__text { font-size: .92rem; font-weight: 600; color: var(--ink-2); }

.genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.genre { position: relative; }
.genre:last-child { grid-column: 1 / -1; }
.genre input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.genre__body { display: block; height: 100%; padding: 14px 52px 16px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .15s, color .15s; }
.genre__name { display: block; font-weight: 700; }
.genre__desc { display: block; margin-top: 3px; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.genre:hover .genre__body { background: var(--blush); }
.genre input:checked + .genre__body { background: var(--ink); color: var(--paper); }
.genre input:checked + .genre__body .genre__desc { color: rgba(255, 248, 246, .75); }
.genre input:focus-visible + .genre__body { outline: 3px solid var(--lipstick); outline-offset: 2px; }
.genre__play { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--lipstick); color: #fff; }
.genre__play svg { width: 13px; height: 13px; }
.genre__play .i-pause, .genre__play.is-playing .i-play { display: none; }
.genre__play.is-playing .i-pause { display: block; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.swatch { position: relative; width: 46px; height: 46px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 6px; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(42, 13, 22, .25); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); transform: rotate(-4deg); }
.swatch input:focus-visible + span { outline: 3px solid var(--lipstick); outline-offset: 6px; }

/* side panel: the record being made */
.builder__side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--blush); background: color-mix(in srgb, var(--sleeve) 24%, var(--paper)); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 4vw, 56px);
  transition: background-color .5s;
}
.builder__side .sleeve { width: min(62%, 330px); transform: rotate(-4deg); }
.liner { margin: clamp(36px, 6vh, 64px) 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 420px; }
.liner div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.liner dt { color: var(--ink-2); }
.liner dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.liner dd.is-empty { color: var(--ink-3); font-weight: 400; }

/* photos */
.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border: 2px dashed var(--ink); border-radius: 18px; background: #fff; cursor: pointer; transition: background-color .15s; }
.dropzone:hover, .dropzone.is-over { background: var(--blush); }
.dropzone:focus-within { outline: 3px solid var(--lipstick); outline-offset: 2px; }
.dropzone svg { width: 38px; height: 38px; color: var(--lipstick); }
.dropzone strong { font-size: 1.14rem; }
.dropzone span { color: var(--ink-2); font-size: .95rem; }
.thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--blush); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(23, 14, 17, .82); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 17px; line-height: 1; }

/* percentage while the song is made */
.pct { margin-top: 34px; }
.pct__num { font: 900 clamp(5rem, 13vw, 8.6rem)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pct__num small { font-size: .42em; margin-left: .08em; color: var(--lipstick); }
.pct__bar { height: 10px; border-radius: 5px; background: var(--line); margin-top: 18px; overflow: hidden; }
.pct__fill { height: 100%; width: 0; background: var(--lipstick); border-radius: 5px; }

/* preview with the lyric video */
.preview { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 22px; margin-top: 30px; align-items: start; }
.preview .player { margin-top: 0; }
.video { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--sleeve); color: var(--sleeve-ink); box-shadow: 0 24px 40px -24px rgba(42, 13, 22, .6); transition: background-color .5s; }
.video__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; transform: scale(1.02); }
.video__slide.is-on { opacity: 1; }
.video.is-playing .video__slide { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }
.video__plain { position: absolute; left: 50%; top: 47%; width: 62%; transform: translate(-50%, -50%); }
.video.has-photos .video__plain { display: none; }
.video.has-photos { color: #fff; }
.video.has-photos::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(23, 14, 17, .86), rgba(23, 14, 17, 0) 58%), linear-gradient(to bottom, rgba(23, 14, 17, .5), rgba(23, 14, 17, 0) 26%); }
.video__badge { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 5px 9px; border-radius: 999px; background: rgba(23, 14, 17, .72); color: #fff; font-size: .62rem; }
.video__name { position: absolute; z-index: 2; top: 10px; left: 16px; max-width: 62%; font-family: var(--hand); font-size: 2rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video__line { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; font: 700 1.14rem/1.3 var(--body); text-wrap: balance; transition: opacity .2s; }
.video__line.is-swapping { opacity: 0; }

/* making + preview */
.making { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.making li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; color: var(--ink-3); font-size: 1.14rem; transition: color .3s; }
.making li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: all .3s; }
.making li.is-now { color: var(--ink); font-weight: 600; }
.making li.is-now::before { box-shadow: inset 0 0 0 2px var(--lipstick); background: radial-gradient(circle, var(--lipstick) 0 38%, transparent 42%); animation: pulse 1s ease-in-out infinite; }
.making li.is-done { color: var(--ink-2); }
.making li.is-done::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF8F6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
@keyframes pulse { 50% { transform: scale(.82); } }

.player { margin-top: 30px; padding: 20px 22px; border-radius: 18px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 18px; --sleeve: var(--ink); --sleeve-ink: var(--paper); }
.player .deck__progress { flex: 1; }
.lyricscard { margin-top: 18px; padding: 24px 26px 26px; border-radius: 18px; background: var(--blush); }
.lyricscard .lyrics { margin-top: 12px; font-size: 1.22rem; }
.lyricscard .lyrics b { text-decoration-color: var(--lipstick); }

.formats { border: 0; padding: 0; margin: 34px 0 0; min-width: 0; }
.formats legend { padding: 0; font-weight: 600; font-size: 1.04rem; }
.format { position: relative; display: block; margin-top: 10px; cursor: pointer; }
.format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.format__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background-color .15s; }
.format__name { font-weight: 700; }
.format__pick { margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--butter); font-size: .68rem; vertical-align: 2px; }
.format__price { font: 900 1.5rem/1 var(--display); }
.format__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: .94rem; }
.format input:checked + .format__body { background: var(--blush); box-shadow: inset 0 0 0 2.5px var(--ink); }
.format input:focus-visible + .format__body { outline: 3px solid var(--lipstick); outline-offset: 2px; }

.failbox { margin-top: 30px; padding: 24px 26px; border-radius: 18px; background: var(--blush); display: grid; gap: 16px; justify-items: start; }
.failbox[hidden] { display: none; }
.failbox p { font-weight: 600; font-size: 1.1rem; }
.copyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; }
.copyrow .input { margin-top: 0; font-size: .98rem; }
.fulllyrics .caps { margin-top: 18px; color: var(--ink-2); }
.fulllyrics .lyrics { margin-top: 6px; font-size: 1.12rem; }
.fulllyrics .lyrics b { text-decoration-color: var(--lipstick); }
a.btn[hidden], .btn[hidden] { display: none; }

/* =====================================================================
   Darčeková stránka (dar.html): otvára ju obdarovaný
   ===================================================================== */
.giftpage { background: var(--vinyl); }
.gift-stage {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background: var(--sleeve); color: var(--sleeve-ink);
  display: grid; justify-items: center; padding: clamp(28px, 6vw, 64px) var(--gutter) 48px;
  transition: background-color .6s;
}
.gift-stage .video__slide { position: fixed; }
.gift-stage.has-photos { color: #fff; }
.gift-stage.has-photos::before { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(23, 14, 17, .62); }
.gift-stage.is-playing .video__slide { animation: drift 12s ease-in-out infinite alternate; }
.gift-col { position: relative; z-index: 2; width: min(100%, 460px); text-align: center; display: grid; justify-items: center; align-content: start; }
.gift-col[hidden] { display: none; }
.gift-brand { opacity: .8; }
.gift-name { margin-top: clamp(20px, 5vh, 44px); font-family: var(--hand); font-weight: 400; font-size: clamp(3.4rem, 15vw, 5.6rem); line-height: 1; overflow-wrap: anywhere; }
.gift-from { margin-top: 10px; font-size: 1.2rem; }
.gift-record { position: relative; width: min(74%, 300px); margin-top: clamp(24px, 5vh, 40px); }
.gift-play { position: absolute; right: -6%; bottom: 0; width: 76px; height: 76px; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); }
.gift-play svg { width: 30px; height: 30px; }
.gift-line { min-height: 1.4em; margin-top: 26px; font: 700 1.28rem/1.3 var(--body); text-wrap: balance; }
.gift-progress { width: 100%; margin-top: 10px; }
.gift-lyrics { width: 100%; margin-top: 30px; padding: 22px 24px 26px; border-radius: 18px; text-align: left; background: color-mix(in srgb, var(--sleeve-ink) 12%, transparent); }
.gift-stage.has-photos .gift-lyrics { background: rgba(255, 255, 255, .12); }
.gift-lyrics .caps { margin-top: 16px; opacity: .75; }
.gift-lyrics .caps:first-child { margin-top: 0; }
.gift-lyrics .lyrics { margin-top: 6px; font-size: 1.08rem; }
.gift-col .btn { margin-top: 28px; }
.gift-foot { margin-top: 26px; font-size: .88rem; opacity: .82; }
.gift-foot a { font-weight: 600; }
.giftpage :focus-visible { outline-color: var(--sleeve-ink); }

/* =====================================================================
   Právne stránky (obchodné podmienky, ochrana údajov, právne informácie)
   ===================================================================== */
.legal-bar { background: var(--blush); }
.legal-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 20px; }
.legal-bar__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; font-weight: 500; }
.legal-bar__nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.legal-bar__nav a:hover, .legal-bar__nav a[aria-current="page"] { border-color: currentColor; }
.legal { max-width: 780px; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 110px); }
.legal .h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.legal__meta { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
.legal__lead { margin-top: 26px; font-size: 1.16rem; color: var(--ink-2); }
.legal h2 { margin-top: 44px; font: 700 1.36rem/1.25 var(--body); scroll-margin-top: 24px; }
.legal p, .legal ol, .legal ul { margin-top: 14px; }
.legal ol, .legal ul { padding-left: 1.35em; display: grid; gap: 10px; }
.legal a { color: var(--lipstick-dark); font-weight: 600; }
.legal__table { margin-top: 16px; overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; border-bottom: 2px solid var(--ink); }
/* miesta, ktoré musí doplniť prevádzkovateľ, kým stránka pôjde naostro */
mark.todo { background: var(--butter); color: var(--ink); padding: .08em .3em; border-radius: 4px; font-weight: 600; }

.consent { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lipstick); cursor: pointer; }
.consent a, .fine a { color: var(--lipstick-dark); font-weight: 600; }
.consent.is-missing { box-shadow: inset 0 0 0 2.5px var(--lipstick); }

.sheet { border: 0; padding: 0; border-radius: 24px; max-width: min(480px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(23, 14, 17, .6); }
.sheet::backdrop { background: rgba(23, 14, 17, .6); }
.sheet__body { padding: 32px 30px 30px; }
.sheet__title { font: 900 1.8rem/1.1 var(--display); }
.sheet__body p { margin-top: 12px; color: var(--ink-2); }
.sheet__body .btn { margin-top: 24px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .deck { grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); }
  .deck__words { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan__for { min-height: 0; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 20px; }
  .sleeve--hero { width: 58%; margin-left: 4%; }
  .hero__visual { margin-top: 16px; }
  .how, .gift, .faq { grid-template-columns: 1fr; }
  .how__head { position: static; }
  .gift__phone { order: 2; }
  .builder { grid-template-columns: 1fr; }
  .builder__side { position: static; height: auto; order: -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; padding: 18px var(--gutter); }
  .builder__side .sleeve { width: 92px; flex: none; transform: rotate(-4deg); }
  .liner { margin: 0 0 0 48px; border: 0; flex: 1; min-width: 0; }
  .liner dd { overflow-wrap: break-word; }
  .liner div { border: 0; padding: 1px 0; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 8px; font-size: .9rem; }
  .liner dt { font-size: .6rem; letter-spacing: .1em; }
  .liner div:nth-child(n+4) { display: none; }
  .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .deck { grid-template-columns: 1fr; border-radius: 22px; }
  .deck__player { max-width: 250px; }
  .perks { grid-template-columns: 1fr; }
  .track { grid-template-columns: 2.4rem minmax(0, 1fr) auto; column-gap: 12px; }
  .promise { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .announce { font-size: .86rem; }
  .steps li { font-size: .6rem; letter-spacing: .08em; }
  .preview { grid-template-columns: 1fr; }
  .video { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
