/* Global typography pass */
.hero h1 {
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1;
}
.page h1 {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}
.section h2,
.page h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.12;
}
.card h2,
.panel h2,
.tool-card h3,
.category-card h3 {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.18;
}
.question-stage h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.lead {
  font-size: clamp(16px, 1.8vw, 18px);
}
.page {
  padding: 58px 0;
}

/* Better base fields */
input,
select,
textarea {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(34,211,238,.62);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
input::placeholder,
textarea::placeholder {
  color: rgba(170,179,199,.76);
}

/* Homepage guide steps */
.guide-section {
  padding-top: 56px;
}
.guide-section .section-head p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 0;
  color: rgba(226,232,240,.78);
}
.guide-flow {
  align-items: stretch;
}
.guide-flow article {
  min-height: 260px;
  align-content: start;
  gap: 14px;
  padding: 24px;
}
.guide-flow article span {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}
.guide-flow article p {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 15px;
  line-height: 1.7;
}

/* Contact page */
.contact-form {
  position: relative;
  width: min(720px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(139,92,246,.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.contact-form input,
.contact-form textarea {
  min-height: 50px;
  border-radius: 12px;
  padding: 13px 14px;
}
.contact-form input[name="subject"],
.contact-form textarea,
.contact-form .btn {
  grid-column: 1 / -1;
}
.contact-form textarea {
  min-height: 150px;
}
.contact-form .btn {
  width: fit-content;
  min-width: 190px;
  margin-top: 2px;
}
.contact-form + [data-form-message] {
  width: min(720px, 100%);
}

/* Review form */
.review-section.panel.card {
  max-width: 880px;
  padding: 24px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34,211,238,.11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.review-section h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}
.review-section > p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 0;
}
.review-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
.review-form input,
.review-form select,
.review-form textarea {
  min-height: 50px;
  border-radius: 12px;
  padding: 13px 14px;
}
.review-form textarea {
  min-height: 128px;
}
.review-form button {
  width: fit-content;
  min-width: 178px;
}
.review-list {
  margin-top: 22px;
}
.review-card {
  border-radius: 14px;
  background: rgba(255,255,255,.052);
}
.review-card p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 38px;
  }
  .page h1 {
    font-size: 32px;
  }
  .guide-flow article {
    min-height: auto;
  }
  .contact-form,
  .review-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .review-form {
    padding: 0;
  }
  .contact-form .btn,
  .review-form button {
    width: 100%;
  }
}
