:root {
  --gold: #feac1f;
  --gold-soft: #ffd589;
  --cream: #fff8ec;
  --red: #c00000;
  --orange: #ec5923;
  --navy: #002060;
  --ink: #1a1f2e;
  --muted: #44546a;
  --line: #b5c0cf;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 32, 96, 0.12);
  --radius: 18px;
  --font: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(254, 172, 31, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(192, 0, 0, 0.12), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #fff 45%, #f3f6fb 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.app {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
}

.topbar-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.topbar-meta strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(181, 192, 207, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(254, 172, 31, 0.2);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

.project-form {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.project-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.project-form input,
.project-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--ink);
}

.project-form input:focus,
.project-form textarea:focus {
  outline: 2px solid rgba(254, 172, 31, 0.55);
  border-color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffc000 100%);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(254, 172, 31, 0.35);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.progress {
  margin-bottom: 1.25rem;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold), #00ca00);
  transition: width 0.35s ease;
}

.dim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1.25rem;
}

.dim-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.dim-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.dim-chip.done {
  background: rgba(0, 202, 0, 0.12);
  border-color: #69fe36;
  color: #0b6b0b;
}

.dimension-head h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.dimension-head .code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dimension-head p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.level-list {
  display: grid;
  gap: 0.65rem;
}

.level-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.level-option:hover {
  border-color: var(--gold);
}

.level-option.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(0, 32, 96, 0.15);
  background: linear-gradient(90deg, rgba(254, 172, 31, 0.12), #fff 40%);
}

.level-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.level-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.level-badge.dark-text {
  color: #111;
}

.level-badge.light-text {
  color: #fff;
}

.level-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.contact-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 32, 96, 0.05);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}

.contact-summary strong {
  color: var(--navy);
}

.results-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 840px) {
  .results-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.chart-wrap {
  position: relative;
  min-height: 340px;
  padding: 0.5rem;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.score-table th,
.score-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid #e4e9f1;
  text-align: left;
}

.score-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.insight {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 32, 96, 0.06);
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.insight strong {
  color: var(--navy);
}

.footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(181, 192, 207, 0.6);
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--navy);
}

.partner-logos {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.kth-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.kth-logo {
  height: 42px;
  width: auto;
}

.hidden {
  display: none !important;
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .btn-row,
  .footer,
  .progress,
  .dim-chips {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: none;
  }
}
