:root {
  --navy-950: #07162a;
  --navy-900: #0b1f3a;
  --navy-800: #123153;
  --blue-600: #1d7ed8;
  --blue-500: #1da1f2;
  --cyan-500: #16b8c8;
  --green-600: #169b68;
  --orange-500: #f28c28;
  --red-600: #d94747;
  --ink: #10233f;
  --muted: #5d6f86;
  --line: #d9e4f1;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-blue: #edf6ff;
  --shadow: 0 18px 45px rgba(10, 31, 58, 0.12);
  --radius: 8px;
  --max: 1180px;
  --focus: 0 0 0 3px rgba(29, 126, 216, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--navy-900);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  color: #fff;
  background: rgba(7, 22, 42, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--navy-950);
  background: #fff;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.main-nav a,
.header-cta {
  text-decoration: none;
}

.main-nav a:hover {
  color: #fff;
}

.header-cta {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.92rem;
}

.section-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 170px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.55rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subline {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.hero-list {
  display: grid;
  gap: 0.65rem;
  max-width: 650px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li,
.trust-list li {
  position: relative;
  padding-left: 1.8rem;
}

.hero-list li::before,
.trust-list li::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--green-600);
  border-radius: 2px;
}

.hero-actions,
.wizard-actions,
.report-actions,
.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--orange-500);
}

.button-primary:hover {
  background: #df7818;
}

.button-secondary {
  color: var(--navy-900);
  background: #fff;
  border-color: var(--line);
}

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

.button-ghost {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--line);
}

.privacy-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-score span {
  color: rgba(255, 255, 255, 0.74);
}

.mini-score strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.signal-stack {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0;
}

.signal-stack div {
  display: grid;
  gap: 0.45rem;
}

.signal-stack b {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-600));
}

.signal-stack div:nth-child(2) b {
  width: 72%;
}

.signal-stack div:nth-child(3) b {
  width: 56%;
}

.tool-section,
.result-section,
.trust-section,
.faq-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.tool-heading,
.section-heading,
.trust-section {
  display: grid;
  gap: 1rem;
}

.tool-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 1.2rem;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-size: 1.18rem;
  line-height: 1.2;
}

.tool-heading p,
.section-heading p,
.trust-copy p {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.tool-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.progress-card,
.wizard-card,
.report-panel,
.report-header,
.trust-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-card {
  position: sticky;
  top: 86px;
  padding: 1.15rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-number {
  color: var(--navy-950);
  font-size: 1.45rem;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  margin: 1rem 0;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--green-600));
  transition: width 200ms ease;
}

.stepper {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.stepper button.is-active {
  color: var(--navy-950);
  background: var(--surface-blue);
  border-color: #cde5fb;
  font-weight: 800;
}

.step-index {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: #fff;
  background: var(--navy-800);
  border-radius: 5px;
  font-size: 0.78rem;
  flex: 0 0 auto;
}

.notice-box {
  margin-top: 1rem;
  padding: 0.85rem;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.notice-box p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.wizard-card {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.wizard-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.8rem;
  color: #7d1d1d;
  background: #fff1f1;
  border: 1px solid #f2caca;
  border-radius: 6px;
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

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

.field label,
.checkbox-card span {
  color: var(--navy-900);
  font-weight: 750;
}

.required {
  color: var(--red-600);
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.78rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
}

input:focus,
select:focus {
  border-color: var(--blue-500);
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 68px;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.checkbox-card input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--blue-600);
}

.industry-hint {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: #0e4560;
  background: #eaf9fb;
  border: 1px solid #bceaf0;
  border-radius: 6px;
}

.result-section[hidden] {
  display: none;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.report-header p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.score-ring {
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  color: var(--navy-950);
  background: conic-gradient(var(--blue-500) 0deg, var(--blue-500) 0deg, #e6eef8 0deg);
  border-radius: 50%;
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: #fff;
  border-radius: 50%;
}

.score-ring span,
.score-ring small {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.score-ring span {
  align-self: end;
  font-size: 3.2rem;
  font-weight: 850;
}

.score-ring small {
  align-self: start;
  color: var(--muted);
  font-weight: 750;
}

.status-strip {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 750;
}

.status-strip.critical {
  border-color: #f2caca;
  background: #fff4f4;
  color: #7d1d1d;
}

.status-strip.weak {
  border-color: #f9dab4;
  background: #fff7ed;
  color: #79440f;
}

.status-strip.solid {
  border-color: #bfe7ff;
  background: #eff9ff;
  color: #0b5275;
}

.status-strip.strong {
  border-color: #bdebd8;
  background: #effbf6;
  color: #0f6746;
}

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

.report-panel {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.score-list {
  display: grid;
  gap: 0.85rem;
}

.score-row {
  display: grid;
  gap: 0.4rem;
}

.score-row-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 750;
}

.score-bar {
  height: 8px;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 99px;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--blue-500);
}

.priority-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.25rem;
}

.priority-list li::marker {
  color: var(--blue-600);
  font-weight: 850;
}

.recommendation-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.recommendation-card,
.plan-card {
  padding: 1rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.recommendation-card summary {
  cursor: pointer;
  color: var(--navy-950);
  font-weight: 800;
}

.recommendation-card ul,
.plan-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.keyword-grid span {
  padding: 0.45rem 0.6rem;
  color: var(--navy-900);
  background: var(--surface-blue);
  border: 1px solid #cce5fb;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
}

.report-actions {
  margin-top: 1rem;
}

.trust-section {
  padding: clamp(1.4rem, 4vw, 2rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-actions {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(10, 31, 58, 0.06);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--navy-950);
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
}

.site-footer p {
  margin: 0.25rem 0 0;
}

.site-footer a {
  color: #fff;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 320px;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--navy-900);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .tool-layout,
  .report-grid,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .progress-card {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .section-shell {
    width: min(100% - 1rem, var(--max));
  }

  .field-grid,
  .checkbox-grid,
  .recommendation-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .tool-heading,
  .report-header {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 136px;
    height: 136px;
  }

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

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
  }

  .no-print,
  .hero,
  .tool-section,
  .faq-section,
  .toast {
    display: none !important;
  }

  .section-shell {
    width: 100%;
  }

  .result-section {
    display: block !important;
    padding: 0;
  }

  .report-header,
  .report-panel,
  .trust-section,
  .status-strip {
    box-shadow: none;
    break-inside: avoid;
  }

  .report-grid,
  .recommendation-grid,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}
