:root {
  --background: hsl(42 27% 94%);
  --surface: hsl(40 30% 97%);
  --foreground: hsl(0 0% 10%);
  --primary: hsl(144 33% 18%);
  --primary-hover: hsl(144 33% 14%);
  --secondary: hsl(38 24% 88%);
  --muted: hsl(0 0% 36%);
  --border: hsl(38 15% 78%);
  --focus: hsl(144 42% 34%);
  --heading: "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  background: color-mix(in srgb, var(--background) 92%, transparent);
}

.site-header__inner,
.site-footer,
.calculator-page {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-underline-offset: 0.25rem;
}

.calculator-page {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(30rem, 1.14fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.intro,
.calculator-card {
  min-width: 0;
}

.intro {
  position: sticky;
  top: 3rem;
}

.eyebrow,
.step-label {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0;
  font-family: var(--heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2[tabindex="-1"]:focus-visible {
  outline: none;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
}

.intro__lead {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.intro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}

.intro__facts li::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.calculator-card {
  min-height: 33rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  background: var(--surface);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.calculator-card p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
}

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

.button--primary {
  background: var(--primary);
  color: white;
}

.button--primary:hover {
  background: var(--primary-hover);
}

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

.button--secondary:hover {
  border-color: var(--primary);
}

.button--text {
  min-height: auto;
  margin-top: 0;
  padding: 0.5rem 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.progress-track {
  height: 0.25rem;
  margin: 0.65rem 0 2.5rem;
  overflow: hidden;
  background: var(--secondary);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.field {
  margin-top: 2rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: white;
}

.field input:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.field input[aria-invalid="true"] {
  border-color: hsl(4 58% 40%);
}

.field-hint,
.input-suffix,
.optional-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.field-hint {
  display: block;
  margin-top: 0.45rem;
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  color: hsl(4 58% 34%);
  font-size: 0.8125rem;
  font-weight: 600;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 4.5rem;
}

.input-suffix {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-actions .button {
  margin-top: 0;
}

.form-error {
  margin: 1.5rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid hsl(4 58% 40%);
  background: hsl(4 45% 94%);
  color: hsl(4 58% 30%) !important;
  font-size: 0.875rem;
}

.step-intro {
  margin: 0.85rem 0 1.75rem;
}

.role-field {
  margin: 2rem 0 0;
  padding: 0 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.role-field legend {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.role-option {
  position: relative;
}

.role-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.role-option span {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.role-option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.role-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.question-list {
  display: grid;
  gap: 2rem;
}

.question {
  margin: 0;
  padding: 0 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--border);
}

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

.question legend {
  width: 100%;
  margin-bottom: 0.9rem;
  font-family: var(--heading);
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.4;
}

.question-number {
  margin-right: 0.4rem;
  color: var(--primary);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.choice {
  position: relative;
  display: flex;
  min-width: 0;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice > span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.35rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.choice-number {
  display: none;
  font-size: 1rem;
}

.choice-label {
  display: inline;
}

.choice input:hover + span {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}

.choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.scale-legend {
  display: none;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.6875rem;
}

.selected-answer {
  margin: 0.65rem 0 0;
  color: var(--primary) !important;
  font-size: 0.75rem;
  font-weight: 600;
}

.not-applicable {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.not-applicable input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.financial-section + .financial-section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.financial-section h3,
.result-section h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.25rem;
  line-height: 1.35;
}

.financial-section > p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
}

.optional-box {
  margin-top: 2rem;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--primary);
  background: var(--secondary);
  font-size: 0.875rem;
}

.optional-box p {
  margin: 0;
  color: var(--foreground);
}

.result-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.result-header__score {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0.75rem 0 0.25rem;
  color: var(--primary);
}

.result-header__score strong {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 9vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.result-header__score span {
  font-size: 1.1rem;
  font-weight: 600;
}

.result-band {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.6rem;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-summary {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.result-section {
  margin-top: 2.5rem;
}

.dimension-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.dimension-row__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.dimension-row__labels strong {
  color: var(--primary);
}

.meter {
  height: 0.5rem;
  overflow: hidden;
  background: var(--secondary);
}

.meter span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric {
  min-height: 8rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  background: white;
}

.metric--wide {
  grid-column: 1 / -1;
}

.metric__label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.metric__value {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--heading);
  color: var(--primary);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
}

.metric__note {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.breakdown {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.breakdown strong {
  white-space: nowrap;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.scenario {
  padding: 1rem 0.75rem;
  background: var(--secondary);
  text-align: center;
}

.scenario span,
.scenario strong {
  display: block;
}

.scenario span {
  color: var(--muted);
  font-size: 0.75rem;
}

.scenario strong {
  margin-top: 0.3rem;
  color: var(--primary);
  font-family: var(--heading);
  font-size: 1.05rem;
}

.priority-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.priority {
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: white;
}

.priority__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--heading);
  font-weight: 600;
}

.priority__head span:last-child {
  color: var(--primary);
}

.priority__first {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.priority__more,
.methodology {
  margin-top: 1rem;
}

.priority__more summary,
.methodology summary {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-underline-offset: 0.2rem;
}

.priority ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.priority li + li {
  margin-top: 0.5rem;
}

.method-note {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--secondary);
  font-size: 0.8125rem;
}

.method-note p {
  margin: 0;
}

.methodology {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: white;
}

.methodology__content {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.methodology__content p {
  margin: 0;
}

.methodology__content p + p {
  margin-top: 0.75rem;
}

.result-kicker {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.dimension-row small {
  color: var(--muted);
  font-size: 0.7rem;
}

.lead-form .field {
  margin-top: 2rem;
}

.lead-form .field input {
  padding-right: 1rem;
}

.consent-option {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.consent-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.consent-option a {
  color: var(--primary);
  text-underline-offset: 0.2rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.seo-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100% - 3rem, 72rem);
  margin: 0 auto clamp(4rem, 8vw, 8rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.seo-explainer__intro > p:last-child {
  color: var(--muted);
}

.seo-explainer__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.seo-explainer article {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.seo-explainer h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.1rem;
}

.seo-explainer article p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.is-result .calculator-page {
  display: block;
  width: min(100% - 3rem, 64rem);
}

body.is-result .intro,
body.is-result .seo-explainer {
  display: none;
}

body.is-result .calculator-card {
  min-height: 0;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.result-cta {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.result-cta p {
  margin: 0.75rem 0 0;
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.result-tools .button {
  margin-top: 0;
}

.noscript-note {
  padding: 1rem;
  background: hsl(4 45% 94%);
  color: hsl(4 58% 30%) !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.access-form .field {
  margin-top: 1.5rem;
}

.access-form .field input {
  padding-right: 1rem;
}

.access-form .button {
  width: 100%;
}

.access-options {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.access-options.payment-enabled {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-option {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: white;
}

.access-option h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.2rem;
}

.calculator-card .access-option__label {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.access-option h3 + p,
.access-option .access-price + p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.calculator-card .access-privacy-link {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
}

.access-privacy-link a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 0.2rem;
}

.calculator-card .access-price {
  margin: 0.65rem 0 0;
  color: var(--foreground);
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.access-option--paid {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}

.checkout-status {
  margin: 1.5rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--secondary);
  color: var(--primary) !important;
  font-size: 0.875rem;
  font-weight: 600;
}

body.is-calculating .calculator-page {
  display: block;
  width: min(100% - 3rem, 88rem);
  padding-block: clamp(2rem, 5vw, 5rem);
}

body.is-calculating .intro,
body.is-calculating .seo-explainer {
  display: none;
}

body.is-calculating .calculator-card {
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.calculator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

#calculator-form {
  min-width: 0;
}

.diagnosis-heading {
  max-width: 46rem;
}

.diagnosis-heading > p:last-child {
  margin: 1rem 0 0;
}

.compact-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.section-heading > span {
  padding-top: 0.15rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-heading h3,
.live-priorities h3,
.final-report h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.2rem;
}

.section-heading p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

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

.compact-field {
  margin: 0;
}

.compact-field label {
  min-height: 2.6em;
}

.compact-field select {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.8rem 2.5rem 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: white;
  color: var(--foreground);
}

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

.dimension-card {
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: white;
}

.dimension-card legend {
  padding: 0 0.4rem;
  color: var(--primary);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.range-question + .range-question {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.range-question__head {
  display: grid;
  gap: 0.6rem;
}

.range-question__head label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.range-question__head label span {
  margin-right: 0.4rem;
  color: var(--primary);
}

.range-question output {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.diagnostic-range {
  width: 100%;
  margin: 1rem 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.2;
}

.range-ends span:last-child {
  text-align: right;
}

.advanced-fields {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  background: white;
}

.advanced-fields summary {
  padding: 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.advanced-fields__content {
  max-width: 24rem;
  padding: 0 1rem 1rem;
}

.save-report {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--secondary);
}

.save-report .button {
  width: 100%;
  margin-top: 0;
}

.save-report p {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}

.live-result {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  background: var(--primary);
  color: white;
}

.live-result__label {
  color: hsl(42 27% 88%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-score {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.7rem;
  line-height: 1;
}

.live-score strong {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 600;
}

.live-score span {
  color: hsl(42 27% 82%);
  font-size: 1rem;
}

.live-result .result-band {
  margin-top: 0.75rem;
  background: white;
  color: var(--primary);
}

.calculator-card .live-result__summary {
  margin: 1rem 0 0;
  color: hsl(42 27% 90%);
  font-size: 0.85rem;
}

.live-metrics {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.live-metrics > div {
  padding-top: 0.85rem;
  border-top: 1px solid hsl(42 27% 94% / 0.25);
}

.live-metrics span,
.live-metrics strong {
  display: block;
}

.live-metrics span {
  color: hsl(42 27% 82%);
  font-size: 0.72rem;
}

.live-metrics strong {
  margin-top: 0.2rem;
  font-family: var(--heading);
  font-size: 1.25rem;
}

.live-priorities {
  margin-top: 1.75rem;
}

.live-priorities h3 {
  font-size: 0.95rem;
}

.live-priority {
  margin-top: 0.9rem;
}

.live-priority > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
}

.live-result .meter {
  margin-top: 0.35rem;
  background: hsl(42 27% 94% / 0.22);
}

.live-result .meter span {
  background: hsl(42 27% 94%);
}

.calculator-card .live-result__note {
  margin: 1.5rem 0 0;
  color: hsl(42 27% 80%);
  font-size: 0.7rem;
}

.final-report {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--primary);
}

.final-report__header {
  max-width: 48rem;
}

.final-report__header > p:last-child {
  margin-top: 1rem;
}

.final-report__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.final-report__grid > section > h3 {
  margin-bottom: 1rem;
}

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

  .intro {
    position: static;
  }

  h1 {
    max-width: 16ch;
  }

  .seo-explainer {
    grid-template-columns: 1fr;
  }

  .calculator-workspace {
    grid-template-columns: 1fr;
  }

  .live-result {
    position: static;
  }
}

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

  .choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .choice > span {
    min-height: 3rem;
    padding: 0.5rem 0.25rem;
    text-align: center;
  }

  .choice-number,
  .scale-legend {
    display: flex;
  }

  .choice-label {
    display: none;
  }

  .field-grid,
  .metric-grid,
  .dimension-grid,
  .final-report__grid {
    grid-template-columns: 1fr;
  }

  .metric--wide {
    grid-column: auto;
  }

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

@media (max-width: 560px) {
  .site-header__inner,
  .site-footer,
  .calculator-page,
  .seo-explainer {
    width: min(100% - 2rem, 72rem);
  }

  .site-header__inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .calculator-page {
    gap: 2.5rem;
    padding-block: 3rem;
  }

  .calculator-card {
    min-height: 28rem;
  }

  body.is-calculating .calculator-page {
    width: min(100% - 1rem, 88rem);
  }

  body.is-calculating .calculator-card {
    padding: 1rem;
  }

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

  .form-actions,
  .result-tools {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button,
  .result-tools .button,
  .result-tools a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: white;
    color: black;
    font-size: 10pt;
  }

  .site-header,
  .intro,
  .seo-explainer,
  .site-footer,
  .result-tools,
  .result-cta .button {
    display: none !important;
  }

  .calculator-page {
    display: block;
    width: 100%;
    padding: 0;
  }

  .calculator-card {
    min-height: 0;
    padding: 0;
    border: 0;
    background: white;
  }

  .metric,
  .priority,
  .dimension-row,
  .scenario-grid,
  .method-note,
  .result-cta {
    break-inside: avoid;
  }

  .metric,
  .priority {
    border-color: #bbb;
  }

  .methodology__content,
  .priority__more ol {
    display: block !important;
  }

  .methodology summary,
  .priority__more summary {
    display: none !important;
  }

  .meter,
  .scenario,
  .method-note,
  .result-band {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
