:root {
  --red: #cb263d;
  --red-dark: #8b1b15;
  --ink: #141414;
  --muted: #5f5f5f;
  --line: #dedede;
  --soft: #e5e5e4;
  --soft-red: #f8e5e8;
  --white: #ffffff;
  --blue: #1e4d9d;
  --green: #429147;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.shell,
.app-shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  width: 118px;
  height: auto;
  display: block;
}

.header-title {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-shell {
  padding: 34px 0 56px;
}

.panel {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-width: 0;
}

.panel-body {
  padding: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 0;
}

.hero-main {
  padding: 42px;
  min-width: 0;
}

.hero-side {
  position: relative;
  overflow: hidden;
  background: #2b0e0d;
  color: var(--white);
  padding: 42px 34px;
  min-width: 0;
}

.hero-side::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -64px;
  top: -64px;
  border: 28px solid rgba(203, 38, 61, 0.42);
  transform: rotate(45deg);
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.08;
}

.lead,
.body-copy {
  color: var(--muted);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
}

.facts {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  font-family: "Work Sans", Arial, sans-serif;
}

.fact {
  border-left: 4px solid var(--red);
  padding-left: 14px;
}

.fact strong {
  display: block;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.button.secondary {
  border: 1px solid var(--red);
  background: var(--white);
  color: var(--red);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.progress-wrap {
  padding: 22px 34px 0;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #f1cfd4;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--red);
  transition: width 180ms ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: grid;
  gap: 8px;
}

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

label,
.field-label {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
}

select,
input[type="email"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
}

.consent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: "Work Sans", Arial, sans-serif;
  font-weight: 600;
}

.question-category {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.question-text {
  max-width: 860px;
}

.options-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.option-card {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 15px 12px;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.option-card.selected {
  border: 2px solid var(--red);
  background: #fff5f7;
  box-shadow: 8px 8px 0 rgba(158, 30, 47, 0.16);
}

.option-number {
  display: block;
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 26px;
  font-weight: 900;
}

.option-card:nth-child(4) .option-number {
  color: var(--blue);
}

.option-card:nth-child(5) .option-number {
  color: var(--green);
}

.option-text {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.message {
  margin-top: 18px;
  color: var(--red-dark);
  font-family: "Work Sans", Arial, sans-serif;
  font-weight: 700;
}

.result-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.score-block {
  border-left: 6px solid var(--red);
  padding-left: 18px;
}

.score-value {
  color: var(--red-dark);
  font-size: 68px;
  font-weight: 900;
  line-height: 0.95;
}

.score-label {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
}

.executive-report .panel-body {
  padding: 38px 34px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.score-report {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.score-gauge {
  position: relative;
  width: min(560px, 100%);
  height: 260px;
  margin-top: 8px;
}

.score-gauge-arc {
  position: absolute;
  inset: 42px 0 0;
  overflow: hidden;
}

.score-gauge-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -240px;
  width: 480px;
  height: 480px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 58%, #e7e3e3 58.5% 61%, transparent 61.5%),
    conic-gradient(
      from 270deg,
      #8b1b15 0deg 36deg,
      #f04438 36deg 72deg,
      #ffa51f 72deg 108deg,
      #2f78bd 108deg 144deg,
      #2f9446 144deg 180deg,
      transparent 180deg 360deg
    );
}

.score-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 142px;
  background: #1f1f1f;
  border-radius: 999px;
  transform: translateX(-50%) rotate(var(--needle-rotation));
  transform-origin: 50% 100%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
  z-index: 2;
}

.score-gauge-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f1f1f;
  transform: translateX(-50%);
}

.score-gauge-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.score-gauge .score-value {
  color: var(--red);
  font-size: clamp(64px, 7vw, 94px);
  line-height: 0.9;
}

.score-gauge .score-label {
  margin-top: 8px;
}

.score-gauge-label {
  position: absolute;
  color: var(--ink);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.label-initial {
  left: 6%;
  bottom: 22px;
}

.label-basic {
  left: 20%;
  top: 72px;
}

.label-developing {
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
}

.label-advanced {
  right: 15%;
  top: 72px;
}

.label-leader {
  right: 3%;
  bottom: 22px;
}

.category-total.level-initial {
  --score-color: #8b1b15;
}

.category-total.level-basic {
  --score-color: #cb263d;
}

.category-total.level-developing {
  --score-color: #e48305;
}

.category-total.level-advanced {
  --score-color: #1e4d9d;
}

.category-total.level-leader {
  --score-color: #429147;
}

.score-over {
  color: var(--muted);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.report-summary h2 {
  max-width: 760px;
}

.hero-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hero-insight {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.hero-insight:last-child {
  border-right: 0;
}

.hero-insight-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(203, 38, 61, 0.22), rgba(203, 38, 61, 0.06)),
    var(--white);
  border: 1px solid rgba(203, 38, 61, 0.24);
}

.hero-insight strong {
  color: var(--ink);
  font-size: 14px;
}

.hero-insight p {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.report-section {
  padding-top: 30px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.category-totals {
  display: grid;
  gap: 12px;
}

.category-total {
  --score-color: var(--red);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 54px minmax(220px, 0.75fr);
  gap: 12px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.category-total-label {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.category-total-status {
  justify-self: start;
  min-width: 100px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--score-color) 18%, white);
  color: var(--score-color);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  text-align: center;
}

.category-total-recommendation {
  max-width: 860px;
  margin: 9px 0 0;
  color: var(--muted);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.category-total-recommendation strong {
  color: var(--red-dark);
}

.category-total-score {
  color: var(--score-color);
  font-size: 26px;
  font-weight: 900;
  text-align: right;
}

.category-total-track {
  height: 8px;
  border-radius: 999px;
  background: #efeded;
  overflow: hidden;
}

.category-total-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--score-color);
}

.action-plan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.action-number {
  color: var(--red);
  border-right: 1px solid var(--line);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.action-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.action-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.action-card strong {
  color: var(--red-dark);
}

.results-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-family: "Work Sans", Arial, sans-serif;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

.results-table th {
  color: var(--red-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.recommendations {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.recommendation {
  border-left: 4px solid var(--red);
  background: #fafafa;
  padding: 12px 14px;
  font-family: "Work Sans", Arial, sans-serif;
  line-height: 1.45;
}

.warning {
  margin-top: 18px;
  border: 1px solid #e8b7bf;
  border-radius: 7px;
  background: var(--soft-red);
  color: var(--red-dark);
  padding: 12px 14px;
  font-family: "Work Sans", Arial, sans-serif;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell,
  .app-shell {
    width: min(calc(100vw - 24px), 520px);
    max-width: calc(100vw - 24px);
  }

  .header-inner {
    min-height: 64px;
  }

  .logo {
    width: 98px;
  }

  .header-title {
    max-width: 150px;
    text-align: right;
    font-size: 10px;
  }

  .app-shell {
    padding-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side,
  .panel-body {
    padding: 24px 18px;
  }

  .progress-wrap {
    padding: 18px 18px 0;
  }

  .form-grid,
  .result-layout,
  .report-hero {
    grid-template-columns: 1fr;
  }

  .executive-report .panel-body {
    padding: 24px 18px;
  }

  .report-hero {
    gap: 24px;
  }

  .score-gauge {
    height: 210px;
  }

  .score-gauge-arc::before {
    width: 360px;
    height: 360px;
    bottom: -180px;
  }

  .score-gauge-needle {
    height: 108px;
  }

  .score-gauge-label {
    font-size: 11px;
  }

  .label-basic {
    left: 17%;
  }

  .label-advanced {
    right: 12%;
  }

  .hero-insights {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-insight {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .category-total {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .category-total-label {
    font-size: 14px;
  }

  .category-total-status,
  .category-total-track,
  .category-total-recommendation {
    grid-column: 1 / -1;
  }

  .category-total-status {
    justify-self: start;
  }

  .category-total-recommendation {
    font-size: 13px;
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .action-number {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }

  .options-scale {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 11px;
    align-items: start;
  }

  .option-number {
    margin: 0;
    line-height: 1;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
