:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f8f7f4;
  --soft: rgba(248, 247, 244, 0.72);
  --muted: rgba(248, 247, 244, 0.48);
  --line: rgba(248, 247, 244, 0.18);
  --line-strong: rgba(248, 247, 244, 0.3);
  --glass: rgba(18, 18, 18, 0.64);
  --glass-soft: rgba(255, 255, 255, 0.08);
  --red: #e51b24;
  --deep-red: #811d1f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--ink);
}

body.is-modal-open {
  overflow: hidden;
}

body::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16) 30%, rgba(0, 0, 0, 0.9) 66%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
  content: "";
  pointer-events: none;
}

a,
button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(248, 247, 244, 0.92);
  outline-offset: 3px;
}

svg {
  display: block;
}

.background {
  position: absolute;
  inset: -12px 0;
  z-index: 0;
  background-image: url("assets/background-portrait-v2.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(0.96) contrast(1.04) brightness(0.92);
}

.background::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: none;
  width: 100%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22) 36%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.58));
  content: "";
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 34px clamp(22px, 7vw, 58px) 22px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 8px rgba(0, 0, 0, 0.42));
  text-decoration: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.social-links a:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.social-links rect,
.social-links circle,
.social-links path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-links .facebook-mark path {
  fill: currentColor;
  stroke: none;
}

.hero {
  display: grid;
  justify-items: center;
  min-height: clamp(360px, 48dvh, 520px);
  padding: clamp(100px, 24dvh, 220px) 0 34px;
  text-align: center;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 100%;
  font-size: clamp(2rem, 11vw, 4.6rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
  text-transform: uppercase;
  white-space: nowrap;
}

.red-mark {
  display: block;
  width: 62px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--red);
}

.hero p {
  max-width: 450px;
  margin-bottom: 0;
  color: rgba(248, 247, 244, 0.72);
  font-size: clamp(1.02rem, 4.8vw, 1.4rem);
  font-weight: 390;
  line-height: 1.46;
}

.hero.no-subtitle .red-mark {
  margin-bottom: 0;
}

.section {
  min-width: 0;
  margin-top: 28px;
}

.section h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.listen-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.listen-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 12px;
}

.spotify-embed-panel {
  position: relative;
  min-width: 0;
  height: 152px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #121212;
  isolation: isolate;
}

.spotify-embed-panel[hidden] {
  display: none;
}

.spotify-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 14px;
  background: #121212;
  opacity: 0;
  transition: opacity 220ms ease;
  clip-path: inset(1px round 14px);
}

.listen-card.is-loaded .spotify-frame {
  opacity: 1;
}

.spotify-loading {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 0;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.78rem;
}

.spotify-loading svg {
  width: 26px;
  height: 26px;
  animation: spotify-pulse 1.4s ease-in-out infinite;
}

.spotify-loading circle,
.spotify-loading path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.listen-card.is-loaded .spotify-loading,
.listen-card.spotify-unavailable .spotify-loading {
  display: none;
}

@keyframes spotify-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.listen-card.spotify-unavailable .spotify-frame {
  display: none;
}

.spotify-fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.spotify-fallback[hidden] {
  display: none;
}

.spotify-fallback p {
  margin-bottom: 12px;
  color: rgba(248, 247, 244, 0.62);
  font-size: 0.95rem;
  line-height: 1.35;
}

.spotify-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(248, 247, 244, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: clamp(0.76rem, 3.2vw, 0.94rem);
  font-weight: 720;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.platform-link svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.platform-link span {
  min-width: 0;
}

.platform-link .apple-music-mark {
  width: 20px;
  height: 20px;
}

.platform-link circle,
.platform-link rect,
.platform-link path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.platform-link:hover {
  border-color: rgba(248, 247, 244, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.platform-link.is-disabled {
  border-color: rgba(248, 247, 244, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(248, 247, 244, 0.58);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 480px) {
  .platform-link {
    flex-direction: column;
    gap: 5px;
    min-height: 60px;
    padding: 7px 6px;
    font-size: 0.74rem;
  }

  .platform-link svg,
  .platform-link .apple-music-mark {
    width: 20px;
    height: 20px;
  }
}

.support-button:disabled,
.method-button:disabled,
.notify-form button:disabled {
  opacity: 0.48;
  transform: none;
}

.support-section {
  margin-top: 34px;
}

.support-copy {
  margin-bottom: 20px;
  color: rgba(248, 247, 244, 0.58);
  font-size: 1rem;
  line-height: 1.55;
}

.support-copy strong {
  color: var(--ink);
  font-weight: 560;
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.amount-row button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(248, 247, 244, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: clamp(0.88rem, 3.8vw, 1.06rem);
  font-weight: 680;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.amount-row button[aria-pressed="true"] {
  border-color: rgba(229, 27, 36, 0.4);
  background: linear-gradient(90deg, rgba(111, 25, 27, 0.95), rgba(142, 30, 33, 0.95));
}

.amount-row button:hover,
.platform-link:hover,
.support-button:hover,
.method-button:hover,
.notify-form button:hover {
  transform: translateY(-1px);
}

.custom-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 247, 244, 0.66);
  font-size: 0.92rem;
}

.custom-row[hidden] {
  display: none;
}

.custom-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.support-button,
.method-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #050505;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1;
  transition: transform 160ms ease;
}

.secure-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(248, 247, 244, 0.42);
  font-size: 0.86rem;
  text-align: center;
}

.payment-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(12px);
}

.payment-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 21;
  display: grid;
  gap: 12px;
  width: min(calc(100% - 36px), 480px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  transform: translate(-50%, -50%);
  animation: sheet-in 180ms ease-out;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.payment-backdrop[hidden],
.payment-sheet[hidden] {
  display: none;
}

.payment-sheet h2 {
  margin: 0 42px 2px 0;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.1;
}

.payment-sheet p {
  margin: 0 0 4px;
  color: rgba(248, 247, 244, 0.6);
  font-size: 0.96rem;
}

.payment-sheet .checkout-status {
  min-height: 18px;
  margin: 0;
  color: rgba(248, 247, 244, 0.58);
  font-size: 0.82rem;
  text-align: center;
}

.payment-sheet strong {
  color: var(--ink);
}

.method-button {
  border: 1px solid rgba(248, 247, 244, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.method-button[hidden] {
  display: none;
}

.method-primary {
  background: var(--ink);
  color: #050505;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 247, 244, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 247, 244, 0.74);
}

.sheet-close::before,
.sheet-close::after {
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.sheet-close::before {
  transform: rotate(45deg);
}

.sheet-close::after {
  transform: rotate(-45deg);
}

.secure-note::before {
  display: block;
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 -2px currentColor;
  content: "";
}

.updates-section {
  margin-top: 28px;
}

.updates-section p {
  margin-bottom: 18px;
  color: rgba(248, 247, 244, 0.58);
  font-size: 1rem;
  line-height: 1.45;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.notify-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  padding: 0 18px;
}

.notify-form input::placeholder {
  color: rgba(248, 247, 244, 0.46);
}

.notify-form input:disabled {
  opacity: 0.62;
}

.notify-form button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(248, 247, 244, 0.76);
  transition: transform 160ms ease;
}

.notify-form svg {
  width: 28px;
  height: 28px;
}

.notify-form path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: rgba(248, 247, 244, 0.62);
  font-size: 0.86rem;
}

.footer {
  display: grid;
  justify-items: center;
  padding: 26px 0 10px;
  color: rgba(248, 247, 244, 0.43);
}

.footer p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 760px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.88) 70%, #000 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2));
  }

  .background {
    --desktop-bg-width: clamp(720px, 58vw, 840px);

    background-image: none;
    filter: none;
  }

  .background::before {
    display: block;
    width: var(--desktop-bg-width);
    background-image: url("assets/background-portrait-v2.jpg");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    filter: saturate(1.04) contrast(1.06) brightness(1.32);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.45) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.45) 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.45) 8%, #000 22%, #000 78%, rgba(0, 0, 0, 0.45) 92%, transparent 100%);
  }

  .background::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.76) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.24));
  }

  .page {
    padding-top: 42px;
  }

  .hero {
    min-height: 520px;
  }

  .listen-card {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .social-links {
    gap: 2px;
  }

  .listen-card {
    gap: 10px;
    padding: 10px;
  }

  .platform-links {
    gap: 6px;
  }

  .platform-link {
    gap: 4px;
    min-height: 58px;
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  .platform-link svg,
  .platform-link .apple-music-mark {
    width: 19px;
    height: 19px;
  }

  .amount-row {
    gap: 6px;
  }

  .amount-row button {
    min-height: 46px;
    font-size: 0.88rem;
  }
}

@media (max-width: 599px) {
  .payment-sheet {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 20px;
    transform: translateX(-50%);
    animation-name: sheet-in-mobile;
  }

  @keyframes sheet-in-mobile {
    from {
      opacity: 0;
      transform: translate(-50%, 12px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%);
    }
  }
}

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