/* Havoc Engine landing page — dark FFM-style bio link. Mobile-first. */

:root {
  --bg: #0d0f12;
  --bg-elev: #16191f;
  --text: #f4f5f7;
  --text-dim: #a6acb6;
  --radius: 14px;
  --radius-pill: 16px;
  --maxw: 600px;
  --focus: #7db4ff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- hero --- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.artist-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 4px 0 0;
  letter-spacing: -0.5px;
}

.tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* --- buttons --- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 16px 8px 8px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent, #333);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pill:active { transform: translateY(0); filter: brightness(0.96); }

.pill-label {
  flex: 1;
  min-width: 0;
}

.btn-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.25);
}

/* External pills with no thumbnail get a bit more left padding for balance */
.pill:not(.pill-release):not(:has(.btn-thumb)) { padding-left: 20px; }
.pill-release:not(:has(.btn-thumb)) { padding-left: 20px; }

.pill-caret {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.pill-release[aria-expanded="true"] .pill-caret {
  transform: rotate(-135deg);
}

/* --- DSP picker (expand/collapse) --- */
.release { display: flex; flex-direction: column; }

.picker {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}

.picker[hidden] {
  display: grid;              /* keep grid so the animation works */
  grid-template-rows: 0fr;
}

/* Collapsed pickers must not trap keyboard focus: hide content after the
   collapse animation ends (visibility flips discretely at the delay). */
.picker-inner { visibility: visible; transition: visibility 0s linear; }
.picker[hidden] .picker-inner { visibility: hidden; transition-delay: 0.25s; }

.picker-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 4px;
}

.picker:not([hidden]) .picker-inner { padding: 10px 4px 4px; }

.svc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.svc:hover { background: #1f242c; border-color: rgba(255, 255, 255, 0.28); }

.svc-more { display: none; }
.picker.show-more .svc-more { display: flex; }

.svc-more-toggle {
  grid-column: 1 / -1;
  color: var(--text-dim);
}
.picker.show-more .svc-more-toggle { display: none; }

/* --- follow --- */
.follow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.follow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.follow-link:hover { background: #1f242c; border-color: rgba(255, 255, 255, 0.3); }

/* --- socials --- */
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.12s ease, background 0.12s ease;
}

.social svg { fill: currentColor; }
.social:hover { color: var(--text); background: var(--bg-elev); }

/* --- signup --- */
.signup {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.signup h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#signup-email {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #0d0f12;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

#signup-email::placeholder { color: #6b7280; }

#signup-form button {
  min-height: 48px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #e8b34a;
  color: #1a1205;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.12s ease;
}

#signup-form button:hover { filter: brightness(1.06); }
#signup-form button:disabled { opacity: 0.6; cursor: default; }

.signup-msg {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.signup-msg.ok { color: #6ee7a0; }
.signup-msg.err { color: #ff9b8a; }

/* Honeypot + a11y helpers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --- footer --- */
.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 8px;
}
.footer p { margin: 0; }

/* --- focus visibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* --- larger screens --- */
@media (min-width: 480px) {
  .picker-inner { grid-template-columns: repeat(3, 1fr); }
  .svc-more-toggle { grid-column: 1 / -1; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .picker { transition: none; }
}
