.page-shell {
  width: min(100% - 2rem, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.25rem;
  width: min(100%, 760px);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--aqua);
}

.layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.card,
.side-panel {
  background: var(--surface);
  border: 1px solid rgb(9 106 114 / 10%);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.card {
  width: min(100%, 760px);
  min-height: 32rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 19ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}

.intro-copy,
.description,
.result-copy {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.feature-list li::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  flex: none;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgb(112 215 193 / 24%);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 0.7rem;
  color: white;
  background: var(--teal);
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--teal-dark);
  background: #e7f4f0;
}

.button-secondary:hover {
  background: #d5ebe5;
}

.progress {
  margin: 0 0 1.75rem;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9e5;
}

.progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  transition: width 180ms ease;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 1.5rem;
}

.option-list {
  display: grid;
  gap: 0.75rem;
}

.option {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.1rem;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  font-weight: 650;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.option::after {
  content: "→";
  color: var(--teal);
  font-size: 1.3rem;
}

.option:hover,
.option[aria-pressed="true"] {
  border-color: var(--teal);
  background: #eaf7f3;
  transform: translateX(2px);
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 700;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  border: 1px solid #b9cac7;
  border-radius: 0.6rem;
  background: white;
}

.consent {
  display: flex;
  min-height: 48px;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem;
  margin-top: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.45;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--teal);
}

.consent a,
.privacy-card a {
  color: var(--teal-dark);
  font-weight: 700;
}

.submission-error {
  padding: 0.9rem 1rem;
  margin: 1.5rem 0 0;
  color: #7f1d1d;
  border-radius: 0.7rem;
  background: #fef2f2;
}

.privacy-card h2 { margin-top: 2rem; }

.side-panel {
  display: none;
  padding: 1.5rem;
}

.mobile-radar-panel {
  overflow: hidden;
  border: 1px solid rgb(9 106 114 / 10%);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobile-radar-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--teal-dark);
  border: 0;
  background: #e7f4f0;
  font-weight: 800;
}

.mobile-radar-toggle::after {
  content: "+";
  font-size: 1.3rem;
}

.mobile-radar-toggle[aria-expanded="true"]::after {
  content: "−";
}

.mobile-radar-content {
  padding: 0.5rem 1rem 1rem;
}

.side-panel h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.side-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.side-score {
  display: grid;
  width: 7.4rem;
  aspect-ratio: 1;
  place-items: center;
  margin: 1.5rem 0;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #e7f4f0;
  font-size: 2rem;
  font-weight: 850;
}

.live-radar {
  margin-top: 1.25rem;
}

.radar-chart {
  display: block;
  width: 100%;
  height: auto;
}

.radar-ring,
.radar-axis {
  fill: none;
  stroke: #b9cac7;
  stroke-width: 1;
}

.radar-reference {
  fill: rgb(112 215 193 / 14%);
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.radar-current {
  fill: rgb(239 125 104 / 24%);
  stroke: #cf5e4c;
  stroke-width: 2;
}

.radar-label {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.radar-label tspan {
  fill: var(--teal);
}

.score-summary {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  margin-top: 1.75rem;
  border-radius: 0.9rem;
  background: #eaf7f3;
}

.score-summary strong {
  color: var(--teal-dark);
  font-size: 2.4rem;
}

.result-radar,
.result-section {
  margin-top: 2.25rem;
}

.result-radar h2,
.result-section h2 {
  max-width: none;
  font-size: 1.35rem;
}

.radar-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.radar-key span,
.radar-key i {
  width: 1.45rem;
  border-top: 2px dashed var(--teal);
}

.radar-key i {
  border-top-style: solid;
  border-color: #cf5e4c;
}

.area-score-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.area-score-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.area-score-list dt {
  color: var(--muted);
}

.area-score-list dd {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.result-list {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.result-list li {
  padding-left: 0.2rem;
}

.result-list strong {
  color: var(--teal-dark);
}

@media (min-width: 960px) {
  .page-shell {
    padding-top: 2rem;
  }

  .layout {
    grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
    justify-content: center;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .side-panel {
    display: block;
    position: sticky;
    top: 1.5rem;
  }

  .mobile-radar-panel {
    display: none;
  }

  .brand {
    width: 100%;
    max-width: 1080px;
  }
}
