/* Public Bio Page — premium Linktree-style layout */

.bio-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bio-page-bg, var(--bio-bg, #fafafa));
  background-attachment: fixed;
  color: var(--bio-text, #18181b);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.public-shell,
.bio-container,
.public-page {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.profile-header,
.bio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 28px;
}

.profile-avatar,
.bio-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid var(--bio-border, #e4e4e7);
  background: var(--bio-text, #18181b);
  color: var(--bio-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.bio-avatar--img {
  object-fit: cover;
  display: block;
  background: var(--bio-border, #e4e4e7);
}

.profile-kicker,
.bio-headline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bio-on-bg-soft, var(--bio-secondary, #71717a));
}

.profile-title,
.bio-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--bio-on-bg, var(--bio-text, #18181b));
}

.bio-description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bio-on-bg-soft, var(--bio-secondary, #71717a));
  max-width: 100%;
}

.primary-cta,
.dynamic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  margin-top: 8px;
  border-radius: 16px;
  background: var(--bio-text, #18181b);
  color: var(--bio-surface, #fff);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-cta:hover,
.dynamic-cta:hover {
  opacity: 0.92;
}

.primary-cta:active,
.dynamic-cta:active {
  transform: scale(0.98);
}

.bio-blocks {
  width: 100%;
}

/* Social icon row */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--bio-on-bg-soft, var(--bio-secondary, #71717a));
  font-size: 19px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  color: var(--bio-on-bg, var(--bio-text, #18181b));
  transform: translateY(-2px);
}

.social-link:active {
  transform: scale(0.94);
}

/* Link card with leading icon */
.bio-page .bento-item--link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bio-block__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bio-bg, #fafafa);
  border: 1px solid var(--bio-border, #e4e4e7);
  color: var(--bio-text, #18181b);
  font-size: 16px;
}

.bio-block__body {
  display: block;
  min-width: 0;
  flex: 1;
  padding-right: 20px;
}

.bio-block__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bio-text, #18181b);
  line-height: 1.35;
}

.bio-block__content {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--bio-secondary, #71717a);
  line-height: 1.45;
}

.bio-block__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--bio-secondary, #71717a);
  opacity: 0.4;
}

.bio-block__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bio-secondary, #71717a);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento-item--text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bio-text, #18181b);
}

/* Lead form */
.bio-page .lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.bio-page .lead-form input,
.bio-page .lead-form textarea,
.bio-page .lead-form .input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bio-border, #e4e4e7);
  border-radius: 14px;
  background: var(--bio-surface, #fff);
  padding: 14px 16px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--bio-text, #18181b);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bio-page .lead-form input {
  min-height: 48px;
  height: auto;
}

.bio-page .lead-form textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

.bio-page .lead-form input:focus,
.bio-page .lead-form textarea:focus {
  border-color: #d4d4d8;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.06);
}

.bio-page .lead-form .btn,
.bio-page .lead-form .primary-cta {
  width: 100%;
  margin-top: 4px;
}

.bio-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--bio-secondary, #71717a);
  font-size: 0.875rem;
}

.bio-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
}

.bio-footer__link {
  font-size: 0.75rem;
  color: var(--bio-on-bg-soft, var(--bio-secondary, #71717a));
  text-decoration: none;
  transition: color 0.15s ease;
}

.bio-footer__link:hover {
  color: var(--bio-on-bg, var(--bio-text, #18181b));
}

.bio-footer__sep {
  font-size: 0.75rem;
  color: var(--bio-on-bg-soft, var(--bio-secondary, #71717a));
  margin: 0 6px;
}

.form-success {
  padding: 12px 16px;
  background: #f0fdf4;
  color: var(--success, #16a34a);
  border-radius: 14px;
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.form-error-msg {
  padding: 12px 16px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 14px;
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .bio-page .bento-card {
    transition: none !important;
  }

  .bio-page .bento-card:hover {
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  }
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.error-page p {
  margin-bottom: 32px;
}
