/* Our First Song — home page. Three colors only: oxblood, paper, ink. One font. */

/* ---------- 1. The crate (oxblood) ---------- */
.store { background: var(--ox); color: var(--paper); padding: 28px 0 48px; overflow: hidden; }
.store-grid {
  display: grid; gap: 0 56px; align-items: center;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title crate" "copy crate";
}
.store h1 {
  grid-area: title; align-self: end; color: var(--paper); margin: 0 0 18px;
  font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 6.4vw, 88px); line-height: .86; letter-spacing: -.5px;
}
.pitch-copy { grid-area: copy; align-self: start; max-width: 480px; }
.store .lede { font-size: 19px; line-height: 1.45; margin-bottom: 22px; }
.btn.btn-buy { display: block; width: 100%; text-align: center; white-space: normal; font-size: clamp(22px, 2.4vw, 28px); padding: 19px 20px; }
.store .btn-buy { background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.store .btn-buy:hover { box-shadow: 8px 8px 0 var(--ink); }
.back46 { font-weight: 800; font-size: 17px; margin: 18px 0 2px; }
.store .fine { font-size: 15px; margin: 0; }

/* crate sizing: --s = sleeve size, --out = how far the record slides out while playing */
.crate-zone { grid-area: crate; --s: min(360px, 31vw); --out: .5; }
.crate { position: relative; width: calc(var(--s) * (var(--out) + .92)); height: calc(40px + var(--s) * 1.03); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sleeves { position: absolute; left: 0; top: 40px; width: var(--s); height: var(--s); container-type: size; }

/* the record: black with a grey shine, oxblood label. Peeks out a little; slides out and spins while playing. */
.vinyl {
  position: absolute; z-index: 39; top: calc(40px + var(--s) * .04); left: calc(var(--s) * .14);
  width: calc(var(--s) * .92); height: calc(var(--s) * .92); border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, .16) 12%, transparent 17% 58%, rgba(255, 255, 255, .11) 62%, transparent 67%),
    repeating-radial-gradient(circle, #050505 0 1px, #1b1b1b 1.4px 2.4px, #0a0a0a 2.8px 3.4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45), inset 0 0 0 3px #000;
  transition: left .45s cubic-bezier(.3, .7, .2, 1);
}
.vinyl span {
  position: absolute; inset: 33%; border-radius: 50%; background: var(--ox); display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px rgba(244, 239, 230, .85), inset 0 0 0 7px var(--ox);
}
.vinyl span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--paper); }
.vinyl i { font-style: normal; color: var(--paper); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: calc(var(--s) * .034); letter-spacing: .06em; transform: translateY(-120%); white-space: nowrap; }
.crate.playing .vinyl { left: calc(var(--s) * var(--out)); }
.crate.playing .vinyl span { animation: spin 1.33s linear infinite; }

/* sleeves */
.sleeve {
  position: absolute; inset: 0; overflow: hidden; border-radius: 2px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2cqw; padding: 6cqw 7cqw 20cqw;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .36s cubic-bezier(.3, .7, .2, 1);
}
.sleeve > * { margin: 0; }
.sleeve.light { background: var(--paper); color: var(--ink); }
.sleeve.dark { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(244, 239, 230, .14); }
.sleeve[data-pos="0"] { transform: rotate(-1deg); }
.sleeve[data-pos="1"] { transform: translate(8px, -16px) rotate(2deg); }
.sleeve[data-pos="2"] { transform: translate(-6px, -30px) rotate(-2.5deg); }
.sleeve[data-pos="back"] { transform: translate(0, -34px); }
.sleeve.lift { transform: translate(-3%, -62%) rotate(-6deg); }

.sleeve .no { position: absolute; top: 6cqw; left: 7cqw; font-weight: 700; font-size: max(12px, 4.2cqw); letter-spacing: .1em; text-transform: uppercase; }
.sleeve .names { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 12.5cqw; line-height: .9; color: inherit; }
.sleeve .track { font-weight: 700; font-size: max(13px, 5.4cqw); line-height: 1.2; }
.sleeve.light .track { color: var(--ox); }

/* the play button: big, top-left of every celebrity sleeve */
.play {
  position: absolute; top: 15cqw; left: 7cqw; width: 22cqw; height: 22cqw; border-radius: 50%; cursor: pointer;
  border: 1cqw solid currentColor; background: transparent; color: inherit; padding: 0;
}
.play::before { /* triangle */
  content: ''; position: absolute; left: 50%; top: 50%; margin: -4.4cqw 0 0 -2.2cqw;
  border-style: solid; border-width: 4.4cqw 0 4.4cqw 7.4cqw; border-color: transparent transparent transparent currentColor;
}
.play:hover { background: rgba(127, 127, 127, .12); }
.play:focus-visible { outline: 3px solid var(--ox); outline-offset: 3px; }
.sleeve.dark .play:focus-visible { outline-color: var(--paper); }
.is-playing .play::before { /* pause bars */
  border: 0; width: 2.4cqw; height: 8.4cqw; margin: -4.2cqw 0 0 -3.6cqw; background: currentColor; box-shadow: 4.8cqw 0 0 currentColor;
}

/* one simple drawing per sleeve, never on top of text */
.beads { position: absolute; top: 22.5cqw; left: 35cqw; display: flex; gap: 1.3cqw; align-items: center; }
.beads b { width: 7.4cqw; height: 7.4cqw; display: grid; place-items: center; border-radius: 1.6cqw; background: var(--paper); color: var(--ink); font-size: 4.6cqw; }
.beads b:nth-child(2n) { background: var(--ox); color: var(--paper); }
.beads i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--paper); }
.big { position: absolute; top: 19cqw; right: 7cqw; font-stretch: 62%; font-weight: 900; font-size: 34cqw; line-height: 1; color: var(--ox); letter-spacing: -1cqw; }
.route { position: absolute; top: 42cqw; left: 7cqw; right: 7cqw; display: flex; align-items: center; gap: 3cqw; font-stretch: 62%; font-weight: 900; font-size: 12cqw; line-height: 1; }
.route i { flex: 1; border-top: 1.2cqw dotted var(--paper); }
.eq { position: absolute; top: 15cqw; right: 7cqw; width: 46cqw; height: 22cqw; display: flex; align-items: flex-end; gap: 2cqw; }
.eq i { flex: 1; background: var(--ox); height: 40%; transform-origin: bottom; }
.eq i:nth-child(2) { height: 75%; } .eq i:nth-child(3) { height: 55%; } .eq i:nth-child(4) { height: 100%; }
.eq i:nth-child(5) { height: 65%; } .eq i:nth-child(6) { height: 85%; } .eq i:nth-child(7) { height: 45%; }
.is-playing .eq i { animation: bounce .5s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2n) { animation-delay: .25s; }
@keyframes bounce { to { transform: scaleY(.45); } }

/* yours */
.sleeve.yours { justify-content: center; padding-top: 14cqw; }
.yours .names { font-size: 16cqw; color: var(--ox); }
.yours input {
  width: 100%; margin: 1cqw 0 3cqw; padding: 2.4cqw 3.4cqw; border: .8cqw solid var(--ink); border-radius: 2px; background: #fffdf9; color: var(--ink);
  font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 10cqw; line-height: 1;
}
.yours input::placeholder { color: rgba(22, 18, 16, .35); }
.yours input:focus { outline: none; border-color: var(--ox); }

/* black crate */
.crate-front {
  position: absolute; z-index: 70; left: -10px; right: -10px; top: calc(40px + var(--s) * .86); height: calc(var(--s) * .17);
  background: var(--ink); color: var(--paper); border-radius: 2px; border-top: 2px solid rgba(244, 239, 230, .18);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
}

.crate-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; width: calc(var(--s) * (var(--out) + .92)); }
.flip { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--paper); background: transparent; color: var(--paper); font-size: 20px; cursor: pointer; }
.flip:hover { background: var(--paper); color: var(--ox); }
.flip:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.count { margin: 0; min-width: 96px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.crate-note { margin: 8px 0 0; width: calc(var(--s) * (var(--out) + .92)); text-align: center; font-size: 14px; }

/* ---------- 2. How it works, guarantee, questions (paper) ---------- */
.block { padding: 48px 0 56px; }
.block h2 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 44px); line-height: .9; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps .n { grid-row: span 2; font-stretch: 62%; font-weight: 900; font-size: 30px; line-height: 1; color: var(--ox); }
.steps b { font-size: 18px; line-height: 1.25; }
.steps span:last-child { font-size: 16px; color: var(--muted); }
.guarantee { font-size: 18px; margin: 0 0 40px; }
.faq { margin-bottom: 32px; }
.faq details { border-top: 2px solid var(--ink); padding: 13px 0; }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ox); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 8px 0 0; }
.btn-final { max-width: 480px; }

/* ---------- Sticky buy bar (phones only) ---------- */
.buy-bar { display: none; }

@media (max-width: 860px) {
  .store { padding: 16px 0 32px; }
  .store-grid { grid-template-columns: 1fr; grid-template-areas: "title" "crate" "copy"; }
  .store h1 { font-size: clamp(40px, 11.5vw, 72px); margin-bottom: 6px; }
  .crate-zone { --s: min(330px, 66vw); --out: .3; justify-self: center; }
  .pitch-copy { justify-self: center; width: 100%; max-width: 560px; margin-top: 22px; }
  .store .lede { font-size: 17px; margin-bottom: 6px; }
  .pitch-copy .btn-buy, .pitch-copy .back46 { display: none; }
  .block { padding: 36px 0 40px; }
  .btn-final { display: none; }

  body.home { padding-bottom: 112px; }
  .buy-bar {
    display: block; position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
    background: var(--paper); border-top: 2px solid var(--ink);
    padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .buy-bar .btn-buy { font-size: 21px; padding: 15px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .buy-bar .btn-buy.long { font-size: 16px; }
  .buy-bar p { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  .crate.playing .vinyl span, .is-playing .eq i { animation: none; }
  .sleeve, .vinyl { transition: none; }
}
