* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7ff 0%, #fdf2f8 40%, #f5f7ff 100%);
  color: #1f2933;
}
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e7eb;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-dot { font-size: 20px; color: #7c3aed; }
.brand-title { font-weight: 700; font-size: 16px; }
.brand-subtitle { color: #6b7280; font-size: 13px; }
.cta-group { display: flex; gap: 10px; }
.link-btn {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #7c3aed;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 8px 18px -10px rgba(99, 102, 241, 0.5);
}
.link-btn.ghost {
  background: #f3f4ff;
  border-color: #d8dafe;
  color: #4338ca;
}

.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  background: linear-gradient(135deg, #f9f7ff, #fef3f8);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #ece9ff;
  box-shadow: 0 18px 40px -30px rgba(107, 114, 128, 0.6);
}
.hero h1 { margin: 0 0 8px; font-size: 26px; color: #1f2937; }
.hero p { margin: 0 0 12px; color: #4b5563; }
.pill-list { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.pill-list li {
  background: #e7edff;
  color: #4338ca;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-card {
  background: linear-gradient(160deg, #93c5fd, #fbcfe8);
  color: #0f172a;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
}
.hero-title { font-weight: 700; margin-bottom: 10px; }
.hero-card ol { margin: 0; padding-left: 18px; line-height: 1.6; }

.section-header { margin: 28px 0 12px; }
.section-header h2 { margin: 0 0 6px; color: #111827; }
.section-header p { margin: 0; color: #6b7280; }

.tests { margin-top: 30px; }
.test-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.test-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid #e8eaff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 14px 38px -30px rgba(79, 70, 229, 0.5);
  backdrop-filter: blur(6px);
}
.test-card h3 { margin: 0; color: #111827; }
.test-card p { margin: 0; color: #4b5563; }
.test-meta { color: #6b7280; font-size: 13px; }
.primary-btn {
  padding: 10px 14px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px -16px rgba(99, 102, 241, 0.6);
}
.primary-btn:hover { filter: brightness(0.97); }
.ghost-btn {
  padding: 8px 12px;
  background: #f3f4ff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
}
.ghost-btn:hover { background: #e5e7eb; }

.test-panel, .result-panel {
  margin-top: 26px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e8eaff;
  border-radius: 18px;
  padding: 18px 18px 24px;
  box-shadow: 0 18px 44px -32px rgba(99, 102, 241, 0.45);
  backdrop-filter: blur(6px);
}
.hidden { display: none; }
.panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-meta h3 { margin: 0; color: #111827; }
.panel-meta p { margin: 2px 0 0; color: #6b7280; }

.question-form { display: flex; flex-direction: column; gap: 14px; }
.guide-box {
  border: 1px dashed #c7ccff;
  background: #f6f7ff;
  color: #4b5563;
  padding: 12px;
  border-radius: 12px;
}
.guide-title { font-weight: 700; color: #111827; margin-bottom: 4px; }
.guide-text { margin: 0; }
.question-item {
  border: 1px solid #e8eaff;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, #f8f7ff);
  box-shadow: 0 8px 22px -20px rgba(99, 102, 241, 0.35);
}
.question-title { margin: 0 0 10px; font-weight: 700; color: #111827; }
.scale-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scale-option {
  display: inline-flex;
  align-items: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.scale-option input {
  display: none;
}
.scale-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 9px 12px;
  border: 1px solid #dfe3ff;
  border-radius: 12px;
  background: #f6f7ff;
  color: #1f2937;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.scale-option:hover span { border-color: #a5b4fc; background: #eef2ff; }
.scale-option input:checked + span {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #312e81;
  box-shadow: 0 6px 14px -10px rgba(124, 58, 237, 0.6);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hint { color: #6b7280; font-size: 13px; }

.result-card {
  border: 1px solid #e8eaff;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f7f9ff, #fff1f7);
  box-shadow: 0 10px 26px -24px rgba(79, 70, 229, 0.4);
}
.result-label { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: #111827; }
.result-score { color: #4b5563; margin-bottom: 10px; }
.result-desc { color: #374151; margin-bottom: 10px; line-height: 1.5; }
.advice-list { margin: 0; padding-left: 18px; color: #374151; }
.result-secondary {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
}

.disclaimer {
  margin-top: 40px;
  padding: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e8eaff;
  border-radius: 12px;
  color: #4b5563;
  line-height: 1.6;
  box-shadow: 0 10px 24px -24px rgba(79, 70, 229, 0.35);
}

.test-banner {
  margin-top: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e8eaff;
  border-radius: 14px;
  padding: 12px 16px;
  color: #111827;
  box-shadow: 0 10px 26px -26px rgba(99, 102, 241, 0.35);
}
.test-banner h2 { margin: 0; font-size: 20px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta-group { width: 100%; }
  .link-btn { flex: 1; text-align: center; }
}

