/* ============================================================
   COLLAB — Design System v4
   Visual direction: McKinsey-grade minimalism meets
   creative collaboration. Structured, refined, premium.
   Refinement areas: typography hierarchy, spacing rhythm,
   component precision, whitespace, subtle depth.
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* --- Variables --- */
:root {
  /* Palette — unchanged */
  --cream:        #F5F0E8;
  --cream-warm:   #EDE6D6;
  --cream-deep:   #E2D9C8;
  --ink:          #0F0D0A;
  --ink-soft:     #1A1714;
  --charcoal:     #2B2620;
  --stone:        #6B6459;
  --dust:         #8C8278;

  /* Accents */
  --lime:         #D4F241;
  --lime-dim:     #B8D636;
  --coral:        #FF5C4D;
  --violet:       #7B5CF0;
  --violet-light: #A992F8;
  --teal:         #12B886;
  --teal-light:   #3ECFA6;
  --amber:        #F59E0B;

  /* Surfaces — slightly refined depth */
  --surface-0:    #0C0A08;
  --surface-1:    #161310;
  --surface-2:    #201D18;
  --surface-3:    #2A2620;
  --surface-cream:#F5F0E8;
  --border-dark:  rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.13);
  --border-light: rgba(15,13,10,0.10);

  /* Text tokens */
  --t-dark-hi:  #F2EDE4;
  --t-dark-md:  #B8AFA5;
  --t-dark-lo:  #7A7268;
  --t-cream-hi: #0F0D0A;
  --t-cream-md: #2B2620;
  --t-cream-lo: #6B6459;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --nav-h: 58px;
  --r-xs:  3px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 26px;
  --r-pill:999px;

  /* Refined shadow tokens */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.20);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.32), 0 1px 3px rgba(0,0,0,0.18);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.40), 0 2px 8px rgba(0,0,0,0.22);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.52), 0 4px 16px rgba(0,0,0,0.28);
  --shadow-xl: 0 28px 72px rgba(0,0,0,0.62), 0 8px 24px rgba(0,0,0,0.32);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:  0.18s;
  --dur-md: 0.28s;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--t-dark-hi);
  line-height: 1.68;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.008em;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
.serif { font-family: var(--font-serif); }

h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--t-dark-hi);
  font-weight: 400;
}
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.32;
  color: var(--t-dark-hi);
  letter-spacing: -0.005em;
}

.on-cream h1, .on-cream h2, .on-cream h3,
.on-cream h4, .on-cream h5, .on-cream h6 {
  color: var(--t-cream-hi);
}

/* Display scale — McKinsey-grade typographic hierarchy */
.display-2xl {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--t-dark-hi);
  font-weight: 400;
}
.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.032em;
  color: var(--t-dark-hi);
  font-weight: 400;
}
.display-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--t-dark-hi);
  font-weight: 400;
}
.display-md {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--t-dark-hi);
  font-weight: 400;
}
.display-sm {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.20;
  letter-spacing: -0.01em;
  color: var(--t-dark-hi);
  font-weight: 400;
}

/* Eyebrow — precise, restrained */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-dark-lo);
  line-height: 1;
}
.on-cream .eyebrow { color: var(--t-cream-lo); }

/* Body text — generous leading for readability */
.prose    { font-size: 0.96rem;  line-height: 1.82; color: var(--t-dark-md); font-weight: 400; }
.prose-sm { font-size: 0.845rem; line-height: 1.74; color: var(--t-dark-md); font-weight: 400; }
.on-cream .prose, .on-cream .prose-sm { color: var(--t-cream-md); }

/* Color utilities */
.text-hi      { color: var(--t-dark-hi); }
.text-md      { color: var(--t-dark-md); }
.text-lo      { color: var(--t-dark-lo); }
.text-cream   { color: var(--t-dark-hi); }
.text-ink     { color: var(--t-cream-hi); }
.text-lime    { color: var(--lime); }
.text-coral   { color: #FF7A6E; }
.text-violet  { color: var(--violet-light); }
.text-teal    { color: var(--teal-light); }
.text-amber   { color: var(--amber); }
.text-stone   { color: var(--t-dark-lo); }

/* --- Layout --- */
.container        { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 32px; }
.container-wide   { max-width: 1380px; margin: 0 auto; padding: 0 32px; }

/* --- Navigation --- precise, editorial weight */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 999;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  background: rgba(12, 10, 8, 0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  user-select: none;
  line-height: 1;
  text-decoration: none;
}
.nav-logo-word {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--t-dark-hi);
  line-height: 1;
}
.nav-logo-word em {
  font-style: normal;
  color: var(--lime);
}
.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-dark-lo);
  line-height: 1;
  opacity: 0.8;
}
.nav-logo-bracket { display: none; }

/* Nav links — editorial precision */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t-dark-md);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  letter-spacing: 0.006em;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--t-dark-hi);
  background: rgba(255,255,255,0.04);
}
.nav-link.active {
  color: var(--t-dark-hi);
  background: rgba(255,255,255,0.055);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  padding: 8px 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--t-dark-md);
  border-radius: 1px;
  transition: var(--dur) var(--ease);
}
.hamburger:hover span { background: var(--t-dark-hi); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(22,19,16,0.98);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(24px);
  z-index: 998;
  padding: 12px 20px 32px;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  padding: 11px 16px;
  font-size: 0.9rem;
  border-radius: var(--r-md);
  color: var(--t-dark-md);
}
.mobile-nav .nav-link:hover { color: var(--t-dark-hi); }

/* --- Buttons --- precise proportions, strong hierarchy */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.018em;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  outline: none;
  text-transform: none;
  line-height: 1;
  position: relative;
}

/* Primary lime */
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: #e0ff58;
  border-color: #e0ff58;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212,242,65,0.26);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--t-dark-hi);
  border-color: rgba(245,240,232,0.18);
}
.btn-secondary:hover {
  border-color: rgba(245,240,232,0.42);
  background: rgba(245,240,232,0.04);
}

/* Lime — primary alias */
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-lime:hover {
  background: #e0ff58;
  border-color: #e0ff58;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212,242,65,0.26);
}
.btn-lime:active { transform: translateY(0); box-shadow: none; }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--t-dark-hi);
  border-color: rgba(245,240,232,0.18);
}
.btn-outline:hover {
  border-color: rgba(245,240,232,0.42);
  background: rgba(245,240,232,0.04);
}

/* Ghost — restrained text action */
.btn-ghost {
  background: transparent;
  color: var(--t-dark-md);
  padding: 8px 14px;
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--t-dark-hi);
  background: rgba(255,255,255,0.035);
}

/* Coral */
.btn-coral {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-coral:hover { background: #ff4535; border-color: #ff4535; transform: translateY(-1px); }

/* Cream */
.btn-cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-cream:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }

/* Ink */
.btn-ink {
  background: var(--ink);
  color: var(--t-dark-hi);
  border-color: rgba(255,255,255,0.08);
}
.btn-ink:hover { background: var(--charcoal); }

/* Violet */
.btn-violet {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.btn-violet:hover { background: #6B4DE0; border-color: #6B4DE0; transform: translateY(-1px); }

/* Size variants */
.btn-sm  { padding: 7px 15px; font-size: 0.75rem; letter-spacing: 0.014em; }
.btn-lg  { padding: 13px 30px; font-size: 0.9rem; }
.btn-xl  { padding: 15px 38px; font-size: 0.96rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 9px; border-radius: var(--r-md); }

/* --- Cards --- elevated, precise depth */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-md) var(--ease),
              transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
  overflow: hidden;
}
.card:hover { border-color: var(--border-mid); }
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 28px; }

/* Card variants */
.card-cream  { background: var(--cream); border-radius: var(--r-xl); color: var(--t-cream-hi); overflow: hidden; }
.card-sand   { background: var(--cream-warm); border-radius: var(--r-xl); color: var(--t-cream-hi); overflow: hidden; }
.card-lime   { background: var(--lime); border-radius: var(--r-xl); color: var(--ink); overflow: hidden; }
.card-coral  { background: var(--coral); border-radius: var(--r-xl); color: #fff; overflow: hidden; }
.card-violet { background: var(--violet); border-radius: var(--r-xl); color: #fff; overflow: hidden; }

/* --- Tags / Chips --- restrained, precise */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

.tag-lime    { background: var(--lime);   color: var(--ink); }
.tag-coral   { background: #FF5C4D;       color: #fff; }
.tag-violet  { background: #7B5CF0;       color: #fff; }
.tag-teal    { background: #12B886;       color: #fff; }
.tag-cream   { background: var(--cream);  color: var(--ink); }
.tag-ink     { background: var(--ink);    color: var(--cream); border: 1px solid rgba(255,255,255,0.12); }
.tag-stone   { background: rgba(245,240,232,0.08); color: var(--t-dark-hi); border: 1px solid var(--border-dark); }
.tag-amber   { background: #F59E0B;       color: var(--ink); }

/* Genre tags — refined, more muted */
.tag-rnb     { background: rgba(123,92,240,0.14); color: var(--violet-light); border: 1px solid rgba(123,92,240,0.2); }
.tag-hiphop  { background: rgba(255,92,77,0.12);  color: #FF8C84; border: 1px solid rgba(255,92,77,0.2); }
.tag-jazz    { background: rgba(176,125,44,0.14);  color: #D4A853; border: 1px solid rgba(176,125,44,0.22); }
.tag-electro { background: rgba(18,184,134,0.12);  color: var(--teal-light); border: 1px solid rgba(18,184,134,0.2); }
.tag-indie   { background: rgba(255,255,255,0.05); color: var(--t-dark-md); border: 1px solid var(--border-dark); }
.tag-gospel  { background: rgba(194,119,58,0.14);  color: #E0A070; border: 1px solid rgba(194,119,58,0.22); }
.tag-pop     { background: rgba(214,51,132,0.12);  color: #E87FBF; border: 1px solid rgba(214,51,132,0.2); }
.tag-rb      { background: rgba(123,92,240,0.14);  color: var(--violet-light); border: 1px solid rgba(123,92,240,0.2); }
.tag-soul    { background: rgba(176,125,44,0.14);  color: #D4A853; border: 1px solid rgba(176,125,44,0.22); }

.tags-row { display: flex; flex-wrap: wrap; gap: 5px; }

/* --- Avatar --- */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.avatar-xs  { width: 26px; height: 26px; font-size: 0.8rem; }
.avatar-sm  { width: 36px; height: 36px; font-size: 0.95rem; }
.avatar-md  { width: 50px; height: 50px; font-size: 1.25rem; }
.avatar-lg  { width: 70px; height: 70px; font-size: 1.75rem; }
.avatar-xl  { width: 96px; height: 96px; font-size: 2.3rem; }
.avatar-2xl { width: 124px; height: 124px; font-size: 2.8rem; }
.avatar-ring       { outline: 2px solid var(--lime); outline-offset: 2px; }
.avatar-ring-coral { outline: 2px solid var(--coral); outline-offset: 2px; }

/* --- Forms --- refined, editorial clarity */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-dark-lo);
  margin-bottom: 9px;
  line-height: 1;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 13px 17px;
  color: var(--t-dark-hi);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.52;
  transition: border-color var(--dur-md) var(--ease),
              background var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--t-dark-lo);
  opacity: 0.7;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(212,242,65,0.45);
  background: rgba(212,242,65,0.025);
  box-shadow: 0 0 0 3px rgba(212,242,65,0.07);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }
.form-select option { background: var(--surface-2); color: var(--t-dark-hi); }
.form-hint  { font-size: 0.72rem; color: var(--t-dark-lo); margin-top: 7px; line-height: 1.55; }
.form-error { font-size: 0.72rem; color: #FF7A6E; margin-top: 7px; line-height: 1.4; }

/* Option cards */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color var(--dur-md) var(--ease),
              background var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease);
}
.option-card:hover {
  border-color: rgba(255,255,255,0.14);
  background: var(--surface-2);
}
.option-card.selected {
  border-color: rgba(212,242,65,0.38);
  background: rgba(212,242,65,0.045);
  box-shadow: 0 0 0 3px rgba(212,242,65,0.06);
}
.option-card-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--t-dark-lo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--dur) var(--ease);
}
.option-card.selected .option-card-check {
  background: var(--lime);
  border-color: var(--lime);
}
.option-card.selected .option-card-check::after {
  content: '';
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 50%;
  display: block;
}
.option-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t-dark-hi);
  margin-bottom: 3px;
}
.option-card-sub {
  font-size: 0.78rem;
  color: var(--t-dark-md);
  line-height: 1.45;
}

/* --- Progress bar --- */
.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--lime);
  transition: width 0.55s var(--ease);
}

/* Steps dots */
.steps-dots { display: flex; gap: 4px; }
.step-dot {
  height: 2px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  flex: 1;
  transition: background 0.35s var(--ease);
}
.step-dot.active { background: var(--lime); }
.step-dot.done   { background: var(--teal); }

/* --- DNA Badge --- */
.dna-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(123,92,240,0.12);
  border: 1px solid rgba(123,92,240,0.22);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet-light);
  line-height: 1.4;
}

/* --- Trust pills --- */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.trust-pill-high   { background: rgba(18,184,134,0.10); color: var(--teal-light); border: 1px solid rgba(62,207,166,0.18); }
.trust-pill-mid    { background: rgba(123,92,240,0.10); color: var(--violet-light); border: 1px solid rgba(169,146,248,0.18); }
.trust-pill-rising { background: rgba(245,158,11,0.10); color: var(--amber); border: 1px solid rgba(245,158,11,0.18); }
.trust-pill-new    { background: rgba(255,255,255,0.04); color: var(--t-dark-lo); border: 1px solid rgba(255,255,255,0.07); }

/* --- Dividers --- */
hr, .divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); }
.divider-mid   { border-top-color: var(--border-mid); }
.divider-cream { border-top-color: var(--border-light); }

/* --- Toast --- refined, floating */
.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.815rem;
  font-weight: 500;
  color: var(--t-dark-hi);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.24s var(--ease);
  max-width: 320px;
  line-height: 1.45;
}
.toast.success { border-left: 2px solid var(--teal); }
.toast.error   { border-left: 2px solid var(--coral); }
.toast.info    { border-left: 2px solid var(--violet-light); }

/* --- Modal --- editorial weight, precise dimensions */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(10px) saturate(120%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-2xl);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  transform: translateY(16px) scale(0.975);
  transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal h3 { color: var(--t-dark-hi); margin-bottom: 10px; letter-spacing: -0.02em; }
.modal-close {
  float: right;
  padding: 6px;
  color: var(--t-dark-lo);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: color var(--dur);
}
.modal-close:hover { color: var(--t-dark-hi); }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(0.8deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,242,65,0.35); }
  50%       { opacity: 0.75; box-shadow: 0 0 0 7px rgba(212,242,65,0); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes barsWave {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes xpFloat {
  0%   { opacity:0; transform:translateY(10px) scale(0.9); }
  15%  { opacity:1; transform:translateY(0) scale(1); }
  80%  { opacity:1; transform:translateY(-12px); }
  100% { opacity:0; transform:translateY(-20px); }
}
@keyframes _xpFloat {
  0%   { opacity:0; transform:translateY(8px); }
  15%  { opacity:1; transform:translateY(0); }
  80%  { opacity:1; transform:translateY(-10px); }
  100% { opacity:0; transform:translateY(-18px); }
}

.anim-fade-up { animation: fadeUp 0.5s var(--ease) both; }
.anim-fade-in { animation: fadeIn 0.38s var(--ease) both; }

.d-0   { animation-delay: 0s; }
.d-100 { animation-delay: 0.1s; }
.d-150 { animation-delay: 0.15s; }
.d-200 { animation-delay: 0.2s; }
.d-300 { animation-delay: 0.3s; }
.d-400 { animation-delay: 0.4s; }
.d-500 { animation-delay: 0.5s; }

/* --- Waveform --- */
.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.wave-bar {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  animation: barsWave 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
.wave-bar:nth-child(1) { animation-delay: 0s;    height: 40%; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.wave-bar:nth-child(3) { animation-delay: 0.3s;  height: 100%; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.wave-bar:nth-child(5) { animation-delay: 0.6s;  height: 30%; }

/* --- Prompt block --- */
.prompt-block {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.055);
}
.prompt-q {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-dark-lo);
  margin-bottom: 7px;
  line-height: 1;
}
.prompt-a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--t-dark-hi);
  line-height: 1.56;
}
.prompt-block-cream {
  background: rgba(15,13,10,0.05);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.prompt-block-cream .prompt-q { color: var(--t-cream-lo); }
.prompt-block-cream .prompt-a { color: var(--t-cream-hi); }

/* --- Score ring --- */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-ring-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t-dark-hi);
  position: relative;
  z-index: 1;
}

/* --- Skeleton --- */
.skeleton {
  background: linear-gradient(90deg,
    var(--surface-2) 25%,
    rgba(42,38,32,0.9) 50%,
    var(--surface-2) 75%
  );
  background-size: 500px 100%;
  animation: shimmer 1.6s infinite ease-in-out;
  border-radius: var(--r-md);
}

/* --- Sections --- generous whitespace for McKinsey breathing room */
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 128px 0; }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .hamburger { display: flex; }
  .container, .container-narrow, .container-wide { padding: 0 20px; }
  .section    { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-lg { padding: 80px 0; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 12px 24px; font-size: 0.88rem; }
  .btn-xl { padding: 13px 28px; font-size: 0.9rem; }
  .container, .container-narrow, .container-wide { padding: 0 16px; }
}

/* ============================================================
   MEDIA EMBED
   ============================================================ */
.media-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-dark);
}
.media-embed-wrap::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.media-embed-wrap iframe,
.media-embed-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.media-embed-audio { height: 166px; }
.media-embed-audio::before { display: none; }
.media-embed-audio iframe { position: static; height: 166px; width: 100%; }
.media-embed-spotify { height: 152px; }
.media-embed-spotify::before { display: none; }
.media-embed-spotify iframe { position: static; height: 152px; width: 100%; }

/* ============================================================
   GROUP CHAT HELPERS
   ============================================================ */
.r-2xl { border-radius: var(--r-2xl); }

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-radius: 14px 14px 14px 3px;
  border: 1px solid var(--border-dark);
}
.typing-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--t-dark-lo);
  animation: barsWave 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

.pinned-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(212,242,65,0.04);
  border-bottom: 1px solid rgba(212,242,65,0.10);
  font-size: 0.76rem;
  color: var(--t-dark-md);
  flex-shrink: 0;
}
.pinned-bar strong { color: var(--lime); font-weight: 600; }

.ai-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: rgba(169,146,248,0.08);
  border: 1px solid rgba(169,146,248,0.16);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
  display: inline-block;
}

/* ============================================================
   HOME PAGE — Hinge card stack + insight strip + sections
   ============================================================ */

/* Insight strip */
.insight-strip {
  background: var(--surface-1);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  padding: 0;
}
.insight-strip-inner {
  display: flex;
  gap: 0;
  animation: stripScroll 48s linear infinite;
  width: max-content;
}
@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 36px;
  white-space: nowrap;
  font-size: 0.77rem;
  color: var(--t-dark-md);
  font-weight: 400;
  border-right: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.005em;
}
.insight-item strong { color: var(--t-dark-hi); font-weight: 500; }
.insight-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  opacity: 0.65;
}

/* Section headers */
.section-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--t-dark-lo);
  margin-bottom: 12px;
  line-height: 1;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--t-dark-hi);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.section-title em { font-style: italic; color: var(--lime); }
.section-sub {
  font-size: 0.9rem;
  color: var(--t-dark-md);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 480px;
}

/* Today's 3 cards */
.today-section { padding: 80px 0; border-bottom: 1px solid var(--border-dark); }
.today-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.today-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.today-card {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  min-height: 220px;
}
.today-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}
.today-card-head { display: flex; flex-direction: column; gap: 8px; }
.today-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.today-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.today-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--t-dark-hi);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.today-body { font-size: 0.84rem; color: var(--t-dark-md); line-height: 1.65; flex: 1; }
.today-poem-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--t-dark-hi);
  line-height: 1.55;
  padding: 14px 16px;
  background: rgba(212,242,65,0.04);
  border-radius: var(--r-md);
  border-left: 2px solid rgba(212,242,65,0.3);
}
.today-poem-attr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--t-dark-lo);
}
.today-poem-attr-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 700;
}
.today-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}
.today-foot-meta { font-size: 0.75rem; color: var(--t-dark-lo); }
.today-card-poem  { border-top: 2px solid rgba(212,242,65,0.3); }
.today-card-match { border-top: 2px solid rgba(123,92,240,0.3); }
.today-card-drop  { border-top: 2px solid rgba(18,184,134,0.3); }

/* Artist scroll */
.featured-section { padding: 80px 0; border-bottom: 1px solid var(--border-dark); }
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.artist-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.artist-scroll::-webkit-scrollbar { display: none; }
.artist-snap-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.artist-snap-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
}
.asc-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  flex-shrink: 0;
}
.asc-open-ring {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
}
.asc-open-ring.open { border-color: rgba(212,242,65,0.4); }
.asc-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
}
.asc-body { padding: 14px 14px 16px; }
.asc-name { font-family: var(--font-serif); font-size: 0.97rem; color: var(--t-dark-hi); margin-bottom: 3px; line-height: 1.2; }
.asc-role { font-size: 0.72rem; color: var(--t-dark-md); font-weight: 500; margin-bottom: 4px; }
.asc-location { font-size: 0.68rem; color: var(--t-dark-lo); margin-bottom: 8px; }
.asc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.asc-tag { font-size: 0.62rem; font-weight: 600; color: var(--t-dark-lo); background: rgba(255,255,255,0.05); padding: 2px 7px; border-radius: 10px; }

/* Poem strip */
.poem-section { padding: 80px 0; border-bottom: 1px solid var(--border-dark); }
.poem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.poem-display {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.poem-lines-list { display: flex; flex-direction: column; gap: 0; }
.poem-line-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
}
.poem-line-item:last-child { border-bottom: none; }
.pli-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(15,13,10,0.85);
}
.pli-content { flex: 1; }
.pli-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--t-dark-hi);
  line-height: 1.55;
  margin-bottom: 4px;
}
.pli-author { font-size: 0.68rem; color: var(--t-dark-lo); font-weight: 500; }

.poem-footer { padding: 16px 20px; border-top: 1px solid var(--border-dark); }
.poem-submit-row { display: flex; flex-direction: column; gap: 12px; }
.poem-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--t-dark-hi);
  resize: none;
  outline: none;
  transition: border-color var(--dur);
}
.poem-input::placeholder { color: var(--t-dark-lo); font-style: italic; }
.poem-input:focus { border-color: rgba(212,242,65,0.4); }
.poem-input-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* DNA section */
.dna-section { padding: 80px 0; border-bottom: 1px solid var(--border-dark); }
.dna-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.dna-bond-card {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--dur);
}
.dna-bond-card:hover { border-color: var(--border-mid); }
.dna-av-row { display: flex; align-items: center; }
.dna-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(15,13,10,0.8);
  border: 2px solid var(--surface-0);
}
.dna-av:not(:first-child) { margin-left: -10px; }
.dna-song-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--t-dark-hi);
  line-height: 1.2;
}
.dna-names { font-size: 0.76rem; color: var(--t-dark-md); }
.dna-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--violet-light);
  background: rgba(123,92,240,0.1);
  border: 1px solid rgba(123,92,240,0.18);
  border-radius: 20px;
  padding: 3px 9px;
  width: fit-content;
}

/* Insights section */
.insights-section { padding: 80px 0; border-bottom: 1px solid var(--border-dark); }
.insights-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
  margin-top: 36px;
}
.insight-card {
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.insight-card:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.ic-emoji { font-size: 1.4rem; margin-bottom: 4px; }
.ic-category { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-dark-lo); }
.ic-title { font-family: var(--font-serif); font-size: 1rem; color: var(--t-dark-hi); line-height: 1.3; }
.ic-body { font-size: 0.82rem; color: var(--t-dark-md); line-height: 1.65; flex: 1; }
.ic-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-dark); margin-top: auto; }
.ic-author { font-size: 0.7rem; color: var(--t-dark-lo); font-weight: 500; }

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--t-dark-hi);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.cta-section h2 em { font-style: italic; color: var(--lime); }
.cta-section p {
  font-size: 0.95rem;
  color: var(--t-dark-md);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Float elements */
.float-dna {
  position: absolute;
  top: 28px; left: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 14px 18px;
  animation: floatSlow 7s ease-in-out infinite;
  z-index: 10;
  min-width: 180px;
}
.fdna-lbl { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-dark-lo); margin-bottom: 8px; }
.fdna-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--t-dark-hi);
}
.fdna-arrow { color: var(--lime); font-weight: 700; }
.fdna-count { font-size: 0.68rem; color: var(--violet-light); margin-top: 6px; }

.float-match {
  position: absolute;
  bottom: 28px; right: -16px;
  background: var(--surface-1);
  border: 1px solid rgba(212,242,65,0.25);
  border-radius: var(--r-xl);
  padding: 14px 18px;
  text-align: center;
  animation: floatSlow 8s ease-in-out infinite reverse;
  z-index: 10;
}
.fmatch-pct { font-family: var(--font-serif); font-size: 1.5rem; color: var(--lime); line-height: 1; }
.fmatch-lbl { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-dark-lo); margin-top: 4px; }

/* Hinge card stack */
.card-stack { position: relative; width: 290px; height: 370px; }
.stack-card {
  position: absolute;
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.stack-c { top: 22px; left: 18px; right: 18px; bottom: -18px; background: rgba(22,19,16,0.7); }
.stack-b { top: 11px; left: 9px; right: 9px; bottom: -9px; background: rgba(28,24,20,0.85); }
.stack-a { inset: 0; }
.ca-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.ca-match-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(12,10,8,0.85);
  border: 1px solid rgba(212,242,65,0.3);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.04em;
}
.ca-body { padding: 16px 18px; }
.ca-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--t-dark-hi); margin-bottom: 3px; }
.ca-role { font-size: 0.72rem; color: var(--t-dark-md); margin-bottom: 10px; font-weight: 500; }
.ca-prompt-q { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-dark-lo); margin-bottom: 5px; }
.ca-prompt-a { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--t-dark-hi); line-height: 1.5; margin-bottom: 10px; }
.ca-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ca-tag { font-size: 0.62rem; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,0.07); color: var(--t-dark-md); border: 1px solid var(--border-dark); }
.ca-actions {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-dark);
}
.ca-pass {
  flex: 1;
  padding: 9px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  color: var(--t-dark-md);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.ca-pass:hover { background: rgba(255,92,77,0.1); color: #FF8C84; }
.ca-req {
  flex: 2;
  padding: 9px;
  border-radius: var(--r-lg);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  border: none;
}
.ca-req:hover { background: #deff52; }

/* Footer */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy { font-size: 0.75rem; color: var(--t-dark-lo); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 0.79rem; color: var(--t-dark-lo); transition: color var(--dur); }
.footer-link:hover { color: var(--t-dark-hi); }
