:root {
  --ink: #21171b;
  --paper: #fff8f5;
  --rose: #c43a5d;
  --rose-dark: #7c223a;
  --coral: #e85f55;
  --teal: #176c72;
  --cream: #fff1e5;
  --line: rgba(33, 23, 27, 0.13);
  --shadow: 0 24px 70px rgba(33, 23, 27, 0.22);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  background-image: url("assets/songs2you-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(33, 23, 27, 0.93) 0%, rgba(33, 23, 27, 0.76) 42%, rgba(33, 23, 27, 0.15) 100%),
    linear-gradient(180deg, rgba(33, 23, 27, 0.08), rgba(33, 23, 27, 0.58));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #fff;
  gap: 20px;
}

.brand {
  color: #fff;
  text-decoration: none;
}

.brand__text,
.success__brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand__text span,
.success__brand span {
  margin-left: -0.02em;
  margin-right: 0.01em;
  color: #ff7893;
  font-size: 1.12em;
}

.topbar__price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.topbar__price span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 38px 0 72px;
  gap: 52px;
}

.hero__copy {
  max-width: 650px;
  color: #fff;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: #ffb7a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 590px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.65;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__badges span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.composer {
  width: 100%;
}

.steps {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  gap: 8px;
}

.step {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.step.is-active {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 248, 245, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel__header h2 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

.field {
  display: grid;
  margin-bottom: 16px;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 800;
}

.field small {
  color: rgba(33, 23, 27, 0.56);
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(196, 58, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(196, 58, 93, 0.12);
}

textarea {
  min-height: 134px;
  resize: vertical;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.segmented input {
  width: auto;
  accent-color: var(--rose);
}

.primary,
.ghost,
.remake-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  font-weight: 900;
  text-decoration: none;
  gap: 10px;
}

.primary:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary--buy {
  background: linear-gradient(135deg, var(--teal), #2a9895);
}

.ghost,
.remake-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.generation-stage {
  position: relative;
  display: grid;
  min-height: 150px;
  margin-bottom: 18px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 58, 93, 0.22), transparent 32%),
    radial-gradient(circle at 75% 70%, rgba(23, 108, 114, 0.18), transparent 36%),
    #fff;
}

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

.falling-notes span {
  position: absolute;
  top: -20px;
  color: rgba(196, 58, 93, 0.42);
  font-size: 24px;
  animation: fall 3.8s linear infinite;
}

.falling-notes span:nth-child(1) { left: 12%; animation-delay: 0s; }
.falling-notes span:nth-child(2) { left: 32%; animation-delay: 0.7s; }
.falling-notes span:nth-child(3) { left: 54%; animation-delay: 1.2s; }
.falling-notes span:nth-child(4) { left: 72%; animation-delay: 0.3s; }
.falling-notes span:nth-child(5) { left: 88%; animation-delay: 1.8s; }

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

.countdown-card {
  position: relative;
  display: grid;
  min-width: 158px;
  padding: 18px;
  place-items: center;
  border: 1px solid rgba(33, 23, 27, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.countdown-card span,
.draft-lyrics__head span {
  color: rgba(33, 23, 27, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown-card strong {
  font-size: 36px;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 23, 27, 0.1);
}

.progress__bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  transition: width 0.4s ease;
}

.status {
  margin: 14px 0 0;
  color: rgba(33, 23, 27, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.generation-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0;
  gap: 7px;
}

.generation-steps span {
  padding: 8px 6px;
  border-radius: 8px;
  color: rgba(33, 23, 27, 0.52);
  background: rgba(33, 23, 27, 0.06);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.generation-steps span.is-active {
  color: #fff;
  background: var(--rose);
}

.draft-lyrics {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.draft-lyrics__head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.draft-lyrics pre {
  min-height: 116px;
  color: rgba(33, 23, 27, 0.74);
  font-size: 13px;
  line-height: 1.5;
}

.player {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  gap: 14px;
}

.disc {
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 10px, transparent 11px),
    conic-gradient(from 25deg, var(--rose), var(--teal), var(--coral), var(--rose));
}

.disc span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
}

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

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

.player__main {
  width: 100%;
  min-width: 0;
}

.player__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.player__top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__top span,
.player__actions span {
  color: rgba(33, 23, 27, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 23, 27, 0.1);
}

.timeline div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
}

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

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
}

.lyrics {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.lyrics__head h3 {
  margin: 0;
  font-size: 16px;
}

.lyrics__head span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(196, 58, 93, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.lyrics pre {
  max-height: 260px;
  overflow: auto;
  color: rgba(33, 23, 27, 0.76);
  font-size: 14px;
  line-height: 1.58;
}

.preview-actions,
.success__actions {
  display: grid;
  margin-top: 16px;
  gap: 10px;
}

.preview-actions .ghost,
.preview-actions .remake-button,
.success__actions .ghost {
  width: 100%;
}

.checkout-status {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.embedded-checkout {
  display: grid;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(33, 23, 27, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(33, 23, 27, 0.08);
  gap: 12px;
}

.embedded-checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.embedded-checkout__head strong {
  font-size: 16px;
}

.embedded-checkout__head span,
.stripe-note {
  color: rgba(33, 23, 27, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.express-row,
.stripe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.express-row button {
  min-height: 40px;
  border: 1px solid rgba(33, 23, 27, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: rgba(33, 23, 27, 0.48);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: rgba(33, 23, 27, 0.12);
}

.stripe-field {
  display: grid;
  gap: 6px;
}

.stripe-field span {
  color: rgba(33, 23, 27, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.stripe-field input {
  color: rgba(33, 23, 27, 0.76);
  background: #fafafa;
}

.stripe-grid {
  grid-template-columns: 1fr 1fr;
}

.stripe-note {
  margin: -2px 0 0;
  line-height: 1.35;
}

.payment__box,
.order-summary,
.email-download-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  gap: 12px;
}

.payment__box span,
.order-summary span,
.email-download-notice span {
  color: rgba(33, 23, 27, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment__box strong,
.order-summary strong {
  font-size: 24px;
}

.success__brand {
  margin-bottom: 14px;
  color: var(--ink);
}

.success__text {
  color: rgba(33, 23, 27, 0.66);
  line-height: 1.55;
}

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

.support-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero__content {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 22px;
  }

  .hero__copy {
    max-width: 760px;
  }

  h1 {
    font-size: clamp(44px, 10vw, 72px);
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .brand__text {
    font-size: 22px;
  }

  .topbar__price {
    display: grid;
    justify-items: end;
    gap: 2px;
  }

  .hero__content {
    width: min(100% - 24px, 1160px);
    gap: 30px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .panel {
    padding: 18px;
  }

  .segmented,
  .generation-steps {
    grid-template-columns: 1fr;
  }

  .player {
    align-items: flex-start;
  }

  .disc {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .lyrics__head,
  .payment__box,
  .order-summary,
  .email-download-notice,
  .embedded-checkout__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .express-row {
    grid-template-columns: 1fr;
  }
}
