* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.eyebrow.dark {
  color: #1d4ed8;
  opacity: 1;
}

h1 {
  font-size: 2.8rem;
  margin: 12px 0;
}

h2 {
  margin-top: 0;
}

.page-title {
  font-size: 2.2rem;
  margin: 10px 0;
}

.subtitle,
.page-subtitle {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.page-shell {
  padding: 40px 0 60px;
}

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

.progress-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1d4ed8;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  transition: width 0.25s ease;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: #f59e0b;
  color: #111827;
  padding: 14px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.button-secondary {
  background: white;
  color: #1d4ed8;
  border: 2px solid #1d4ed8;
}

.text-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 50px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.results-grid {
  margin-bottom: 20px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.options-group {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.option-card {
  display: block;
  border: 2px solid #dbe3f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: #1d4ed8;
  background: #eef4ff;
}

.option-card input {
  margin-right: 10px;
}

.form-nav {
  margin-top: 24px;
}

.form-message {
  text-align: center;
  color: #b91c1c;
  font-weight: bold;
  margin-top: 12px;
}

.clean-list {
  padding-left: 20px;
  line-height: 1.8;
}

.nested-card {
  box-shadow: none;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.community-card {
  text-align: center;
}

.footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    text-align: center;
    width: 100%;
  }
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.insight-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
}

.score-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: white;
  border: 1px solid #dbe3f0;
}

.score-name {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.score-value {
  min-width: 40px;
  text-align: center;
  background: #1d4ed8;
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: bold;
}

.muted-note {
  margin-top: 20px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}


.text-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  font-size: 1rem;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
