:root {
  --bg: #ffffff;
  --ink: #12324A;
  --muted: #52636F;
  --line: #D7E1E3;
  --panel: #ffffff;
  --accent: #2B9C96;
  --pale: #E8F0F1;
  --accent-2: #9A6038;
  --paper: #F7F4EC;
  --amber-pale: #F5E7DA;
  --danger: #9f3333;
  --warning: #8a6418;
  --ok: #2f6a50;
  --focus: #1f6feb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand-block {
  min-width: 220px;
  max-width: 720px;
}

.brand-logo {
  display: block;
  width: clamp(132px, 15vw, 188px);
  height: auto;
  margin-bottom: 8px;
}

.brand-payoff {
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

.eyebrow, .label, .version {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.version {
  max-width: 460px;
  text-align: right;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}

.layout {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.intro, .question, .preliminary-panel, .result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro, .preliminary-panel, .result-panel {
  padding: 24px;
}

.fine-print {
  color: var(--muted);
  font-size: 14px;
}

.lead {
  max-width: 820px;
  font-size: 19px;
}

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

.intro-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.intro-grid h3 {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 16px;
}

.intro-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.pilot-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--pale);
}

.pilot-box p:last-child {
  margin-bottom: 0;
}

.pilot-confirmation {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pilot-confirmation input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.meta-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

label {
  display: block;
  font-weight: 700;
}

input[type="text"], textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  min-width: 0;
}

textarea {
  resize: vertical;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

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

button.secondary {
  color: var(--ink);
  background: #e7ebe5;
}

button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(31, 111, 235, 0.25);
  outline-offset: 2px;
}

.questionnaire {
  display: grid;
  gap: 16px;
}

#questions {
  display: grid;
  gap: 16px;
}

.question-group-label {
  padding: 6px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.question {
  padding: 20px;
  background: #ffffff;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}

.question-id {
  color: var(--accent);
  font-weight: 800;
}

.dimension {
  color: var(--muted);
  font-size: 13px;
}

.question-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 400;
  background: #fbfcfa;
}

.option input {
  margin-top: 4px;
}

.other-field {
  margin-top: 10px;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preliminary-panel {
  margin: 18px 0;
  background: var(--pale);
}

.payment-step {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.report-cover {
  padding: 22px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--pale);
  border: 1px solid var(--line);
}

.report-cover h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.report-cover .eyebrow,
.report-meta {
  color: var(--muted);
}

.report-meta {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  background: #e7ebe5;
  white-space: nowrap;
}

.badge.high {
  color: #ffffff;
  background: var(--danger);
}

.badge.medium {
  color: #ffffff;
  background: var(--warning);
}

.badge.low {
  color: #ffffff;
  background: var(--ok);
}

.badge.unknown {
  color: #253238;
  background: #e7ebe5;
  border: 1px dashed #9aa5a0;
}

.summary {
  font-size: 18px;
}

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

.score-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.score-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.score-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.report-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.report-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-section h3 {
  color: var(--accent);
}

.report-section ul,
.sources ul {
  margin-bottom: 0;
}

.client-next-step {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.sources {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--pale);
}

.sources a {
  color: var(--accent);
}

.client-next-step p {
  margin-bottom: 0;
  font-size: 17px;
}

.limits {
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--accent-2);
  background: var(--amber-pale);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .topbar, .result-head {
    display: block;
  }

  .topbar {
    padding: 18px 16px;
    overflow: visible;
  }

  .brand-block {
    min-width: 0;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 22px;
  }

  .layout {
    width: calc(100% - 20px);
    margin: 10px auto 40px;
    overflow: visible;
  }

  .intro, .preliminary-panel, .result-panel, .question {
    padding: 16px;
  }

  .intro-grid, .meta-grid, .score-grid {
    grid-template-columns: 1fr;
  }

  .version {
    max-width: none;
    margin-top: 14px;
    text-align: left;
  }

  .pilot-box {
    padding: 14px;
  }

  .pilot-confirmation {
    padding: 12px;
  }

  .question-head {
    display: block;
  }

  .actions,
  .actions button {
    width: 100%;
  }

  .intro > button {
    width: 100%;
  }

  .badge {
    white-space: normal;
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  .layout {
    width: calc(100% - 16px);
  }

  .topbar,
  .intro,
  .preliminary-panel,
  .result-panel,
  .question {
    padding: 14px;
  }

  h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }
}

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

  body {
    background: #ffffff;
    color: #111827;
    font-size: 11pt;
  }

  .topbar,
  .intro,
  .questionnaire,
  .preliminary-panel,
  .screen-only {
    display: none !important;
  }

  .layout {
    width: 100%;
    margin: 0;
  }

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

  .report-cover {
    color: #111827;
    background: #eef4f5;
    border: 1px solid #cbd5da;
    break-inside: avoid;
  }

  .report-cover .eyebrow,
  .report-meta {
    color: #4b5563;
  }

  .result-head,
  .columns,
  .score-grid {
    break-inside: avoid;
  }

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

  .score-card,
  .client-next-step,
  .limits {
    background: #ffffff;
    border-color: #d1d5db;
  }

  .badge {
    border: 1px solid #9ca3af;
    color: #111827 !important;
    background: #ffffff !important;
  }

  button {
    display: none;
  }
}

/* Public landing */
.landing-page {
  background: #F7F4EC;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(18, 50, 74, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-logo img,
.site-footer img {
  display: block;
  width: 154px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
}

.site-nav a,
.secondary-link,
.quiet {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a:hover,
.secondary-link:hover,
.quiet:hover {
  text-decoration: underline;
}

.nav-cta,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta,
.button-link.primary {
  color: #ffffff;
  background: var(--accent);
}

.button-link.secondary-link,
.button-link.quiet {
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(31, 95, 107, 0.24);
}

.button-link.full {
  width: 100%;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(86vh - 76px);
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(232, 240, 241, 0.88), rgba(247, 244, 236, 0.52)),
    #ffffff;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lead {
  max-width: 680px;
  color: #24333D;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.trust-line,
.price-line,
.note {
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 26px 0 14px;
}

.hero-actions.centered {
  justify-content: center;
}

.hero-panel,
.receive-box,
.access-card {
  border: 1px solid rgba(18, 50, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(18, 50, 74, 0.08);
}

.hero-panel {
  padding: clamp(22px, 4vw, 34px);
  min-width: 0;
}

.hero-panel img {
  width: 74px;
  height: auto;
  margin-bottom: 26px;
}

.hero-panel h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.hero-panel ul,
.receive-box ul,
.plain-list,
.check-list {
  padding-left: 20px;
}

.hero-panel li,
.receive-box li,
.plain-list li,
.check-list li {
  margin: 8px 0;
}

.panel-label {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
}

.content-band {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 5vw, 72px);
  background: #ffffff;
}

.muted-band {
  background: var(--paper);
}

.limits-band {
  background: #fff8e8;
}

.price-band {
  background: #E8F0F1;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.section-inner.narrow {
  width: min(820px, 100%);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.content-band h2,
.final-cta h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  overflow-wrap: break-word;
}

.content-band p,
.content-band li,
.final-cta p,
.site-footer p {
  font-size: 17px;
  line-height: 1.65;
}

.value-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.value-grid article,
.service-grid article {
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}

.value-grid h3,
.service-grid h3,
.receive-box h3,
.access-card h3 {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.receive-box,
.access-card {
  padding: 24px;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.final-cta {
  padding: clamp(52px, 8vw, 88px) clamp(18px, 5vw, 72px);
  text-align: center;
  color: #ffffff;
  background: var(--ink);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.final-cta .button-link.secondary-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.site-footer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #12324A;
}

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

.quick-scan-shell {
  scroll-margin-top: 88px;
  padding: clamp(44px, 7vw, 76px) clamp(16px, 4vw, 48px);
  background: #F7F4EC;
}

.quick-scan-shell > .topbar,
.quick-scan-shell > .layout {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.quick-scan-shell > .topbar {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.quick-scan-shell > .layout {
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: #E8F0F1;
}

.quick-scan-shell .intro,
.quick-scan-shell .preliminary-panel,
.quick-scan-shell .result-panel {
  margin: 0;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer img {
  filter: brightness(0) invert(1);
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-section,
  .two-col,
  .value-grid,
  .service-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead,
  .content-band p,
  .content-band li,
  .final-cta p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button-link {
    width: 100%;
  }

  .content-band h2,
  .final-cta h2 {
    font-size: 28px;
  }

  .hero-panel h2 {
    font-size: 24px;
  }
}
