:root {
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --ink: #281722;
  --muted: #6c6268;
  --mint: #45aa7d;
  --forest: #44624a;
  --line: rgba(40, 23, 34, 0.14);
  --soft: #ede8dd;
  --warning: #8b4b56;
  --shadow: 0 20px 60px rgba(40, 23, 34, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero {
  display: block;
  padding: 34px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1,
.stage h2,
.progress-panel h2 {
  margin: 0;
}

.hero-copy h1 {
  max-width: 1120px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
  font-weight: 700;
  text-wrap: balance;
}

.eyebrow,
.panel-label,
.status-label {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.muted,
.progress-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}

.progress-panel,
.stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.progress-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  margin: 18px 0 12px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: var(--mint);
  transition: width 0.2s ease;
}

.dimension-list {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dimension-list li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.dimension-list .marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.dimension-list .active {
  color: var(--ink);
  font-weight: 800;
}

.stage {
  min-height: 640px;
  padding: clamp(22px, 4vw, 42px);
}

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

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

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

label,
.field span {
  color: var(--ink);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(68, 98, 74, 0.14);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

#question-count {
  color: var(--muted);
  font-weight: 700;
}

#question-title {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
}

.question-prompt {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
  margin: 18px 0 24px;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.choice {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.choice:hover,
.choice.selected {
  border-color: var(--forest);
  background: #f6fbf7;
}

.choice.selected {
  box-shadow: 0 0 0 3px rgba(69, 170, 125, 0.16);
}

.choice-score {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ink);
  font-weight: 850;
}

.choice.selected .choice-score {
  background: var(--forest);
  color: #ffffff;
}

.note-field {
  margin-top: 18px;
}

.follow-up {
  border-left: 4px solid var(--mint);
  background: #f2f6f0;
  padding: 14px 16px;
  color: var(--forest);
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.actions.split {
  justify-content: space-between;
}

.button {
  border: 1px solid var(--forest);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  color: var(--forest);
  background: transparent;
  font-weight: 850;
}

.button.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--forest);
  border-color: var(--forest);
}

.button.ghost:hover {
  background: #eef5ef;
}

.button.danger {
  border-color: var(--warning);
  color: var(--warning);
}

.button.danger:hover {
  background: var(--warning);
  color: #ffffff;
}


.pdf-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 0.95rem;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-summary,
.results-grid {
  display: grid;
  gap: 14px;
}

.result-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.result-summary > div,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.result-summary strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.result-card {
  display: grid;
  gap: 10px;
}

.result-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.result-card h3 {
  margin: 0;
  font-size: 18px;
}

.score-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.score-line span {
  display: block;
  height: 100%;
  background: var(--mint);
}

@media (max-width: 860px) {
  .hero,
  .workspace,
  .form-grid,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    position: static;
  }

  .dimension-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .stage,
  .progress-panel {
    padding: 18px;
  }

  .dimension-list {
    grid-template-columns: 1fr;
  }

  .choice {
    grid-template-columns: 32px 1fr;
    padding: 12px;
  }

  .choice-score {
    width: 32px;
    min-height: 32px;
  }
}
.interpretation-panel {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.interpretation-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.interpretation-block {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.interpretation-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.interpretation-block h4 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.interpretation-block p,
.interpretation-block li {
  color: var(--muted);
  line-height: 1.55;
}

.interpretation-block p {
  margin: 0 0 10px;
}

.interpretation-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 560px) {
  .section-heading {
    display: grid;
  }
}
/* Shared landing banner */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 40px;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid rgba(40, 23, 34, 0.10);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 212px;
  min-width: 170px;
}

.site-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  color: rgba(40, 23, 34, 0.78);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover {
  color: var(--mint);
}

.nav-cta {
  border: 1px solid rgba(1, 160, 114, 0.95);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.nav-cta.primary-nav {
  background: var(--mint);
  border-color: var(--mint);
}

.nav-cta.primary-nav:hover {
  color: #fffdf8;
}

.nav-cta.diagnostic-nav {
  color: var(--ink);
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .site-brand {
    width: 138px;
    min-width: 126px;
  }

  .main-nav {
    gap: 6px;
    font-size: 12px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 8px 9px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}