:root {
  --navy: #0f2b4a;
  --navy-deep: #071a2e;
  --navy-mid: #1a4068;
  --blue: #0f6fbf;
  --blue-light: #1a88e8;
  --green: #00a98f;
  --green-soft: #e8faf6;
  --orange: #d97913;
  --orange-soft: #fff5e7;
  --red: #c73c48;
  --red-soft: #fff0f1;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --surface-strong: #ffffff;
  --border: #d8e0eb;
  --text: #18253a;
  --text-muted: #50627b;
  --text-soft: #667a95;
  --focus: #00a98f;
  --shadow: 0 18px 54px rgba(15, 43, 74, 0.12);
  --shadow-soft: 0 8px 26px rgba(15, 43, 74, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --navy: #e8f0fb;
  --navy-deep: #f4f7fc;
  --navy-mid: #bcd1e9;
  --blue: #58aff6;
  --blue-light: #82c7ff;
  --green: #27d3b7;
  --green-soft: #123c36;
  --orange: #ffb34f;
  --orange-soft: #3d2c17;
  --red: #ff818a;
  --red-soft: #402129;
  --bg: #0c1521;
  --surface: #152235;
  --surface-soft: #1b2b40;
  --surface-strong: #101c2c;
  --border: #2c405b;
  --text: #edf3fb;
  --text-muted: #aec0d5;
  --text-soft: #91a7c1;
  --shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 1%, rgba(0, 169, 143, 0.1), transparent 30rem),
    radial-gradient(circle at 94% 8%, rgba(15, 111, 191, 0.1), transparent 30rem),
    var(--bg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
summary {
  cursor: pointer;
}

button,
input,
select,
textarea {
  min-width: 0;
}

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

a {
  color: var(--blue);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: #0f6fbf;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(140deg, #0f2b4a, #0f6fbf 72%, #00a98f);
  box-shadow: 0 10px 24px rgba(15, 111, 191, 0.24);
  font-family: var(--font-serif);
}

.brand-link strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1;
}

.brand-link small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.desktop-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 1.12rem;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu > summary {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  list-style: none;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(290px, calc(100vw - 32px));
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--surface-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 201, 167, 0.25), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(113, 193, 255, 0.2), transparent 28%),
    linear-gradient(148deg, #0b2541, #104170 55%, #0f6fbf);
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -280px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 66px;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #63ead3;
}

.hero h1,
.diagnostic-heading h2,
.trust-shell h2,
.faq-shell h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  margin-top: 13px;
  font-size: clamp(2.45rem, 5.7vw, 4.9rem);
}

.hero h1 em {
  color: #86d5ff;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.trust-line {
  display: flex;
  margin: 25px 0 28px;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-line span::before {
  margin-right: 7px;
  color: #42e2c6;
  content: "●";
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(15, 111, 191, 0.2);
}

.hero .button-primary {
  color: #062d27;
  background: #27d3b7;
  box-shadow: 0 14px 32px rgba(0, 201, 167, 0.25);
}

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

.hero .button-primary:hover {
  background: #55e1cb;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

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

.button-large {
  min-height: 52px;
  padding: 14px 23px;
}

.hero-preview {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(7, 26, 46, 0.52);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.preview-label {
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-score {
  display: flex;
  margin: 15px 0 17px;
  padding-bottom: 17px;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.preview-score strong {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
}

.preview-score span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-preview ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.hero-preview li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-preview li::before {
  color: #42e2c6;
  content: "✓";
  font-weight: 900;
}

.hero-preview > p {
  margin: 18px 0 0;
  color: #65e5d0;
  font-size: 0.8rem;
  font-weight: 800;
}

.diagnostic-section,
.results-section,
.trust-section,
.faq-section {
  padding: 78px 20px;
}

.diagnostic-heading,
.results-shell,
.trust-shell,
.faq-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.diagnostic-heading {
  margin-bottom: 30px;
  text-align: center;
}

.diagnostic-heading h2,
.trust-shell h2,
.faq-shell h2 {
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.diagnostic-heading p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--text-muted);
}

.wizard-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.wizard-sidebar,
.wizard-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
}

.wizard-sidebar {
  position: sticky;
  top: 94px;
  padding: 17px;
  border-radius: 20px;
}

.progress-mobile {
  display: none;
}

.step-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.step-list button {
  display: grid;
  width: 100%;
  min-height: 49px;
  padding: 7px 9px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
}

.step-list button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.step-list button strong {
  font-size: 0.83rem;
}

.step-list .is-current button {
  color: var(--navy);
  background: var(--surface-soft);
}

.step-list .is-current button span {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.step-list .is-done button span {
  border-color: var(--green);
  color: #052e28;
  background: #48dec5;
}

.sidebar-note {
  display: grid;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--surface-soft);
  gap: 5px;
}

.sidebar-note strong {
  color: var(--text);
  font-size: 0.78rem;
}

.sidebar-note span {
  font-size: 0.72rem;
}

.wizard-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.wizard-toolbar {
  display: flex;
  min-height: 76px;
  padding: 13px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.mode-switch {
  display: flex;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.mode-switch legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.mode-switch label {
  position: relative;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
}

.mode-switch span {
  display: grid;
  min-height: 40px;
  padding: 8px 14px;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mode-switch input:checked + span {
  color: #fff;
  background: var(--navy);
}

.mode-switch input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.text-button {
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 18px 24px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 38%, var(--border));
  border-radius: 11px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.wizard-step {
  padding: clamp(22px, 4vw, 42px);
}

.step-heading {
  margin-bottom: 30px;
}

.step-count {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-heading h3 {
  margin: 7px 0 7px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.1;
}

.step-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--text-muted);
}

.question,
.sub-question {
  min-width: 0;
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}

.question > legend,
.sub-question > legend {
  width: 100%;
  padding: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.question-help,
.field-help,
.details-intro {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

.choice-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card > span {
  display: grid;
  min-height: 84px;
  padding: 14px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  gap: 3px;
}

.choice-card strong {
  color: var(--text);
  font-size: 0.86rem;
}

.choice-card small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.choice-card input:checked + span {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-card input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}

.segmented {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  flex-wrap: wrap;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 42px;
  padding: 8px 13px;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 800;
}

.segmented input:checked + span {
  color: #fff;
  background: var(--blue);
}

.segmented input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
}

.compact-question {
  margin-top: 28px;
}

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

.check-grid label,
.consent-row {
  display: flex;
  min-height: 46px;
  padding: 10px 12px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.check-grid input,
.consent-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--blue);
}

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

.field {
  min-width: 0;
}

.field > label,
.inline-field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
}

.field input::placeholder {
  color: var(--text-soft);
}

.field input:hover,
.field select:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 14%, transparent);
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 78px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-impact {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.field-error {
  min-height: 0;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.inline-field {
  max-width: 520px;
  margin-top: 15px;
}

.optional {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 600;
}

.estimate-badge {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 7px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--border));
  border-radius: 999px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  font-size: 0.64rem;
  font-weight: 800;
  vertical-align: middle;
}

.reassurance,
.info-note,
.availability-note {
  margin-top: 25px;
  padding: 12px 14px;
  border-radius: 11px;
  color: var(--text-muted);
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.reassurance::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.info-note {
  border-left: 4px solid var(--blue);
}

.advanced-block {
  margin-top: 26px;
  padding: 4px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}

.advanced-block summary {
  min-height: 50px;
  padding: 13px 0;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 800;
}

.advanced-block[open] {
  padding-bottom: 18px;
}

.advanced-block .field-grid {
  margin-top: 10px;
}

.sub-question {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.advanced-only {
  display: none;
}

.is-advanced .advanced-only {
  display: block;
}

.step-actions {
  display: flex;
  margin-top: 34px;
  padding-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
}

.results-section {
  background: var(--surface-soft);
}

.results-shell {
  display: grid;
  gap: 24px;
}

.results-hero {
  display: flex;
  padding: clamp(22px, 4vw, 38px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 201, 167, 0.22), transparent 26rem),
    linear-gradient(140deg, #0b2541, #104170 68%, #0f6fbf);
  box-shadow: var(--shadow);
}

.status-pill {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(89, 231, 207, 0.42);
  border-radius: 999px;
  color: #79ead7;
  background: rgba(0, 201, 167, 0.13);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-hero h2 {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.results-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.index-card {
  display: grid;
  min-width: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: rgba(7, 26, 46, 0.4);
  gap: 2px;
}

.index-card span,
.index-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.69rem;
  font-weight: 700;
}

.index-card strong {
  font-family: var(--font-serif);
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.1;
}

.confidence-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.confidence-row > div {
  display: grid;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  gap: 3px;
}

.confidence-row span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.confidence-row strong {
  color: var(--navy);
  font-size: 0.94rem;
}

.result-summary {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.35;
}

.confidence-explanation {
  margin: -16px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  display: grid;
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  gap: 7px;
}

.metric > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.metric small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.metric-primary {
  border-color: color-mix(in srgb, var(--green) 65%, var(--border));
  background: var(--green-soft);
}

.result-block,
.insight-card,
.next-action,
.optional-help,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.result-block {
  padding: clamp(20px, 3vw, 30px);
}

.block-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.block-heading h3,
.insight-card h3,
.next-action h3,
.optional-help h3,
.contact-heading h3 {
  margin: 5px 0 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}

.block-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.subscore-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.subscore {
  display: grid;
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
  background: var(--surface-soft);
  gap: 7px;
}

.subscore span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.subscore strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.subscore small {
  color: var(--text-soft);
  font-size: 0.66rem;
}

.score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

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

.insight-card {
  position: relative;
  padding: 24px 24px 23px 58px;
}

.insight-icon {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.insight-positive .insight-icon {
  color: #063d33;
  background: #54ddc7;
}

.insight-warning .insight-icon {
  color: #4a2700;
  background: #ffc46e;
}

.insight-card ul,
.recommendation-list {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.insight-card li {
  color: var(--text-muted);
  font-size: 0.84rem;
}

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

.recommendation-list li {
  display: grid;
  min-height: 64px;
  padding: 12px 14px;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  counter-increment: recommendation;
}

.recommendation-list li::before {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  content: counter(recommendation);
  font-size: 0.7rem;
  font-weight: 800;
}

.orientation-badge {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 11px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--border));
  border-radius: 999px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.orientation-summary {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.comparison-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--navy);
  background: var(--surface-soft);
}

.comparison-table td {
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.fiscal-warning {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.stress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stress-card {
  display: grid;
  min-width: 0;
  padding: 15px;
  border-radius: 13px;
  background: var(--surface-soft);
  gap: 4px;
}

.stress-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.stress-card strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.stress-card small {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.next-action {
  display: grid;
  padding: 22px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-color: color-mix(in srgb, var(--blue) 38%, var(--border));
}

.next-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.next-action > div > span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-disclaimer {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--orange-soft);
  font-size: 0.78rem;
}

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

.report-help {
  margin: -15px 0 0;
  color: var(--text-soft);
  font-size: 0.73rem;
}

.optional-help {
  display: flex;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.optional-help p {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.contact-panel {
  padding: clamp(20px, 3vw, 30px);
}

.contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.availability-note {
  margin-bottom: 20px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
}

.consent-row {
  margin: 20px 0 0;
}

.privacy-links {
  display: flex;
  margin: 12px 0 18px;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 700;
}

.contact-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.trust-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 40px;
}

.trust-shell > div > p {
  color: var(--text-muted);
}

.sources-details {
  padding: 7px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sources-details summary {
  min-height: 55px;
  padding: 15px 0;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.sources-details[open] {
  padding-bottom: 18px;
}

.source-meta {
  display: flex;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface-soft);
  font-size: 0.68rem;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.source-list {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  gap: 13px;
}

.source-list li {
  display: grid;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  gap: 3px;
}

.source-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.source-list a {
  font-size: 0.81rem;
  font-weight: 800;
}

.source-list span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.faq-section {
  padding-top: 60px;
  background: var(--surface-soft);
}

.faq-shell {
  max-width: 860px;
}

.faq-shell h2 {
  margin-bottom: 25px;
}

.faq-shell details {
  margin-bottom: 9px;
  padding: 4px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.faq-shell summary {
  min-height: 54px;
  padding: 14px 0;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.faq-shell details p {
  margin: 0 0 17px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #071a2e;
}

.footer-inner {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 170px;
  margin: 0 auto;
  padding: 38px 0;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 26px;
}

.footer-inner strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.footer-inner p {
  margin: 5px 0 0;
  font-size: 0.75rem;
}

.footer-inner nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}

.footer-inner nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-inner > p {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .wizard-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .subscore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-inner {
    padding: 58px 0 50px;
    grid-template-columns: 1fr;
  }

  .hero-preview {
    max-width: 600px;
  }

  .diagnostic-section,
  .results-section,
  .trust-section,
  .faq-section {
    padding: 58px 16px;
  }

  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    position: static;
    padding: 14px 16px;
  }

  .progress-mobile {
    display: grid;
    gap: 8px;
  }

  .progress-mobile > span {
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
  }

  .progress-track span {
    display: block;
    width: 16.67%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
  }

  .step-list,
  .sidebar-note {
    display: none;
  }

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

  .choice-grid-three {
    grid-template-columns: 1fr;
  }

  .confidence-row,
  .stress-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: calc(100% - 24px);
    min-height: 64px;
  }

  .brand-link small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-inner {
    width: calc(100% - 30px);
    padding: 46px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
  }

  .hero-copy > p {
    font-size: 0.96rem;
  }

  .hero .button {
    width: 100%;
  }

  .hero-preview {
    padding: 20px;
  }

  .diagnostic-heading {
    text-align: left;
  }

  .wizard-toolbar {
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .wizard-step {
    padding: 22px 17px;
  }

  .choice-grid-two,
  .field-grid,
  .metric-grid,
  .confidence-row,
  .subscore-grid,
  .insight-grid,
  .recommendation-list,
  .stress-grid {
    grid-template-columns: 1fr;
  }

  .choice-card > span {
    min-height: 73px;
  }

  .segmented {
    width: 100%;
  }

  .segmented label {
    min-width: 50%;
    flex: 1 1 auto;
  }

  .step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .step-actions .button {
    width: 100%;
  }

  .results-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .index-card {
    min-width: 0;
  }

  .block-heading,
  .optional-help,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .orientation-badge {
    width: fit-content;
    white-space: normal;
  }

  .comparison-table {
    min-width: 0;
    table-layout: fixed;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }

  .result-actions .button,
  .optional-help .button {
    width: 100%;
  }

  .report-help {
    margin-top: -12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner > p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero,
  .diagnostic-section,
  .trust-section,
  .faq-section,
  .site-footer,
  .optional-help,
  .contact-panel,
  .result-actions,
  .report-help,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .results-section {
    padding: 0;
    background: #fff;
  }

  .result-block,
  .insight-card,
  .next-action,
  .metric,
  .results-hero {
    break-inside: avoid;
    box-shadow: none;
  }
}
