/* Aesthetic Bio Generator — page-specific styles only.
   Shared header, footer, theme, buttons, FAQ and back-to-top live in global.css. */

.bio-shell {
  width: min(1050px,calc(100% - 32px));
  margin-inline: auto;
}

.reading-shell {
  width: min(900px,calc(100% - 32px));
  margin-inline: auto;
}

.bio-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 70px;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  max-width: 720px;
  font-size: clamp(3rem,7vw,5.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero-copy .hero-lead {
  max-width: 650px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.hero-proof strong {
  color: var(--text);
  font-size: 12px;
}

.hero-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb,var(--surface) 95%,transparent);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.preview-profile-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg,#ffd9ec,#d9cdfa);
  color: #6f3158;
  font-weight: 900;
}

.preview-profile-top strong,.preview-profile-top small {
  display: block;
}

.preview-profile-top strong {
  font-size: 12px;
}

.preview-profile-top small {
  color: var(--muted);
  font-size: 12px;
}

.preview-profile-top button,.profile-head button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.hero-bio-sample {
  padding: 18px 2px;
}

.hero-bio-sample strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}

.hero-bio-sample p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.preview-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.bio-studio-section {
  padding: 22px 0 84px;
}

.studio-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 16px;
}

.studio-heading h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.studio-heading>p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.bio-studio {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.studio-sticky-controls {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  background: color-mix(in srgb,var(--surface) 96%,transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.platform-row,.vibe-row {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
}

.platform-row {
  padding-bottom: 7px;
}

.vibe-row {
  padding-top: 0;
}

.control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.platform-tabs,.vibe-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.platform-tab,.vibe-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.platform-tab {
  min-height: 38px;
  border-radius: 11px;
  padding: 7px 10px;
}

.platform-tab small {
  margin-left: 4px;
  color: inherit;
  opacity: .72;
}

.vibe-pill {
  min-height: 35px;
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
}

.platform-tab:hover,.vibe-pill:hover {
  color: var(--text);
  border-color: color-mix(in srgb,var(--primary) 34%,var(--line));
}

.platform-tab.active,.vibe-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.studio-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 315px;
  align-items: start;
}

.builder-pane {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.builder-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.builder-card-head,.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.builder-card-head>div,.results-heading>div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}

.builder-card-head>div>span,.results-heading>div:first-child>span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.builder-card-head strong {
  font-size: 12px;
}

.builder-card-head>button,.result-tools button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}

.field-grid label {
  min-width: 0;
}

.field-grid label>span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.field-grid label>span small {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.field-grid input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.field-grid input:focus {
  border-color: color-mix(in srgb,var(--primary) 50%,var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 9%,transparent);
}

.wide-field {
  grid-column: 1/-1;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.toggle-option {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.toggle-option input {
  accent-color: var(--primary);
}

.generate-button {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
}

.results-block {
  margin-top: 20px;
}

.results-heading h3 {
  margin: 0;
  font-size: 18px;
}

.result-tools {
  display: flex;
  gap: 7px;
}

.result-tools button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.bio-results {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.bio-result {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .15s ease,box-shadow .15s ease;
}

.bio-result.active {
  border-color: color-mix(in srgb,var(--primary) 42%,var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 7%,transparent);
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.result-top span {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
}

.result-top div {
  display: flex;
  gap: 5px;
}

.result-top button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.result-top button:hover {
  color: var(--primary);
}

.bio-result textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.bio-result textarea:focus {
  border-color: color-mix(in srgb,var(--primary) 45%,var(--line));
}

.result-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.result-bottom strong {
  color: var(--text);
}

.result-bottom .over {
  color: #b23a4a;
}

.preview-pane {
  position: sticky;
  top: calc(var(--header-height) + 116px);
  padding: 18px;
  background: linear-gradient(160deg,var(--surface-2),var(--surface));
  border-radius: 0 0 26px 0;
}

.preview-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.preview-pane-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.preview-pane-head strong {
  font-size: 12px;
}

.profile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.profile-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
}

.profile-head .avatar {
  width: 38px;
  height: 38px;
}

.profile-head strong,.profile-head small {
  display: block;
}

.profile-head strong {
  font-size: 12px;
}

.profile-head small {
  color: var(--muted);
  font-size: 12px;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0;
  padding: 11px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.profile-stats strong {
  color: var(--text);
}

.profile-bio {
  min-height: 112px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.fit-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.fit-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.fit-top span {
  color: var(--muted);
}

.fit-track {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.fit-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--success);
  transition: width .2s ease;
}

.fit-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.quick-symbols {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.quick-symbols-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.quick-symbols-head span {
  font-size: 12px;
  font-weight: 850;
}

.quick-symbols-head a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.quick-symbols>div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.quick-symbols button {
  min-width: 31px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.saved-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.saved-strip button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.saved-strip button:hover {
  color: var(--primary);
}

.template-section {
  padding: 76px 0;
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

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

.template-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb,var(--primary) 34%,var(--line));
  box-shadow: var(--shadow-sm);
}

.template-card>span {
  font-size: 21px;
}

.template-card strong {
  margin-top: 12px;
  font-size: 13px;
}

.template-card p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.template-card em {
  margin-top: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  font-style: normal;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

.how-grid h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.steps {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steps li>span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.steps strong {
  font-size: 12px;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 900;
}

.compat-card h3 {
  margin: 16px 0 6px;
  font-size: 17px;
}

.compat-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.platform-cards article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.platform-cards article>span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.platform-cards h3 {
  margin: 15px 0 5px;
  font-size: 15px;
}

.platform-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.related-section {
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.related-tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.related-tool-card:hover {
  border-color: color-mix(in srgb,var(--primary) 35%,var(--line));
  box-shadow: var(--shadow-sm);
}

.related-tool-card strong,.related-tool-card small {
  display: block;
}

.related-tool-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.history-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.history-panel strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.history-panel button {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 12px;
  white-space: pre-wrap;
}

@media (max-width:900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .eyebrow,.hero-copy .hero-lead {
    margin-inline: auto;
  }
  .hero-actions,.hero-proof {
    justify-content: center;
  }
  .hero-preview {
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
    transform: none;
  }
  .studio-body {
    grid-template-columns: 1fr;
  }
  .builder-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .preview-pane {
    position: relative;
    top: auto;
    border-radius: 0 0 26px 26px;
  }
  .template-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .platform-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .bio-shell,.reading-shell {
    width: min(100% - 20px,1050px);
  }
  .bio-hero {
    padding: 42px 0 50px;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem,15vw,4rem);
  }
  .studio-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .studio-heading>p {
    text-align: left;
  }
  .platform-row,.vibe-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .builder-pane {
    padding: 12px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .wide-field {
    grid-column: auto;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .template-grid,.platform-cards {
    grid-template-columns: 1fr;
  }
  .preview-profile-top {
    grid-template-columns: auto 1fr;
  }
  .preview-profile-top button {
    display: none;
  }
  .result-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
