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

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  margin-bottom: 24px;
}

.sticky-brand-bar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 0 14px;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #0f4c81;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0f172a;
  font-weight: 700;
}

.hero-copy {
  margin: 0 0 8px 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #1f2937;
  max-width: 620px;
}

.hero-subtext {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.premium-scale {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.scale-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f4c81;
  margin-bottom: 6px;
}

.scale-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #374151;
}

.scale-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.scale-list strong {
  color: #111827;
  font-weight: 600;
}

.scale-list span {
  color: #6b7280;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.card-inner {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.hidden {
  display: none;
}

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

.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.section-block {
  margin-top: 28px;
  padding-top: 8px;
}

.section-title {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.question-block {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 12px;
}

.question-text {
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.scale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scale-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.submit-row {
  margin-top: 20px;
}

button {
  background: #0f4c81;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.95;
}

.snapshot {
  background: #eef6ff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.snapshot h3,
.pattern-card h3,
.overall-ai h3 {
  margin-top: 0;
}

.snapshot p {
  margin: 6px 0;
}

.snapshot strong {
  color: #0f4c81;
}

.pattern-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.pattern-card h3 {
  color: #0f4c81;
}

.pattern-card ul {
  margin-top: 8px;
  padding-left: 20px;
}

.overall-ai {
  background: #f3f7ff;
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
}

.feedback-message {
  margin-top: 12px;
  color: #0f4c81;
  font-weight: 600;
}

/* Header collapse after submit */
.header-collapsed {
  padding: 8px 0 8px;
}

.header-collapsed .hero-shell {
  gap: 6px;
}

.header-collapsed .premium-scale {
  display: none;
}

.header-collapsed .logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.header-collapsed .logo {
  max-width: 34px;
  max-height: 34px;
}

.header-collapsed .brand-kicker {
  margin-bottom: 2px;
  font-size: 0.68rem;
}

.header-collapsed .hero-title {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
}

.header-collapsed .hero-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
}

.header-collapsed .hero-subtext {
  display: none;
}

@media (max-width: 860px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .scale-row {
    flex-direction: column;
    gap: 8px;
  }

  .logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .logo {
    max-width: 36px;
    max-height: 36px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .premium-scale {
    padding: 10px 12px;
  }

  .scale-list {
    font-size: 0.78rem;
  }
}