:root{
  /* Darker navy – enterprise / boardroom */
  --bg: #ffffff;
  --section-alt: #f4f6f9;
  --surface-alt: #f4f6f9;
  --surface: #ffffff;

  --text: #0b1220;
  --muted: #4b5563;

  --border: #e4e8ef;
  --hairline: rgba(11,18,32,0.08);

  --accent: #071a3d;        /* very dark navy */
  --accent-hover: #0b255a; /* subtle hover */
  --accent-soft: #eef2fb;  /* very light blue tint */

  --shadow: 0 8px 22px rgba(7,26,61,0.06); /* slightly flatter */
  --radius: 12px;
  --max: 1120px;

  --heading-font: "Lora", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1,
h2,
h3{
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #06142f;
}

/* Layout */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand.wordmark{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand.wordmark .brand-name{
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;   /* thin-line feel */
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 14px;
  position: relative;
}

.brand.wordmark .brand-name::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--accent);
  opacity: 0.7;
}

/* Navigation */
.nav{
  display: flex;
  align-items: center;
}

.nav-menu{
  display: flex;
  gap: 14px;
}

.nav-link{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.nav-link:hover{
  background: var(--surface-alt);
  color: var(--text);
}

.nav-cta{
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}

.nav-toggle{
  display: none;
}


.nav-dropdown{
  position: relative;
}

.nav-dropdown > summary{
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker{
  display: none;
}

.nav-dropdown > summary::after{
  content: "▾";
  font-size: 11px;
  margin-left: 6px;
}

.nav-dropdown[open] > summary{
  background: var(--surface-alt);
  color: var(--text);
}

.nav-dropdown-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}


.nav-toggle{
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero-banner-wrap{
  padding-top: 10px;
}

.hero-banner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  border: 3px solid #1d4ed8;
  border-radius: 8px;
  background: #eff6ff;
  color: #0b1d4d;
  padding: 12px 16px;
  transition: background .2s ease, transform .2s ease;
}

.hero-banner:hover{
  background: #dbeafe;
  transform: translateY(-1px);
}

.hero-banner-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.hero-banner-text{
  font-size: 14px;
  font-weight: 600;
}

.hero-banner-cta{
  font-size: 13px;
  font-weight: 700;
}

.hero{
  padding: 64px 0 36px;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

h1{
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 17ch;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.proof{
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
}

/* Sections */
.section{
  padding: 56px 0;
}

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

.section-head{
  margin-bottom: 20px;
}

.section-head h2{
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  line-height: 1.16;
  margin: 0 0 10px;
  max-width: 22ch;
}

.section-head p{
  color: var(--muted);
  max-width: 820px;
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 14px rgba(7,26,61,0.04);
}


.cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.card h3{
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.hero-card h3,
.card h3{
  font-weight: 550;
}

.card p{
  color: var(--muted);
}

/* Grids */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillars,
.steps,
.deliverables{
  display: grid;
  gap: 16px;
}

.pillars{ grid-template-columns: repeat(2,1fr); }
.steps{ grid-template-columns: repeat(3,1fr); }
.deliverables{ grid-template-columns: repeat(3,1fr); }

.step-num{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover{
  background: var(--surface-alt);
}

.btn.primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: none;
}
.btn.primary:hover{
  background: var(--accent-hover);
}

.btn.ghost{
  background: transparent;
}

.cta-row{
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.deliverable-health-score,
.deliverable-risk-heatmap{
  position: relative;
}

.deliverable-quick-link{
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  background: var(--surface);
}

.deliverable-quick-link:hover{
  background: var(--accent-soft);
  border-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Forms */
.field{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

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

input, textarea{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-size: 14px;
}

input:focus, textarea:focus{
  outline: none;
  border-color: var(--accent);
}

input.invalid,
textarea.invalid{
  border-color: #b42318;
  box-shadow: 0 0 0 1px #b42318;
}

.turnstile-wrap{
  min-height: 65px;
}

.form-result{
  margin-top: 12px;
  font-size: 14px;
}

.form-result.is-success{ color: #166534; }
.form-result.is-error{ color: #b42318; }
.form-result.is-progress{ color: var(--muted); }

/* Utilities */
.callout{
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: white;
  border-radius: 10px;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.hidden{ display: none; }
.stack-actions{ display: flex; gap: 12px; margin-top: 12px; }
.thanks-title{ margin: 0 0 10px; }
.thanks-copy{ margin: 0 0 18px; }

.email-obfuscated{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.email-obfuscated-text{
  display: inline-flex;
}

.email-copy-btn{
  padding: 6px 12px;
  font-size: 12px;
}

/* Footer */
.footer{
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links{
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.back-to-top{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.back-to-top::before{
  content: "↑";
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}

.back-to-top:hover{
  color: var(--accent);
  text-decoration: none;
}

.back-to-top:hover::before{
  color: var(--accent);
}

.footer-policy{
  display: inline-flex;
  align-items: center;

  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;

  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.footer-policy:hover{
  color: var(--accent);
  background: var(--section-alt);
  border-color: var(--border);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-banner{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cards{ grid-template-columns: repeat(2,1fr); }
  .pillars,
  .steps,
  .deliverables,
  .grid-2{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .header-inner{ position: relative; }

  .nav-toggle{ display: inline-flex; }

  .nav-menu{
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 30;
  }

  .nav-menu.is-open{
    display: flex;
  }

  .nav-dropdown-menu{
    position: static;
    min-width: 0;
    padding: 6px 0 0;
    border: 0;
    box-shadow: none;
  }
}



/* Health score preview */
.health-layout{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.health-left,
.health-right{
  display: grid;
  gap: 16px;
  align-content: start;
}

.health-overall{
  margin: 8px 0 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  font-weight: 700;
}

.health-chart-wrap{
  position: relative;
  min-height: 320px;
}

.health-pillar-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.health-pillar-item{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.health-pillar-name{
  font-weight: 600;
}

.health-pillar-details{
  color: var(--muted);
  font-size: 14px;
}

.health-error code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 960px){
  .health-layout{
    grid-template-columns: 1fr;
  }
}

/* Risk heatmap */
.heatmap-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.heatmap-main,
.heatmap-details{
  display: grid;
  gap: 14px;
}

.heatmap-details{
  position: sticky;
  top: 92px;
}

.heatmap-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.heatmap-toolbar h2,
.heatmap-details h2{
  margin: 0;
}

.heatmap-summary{
  margin: 2px 0 0;
  font-size: 14px;
}

.heatmap-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.heatmap-filter-field{
  margin: 0;
  min-width: 130px;
}

.heatmap-filter-field select{
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-size: 14px;
}

.heatmap-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heatmap-legend-item{
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.heatmap-grid-wrap{
  position: relative;
  padding-left: 36px;
  padding-bottom: 30px;
  overflow-x: auto;
}

.heatmap-axis{
  position: absolute;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap-axis-y-label{
  left: 0;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.heatmap-axis-x-label{
  bottom: 0;
  right: 0;
}

.heatmap-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
  min-width: 860px;
}

.heatmap-cell{
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 130px;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.heatmap-cell.severity-low{ background: linear-gradient(145deg, #f8fbff 0%, #f4fbf8 100%); }
.heatmap-cell.severity-medium{ background: linear-gradient(145deg, #fdfcf5 0%, #fbf8ee 100%); }
.heatmap-cell.severity-high{ background: linear-gradient(145deg, #fff8ef 0%, #fff4e7 100%); }
.heatmap-cell.severity-critical{ background: linear-gradient(145deg, #fff3f3 0%, #ffe9e9 100%); }

.heatmap-cell-label{
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.heatmap-chip{
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  text-align: left;
  padding: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.heatmap-chip:hover{
  border-color: #9fb0d1;
}

.heatmap-chip.is-selected{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(7, 26, 61, 0.16);
}

.heatmap-chip strong{
  font-size: 13px;
  line-height: 1.25;
}

.heatmap-chip-tags,
.heatmap-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.heatmap-pill{
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.confidence-high{
  background: #e6f6eb;
  border-color: #9fd6af;
}

.confidence-medium{
  background: #fff4dd;
  border-color: #efcc84;
}

.confidence-low{
  background: #fce9e9;
  border-color: #e8b2b2;
}

.legend-low{ border-color: #b7dcc9; background-color: #e9f8ef; }
.legend-medium{ border-color: #e5d59b; background-color: #fff4d6; }
.legend-high{ border-color: #f0be86; background-color: #ffe8ca; }
.legend-critical{ border-color: #e5a0a0; background-color: #f8d4d4; }

.heatmap-id{
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted);
}

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

.heatmap-detail-grid div{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.heatmap-detail-grid dt{
  color: var(--muted);
  font-size: 12px;
}

.heatmap-detail-grid dd{
  margin: 2px 0 0;
  font-weight: 600;
}

.heatmap-empty{
  margin: 0;
  font-weight: 500;
}

@media (max-width: 960px){
  .heatmap-layout{
    grid-template-columns: 1fr;
  }

  .heatmap-details{
    position: static;
  }
}

@media (max-width: 720px){
  .heatmap-grid-wrap{
    padding-left: 0;
    padding-bottom: 0;
  }

  .heatmap-axis{
    display: none;
  }

  .heatmap-detail-grid{
    grid-template-columns: 1fr;
  }
}
