:root {
  --bg: #f1f4fb;
  --panel: #ffffff;
  --panel-soft: #f7f9ff;
  --ink: #16202a;
  --executive: #111827;
  --muted: #637182;
  --line: #dde3f1;
  --line-strong: #c3cdea;
  --primary: #1f35b5;
  --primary-dark: #101f82;
  --primary-soft: #eef1ff;
  --accent: #d5a91b;
  --amber: #c98413;
  --red: #b94745;
  --green: #207a56;
  --blue: #1f35b5;
  --shadow: 0 18px 48px rgba(28, 46, 58, 0.12);
  --shadow-soft: 0 8px 22px rgba(28, 46, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0, #f7f9ff 360px, var(--bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 53, 181, 0.2);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--primary-dark);
  box-shadow: 0 13px 26px rgba(31, 53, 181, 0.24);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

button.secondary {
  background: #e8eff2;
  color: var(--ink);
  box-shadow: none;
}

button.secondary:hover {
  background: #dce7ea;
}

.button-link,
.header-cta,
.persistent-diagnostic-cta {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 53, 181, 0.2);
}

.button-link:hover,
.header-cta:hover,
.persistent-diagnostic-cta:hover {
  background: var(--primary-dark);
}

.button-link.secondary {
  background: #e8eff2;
  color: var(--ink);
  box-shadow: none;
}

.button-link.secondary:hover {
  background: #dce7ea;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 300px);
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(199, 207, 231, 0.78);
  background: rgba(249, 251, 255, 0.92);
  padding: 14px 28px;
  backdrop-filter: blur(16px);
}

.sidebar::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0 72%, var(--accent) 72% 100%);
  content: "";
}

.brand {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: center;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--primary), #15278f);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(31, 53, 181, 0.24);
}

.brand-mark::after {
  position: absolute;
  right: 6px;
  top: 9px;
  width: 15px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  content: "";
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.06rem;
  line-height: 1.2;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 7px 18px rgba(28, 46, 58, 0.06);
}

.nav-list a {
  min-width: 84px;
  border-radius: 6px;
  color: var(--muted);
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 850;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.profile-card,
.score-panel,
.matrix-panel,
.quick-form,
.questionnaire,
.diagnostic-panel,
.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}

.profile-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.profile-card a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.profile-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 12px;
}

.header-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.header-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.persistent-diagnostic-cta {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 36px rgba(31, 53, 181, 0.32);
}

.profile-card button {
  min-height: 38px;
  width: 100%;
}

main {
  display: grid;
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  gap: 18px;
  align-content: start;
  padding: 24px 0 42px;
}

.page-section {
  display: none;
}

.page-section.active-page {
  display: grid;
  gap: 18px;
}

.home-panel {
  min-height: calc(100vh - 150px);
  align-content: center;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.home-copy {
  display: grid;
  align-content: center;
  min-height: 380px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-left: 7px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--executive) 0%, #17295c 100%);
  padding: 42px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.22);
}

.home-copy h1 {
  max-width: 780px;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 4.25rem;
  line-height: 0.98;
}

.home-copy h2 {
  margin-bottom: 16px;
  color: #f1cf54;
  font-size: 1.5rem;
  line-height: 1.2;
}

.home-copy p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 24px;
  color: #dbe4f5;
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-proof-grid {
  --hero-badge-gap: 8px;
  display: grid;
  gap: 0;
  width: fit-content;
  margin-bottom: 12px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hero-badge-gap);
}

.trust-badges span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 9px 11px;
  font-size: 0.82rem;
  font-weight: 950;
}

.home-copy .eyebrow {
  color: #f1cf54;
}

.home-actions,
.wizard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-copy .home-actions {
  justify-self: start;
  justify-content: center;
  margin-top: 14px;
  margin-left: calc(177px + (var(--hero-badge-gap) * 2));
  transform: translateX(-50%);
}

.compact-actions {
  margin-top: 14px;
}

.privacy-note {
  display: flex;
  width: fit-content;
  max-width: 690px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0 0;
  padding: 10px 12px;
  color: #dbe4f5;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.lock-mark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid #f1cf54;
  border-radius: 3px;
}

.lock-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 7px;
  height: 8px;
  border: 2px solid #f1cf54;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.diagnostic-app-section {
  border: 1px solid rgba(31, 53, 181, 0.22);
  border-top: 6px solid var(--primary);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 53, 181, 0.12) 0%, rgba(244, 246, 251, 0.96) 28%, #ffffff 100%),
    #f4f6fb;
  padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-soft);
}

.app-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--executive) 0%, #1f35b5 100%);
  padding: 22px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.app-entry-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.8rem;
}

.app-entry-panel .eyebrow {
  color: #f1cf54;
}

.app-entry-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.app-entry-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.app-entry-badges {
  display: flex;
  max-width: 440px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.app-entry-badges span,
.app-entry-actions > span {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 950;
  white-space: nowrap;
}

.app-entry-actions button {
  min-height: 38px;
  padding: 0 13px;
}

.app-entry-actions button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: #ffffff;
  color: var(--primary-dark);
}

.local-save-note {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

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

.app-progress-strip span {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(99, 113, 130, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-progress-strip span::before {
  display: inline-grid;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #c9d3ef;
  box-shadow: 0 0 0 3px rgba(31, 53, 181, 0.08);
  content: "";
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.app-progress-strip span.is-complete {
  border-color: rgba(37, 140, 100, 0.24);
  background: #eefaf4;
  color: #1f6e4f;
}

.app-progress-strip span.is-complete::before {
  width: 15px;
  height: 15px;
  background: #258c64;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 140, 100, 0.12);
  content: "✓";
}

.app-progress-strip span.is-active {
  border-color: rgba(31, 53, 181, 0.32);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 53, 181, 0.18);
}

.app-progress-strip span.is-active::before {
  background: #f1cf54;
  box-shadow: 0 0 0 3px rgba(241, 207, 84, 0.24);
}

.app-link-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid rgba(31, 53, 181, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.app-signal-panel,
.app-gate-panel,
.app-guidance-panel,
.post-action-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(31, 53, 181, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.app-signal-panel[hidden],
.app-gate-panel[hidden],
.post-action-panel[hidden],
[data-requires-complete][hidden],
[data-requires-after-action][hidden],
[data-next-step-gate][hidden],
[data-before-complete][hidden],
[data-progress-during][hidden],
[data-incomplete-result][hidden],
[data-diagnostic-started][hidden],
[data-context-step][hidden],
[data-question-step][hidden] {
  display: none !important;
}

.app-signal-panel h2,
.app-gate-panel h2,
.app-guidance-panel h2,
.post-action-panel h2 {
  margin: 0;
  color: var(--ink);
}

.app-guidance-panel h2 {
  display: flex;
  gap: 9px;
  align-items: center;
}

.app-lock {
  flex: 0 0 auto;
  background: var(--primary);
}

.app-lock::before {
  border-color: var(--primary);
}

.app-signal-panel p:not(.eyebrow),
.app-gate-panel p:not(.eyebrow),
.app-guidance-panel p:not(.eyebrow),
.post-action-panel p:not(.eyebrow) {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.app-guidance-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.app-guidance-panel article {
  border: 1px solid rgba(31, 53, 181, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.app-guidance-panel.is-attention {
  border-color: rgba(241, 207, 84, 0.78);
  box-shadow: 0 18px 34px rgba(178, 107, 18, 0.18);
}

.result-teaser {
  border-left: 6px solid var(--accent);
}

#firstSignals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#firstSignals li,
.post-action-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 13px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

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

.post-action-grid article {
  display: grid;
  gap: 8px;
}

.post-action-grid span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.post-action-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.post-action-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.post-action-grid a {
  color: var(--primary);
  font-weight: 950;
  text-decoration: none;
}

.test-status {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.test-progress strong {
  color: var(--muted);
  font-weight: 900;
}

.mini-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e5edf1;
}

.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 220ms ease;
}

.home-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-steps::before {
  position: absolute;
  top: 31px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 53, 181, 0.16), rgba(241, 207, 84, 0.7));
  content: "";
}

.home-steps article {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.home-steps article:hover {
  border-color: rgba(31, 53, 181, 0.24);
  transform: translateY(-1px);
}

.home-steps strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
}

.home-steps span {
  color: var(--ink);
  font-weight: 950;
}

.home-steps em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.4;
}

.content-panel,
.offers-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.content-panel > p {
  color: var(--muted);
  line-height: 1.58;
}

.problem-panel > p,
.definition-panel > p,
.credibility-panel > p {
  max-width: 920px;
  margin-bottom: 18px;
}

.problem-panel,
.promise-panel,
.steps-panel,
.deliverables-panel,
.documents-panel,
.report-mockup-panel,
.example-score-panel,
.faq-panel,
.definition-panel,
.dependencies-panel,
.home-offers-panel,
.credibility-panel,
.use-cases-panel,
.email-sequence-panel,
.final-cta-panel {
  align-self: stretch;
}

.promise-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.promise-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.promise-grid,
.dependencies-grid,
.deliverables-grid,
.credibility-grid,
.case-grid,
.email-sequence-grid,
.offers-grid {
  display: grid;
  gap: 10px;
}

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

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

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

.responsive-info-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.responsive-info-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.responsive-info-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.responsive-info-card div {
  display: grid;
  gap: 3px;
}

.responsive-info-card dt {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.responsive-info-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

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

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

.email-sequence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.promise-grid article,
.dependencies-grid article,
.deliverables-grid article,
.credibility-grid article,
.case-grid article,
.email-sequence-grid article,
.offers-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
  box-shadow: var(--shadow-soft);
}

.dependencies-grid article,
.credibility-grid article,
.case-grid article,
.offers-grid article,
.email-sequence-grid article {
  display: grid;
  gap: 6px;
}

.dependencies-grid span,
.credibility-grid span,
.case-grid span,
.email-sequence-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.case-grid p,
.email-sequence-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.48;
}

.email-sequence-grid span {
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
}

.compact-sequence .email-sequence-grid article {
  min-height: 116px;
}

.documents-panel > p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.58;
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.documents-list li {
  padding-left: 4px;
}

.documents-list li::marker {
  color: var(--primary);
  font-weight: 950;
}

.takeaway-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(31, 53, 181, 0.18);
  border-left: 6px solid var(--primary);
  border-radius: 8px;
  background: #f7f9ff;
  padding: 18px;
}

.takeaway-panel h2,
.takeaway-panel h3 {
  margin: 0;
  color: var(--ink);
}

.takeaway-panel p,
.takeaway-panel li {
  color: var(--muted);
  line-height: 1.5;
}

.takeaway-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.takeaway-panel li::marker {
  color: var(--primary);
  font-weight: 950;
}

.compact-takeaway {
  margin-top: 14px;
}

.compact-takeaway .seo-cta {
  margin-top: 4px;
}

.detail-card-grid,
.comparison-grid,
.method-example-grid,
.method-table-grid {
  display: grid;
  gap: 12px;
}

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

.comparison-grid,
.method-example-grid,
.method-table-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-table-grid {
  margin-top: 14px;
}

.report-table caption {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-align: left;
}

.compact-table th,
.compact-table td {
  padding: 10px;
}

.offer-detail-card,
.comparison-card,
.method-example-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.offer-detail-card h3,
.comparison-card h3,
.method-example-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.offer-detail-card p,
.comparison-card p,
.method-example-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.offer-detail-card dl,
.method-example-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.offer-detail-card div,
.method-example-card div {
  display: grid;
  gap: 3px;
}

.offer-detail-card dt,
.method-example-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.offer-detail-card dd,
.method-example-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.offer-detail-card .seo-cta {
  margin-top: 2px;
}

.proof-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.proof-flow article {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.proof-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 950;
}

.proof-flow span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-flow strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.proof-flow em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.4;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.report-table th {
  background: #f5f7ff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-table td {
  color: var(--muted);
  font-weight: 650;
}

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

@media (max-width: 760px) {
  .report-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-table th,
  .report-table td {
    min-width: 150px;
  }

  .responsive-card-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

  .responsive-card-table td {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    border-bottom: 1px solid var(--line);
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .responsive-card-table tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }
}

.offers-grid span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.offers-grid strong {
  display: block;
  margin: 6px 0;
}

.offers-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.offers-grid article a {
  display: inline-grid;
  width: 100%;
  min-height: 36px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  margin-top: 12px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 53, 181, 0.16);
}

.offers-grid article a:hover {
  background: var(--primary-dark);
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 13px 15px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.risk-teasers article {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 190px;
  border: 1px solid rgba(31, 53, 181, 0.14);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.risk-teasers article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(31, 53, 181, 0.07);
}

.risk-teasers i {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(31, 53, 181, 0.2);
  border-radius: 8px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.risk-teasers i svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.risk-teasers strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.22;
}

.risk-teasers span {
  color: var(--muted);
  line-height: 1.45;
}

.risk-teasers em {
  align-self: end;
  width: fit-content;
  border: 1px solid rgba(31, 53, 181, 0.12);
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  padding: 5px 9px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.35;
}

.section-reassurance {
  max-width: 880px;
  border: 1px solid rgba(31, 53, 181, 0.12);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fffdf5;
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--primary-dark);
  font-weight: 850;
  line-height: 1.45;
}

.final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-top: 5px solid var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.final-cta-panel p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-mockup {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.report-preview-image {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6fb;
  box-shadow: var(--shadow-soft);
}

.report-preview-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
}

.report-preview-link:hover .report-preview-image {
  border-color: rgba(31, 53, 181, 0.36);
}

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

.resource-visual-card {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.resource-visual-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resource-visual-card strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.resource-visual-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mockup-cover,
.mockup-score,
.mockup-bars,
.mockup-roadmap,
.score-example-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.mockup-cover {
  display: grid;
  align-content: start;
  gap: 10px;
  border-left: 5px solid var(--accent);
  background: linear-gradient(135deg, #111827 0%, #182957 100%);
}

.mockup-cover span,
.mockup-cover p {
  color: #dbe4f5;
}

.mockup-cover strong {
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.mockup-cover p {
  margin-bottom: 0;
  line-height: 1.48;
}

.mockup-score {
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.mockup-score span,
.score-example-grid span,
.mockup-bars span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.mockup-score strong {
  color: var(--primary-dark);
  font-size: 3.2rem;
  line-height: 1;
}

.mockup-score em,
.score-example-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.mockup-bars {
  display: grid;
  gap: 10px;
}

.mockup-bars div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 46px;
  gap: 8px;
  align-items: center;
}

.mockup-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.mockup-roadmap {
  grid-column: 1 / -1;
}

.mockup-roadmap ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

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

.score-example-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.score-example-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.score-example-main {
  border-left: 5px solid var(--accent);
}

.score-example-main strong {
  color: var(--primary-dark);
  font-size: 2.35rem;
  line-height: 1;
}

.score-example-main p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.test-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.test-layout.is-context-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.test-layout.is-question-flow {
  grid-template-columns: 280px minmax(0, 760px);
  justify-content: center;
}

.test-status {
  position: sticky;
  top: 106px;
}

.test-status h2 {
  margin-bottom: 16px;
}

.test-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.pillar-steps {
  display: grid;
  gap: 8px;
}

.pillar-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  padding: 8px;
  text-align: left;
  box-shadow: none;
}

.pillar-step:hover,
.pillar-step.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: none;
  transform: none;
}

.pillar-step.complete {
  border-color: #c6e0d4;
}

.pillar-step strong {
  display: grid;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: #eef1ff;
  color: var(--primary-dark);
  font-size: 0.78rem;
}

.pillar-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 950;
}

.test-main {
  display: grid;
  gap: 18px;
}

.context-intro {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.context-controls {
  justify-content: flex-end;
  margin-top: 18px;
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 18px;
}

.score-panel,
.matrix-panel,
.quick-form,
.questionnaire,
.diagnostic-panel,
.report-panel {
  padding: 24px;
}

.score-panel,
.matrix-panel {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--primary);
}

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

.section-heading.compact {
  display: block;
}

.score-wrap {
  position: relative;
  display: grid;
  width: min(248px, 100%);
  margin: 8px auto 18px;
  place-items: center;
}

.score-wrap canvas {
  width: min(248px, 100%);
  height: auto;
}

.score-center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-center strong {
  color: #101923;
  font-size: 3.35rem;
  line-height: 1;
}

.score-center span {
  max-width: 145px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.summary {
  min-height: 48px;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.trust-row span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid #ccd5ef;
  border-radius: 7px;
  background: #f8f9ff;
  color: var(--primary-dark);
  font-size: 0.77rem;
  font-weight: 950;
}

.source-note {
  margin: 0 0 16px;
  border: 1px solid #f0d8c7;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff9e8;
  color: #594513;
  padding: 12px 13px;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.45;
}

.score-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.advanced-actions {
  position: relative;
}

.advanced-actions summary {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid #ccd5ef;
  border-radius: 7px;
  background: #ffffff;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0 13px;
  font-weight: 900;
  list-style: none;
}

.advanced-actions summary::-webkit-details-marker {
  display: none;
}

.advanced-actions[open] {
  display: grid;
  gap: 8px;
}

.advanced-actions-menu {
  display: flex;
  max-width: 560px;
  flex-wrap: wrap;
  gap: 8px;
}

.advanced-actions button {
  width: fit-content;
}

.score-share-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fffdf5;
  padding: 14px;
}

.framework-panel,
.benchmark-panel,
.executive-report-panel,
.method-panel,
.offers-panel,
.roadmap-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.method-copy {
  max-width: 940px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.58;
}

.benchmark-cards,
.executive-facts,
.executive-roadmap,
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benchmark-cards article,
.executive-facts article,
.executive-roadmap article,
.method-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.benchmark-cards span,
.executive-facts span,
.executive-roadmap span,
.method-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.benchmark-cards strong,
.executive-facts strong,
.executive-roadmap strong,
.method-grid strong {
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.2;
}

.benchmark-cards em,
.executive-facts em,
.executive-roadmap em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.benchmark-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 20px;
  align-items: center;
}

.report-cover h2 {
  font-size: 2.25rem;
}

.report-cover p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

#radarChart {
  width: min(100%, 460px);
  height: auto;
}

.executive-facts,
.executive-roadmap {
  margin-top: 14px;
}

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

.metric-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.metric-card div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.3;
}

.metric-card strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.metric-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e5edf1;
}

.metric-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.metric-card.critical .metric-track span {
  background: var(--red);
}

.metric-card.fragile .metric-track span {
  background: var(--amber);
}

.metric-card.solid .metric-track span,
.metric-card.mastered .metric-track span {
  background: var(--green);
}

.score-share-panel strong {
  color: var(--ink);
  line-height: 1.35;
}

.top-risks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.4;
}

.top-risks li::marker {
  color: var(--primary);
  font-weight: 950;
}

.category-bars {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-meta {
  display: grid;
  grid-template-columns: minmax(118px, 0.85fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.bar-meta span:first-child {
  color: #314150;
}

.bar-meta span:last-child {
  text-align: right;
}

.bar-track {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: #e5edf1;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #5367d8);
  transition: width 220ms ease;
}

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

.field-grid label:nth-child(-n + 3) {
  grid-column: span 2;
}

.field-grid label:nth-child(n + 4) {
  grid-column: span 3;
}

.pme-grid label:nth-child(1) {
  grid-column: span 3;
}

.pme-grid label:nth-child(2),
.pme-grid label:nth-child(3),
.pme-grid label:nth-child(4) {
  grid-column: span 1;
}

.pme-grid label:nth-child(n + 5) {
  grid-column: span 3;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(31, 53, 181, 0.15);
}

.question-list {
  display: grid;
  gap: 22px;
}

.pillar-group {
  display: grid;
  gap: 12px;
}

.pillar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.pillar-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

.pillar-title span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafb;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 950;
}

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

.single-question-shell {
  display: grid;
}

.question-card {
  display: grid;
  gap: 12px;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(28, 46, 58, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.question-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.question-card.is-current {
  min-height: 320px;
  border-top: 5px solid var(--primary);
  padding: 22px;
}

.question-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.question-number {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  margin-bottom: 10px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.question-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.question-card.is-current h3 {
  font-size: 1.45rem;
  line-height: 1.18;
}

.category-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 950;
}

.question-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.answer-help {
  border: 1px solid #f0d8c7;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff9e8;
  padding: 10px 12px;
  color: #594513 !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.segmented label {
  position: relative;
}

.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 6px;
  width: min(400px, 100%);
}

.legend span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.segmented input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

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

.recommendations {
  display: grid;
  gap: 12px;
}

.recommendation {
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  padding: 15px 16px;
  box-shadow: var(--shadow-soft);
}

.recommendation.high {
  border-left-color: var(--red);
}

.recommendation.medium {
  border-left-color: var(--amber);
}

.recommendation strong {
  display: block;
  margin-bottom: 5px;
}

.recommendation small {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recommendation span {
  color: var(--muted);
  line-height: 1.45;
}

.diagnostic-panel p,
.disclaimer {
  color: var(--muted);
  line-height: 1.5;
}

.provider-questions {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.provider-questions li::marker {
  color: var(--primary);
  font-weight: 950;
}

.evidence-accordion {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.evidence-accordion details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px 14px;
}

.evidence-accordion summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.evidence-accordion ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.evidence-accordion li::marker {
  color: var(--primary);
  font-weight: 950;
}

.evidence-kit-link {
  width: fit-content;
  margin-top: 14px;
}

.report {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.report-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.report-item strong {
  color: var(--muted);
}

.report-subtitle {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 950;
}

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

.report-pillar {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(28, 46, 58, 0.04);
}

.report-pillar span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
}

.report-pillar strong {
  font-size: 1.15rem;
}

.report-pillar em {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
}

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

.roadmap-stage {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.roadmap-stage:first-child {
  border-top-color: var(--red);
}

.roadmap-stage:nth-child(2) {
  border-top-color: var(--amber);
}

.roadmap-stage h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.roadmap-stage ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.roadmap-stage li::marker {
  color: var(--primary);
  font-weight: 950;
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow);
}

#lecture-score {
  scroll-margin-top: 24px;
}

.lead-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lead-panel .form-reassurance {
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

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

.lead-form label:nth-child(3),
.lead-form label:nth-child(7),
.lead-form .full-field,
.lead-form button,
.lead-form .phone-link,
.lead-form #leadStatus {
  grid-column: 1 / -1;
}

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

.lead-offer span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f9ff;
  color: var(--primary-dark);
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
}

.phone-link {
  color: var(--primary);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

#leadStatus {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 24px 28px;
}

.site-footer div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.site-footer a {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.seo-page {
  display: grid;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  gap: 18px;
  padding: 28px 0 48px;
}

.seo-hero {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-left: 7px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--executive) 0%, #17295c 100%);
  padding: 42px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.22);
}

.seo-hero h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: 3.4rem;
  line-height: 1;
}

.seo-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #dbe4f5;
  font-size: 1.08rem;
  line-height: 1.58;
}

.seo-hero .eyebrow {
  color: #f1cf54;
}

.seo-cta {
  display: inline-grid;
  width: fit-content;
  min-height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 53, 181, 0.2);
}

.seo-cta:hover {
  background: var(--primary-dark);
}

.seo-cta.secondary {
  margin-left: 10px;
  border: 1px solid rgba(31, 53, 181, 0.22);
  background: #ffffff;
  color: var(--primary);
  box-shadow: none;
}

.seo-cta.secondary:hover {
  background: rgba(31, 53, 181, 0.08);
}

@media (max-width: 1120px) {
  .sidebar {
    grid-template-columns: 1fr;
    position: static;
  }

  .home-panel {
    min-height: auto;
  }

  .home-hero,
  .app-entry-panel,
  .test-layout,
  .score-grid,
  .actions-grid,
  .lead-panel,
  .final-cta-panel,
  .report-mockup,
  .score-example-grid {
    grid-template-columns: 1fr;
  }

  .risk-teasers,
  .app-progress-strip,
  #firstSignals,
  .post-action-grid,
  .executive-metrics,
  .benchmark-cards,
  .executive-facts,
  .executive-roadmap,
  .method-grid,
  .dependencies-grid,
  .deliverables-grid,
  .credibility-grid,
  .case-grid,
  .email-sequence-grid,
  .offers-grid,
  .detail-card-grid,
  .comparison-grid,
  .method-example-grid,
  .method-table-grid,
  .proof-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-cover {
    grid-template-columns: 1fr;
  }

  .home-copy h1 {
    font-size: 3.2rem;
  }

  .home-copy h2 {
    font-size: 1.35rem;
  }

  .promise-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }

  .test-status {
    position: static;
  }

  .nav-list {
    justify-content: start;
    overflow-x: auto;
  }

  .profile-card {
    max-width: none;
  }

  .header-actions {
    justify-content: start;
  }

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

  .field-grid label,
  .field-grid label:nth-child(n),
  .pme-grid label:nth-child(n) {
    grid-column: auto;
  }

  .pillar-questions,
  .report-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1280px);
    padding-top: 14px;
  }

  .sidebar {
    padding: 14px;
  }

  .home-copy,
  .test-status {
    padding: 18px;
  }

  .home-copy {
    min-height: 0;
  }

  .home-copy h1 {
    font-size: 2.35rem;
  }

  .home-copy h2 {
    font-size: 1.15rem;
  }

  .hero-proof-grid {
    width: auto;
  }

  .home-copy .home-actions {
    justify-self: start;
    margin-left: 0;
    transform: none;
  }

  .app-progress-strip {
    display: block;
  }

  .app-progress-strip::before {
    display: block;
    border: 1px solid rgba(31, 53, 181, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary-dark);
    padding: 12px 14px;
    font-weight: 950;
    content: attr(data-mobile-label);
  }

  .app-progress-strip span {
    display: none;
  }

  .home-steps,
  .risk-teasers,
  #firstSignals,
  .post-action-grid,
  .executive-metrics,
  .benchmark-cards,
  .executive-facts,
  .executive-roadmap,
  .method-grid,
  .app-guidance-panel,
  .promise-grid,
  .dependencies-grid,
  .deliverables-grid,
  .credibility-grid,
  .case-grid,
  .email-sequence-grid,
  .offers-grid,
  .detail-card-grid,
  .responsive-info-cards,
  .comparison-grid,
  .method-example-grid,
  .method-table-grid,
  .proof-flow,
  .resource-visual-grid,
  .lead-offer,
  .lead-form,
  .roadmap-grid,
  .report-mockup,
  .score-example-grid {
    grid-template-columns: 1fr;
  }

  .home-steps::before {
    top: 26px;
    bottom: 26px;
    left: 35px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(31, 53, 181, 0.16), rgba(241, 207, 84, 0.7));
  }

  .home-steps article {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-steps strong {
    grid-row: 1 / span 2;
  }

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

  .persistent-diagnostic-cta {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .offers-grid article a,
  .evidence-kit-link {
    width: 100%;
  }

  .proof-flow article::after {
    display: none;
  }

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

  .nav-list a {
    min-width: 0;
  }

  .score-panel,
  .matrix-panel,
  .quick-form,
  .questionnaire,
  .diagnostic-panel,
  .report-panel,
  .content-panel,
  .diagnostic-app-section,
  .framework-panel,
  .benchmark-panel,
  .executive-report-panel,
  .method-panel,
  .offers-panel,
  .roadmap-panel,
  .lead-panel {
    padding: 18px;
  }

  .app-entry-actions {
    justify-self: start;
    justify-items: start;
  }

  .app-entry-badges {
    justify-content: flex-start;
  }

  .local-save-note {
    text-align: left;
  }

  .test-layout.is-question-flow {
    grid-template-columns: 1fr;
  }

  .seo-cta.secondary {
    margin-top: 10px;
    margin-left: 0;
  }

  .trust-row,
  .pillar-questions,
  .report-pillars {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .legend {
    margin-top: 12px;
  }

  .report-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .question-card.is-current {
    min-height: 0;
    padding: 18px;
  }

  .question-card.is-current h3 {
    font-size: 1.22rem;
  }

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

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #ffffff;
    color: #111827;
  }

  .sidebar,
  .site-footer,
  .score-actions,
  .report-actions,
  .home-panel,
  #test,
  #recommandations,
  .diagnostic-panel,
  .questionnaire {
    display: none !important;
  }

  body.printing-comex #score {
    display: block !important;
  }

  main,
  .score-grid,
  .actions-grid,
  .report-cover {
    display: block;
    width: 100%;
    padding: 0;
  }

  .score-panel,
  .matrix-panel,
  .quick-form,
  .framework-panel,
  .benchmark-panel,
  .executive-report-panel,
  .report-panel {
    margin-bottom: 16px;
    border-color: #d7dce8;
    box-shadow: none;
    break-inside: avoid;
  }

  .home-copy,
  .executive-report-panel {
    background: #ffffff;
  }

  .executive-metrics,
  .benchmark-cards,
  .executive-facts,
  .executive-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-cover h2 {
    font-size: 1.8rem;
  }

  #radarChart {
    display: block;
    max-width: 420px;
    margin: 8px auto 0;
  }
}
