:root{font-family:Inter,system-ui,sans-serif;color:#f9f5ff;background:#100c1b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% 0,#39205e,#100c1b 60%);min-height:100vh}main{max-width:820px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;gap:16px;align-items:center}header strong{font-size:22px}header span,small,footer{color:#c1b7d3}h1{font-size:clamp(40px,8vw,72px);line-height:1.04;letter-spacing:-2px;margin:20px 0}em{color:#bc91ff;font-style:normal}.hero{text-align:center;padding:70px 0 30px}.hero p{font-size:18px;color:#c8c0d8}.pill{border:1px solid #8065a4;border-radius:30px;padding:8px 16px;color:#e8d6ff}.card{background:#21172f;border:1px solid #4b365f;padding:28px;border-radius:24px;margin:25px 0;box-shadow:0 20px 50px #0004}label{display:block;font-weight:750;margin-bottom:12px}textarea{width:100%;min-height:190px;resize:vertical;border:1px solid #71578b;border-radius:12px;background:#140f20;color:white;padding:16px;font:inherit}button{background:#9254f5;color:white;border:0;border-radius:12px;padding:15px 22px;font-size:16px;font-weight:800;cursor:pointer;margin-top:15px}button:disabled{opacity:.6;cursor:wait}small{display:block;margin-top:12px;font-size:12px}.hidden{display:none}.score{font-size:50px;font-weight:900;color:#c9a7ff}.outline{background:transparent;border:1px solid #9473bc}.offer{background:#36214f;border-radius:18px;padding:20px;margin-top:24px}#error{color:#ff9e9e}li{margin:12px 0;line-height:1.5}footer{text-align:center;padding:40px 0;font-size:13px}@media(max-width:600px){main{padding:16px}.hero{padding-top:45px}.card{padding:18px}header span{display:none}}
/* Paid makeover results */

.makeover-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
  color: #f9f5ff;
}

.makeover-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #e9d5ff;
  margin: 28px 0 10px;
}

.makeover-content p {
  margin: 0 0 16px;
}

.makeover-content ol {
  padding-left: 24px;
  margin: 10px 0 22px;
}

.makeover-content li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.makeover-content strong {
  color: #ffffff;
  font-weight: 750;
}

.card {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .makeover-content {
    font-size: 15px;
  }

  .makeover-content h2 {
    font-size: 19px;
  }
}

/* Paid makeover action buttons */
.makeover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
}

.makeover-actions[hidden] {
  display: none;
}

.makeover-actions button {
  flex: 1 1 180px;
  padding: 12px 16px;
  border: 1px solid #a78bfa;
  border-radius: 12px;
  background: #7c3aed;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.makeover-actions button:hover {
  background: #6d28d9;
}

.makeover-actions button:focus-visible {
  outline: 3px solid #ddd6fe;
  outline-offset: 3px;
}

#action-status {
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* Legal pages and footer */
.legal-page {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding: 28px 12px;
  font-size: 14px;
}

.legal-footer a {
  color: #c4b5fd;
  text-decoration: underline;
}

/* How It Works */
.how-it-works {
  margin: 40px 0;
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 28px;
}

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

.step {
  background: #2b1b3d;
  border: 1px solid #674a82;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: left;
}

.step span {
  display: block;
  color: #bb91ff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.step p {
  color: #d4c4e5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* How It Works layout correction */
main .how-it-works {
  display: block;
  width: 100%;
  margin: 48px auto;
  text-align: center;
}

main .how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 28px;
}

main .how-it-works .steps .step {
  display: block;
  min-width: 0;
  padding: 24px 18px;
  background: #2b1b3d;
  border: 1px solid #674a82;
  border-radius: 18px;
  text-align: left;
}

main .how-it-works .steps .step span {
  color: #bb91ff;
}

@media (max-width: 900px) {
  main .how-it-works .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  main .how-it-works .steps {
    grid-template-columns: 1fr;
  }
}

/* Premium makeover upgrade */
.offer {
  background: linear-gradient(135deg, #392154, #281936);
  border: 1px solid #76519d;
  border-radius: 18px;
  padding: 28px;
  margin-top: 28px;
}

.offer h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.offer > p {
  color: #ddd0ed;
  line-height: 1.6;
}

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

.premium-benefits li {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid #ffffff18;
  font-size: 15px;
}

#buy {
  display: block;
  width: 100%;
  background: #a56aff;
  font-family: inherit;
  font-size: 17px;
  transition: background 0.2s ease;
}

#buy:hover {
  background: #b988ff;
}

#buy:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.premium-note {
  text-align: center;
  font-size: 13px;
  margin: 12px 0 0;
}

@media (max-width: 600px) {
  .offer {
    padding: 20px;
  }

  .offer h3 {
    font-size: 21px;
  }
}

/* Consistent button typography */
button {
  font-family: inherit;
}

/* Improve AI roast readability */
#roastText {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  color: #eee5f7;
  margin: 18px 0 26px;
}

@media (max-width: 600px) {
  #roastText {
    font-size: 17px;
    line-height: 1.65;
  }
}

/* Compact How It Works cards on mobile */
@media (max-width: 500px) {
  main .how-it-works {
    margin: 30px auto;
  }

  main .how-it-works .steps {
    gap: 12px;
    margin-top: 18px;
  }

  main .how-it-works .steps .step {
    padding: 16px 20px;
  }

  .step span {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .step p {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

/* Final mobile results polish */
@media (max-width: 500px) {
  #share {
    display: block;
    width: 100%;
  }

  .offer h3 {
    font-size: 21px;
    line-height: 1.35;
  }
}

/* Final mobile results polish */
@media (max-width: 500px) {
  #share {
    display: block;
    width: 100%;
  }

  .offer h3 {
    font-size: 21px;
    line-height: 1.35;
  }
}
