/* ============================================================
   LP-C — Canções para Você · "O Ateliê"
   Conceito: um palco escuro onde vive um disco de vinil que toca
   de verdade, e o pedido é uma ficha de encomenda de papel — como
   encomendar uma joia. Estrutura enxuta (1 dobra), craft máximo.
   Contrato do script.js preservado.
   ============================================================ */

:root {
  --night-0: #0e070f;
  --night-1: #1a0f1c;
  --night-2: #261326;
  --cream: #fbf4e6;
  --cream-2: #f2e7d0;
  --paper-ink: #2f1e10;
  --paper-muted: #85705a;
  --paper-line: rgba(47, 30, 16, 0.16);
  --wine: #7c1f45;
  --wine-deep: #4d1029;
  --gold: #d9b45a;
  --gold-deep: #8a6a1f;
  --gold-hi: #f6e4ab;
  --ink: #f4ecf2;
  --ink-soft: rgba(244, 236, 242, 0.75);
  --ink-dim: rgba(244, 236, 242, 0.5);
  --green: #1c7a4d;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --foil: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold) 38%, var(--gold-hi) 50%, var(--gold) 62%, var(--gold-deep) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night-0); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

img { max-width: 100%; }

.is-hidden { display: none !important; }
.field--hidden { display: none !important; }

/* ============ PALCO ============ */
.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(130% 100% at 75% -20%, var(--night-2) 0%, var(--night-1) 42%, var(--night-0) 100%);
}

/* Holofote que segue o cursor (desktop) */
.stage__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 560px at var(--mx, 70%) var(--my, 30%), rgba(217, 180, 90, 0.10), transparent 65%);
  transition: opacity 0.4s ease;
}

.stage__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.stage__glow--warm {
  width: 640px; height: 640px;
  left: -200px; top: -240px;
  background: radial-gradient(circle, rgba(217, 180, 90, 0.20), transparent 65%);
  animation: drift-a 30s ease-in-out infinite alternate;
}

.stage__glow--cool {
  width: 700px; height: 700px;
  right: -260px; bottom: -300px;
  background: radial-gradient(circle, rgba(124, 31, 69, 0.30), transparent 65%);
  animation: drift-b 36s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(80px, 70px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-70px, -60px) scale(0.94); } }

/* Poeira de luz subindo devagar */
.stage__dust span {
  position: absolute;
  left: var(--x);
  bottom: -4%;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px 2px rgba(246, 228, 171, 0.4);
  opacity: 0;
  animation: dust var(--d) linear infinite;
}

@keyframes dust {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: var(--o); }
  90%  { opacity: calc(var(--o) * 0.5); }
  100% { transform: translateY(-108vh) translateX(24px); opacity: 0; }
}

.stage__grain {
  position: absolute;
  inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.stage__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(8, 4, 9, 0.55) 100%);
}

/* ============ ENTRADA ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 1s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* A vitrola usa fade próprio: o transform dela pertence à profundidade (mouse) */
.turntable.reveal {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  animation-name: reveal-fade;
}

@keyframes reveal-fade { to { opacity: 1; } }

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 52px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 6px 22px rgba(0, 0, 0, 0.5);
}

.brand__name {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__name em { font-style: italic; color: var(--gold); }

.topbar__right { display: flex; align-items: center; gap: 16px; }

.topbar__help {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topbar__help:hover { color: var(--gold-hi); border-color: var(--gold); }

.topbar__price { text-align: right; line-height: 1.2; }

.topbar__price span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.topbar__price strong {
  font-family: "Fraunces", serif;
  font-size: 17px;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 460px) {
  .brand__name { font-size: 13px; white-space: nowrap; }
  .brand__mark { width: 32px; height: 32px; }
  .topbar__help { font-size: 11px; padding: 6px 10px; }
  .topbar__price span { display: none; }
  .topbar__price strong { font-size: 13.5px; }
  .topbar__right { gap: 8px; }
}

/* ============ HERO ============ */
.hero {
  display: grid;
  gap: clamp(30px, 4.5vw, 64px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 40px) clamp(16px, 4vw, 52px) 64px;
  align-items: start;
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 560px);
    padding-top: clamp(26px, 4vw, 58px);
  }
  .hero__copy { position: sticky; top: 32px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 20px;
}

.eyebrow__rule {
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 56px);
  margin-bottom: 18px;
}

.hero h1 span { display: block; }

.h1-foil em {
  font-style: italic;
  font-weight: 600;
  background: var(--foil);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-shine 5.5s ease-in-out infinite;
}

@keyframes foil-shine {
  0%, 35%  { background-position: 0% center; }
  55%, 68% { background-position: 130% center; }
  100%     { background-position: 220% center; }
}

.hero__lead {
  font-size: clamp(15.5px, 1.9vw, 18px);
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 30px;
}

/* ============ A VITROLA ============ */
.turntable {
  position: relative;
  margin: 0;
  width: fit-content;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.vinyl {
  position: relative;
  display: block;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0a070c 0 1.3px, #171019 1.3px 2.7px, #0e090f 2.7px 4px),
    #0a070c;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 90px rgba(217, 180, 90, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.vinyl:hover {
  transform: scale(1.02);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 110px rgba(217, 180, 90, 0.14);
}

/* Reflexo anisotrópico girando devagar — o "brilho de vinil de verdade" */
.vinyl__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 28deg,
    rgba(255, 255, 255, 0.12) 45deg,
    transparent 62deg 148deg,
    rgba(246, 228, 171, 0.07) 168deg,
    transparent 188deg 268deg,
    rgba(255, 255, 255, 0.08) 285deg,
    transparent 302deg 360deg
  );
  animation: sheen-turn 16s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sheen-turn { to { transform: rotate(360deg); } }

/* Selo central */
.vinyl__label {
  position: absolute;
  inset: 50%;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(150deg, #a4823a, #6c4f16 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 26px rgba(0, 0, 0, 0.35);
}

/* texto do selo afastado do furo central */
.vinyl__brand { position: absolute; top: 15%; left: 8%; right: 8%; }
.vinyl__title { position: absolute; bottom: 25%; left: 6%; right: 6%; }
.vinyl__side  { position: absolute; bottom: 12%; left: 8%; right: 8%; }

.vinyl__brand {
  font-family: "Fraunces", serif;
  font-size: clamp(9px, 2vw, 11.5px);
  font-weight: 600;
  color: #241705;
  letter-spacing: 0.02em;
}

.vinyl__title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(11px, 2.6vw, 15px);
  color: #f9efd4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.vinyl__side {
  font-size: clamp(7px, 1.6vw, 8.5px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(36, 23, 5, 0.75);
}

.vinyl__hole {
  position: absolute;
  left: 50%; top: 50%;
  width: 4.5%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--night-0);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Disco gira quando toca */
.is-playing .vinyl { animation: vinyl-spin 3.4s linear infinite; }
.is-playing .vinyl__sheen { animation-duration: 3.4s; animation-direction: reverse; }

@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* Braço da agulha — geometria fixa, ancorada no canto do disco */
.tonearm {
  position: absolute;
  top: -14px;
  right: -38px;
  width: 86px;
  height: 216px;
  pointer-events: none;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45));
}

.tonearm__base {
  position: absolute;
  top: 0; right: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.3), transparent 45%),
    linear-gradient(150deg, #4a3d4e, #221826);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -4px 10px rgba(0, 0, 0, 0.4);
}

.tonearm__base::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #9d92a6, #3a2f40 70%);
}

.tonearm__arm {
  position: absolute;
  top: 25px;
  right: 22px;
  width: 6px;
  height: 168px;
  border-radius: 999px;
  transform-origin: 50% 0%;
  transform: rotate(-24deg);
  background: linear-gradient(180deg, #d8cfdd, #91879b 55%, #746881);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 1.15s var(--ease);
}

.tonearm__arm::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 17px;
  height: 34px;
  border-radius: 6px / 9px;
  background: linear-gradient(150deg, #46394d, #191021);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.is-playing .tonearm__arm { transform: rotate(3deg); }

/* Legenda + forma de onda */
.turntable__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.turntable__hintrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.turntable__playtag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 10px;
  color: #241705;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 0 0 rgba(217, 180, 90, 0.5);
  animation: pulse-ring 2.8s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(217, 180, 90, 0.45); }
  55%  { box-shadow: 0 0 0 13px rgba(217, 180, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 180, 90, 0); }
}

.turntable__hinttext strong { color: var(--gold-hi); font-weight: 700; }

.waveform {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
  margin-left: 2px;
}

.waveform i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--wine), var(--gold));
  transform: scaleY(0.16);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.is-playing .waveform i { animation: wave 1s ease-in-out infinite; }
.waveform i:nth-child(4n+1) { animation-delay: 0s; }
.waveform i:nth-child(4n+2) { animation-delay: 0.14s; }
.waveform i:nth-child(4n+3) { animation-delay: 0.28s; }
.waveform i:nth-child(4n+4) { animation-delay: 0.42s; }
.waveform i:nth-child(3n)   { animation-duration: 0.8s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1); }
}

/* Garantias em linha editorial */
.assurances {
  list-style: none;
  display: flex;
  gap: clamp(16px, 3vw, 30px);
  padding: 22px 0 0;
  margin: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.assurances li { display: flex; flex-direction: column; gap: 2px; }

.assurances strong {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.assurances span { font-size: 12.5px; color: var(--ink-dim); }

/* ============ A FICHA DE ENCOMENDA (papel) ============ */
.composer { position: relative; }

/* Selo de cera dourado mordendo o topo do papel */
.paper-clip {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 46px; height: 46px;
  border-radius: 50%;
  z-index: 2;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 40%),
    radial-gradient(circle at 50% 50%, var(--gold) 0 62%, var(--gold-deep) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(138, 106, 31, 0.6);
}

.paper-clip::after {
  content: "♪";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #241705;
}

.steps {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.step {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
}

.step.is-active {
  color: #241705;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold));
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(217, 180, 90, 0.3);
}

/* O papel */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: 18px;
  color: var(--paper-ink);
  background: linear-gradient(172deg, #fdf8ec 0%, var(--cream) 45%, var(--cream-2) 100%);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: paper-in 0.7s var(--ease);
}

/* Textura do papel */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23p)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes paper-in {
  from { opacity: 0; transform: translateY(16px) rotate(0.4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

.panel__header {
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paper-line);
}

.kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 6px;
  background: linear-gradient(105deg, var(--gold-deep), #b8933f 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel__header h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
  color: var(--paper-ink);
}

/* Campos sobre papel */
.field { display: flex; flex-direction: column; gap: 7px; }

.field > span { font-size: 13px; font-weight: 700; color: var(--paper-ink); }
.field > span small { font-weight: 500; color: var(--paper-muted); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--paper-ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(47, 30, 16, 0.35); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c1f45' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wine);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 31, 69, 0.12);
}

.field textarea { min-height: 118px; resize: vertical; }

.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

@media (min-width: 480px) {
  .segmented { grid-template-columns: repeat(4, 1fr); }
  .segmented--voice { grid-template-columns: repeat(2, 1fr); }
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--paper-line);
  border-radius: 11px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease);
}

.segmented label:hover { border-color: rgba(124, 31, 69, 0.4); }

.segmented label:has(input:checked) {
  color: var(--cream);
  background: linear-gradient(145deg, var(--wine), var(--wine-deep));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 31, 69, 0.35);
  transform: translateY(-1px);
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}

.legal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--paper-muted);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--paper-line);
  border-radius: 11px;
  padding: 11px 12px;
}

.legal-consent input { margin-top: 2px; accent-color: var(--wine); flex: none; width: 16px; height: 16px; }
.legal-consent a { color: var(--wine); font-weight: 600; }

/* CTA vinho com fio dourado e brilho */
.primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 16.5px;
  color: #fdf3e4;
  background: linear-gradient(145deg, #93295574 0%, transparent), linear-gradient(145deg, var(--wine), var(--wine-deep));
  border: 1px solid rgba(217, 180, 90, 0.55);
  border-radius: 999px;
  padding: 17px 28px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 16px 38px rgba(77, 16, 41, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 42%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(246, 228, 171, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4.6s ease-in-out infinite;
}

@keyframes shine {
  0%, 58% { left: -80%; }
  78%, 100% { left: 135%; }
}

.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(77, 16, 41, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.primary:disabled, .primary.is-disabled { opacity: 0.55; cursor: wait; transform: none; }

.primary--buy {
  color: #eafff3;
  background: linear-gradient(145deg, #239660, #10502f);
  border-color: rgba(127, 232, 180, 0.4);
  box-shadow: 0 16px 38px rgba(16, 80, 47, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ghost {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--paper-muted);
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ghost:hover { color: var(--paper-ink); border-color: rgba(47, 30, 16, 0.4); }

.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 12px;
  font-style: italic;
  font-family: "Fraunces", serif;
  color: var(--paper-muted);
}

.seal i { font-style: normal; color: var(--gold-deep); }

/* ============ PAINEL: GERANDO (sobre papel) ============ */
.generation-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border-radius: 14px;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(124, 31, 69, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.5);
  border: 1px solid var(--paper-line);
  overflow: hidden;
}

.falling-notes { position: absolute; inset: 0; pointer-events: none; }

.falling-notes span {
  position: absolute;
  top: -14%;
  color: rgba(138, 106, 31, 0.5);
  font-size: 20px;
  animation: fall 4.6s linear infinite;
}

.falling-notes span:nth-child(1) { left: 10%; animation-delay: 0s; }
.falling-notes span:nth-child(2) { left: 30%; animation-delay: 1s; }
.falling-notes span:nth-child(3) { left: 50%; animation-delay: 2s; }
.falling-notes span:nth-child(4) { left: 70%; animation-delay: 0.5s; }
.falling-notes span:nth-child(5) { left: 88%; animation-delay: 1.6s; }

@keyframes fall { to { transform: translateY(200px) rotate(20deg); opacity: 0; } }

.countdown-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 13px;
  padding: 13px 30px;
  box-shadow: 0 10px 26px rgba(47, 30, 16, 0.12);
}

.countdown-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.countdown-card strong {
  font-family: "Fraunces", serif;
  font-size: 32px;
  color: var(--wine);
}

.progress {
  height: 7px;
  background: rgba(47, 30, 16, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  background-size: 200% 100%;
  animation: flow 2.4s linear infinite;
  transition: width 0.6s var(--ease);
}

@keyframes flow { to { background-position: -200% 0; } }

.status { font-size: 14px; color: var(--paper-muted); margin: 0; text-align: center; }

.generation-steps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }

.generation-steps span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--paper-muted);
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.generation-steps span.is-active {
  color: var(--wine);
  border-color: rgba(124, 31, 69, 0.45);
  background: rgba(124, 31, 69, 0.07);
}

.draft-lyrics {
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(47, 30, 16, 0.25);
  border-radius: 13px;
  padding: 13px 15px;
}

.draft-lyrics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 8px;
}

.draft-lyrics__head i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wine);
  animation: blink 1.2s ease infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.draft-lyrics pre,
.lyrics pre {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #4a3623;
}

/* ============ PAINEL: PRÉVIA ============ */
/* O player é um pedaço do palco dentro do papel — ecoa o vinil do hero */
.player {
  display: flex;
  gap: 15px;
  align-items: center;
  border-radius: 15px;
  padding: 15px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(217, 180, 90, 0.16), transparent 55%),
    linear-gradient(160deg, var(--night-2), var(--night-0));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 30px rgba(0, 0, 0, 0.25);
  color: var(--ink);
}

.disc {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--gold) 0 9px, #0d0810 10px),
    repeating-radial-gradient(circle at center, #120b14 0 2.5px, #1f1422 2.5px 5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.disc.is-spinning { animation: vinyl-spin 2.2s linear infinite; }

.player__main { flex: 1; min-width: 0; }

.player__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.player__top span { font-size: 11.5px; color: var(--ink-dim); }

.timeline {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 10px 0;
  overflow: hidden;
}

#timelineFill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ff6d9d);
  box-shadow: 0 0 12px rgba(255, 109, 157, 0.5);
  transition: width 0.3s linear;
}

.player__actions { display: flex; align-items: center; gap: 12px; }

.icon-button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  color: #241705;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold));
  box-shadow: 0 6px 20px rgba(217, 180, 90, 0.4);
  transition: transform 0.2s var(--ease);
}

.icon-button:hover { transform: scale(1.06); }
.icon-button:disabled { opacity: 0.45; }

.player__actions span { font-size: 12px; color: var(--ink-dim); }

.lyrics {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--paper-line);
  border-radius: 13px;
  padding: 16px;
  max-height: 280px;
  overflow: auto;
}

.lyrics__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.lyrics__head h3 { font-size: 15px; margin: 0; color: var(--paper-ink); }
.lyrics__head span { font-size: 11.5px; color: var(--paper-muted); }

.preview-actions { display: flex; flex-direction: column; gap: 10px; }

.remake-button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.remake-button:hover { color: var(--paper-ink); }
.remake-button:disabled { opacity: 0.5; cursor: default; }

/* ============ PAINEL: PAGAMENTO ============ */
.checkout-fields { display: flex; flex-direction: column; gap: 12px; }

.privacy-note { font-size: 11px; color: var(--paper-muted); margin: 0; }
.privacy-note a { color: var(--wine); }

.order-bump {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(217, 180, 90, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.5);
  border: 1.5px dashed rgba(138, 106, 31, 0.55);
  transition: border-color 0.2s ease;
}

.order-bump:hover { border-color: var(--gold-deep); }

.order-bump input { margin-top: 3px; accent-color: var(--wine); flex: none; width: 19px; height: 19px; }

.order-bump__content { display: flex; flex-direction: column; gap: 5px; }

.order-bump__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: var(--paper-ink);
}

.order-bump__price { color: var(--wine); white-space: nowrap; }
.order-bump__text { font-size: 12.5px; color: var(--paper-muted); }

.order-bump__badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #241705;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold));
  padding: 4px 10px;
  border-radius: 999px;
}

.price-lines { display: flex; flex-direction: column; gap: 6px; }

.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--paper-muted);
}

.price-line strong { color: var(--paper-ink); font-weight: 600; }

.payment__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(47, 30, 16, 0.1);
}

.payment__box span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-muted);
  display: block;
}

.payment__box strong {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--wine);
}

.payment__box p { margin: 0; font-size: 12px; color: var(--paper-muted); }

.pix-preview { font-size: 12.5px; text-align: center; color: var(--paper-muted); margin: 0; }

.pix-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 18px;
}

.pix-box img { width: 190px; height: 190px; border-radius: 12px; background: #fff; padding: 8px; box-shadow: 0 8px 20px rgba(47, 30, 16, 0.12); }
.pix-box .field { width: 100%; }
.pix-box textarea { min-height: 72px; font-size: 11.5px; }

/* ============ PAINEL: SUCESSO ============ */
.success { text-align: center; }
.success .panel__header { text-align: center; }

.success__icon {
  width: 60px; height: 60px;
  border-radius: 15px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(47, 30, 16, 0.25);
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--paper-ink);
}

.email-download-notice {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(28, 122, 77, 0.1);
  border: 1px solid rgba(28, 122, 77, 0.3);
  border-radius: 999px;
  padding: 9px 14px;
}

.success__text { font-size: 14px; color: var(--paper-muted); margin: 0; }

.final-audio audio { width: 100%; }

.success__actions { display: flex; flex-direction: column; gap: 10px; }

.upsell-pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--wine);
  font-size: 13.5px;
}

.upsell-pointer span { animation: bounce 1.4s ease infinite; }

@keyframes bounce { 50% { transform: translateY(5px); } }

.lyrics-art-upsell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 15px;
  padding: 20px;
  text-align: left;
  background:
    radial-gradient(140% 140% at 100% 0%, rgba(124, 31, 69, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(124, 31, 69, 0.3);
}

.lyrics-art-upsell h3 { font-size: 19px; margin: 0 0 6px; color: var(--paper-ink); }
.lyrics-art-upsell p { font-size: 13.5px; color: var(--paper-muted); margin: 0; }

.lyrics-art-actions { display: flex; flex-direction: column; gap: 10px; }

.lyrics-art-preview canvas {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(47, 30, 16, 0.3);
  margin: 0 auto;
  display: block;
}

.support-link { font-size: 13px; color: var(--paper-muted); text-decoration: underline; }
.support-link:hover { color: var(--paper-ink); }

/* ============ FITA ============ */
.ribbon {
  overflow: hidden;
  border-top: 1px solid rgba(217, 180, 90, 0.22);
  border-bottom: 1px solid rgba(217, 180, 90, 0.22);
  background: rgba(0, 0, 0, 0.22);
  padding: 13px 0;
}

.ribbon__track {
  display: flex;
  width: max-content;
  animation: ribbon-run 26s linear infinite;
}

.ribbon__track span {
  flex: none;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 228, 171, 0.5);
  white-space: nowrap;
  padding-right: 8px;
}

@keyframes ribbon-run { to { transform: translateX(-50%); } }

/* ============ FOOTER ============ */
.site-footer {
  padding: 30px clamp(16px, 4vw, 52px) 42px;
  background: rgba(0, 0, 0, 0.28);
}

.site-footer__inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.site-footer__brand img { width: 28px; height: 28px; border-radius: 8px; }

.site-footer p { font-size: 12px; color: var(--ink-dim); max-width: 320px; }

.site-footer__navs { display: flex; gap: 44px; flex-wrap: wrap; }

.site-footer__links { display: flex; flex-direction: column; gap: 8px; }

.site-footer__links a {
  font-size: 12.5px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover { color: var(--gold-hi); }

/* ============ MOBILE ============ */
@media (max-width: 979px) {
  .turntable { margin: 0 auto; }
  .vinyl { margin: 0 auto; width: min(300px, 82%); }
  .tonearm { display: none; }
  .hero__copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .turntable__hint { flex-direction: column; justify-content: center; gap: 10px; }
  .assurances { justify-content: center; text-align: center; }
  .assurances li { align-items: center; }
}

/* Blur pesado só no desktop */
@media (max-width: 700px) {
  .stage__glow { filter: blur(60px); }
  .stage__spot { display: none; }
}

/* ============ ACESSIBILIDADE ============ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .turntable.reveal { opacity: 1; transform: none; }
}
