/* ============================================================
   beatmatch — Spotify Compatibility Analyzer
   Premium dark UI with glass, gradients & glow
   ============================================================ */

:root {
  /* palette */
  --bg-0: #050008;
  --bg-1: #0a0612;
  --bg-2: #110a1f;
  --ink-0: #ffffff;
  --ink-1: rgba(255, 255, 255, .78);
  --ink-2: rgba(255, 255, 255, .58);
  --ink-3: rgba(255, 255, 255, .38);
  --ink-4: rgba(255, 255, 255, .18);

  --purple: #c264ff;
  --pink:   #ff5fb1;
  --hot:    #f73a87;
  --cyan:   #4dd6e8;
  --blue:   #5b8cff;
  --green:  #1ed760;
  --amber:  #ffba5e;

  --grad-primary: linear-gradient(135deg, #c264ff 0%, #ff5fb1 100%);
  --grad-cool:    linear-gradient(135deg, #4dd6e8 0%, #5b8cff 100%);
  --grad-spec:    linear-gradient(135deg, #c264ff 0%, #ff5fb1 50%, #4dd6e8 100%);

  --glass-bg:   rgba(255, 255, 255, .035);
  --glass-bg-2: rgba(255, 255, 255, .055);
  --glass-bd:   rgba(255, 255, 255, .08);
  --glass-bd-2: rgba(255, 255, 255, .14);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow-glow: 0 0 60px -10px rgba(194, 100, 255, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

/* ============================================================
   Beta banner — sits above the nav, dismissible
   ============================================================ */
.beta-banner {
  position: relative;
  background:
    linear-gradient(90deg, rgba(194,100,255,.14), rgba(255,95,177,.10) 50%, rgba(77,214,232,.10));
  border-bottom: 1px solid var(--glass-bd);
  font-size: 13px;
  z-index: 40;
}
.beta-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.beta-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.beta-banner__text {
  flex: 1;
  color: var(--ink-1);
  min-width: 200px;
}
.beta-banner__cta {
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.beta-banner__cta:hover { color: var(--purple); }
.beta-banner__close {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.beta-banner__close:hover { background: rgba(255,255,255,.08); color: var(--ink-0); }

@media (max-width: 600px) {
  .beta-banner__inner { padding: 10px 16px; gap: 10px; font-size: 12px; }
  .beta-banner__text  { min-width: 100%; order: 3; }
  .beta-banner__cta   { order: 2; }
}

/* footer link (privacy) */
.foot__link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  margin-right: 16px;
  transition: color .2s;
}
.foot__link:hover { color: var(--ink-0); }

/* ============================================================
   Cosmic background
   ============================================================ */
.bg-cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(91, 140, 255, .12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(194, 100, 255, .14), transparent 60%),
    linear-gradient(180deg, #0a0612 0%, #050008 60%, #03020a 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
}

.bg-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-orb--purple {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(194,100,255,.55), transparent 60%);
}
.bg-orb--cyan {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(77,214,232,.45), transparent 60%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(255, 95, 177, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(255, 95, 177, .75), 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 60px -10px rgba(194, 100, 255, .6);
}

.btn--ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-bd);
  color: var(--ink-1);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--glass-bd-2);
  color: var(--ink-0);
}

.play-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* ============================================================
   Pills, tags, accents
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(10,6,18,.6), rgba(10,6,18,0));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}

.nav__links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 500;
}
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--ink-0); }

@media (max-width: 760px) {
  .nav { padding: 18px 22px; }
  .nav__links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 40px 48px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-top: 40px;
}

.hero__copy {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s .1s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__sub {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 420px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero__viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  animation: fade-in 1.4s .3s ease forwards;
}

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

.orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orb-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.orb--purple {
  left: 5%;
  background: radial-gradient(circle at 30% 30%, rgba(194,100,255,.18), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(194,100,255,.18),
    0 0 90px -20px rgba(194, 100, 255, .55);
  animation: pulse-purple 5s ease-in-out infinite;
}
.orb--cyan {
  right: 5%;
  background: radial-gradient(circle at 70% 30%, rgba(77,214,232,.16), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(77,214,232,.18),
    0 0 90px -20px rgba(77, 214, 232, .55);
  animation: pulse-cyan 5s ease-in-out infinite;
}

@keyframes pulse-purple {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(194,100,255,.18), 0 0 80px -20px rgba(194, 100, 255, .45); }
  50%      { box-shadow: inset 0 0 0 1px rgba(194,100,255,.28), 0 0 120px -10px rgba(194, 100, 255, .7); }
}
@keyframes pulse-cyan {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(77,214,232,.18), 0 0 80px -20px rgba(77, 214, 232, .45); }
  50%      { box-shadow: inset 0 0 0 1px rgba(77,214,232,.28), 0 0 120px -10px rgba(77, 214, 232, .7); }
}

.orb__avatar {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.05));
}
.orb__avatar--left { left: 8%; }
.orb__avatar--right { right: 8%; }

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: white;
  letter-spacing: -0.02em;
}
.avatar--sara { background: linear-gradient(135deg, #ffb1d8, #c264ff); }
.avatar--marc { background: linear-gradient(135deg, #4dd6e8, #5b8cff); }

.orb__core {
  position: relative;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(10, 6, 18, .55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow:
    0 0 0 6px rgba(255,255,255,.02),
    0 30px 80px -10px rgba(0,0,0,.8),
    inset 0 0 40px rgba(194, 100, 255, .12);
  z-index: 5;
}

.orb__score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.orb__score-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.orb__score-pct {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink-2);
}
.orb__score-label {
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--ink-3);
  margin-top: 4px;
}

.orb__heart {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -6px rgba(255, 95, 177, .8);
  z-index: 6;
  animation: heart-pulse 1.6s ease-in-out infinite;
}
@keyframes heart-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.12); }
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: .3em;
  font-weight: 600;
}
.hero__mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--ink-3);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}
.hero__mouse span {
  width: 2px;
  height: 6px;
  background: var(--ink-2);
  border-radius: 2px;
  animation: mouse-scroll 1.8s ease-in-out infinite;
}
@keyframes mouse-scroll {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { order: 2; max-width: none; text-align: center; align-items: center; }
  .hero__sub { margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .hero__viz { order: 1; max-width: 460px; }
  .hero { padding: 20px 24px 60px; }
}

/* ============================================================
   How it works
   ============================================================ */
.how {
  padding: 100px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .04em;
  margin-bottom: 56px;
}

.how__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.how__line {
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--ink-4) 50%, transparent 50%);
  background-size: 8px 1px;
  opacity: .55;
  z-index: 0;
}
.how__step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.how__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(10, 6, 18, .8);
  border: 1px solid var(--glass-bd);
  display: grid;
  place-items: center;
  position: relative;
  backdrop-filter: blur(8px);
}
.how__icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent), transparent 70%);
  opacity: .25;
  z-index: -1;
  filter: blur(12px);
}
.how__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-top: 4px;
}
.how__step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.how__step p {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 180px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .how__track { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .how__line { display: none; }
  .how { padding: 60px 24px; }
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard {
  padding: 60px 48px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  display: grid;
  place-items: center;
  color: var(--ink-1);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.dash-back:hover { background: var(--glass-bg-2); border-color: var(--glass-bd-2); }

.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dash-eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
}

/* card base */
.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(10, 6, 18, .55);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(194,100,255,.08), transparent 50%);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover {
  border-color: var(--glass-bd-2);
  transform: translateY(-2px);
}
.card:hover::after { opacity: 1; }

.card__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card__sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  line-height: 1.55;
}
.card__h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.sparkle {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- score ring card ---------- */
.card--score {
  grid-column: span 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px;
}
.card__head {
  max-width: 320px;
}
.card__ring {
  position: relative;
  width: 240px;
  height: 240px;
}
.ring-svg { width: 100%; height: 100%; transform: rotate(0deg); }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ring-num {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ring-num::after {
  content: '%';
  font-size: 28px;
  color: var(--ink-2);
  font-weight: 600;
  margin-left: 2px;
}
.ring-lbl {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ---------- breakdown bars ---------- */
.card--bars {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px;
  justify-content: center;
}
.bar {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
.bar__icon {
  grid-row: 1 / span 2;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
  color: white;
  opacity: .9;
}
.bar__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 500;
}
.bar__val { color: var(--ink-0); font-weight: 600; }
.bar__track {
  grid-column: 2;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 0 12px var(--c1);
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
.bar.is-in .bar__fill { width: var(--w); }

/* ---------- overlap card ---------- */
.card--overlap {
  grid-column: 1 / span 2;
  grid-row: 2;
}
.overlap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.overlap__group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.overlap__divider {
  width: 1px;
  height: 56px;
  background: var(--glass-bd);
}
.overlap__num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.overlap__lbl {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.3;
}

.avatar-stack {
  display: flex;
}
.avatar-stack .av { margin-left: -10px; }
.avatar-stack .av:first-child { margin-left: 0; }

.av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-1);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}
.av--1 { background: linear-gradient(135deg, #c264ff, #5b8cff); }
.av--2 { background: linear-gradient(135deg, #ff5fb1, #ff8a3d); }
.av--3 { background: linear-gradient(135deg, #4dd6e8, #1ed760); }

.cover-stack {
  display: flex;
}
.cover {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 2px solid var(--bg-1);
  margin-left: -10px;
}
.cover:first-child { margin-left: 0; }
.cover--1 { background: linear-gradient(135deg, #2a1745, #c264ff 70%, #4dd6e8); }
.cover--2 { background: linear-gradient(135deg, #5a1530, #ff5fb1 80%); }
.cover--3 { background: linear-gradient(135deg, #1a2350, #5b8cff 70%, #c264ff); }

/* ---------- shared albums ---------- */
.card--albums {
  grid-column: 3;
  grid-row: 2;
}
.albums {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.album-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-bd);
  transition: background .2s;
}
.album-chip:hover { background: rgba(255,255,255,.06); }
.album-chip__cover {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.album-chip__cover--placeholder {
  background: linear-gradient(135deg, #2a1745, #1a1230);
}
.album-chip__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-empty {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 12px 4px;
}

/* ---------- Music DNA radar ---------- */
.card--dna {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
}
.dna {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* if the row is taller (because Discover has many tiles), center the radar instead of leaving empty space at the bottom */
}
.dna__svg {
  width: 100%;
  height: auto;
  flex: 1;
  max-height: 280px;
}
.dna__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
}
.dna__legend i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* tooltip floating over the radar (hooked up in ui.js setRadar).
   Lives on <body> with position:fixed so the card's overflow:hidden
   can't crop it. */
.dna-tip {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  transform: translate(-50%, -100%);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  font: 500 12px/1.45 'Inter', sans-serif;
  color: var(--ink-1);
  background: rgba(15, 8, 25, .96);
  border: 1px solid var(--glass-bd-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .8);
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 1000;
  text-align: left;
  white-space: normal;
}
.dna-tip.is-on { opacity: 1; }

/* dashboard responsive */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .card--score   { grid-column: 1 / span 2; }
  .card--bars    { grid-column: 1 / span 2; }
  .card--overlap { grid-column: 1 / span 2; }
  .card--albums         { grid-column: 1 / span 2; }
  .card--discover-full  { grid-column: 1 / span 2; }
  .card--dna            { grid-column: 1 / span 2; }
}
@media (max-width: 760px) {
  .dashboard { padding: 40px 24px 80px; }
  .card { padding: 22px; }
  .card--score { grid-template-columns: 1fr; text-align: center; }
  .card__head { max-width: none; margin: 0 auto; }
  .card__ring { margin: 0 auto; width: 200px; height: 200px; }
  .ring-num { font-size: 48px; }
}

/* ============================================================
   Insights
   ============================================================ */
.insights {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.4fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.ins {
  position: relative;
  border: 1px solid var(--glass-bd);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(10,6,18,.6);
  border-radius: var(--r-lg);
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
}
.ins:hover { border-color: var(--glass-bd-2); transform: translateY(-2px); }

.ins__mark {
  position: absolute;
  top: 16px; left: 22px;
  font-family: 'Space Grotesk', serif;
  font-size: 60px;
  color: var(--pink);
  line-height: 1;
}
.ins--quote p {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 28px;
}
.ins__by {
  font-size: 12px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ins__by i {
  width: 16px; height: 1px; background: var(--pink);
  display: inline-block;
}

.ins__eyebrow {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ins__eyebrow--green { color: var(--green); }
.ins__eyebrow--pink  { color: var(--pink); }

.ins--fact { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.ins--fact .ins__eyebrow { grid-column: 1; }
.ins--fact p {
  grid-column: 1;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.ins__ring {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  width: 60px; height: 60px;
  align-self: end;
}
.ins__ring-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.ins--mood {
  background:
    radial-gradient(ellipse at 80% 100%, rgba(194,100,255,.35), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(10,6,18,.6);
}
.ins__mood-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.ins__smile { margin-top: auto; opacity: .8; }

.ins--cta {
  background:
    radial-gradient(ellipse at 90% 100%, rgba(91,140,255,.4), transparent 60%),
    radial-gradient(ellipse at 0% 0%, rgba(255,95,177,.2), transparent 60%),
    linear-gradient(160deg, rgba(20,12,40,.9), rgba(40,20,70,.6));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ins__cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='180' viewBox='0 0 280 180'><circle cx='240' cy='40' r='28' fill='%23ffe45e' opacity='.15'/><circle cx='248' cy='34' r='28' fill='%230a0612' opacity='.6'/><path d='M0 150 Q40 130 80 145 T160 140 T240 150 T280 145 L280 180 L0 180 Z' fill='%231a0e30' opacity='.4'/><circle cx='100' cy='160' r='3' fill='%23000'/><circle cx='110' cy='160' r='3' fill='%23000'/></svg>");
  background-size: cover;
  background-position: bottom right;
  opacity: .55;
  pointer-events: none;
}
.ins--cta h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  position: relative;
}
.ins--cta .btn { align-self: flex-start; position: relative; }

@media (max-width: 1100px) {
  .insights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .insights { grid-template-columns: 1fr; padding: 0 24px 60px; }
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  border-top: 1px solid var(--glass-bd);
  padding: 30px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  max-width: 1400px;
  margin: 0 auto;
}
.foot p { margin-top: 8px; }
.foot__col--right { text-align: right; }

@media (max-width: 600px) {
  .foot { flex-direction: column; gap: 16px; padding: 30px 24px; text-align: center; }
  .foot__col--right { text-align: center; }
}

/* reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Overlays — loading / invite / awaiting / error
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(194,100,255,.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(77,214,232,.14), transparent 70%),
    rgba(5, 0, 8, .72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: overlay-in .35s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.overlay[hidden] { display: none; }

.overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 480px;
  animation: card-rise .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.overlay__card {
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(10, 6, 18, .85);
  border: 1px solid var(--glass-bd-2);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 80px -10px rgba(194, 100, 255, .25);
}

.overlay__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.overlay__sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 380px;
}
.overlay__text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 30px;
}
.overlay__hint {
  font-size: 13px;
  color: var(--ink-3);
}

.pill--error {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, .25);
  background: rgba(255, 138, 138, .08);
}

/* ----- scan animation (loading) ----- */
.scan {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.scan__core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 30px rgba(255, 95, 177, .8), 0 0 60px rgba(194, 100, 255, .55);
  animation: scan-core 1.6s ease-in-out infinite;
}
@keyframes scan-core {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: .7; }
}
.scan__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 95, 177, .35);
  inset: 0;
  margin: auto;
  animation: scan-ring 2.4s linear infinite;
  opacity: 0;
}
.scan__ring--1 { animation-delay: 0s;   }
.scan__ring--2 { animation-delay: .8s;  }
.scan__ring--3 { animation-delay: 1.6s; }
@keyframes scan-ring {
  0%   { width: 22px;  height: 22px;  opacity: .8; border-color: rgba(255, 95, 177, .6); }
  100% { width: 200px; height: 200px; opacity: 0;  border-color: rgba(77, 214, 232, .15); }
}

/* ----- share input ----- */
.share {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-bd);
  border-radius: 999px;
  padding: 4px;
}
.share input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ink-1);
  font: inherit;
  font-size: 13px;
  padding: 0 16px;
  outline: none;
  font-family: 'Space Grotesk', monospace;
}
.share .btn { padding: 9px 18px; font-size: 13px; }

.awaiting__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 8px;
}
.awaiting__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.link-btn {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  margin-top: 6px;
  cursor: pointer;
  transition: color .2s;
}
.link-btn:hover { color: var(--ink-1); }

/* ----- toast ----- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 300;
  padding: 12px 22px;
  background: rgba(15, 8, 25, .92);
  border: 1px solid var(--glass-bd-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 40px -10px rgba(194,100,255,.4);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ----- dynamic avatar variants used by app.js ----- */
.av--photo {
  object-fit: cover;
  border: 2px solid var(--bg-1);
}
.av--big { width: 40px; height: 40px; }
.av--photo.av--xs { width: 22px; height: 22px; border-width: 1.5px; }
.cover--photo { object-fit: cover; }

/* ============================================================
   Tooltip — used wherever an element has [data-tip="..."]
   ============================================================ */
[data-tip] {
  position: relative;
  cursor: help;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  font: 500 12px/1.45 'Inter', sans-serif;
  letter-spacing: 0;
  color: var(--ink-1);
  background: rgba(15, 8, 25, .96);
  border: 1px solid var(--glass-bd-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .8);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
  white-space: normal;
  text-align: left;
  cursor: default;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Music age stat (sits under score-sub in the score card)
   ============================================================ */
.age-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-bd);
  border-radius: 12px;
}
.age-stat__big {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.age-stat__unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  -webkit-text-fill-color: var(--ink-2);
}
.age-stat__sub {
  font-size: 12px;
  color: var(--ink-3);
}
.age-stat__sub b {
  color: var(--ink-1);
  font-weight: 600;
}

/* ============================================================
   Decade distribution mini-chart
   ============================================================ */
.decades {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.decade-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}
.decade-row__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.decade-row__bars {
  position: relative;
  height: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
}
.decade-row__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.decade-row__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.decade-row__bar--me::after     { background: linear-gradient(90deg, #c264ff, #ff5fb1); }
.decade-row__bar--friend::after { background: linear-gradient(90deg, #4dd6e8, #5b8cff); }

/* ============================================================
   DEEP DIVE — full Discover + Top picks side-by-side
   ============================================================ */
.deep-dive {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.card__h3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.card__h3-row .card__h3 { margin-bottom: 0; }
.card__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-bd);
  padding: 4px 10px;
  border-radius: 999px;
}
.card__lede {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ---- Discover full card lives in the bento row 3, alongside the radar ---- */
.card--discover-full {
  grid-column: 1 / span 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
}

/* ---- Discover grid ---- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.discover-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-bd);
  border-radius: 12px;
  transition: background .2s, border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.discover-tile:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--glass-bd-2);
  transform: translateY(-1px);
}
.discover-tile__cover {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.discover-tile__cover--ph {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}
.discover-tile__name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discover-tile__arrow {
  flex-shrink: 0;
  color: var(--ink-3);
  transition: color .2s, transform .2s;
}
.discover-tile:hover .discover-tile__arrow {
  color: var(--pink);
  transform: translate(2px, -2px);
}

/* ---- Top picks side-by-side ---- */
.toppicks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.toppicks__col {
  min-width: 0;
}
.toppicks__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 14px;
}
.toppicks__user i {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.toppicks__group + .toppicks__group { margin-top: 22px; }
.toppicks__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.toppicks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toppicks__row {
  display: grid;
  grid-template-columns: 18px 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.toppicks__row:hover { background: rgba(255, 255, 255, .04); }
.toppicks__rank {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.toppicks__cover {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.toppicks__cover--ph {
  background: linear-gradient(135deg, #2a1745, #1a1230);
}
.toppicks__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.toppicks__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toppicks__meta {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toppicks__link {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: transparent;
  transition: background .15s, color .15s;
}
.toppicks__link:hover {
  color: var(--pink);
  background: rgba(255, 95, 177, .1);
}
.toppicks__empty {
  list-style: none;
  color: var(--ink-3);
  font-size: 13px;
  padding: 6px 8px;
}

/* responsive: stack columns on narrow screens */
@media (max-width: 720px) {
  .toppicks { grid-template-columns: 1fr; gap: 28px; }
}

/* ----- empty-state variants for zero common artists / tracks ----- */
.av--empty,
.cover--empty {
  background: rgba(255, 255, 255, .02) !important;
  border: 1.5px dashed var(--glass-bd-2) !important;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.cover--empty {
  font-size: 18px;
}

/* ----- ensure [hidden] beats `display:flex/grid` author rules ----- */
[hidden] { display: none !important; }

/* ----- big hero avatars (real photos / dynamic) ----- */
.avatar.avatar--photo,
img.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ----- hero match-reveal extras ----- */
.pill__live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff5fb1;
  box-shadow: 0 0 8px #ff5fb1;
  animation: dot-pulse 1.4s ease-in-out infinite;
  display: inline-block;
}
.hero__sub-x {
  display: inline-block;
  margin: 0 8px;
  color: var(--ink-3);
  font-weight: 300;
}
body.is-matched .hero__sub {
  font-size: 17px;
  color: var(--ink-1);
}
body.is-matched .hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
}

/* ============================================================
   CTA loading state
   ============================================================ */
.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: .7;
  position: relative;
}
.btn[aria-busy="true"]::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  margin-left: 4px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* responsive overlay */
@media (max-width: 600px) {
  .overlay__card { padding: 32px 24px; }
  .overlay { padding: 16px; }
  .share { flex-direction: column; border-radius: 18px; padding: 12px; gap: 12px; }
  .share input { padding: 8px 4px; text-align: center; }
  .overlap { flex-direction: column; align-items: stretch; gap: 12px; }
  .overlap__divider { width: 100%; height: 1px; }
}
