:root {
  --ink: #181716;
  --blue: #252321;
  --blue-deep: #10100f;
  --orange: #a97845;
  --orange-dark: #80552d;
  --paper: #f4f1eb;
  --white: #fffdf9;
  --muted: #716e68;
  --line: #d8d2c8;
  --mint: #798c85;
  --amber: #b8863c;
  --red: #b84b43;
}

.report-lead {
  background: #e5ddd0;
}

.report-lead-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.report-lead h2 {
  margin: 8px 0 18px;
  font-size: 42px;
}

.report-lead > div > p:last-child {
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
}

.lead-card {
  padding: 32px;
  border: 1px solid #d4cab9;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 10px 10px 0 #cdbda7;
}

.lead-card-label {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-card h3 {
  margin: 0 0 24px;
  font-size: 24px;
}

.lead-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.lead-card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid #b9c2b9;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

.lead-card input:focus {
  outline: 2px solid #85aaa0;
  border-color: var(--blue);
}

.lead-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .report-lead-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .report-lead h2 {
    font-size: 34px;
  }

  .lead-card {
    padding: 24px;
    box-shadow: 6px 6px 0 #cdbda7;
  }
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 15, 0.96);
}

.brand,
.main-nav,
.menu-toggle {
  color: #f8f5ef;
}

.brand-mark {
  border-radius: 3px;
  background: var(--orange);
}

.site-header .brand {
  flex: 0 0 auto;
}

.brand-image {
  display: block;
  width: 116px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.main-nav a:hover,
.text-link:hover {
  color: #dfc7a0;
}

.nav-cta,
.hero .button-primary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-cta:hover,
.hero .button-primary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 640px;
  background: #10100f;
  isolation: isolate;
}

.hero-video,
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.3) contrast(1.05) brightness(0.56);
}

.hero-video-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 16, 15, 0.96) 0%, rgba(16, 16, 15, 0.86) 43%, rgba(16, 16, 15, 0.58) 100%), linear-gradient(0deg, rgba(16, 16, 15, 0.42), transparent 48%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.hero-copy h1,
.hero-copy .eyebrow,
.hero-copy .hero-text,
.hero-copy .trust-list {
  color: #f8f5ef;
}

.hero-copy .hero-text {
  color: #bbb7b0;
}

.hero-copy h1 em {
  color: #dfc7a0;
}

.hero-copy .eyebrow span {
  background: #dfc7a0;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 0;
  color: #f8f5ef;
}

.hero .button-secondary:hover {
  border-color: #fff;
  background: transparent;
}

.report-stage {
  padding: 34px 0 34px 42px;
}

.report-window {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  box-shadow: 18px 18px 0 rgba(189, 77, 54, 0.78);
}

.floating-note {
  border-radius: 0;
  background: #dfc7a0;
  color: var(--ink);
}

.floating-note small {
  color: #5c554b;
}

.problems {
  background: #fffdf9;
}

.problems .problem-card {
  border-color: #dfd9cf;
  border-radius: 0;
  box-shadow: none;
}

.problems .problem-card > svg,
.problems .card-number {
  color: var(--orange);
}

.modules,
.nis2-band,
.final-cta,
.site-footer {
  background: #10100f;
}

.modules .module-card {
  border-color: rgba(255, 255, 255, 0.17);
  border-radius: 0;
  background: transparent;
}

.modules .module-card:hover {
  border-color: #d6b77e;
  background: #1b1a18;
}

.modules .module-icon,
.modules .module-index,
.nis2-band .eyebrow,
.final-cta .eyebrow {
  color: #d6b77e;
}

.process,
.faq-preview {
  background: #f4f1eb;
}

.steps li {
  border-color: #d8d2c8;
}

.steps li > span {
  color: var(--orange);
}

.nis2-band,
.final-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nis2-band .button-light,
.final-cta .button-primary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f8f5ef;
}

.nis2-band .button-light:hover,
.final-cta .button-primary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.faq-preview details {
  border-color: #d8d2c8;
  border-radius: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero,
.module-hero {
  position: relative;
  overflow: hidden;
  background: #10100f;
}

.page-hero::after,
.module-hero::after {
  position: absolute;
  top: 0;
  right: 12%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.page-hero h1,
.module-hero h1,
.page-hero .eyebrow,
.module-hero .eyebrow,
.page-hero .breadcrumb,
.module-hero .breadcrumb {
  color: #f8f5ef;
}

.page-hero h1 em,
.module-hero h1 em {
  color: #d6b77e;
}

.page-hero .eyebrow span,
.module-hero .eyebrow span {
  background-color: #d6b77e;
}

.page-hero p:last-child,
.module-hero p:last-child,
.breadcrumb a {
  color: #bbb7b0;
}

.content-section {
  background: var(--paper);
}

.article-card,
.finding,
.scan-panel,
.quiz-card,
.contact-card {
  border-color: #d8d2c8;
  border-radius: 0;
  box-shadow: none;
  background: var(--white);
}

.article-card:hover {
  border-color: #a97845;
  transform: translateY(-4px);
}

.article-card > svg,
.article-card .text-link,
.finding > span {
  color: var(--orange);
}

.scan-panel,
.quiz-card,
.contact-card {
  border-top: 3px solid var(--orange);
}

.scan-panel input,
.scan-panel textarea,
.scan-panel select,
.contact-card input,
.contact-card textarea {
  border-color: #cfc7bb;
  border-radius: 0;
  background: #fffdf9;
}

.scan-panel .button-primary,
.quiz-card .button-primary,
.contact-card .button-primary,
.content-section .button-primary {
  border-radius: 0;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.scan-panel .button-primary:hover,
.quiz-card .button-primary:hover,
.contact-card .button-primary:hover,
.content-section .button-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.callout {
  border-radius: 0;
  border-left-color: var(--orange);
  background: #eee7dc;
  color: var(--ink);
}

.page-hero + .content-section .container > h2:first-child,
.content-section > .container > h2:first-child {
  max-width: 760px;
}

body {
  background:
    radial-gradient(circle at top right, rgba(169, 120, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #f4f1eb 32%, #eee8de 100%);
}

.site-header {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.main-nav a,
.site-footer a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
}

.hero::after,
.page-hero::before,
.module-hero::before,
.final-cta::before {
  position: absolute;
  inset: auto auto 0 0;
  width: min(30vw, 320px);
  height: min(30vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 120, 69, 0.24), transparent 70%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1,
.page-hero h1,
.module-hero h1,
.final-cta h2,
.report-lead h2 {
  text-wrap: balance;
}

.hero-text,
.page-hero p:last-child,
.module-hero p:last-child,
.report-lead p,
.content-section p,
.content-section li {
  text-wrap: pretty;
}

.report-window {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(236, 230, 220, 0.98));
}

.report-body {
  backdrop-filter: blur(8px);
}

.problem-card,
.module-card,
.article-card,
.price-card,
.scan-panel,
.lead-card,
.accordion details,
.finding,
.callout,
.contact-item,
.table-wrap {
  box-shadow: 0 22px 55px rgba(24, 23, 22, 0.06);
}

.problem-card,
.article-card,
.price-card,
.contact-item,
.scan-panel,
.lead-card,
.accordion details,
.module-card {
  position: relative;
  overflow: hidden;
}

.problem-card::before,
.article-card::before,
.price-card::before,
.contact-item::before,
.scan-panel::before,
.lead-card::before,
.accordion details::before,
.module-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(169, 120, 69, 0.9), rgba(169, 120, 69, 0));
  content: "";
}

.problem-card,
.article-card,
.price-card,
.contact-item,
.accordion details,
.table-wrap {
  background: rgba(255, 253, 249, 0.84);
  backdrop-filter: blur(10px);
}

.module-card {
  backdrop-filter: blur(14px);
}

.section-heading,
.split-heading,
.process-intro,
.faq-grid > div:first-child,
.nis2-grid,
.report-lead-grid,
.page-hero .container,
.module-hero .container {
  position: relative;
  z-index: 1;
}

.three-grid,
.four-grid,
.article-grid,
.pricing-grid {
  gap: 28px;
}

.problem-card,
.article-card,
.price-card,
.contact-item,
.accordion details,
.scan-panel,
.lead-card {
  border: 1px solid rgba(169, 120, 69, 0.16);
}

.problem-card:hover,
.article-card:hover,
.price-card:hover,
.module-card:hover,
.contact-item:hover,
.accordion details:hover,
.lead-card:hover,
.scan-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(24, 23, 22, 0.1);
}

.problem-card,
.article-card,
.price-card,
.module-card,
.contact-item,
.accordion details,
.lead-card,
.scan-panel {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.text-link {
  font-weight: 700;
}

.page-hero,
.module-hero {
  background:
    linear-gradient(135deg, rgba(16, 16, 15, 0.98), rgba(24, 23, 22, 0.95)),
    radial-gradient(circle at top right, rgba(169, 120, 69, 0.22), transparent 26%);
}

.page-hero .container,
.module-hero .container {
  padding-top: 12px;
  padding-bottom: 8px;
}

.content-section:nth-of-type(even) {
  background: rgba(255, 253, 249, 0.58);
}

.content-grid,
.report-lead-grid,
.faq-grid,
.process-grid,
.nis2-grid,
.contact-grid {
  gap: 48px;
}

.scan-panel,
.lead-card,
.table-wrap {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(244, 241, 235, 0.94));
}

.scan-panel .form-note,
.lead-card small {
  color: #655f57;
}

.accordion details[open] {
  border-color: rgba(169, 120, 69, 0.42);
  background: #fffdf9;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 120, 69, 0), rgba(169, 120, 69, 0.75), rgba(169, 120, 69, 0));
  content: "";
}

.site-footer p,
.site-footer small,
.site-footer .footer-bottom,
.site-footer a {
  color: rgba(248, 245, 239, 0.8);
}

.site-footer a:hover {
  color: #fffdf9;
}

@media (max-width: 960px) {
  .hero-copy {
    max-width: none;
  }

  .content-grid,
  .report-lead-grid,
  .faq-grid,
  .process-grid,
  .nis2-grid,
  .contact-grid {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: #10100f;
  }

  .main-nav {
    background: #10100f;
  }

  .brand-image {
    width: 104px;
    height: 28px;
  }

  .hero {
    min-height: 0;
    background: #10100f;
  }

  .hero-video {
    object-position: 58% center;
    filter: saturate(0.22) contrast(1.05) brightness(0.42);
  }

  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(16, 16, 15, 0.82), rgba(16, 16, 15, 0.94));
  }

  .report-stage {
    padding: 12px 0 34px;
  }

  .report-window {
    box-shadow: 8px 8px 0 rgba(189, 77, 54, 0.78);
  }

  .problem-card:hover,
  .article-card:hover,
  .price-card:hover,
  .module-card:hover,
  .contact-item:hover,
  .accordion details:hover,
  .lead-card:hover,
  .scan-panel:hover {
    transform: none;
  }
}

/* ── API integration styles ─────────────────────────────────────────────── */

.scan-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scan-alert {
  padding: 18px 20px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
}

.scan-alert-error {
  background: #fdf2f2;
  border-left: 4px solid var(--red);
  color: #7c2d2d;
}

.scan-alert-error strong {
  display: block;
  margin-bottom: 4px;
}

.scan-error-detail {
  display: block;
  margin: 10px 0 14px;
  color: #9b3a3a;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.retry-scan {
  margin-top: 4px;
}

.scan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--muted);
}

.grade-a { background: var(--mint); }
.grade-b { background: #6b9b7e; }
.grade-c { background: var(--amber); }
.grade-d { background: #c97c4e; }
.grade-f { background: var(--red); }

.scan-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}

.scan-stats span {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.findings-list {
  margin: 8px 0 20px;
}

.finding {
  align-items: flex-start;
}

.finding-icon {
  flex: none;
  font-size: 18px;
  line-height: 1.4;
}

.finding-body {
  flex: 1;
}

.finding-body strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.finding-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.finding-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finding-category {
  color: var(--blue);
}

.finding-severity {
  color: var(--muted);
}

.finding-high { border-left: 4px solid var(--red); }
.finding-medium { border-left: 4px solid var(--amber); }
.finding-low { border-left: 4px solid var(--mint); }

.scan-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.scan-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.scan-cta p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--ink);
}

.scan-email-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--mint);
  border-radius: 6px;
  color: #166534;
  font-size: 14px;
}

.scan-email-banner i {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.scan-email-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.scan-email-banner p {
  margin: 0;
  color: #3f6b4f;
}

.scan-email-banner em {
  font-style: normal;
  font-weight: 600;
}

.contact-feedback {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 14px;
}

.contact-feedback-success {
  color: #166534;
  background: #f0fdf4;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 4px solid var(--mint);
}

.contact-feedback-error {
  color: #7c2d2d;
  background: #fef2f2;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 4px solid var(--red);
}

button:disabled,
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
