/* Preflight — shared styles. Design 10 "instrument panel" extracted into a
   shared sheet for the multi-page site. Slate ground + dark control panels,
   teal/amber/coral = cleared/review/blocked, Sora + IBM Plex Sans. */

:root {
  --ground: #f1f3f5;
  --panel-dark: #1a2330;
  --panel-mid: #243040;
  --panel-light: #2e3d52;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-strong: rgba(255, 255, 255, 0.14);

  --cleared: #2ec4a0;
  --cleared-dim: rgba(46, 196, 160, 0.18);
  --review: #f4a623;
  --review-dim: rgba(244, 166, 35, 0.18);
  --blocked: #e8594a;
  --blocked-dim: rgba(232, 89, 74, 0.18);

  --text-primary: #0d1520;
  --text-secondary: #4a5568;
  --text-muted: #8896a8;
  /* darker muted for small text on the LIGHT ground (labels, captions) — clears WCAG AA */
  --text-muted-ink: #5e6b7d;
  --text-inv: #e8ecf0;
  --text-inv-dim: rgba(232, 236, 240, 0.62);

  --font-heading: "Sora", sans-serif;
  --font-ui: "IBM Plex Sans", sans-serif;

  --radius-card: 10px;
  --radius-sm: 6px;
  --maxw: 1240px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-dark: 0 2px 8px rgba(0, 0, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ground);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
:focus-visible {
  outline: 2px solid var(--cleared);
  outline-offset: 3px;
  border-radius: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── NAV (multi-page) ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 243, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cleared);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}
.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--panel-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--panel-mid);
}

/* language switcher */
.lang-switch {
  position: relative;
}
.lang-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn:hover {
  border-color: rgba(0, 0, 0, 0.28);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 5px;
  display: none;
  min-width: 150px;
  z-index: 200;
}
.lang-menu.open {
  display: block;
}
.lang-menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover {
  background: var(--ground);
  color: var(--text-primary);
}
.lang-menu button[aria-current="true"] {
  color: var(--text-primary);
  font-weight: 600;
}
.lang-menu button .code {
  color: var(--text-muted);
  font-variant: small-caps;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}
.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--panel-dark);
  background: var(--cleared);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary.lg {
  font-size: 15px;
  padding: 13px 26px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inv);
  background: transparent;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border-strong);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-dark {
  color: #fff;
  background: var(--panel-dark);
}
.btn-dark:hover {
  background: var(--panel-mid);
}
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: transparent;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-ghost-dark:hover {
  border-color: rgba(0, 0, 0, 0.32);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-ghost-dark:active {
  transform: translateY(0);
}

/* ─── HERO (dark panel) ──────────────────────────────────── */
.hero {
  background: var(--panel-dark);
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cleared);
  margin-bottom: 20px;
}
.hero-label-dash {
  width: 18px;
  height: 1px;
  background: var(--cleared);
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--cleared);
}
.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-inv-dim);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.trust-line {
  font-size: 12px;
  color: var(--text-inv-dim);
}
.trust-line span {
  margin: 0 6px;
  opacity: 0.4;
}

/* compact page-hero for inner pages */
.page-hero {
  background: var(--panel-dark);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-inv);
  margin-bottom: 16px;
  max-width: 16ch;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--cleared);
}
.page-hero p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-inv-dim);
  max-width: 60ch;
}

/* ─── DASHBOARD CARD ─────────────────────────────────────── */
.dashboard-card {
  background: var(--panel-mid);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}
.dc-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dc-header-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dc-header-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cleared);
  background: var(--cleared-dim);
  padding: 3px 8px;
  border-radius: 3px;
}
.dc-body {
  padding: 22px 20px 20px;
}
.dc-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

/* gauge */
.gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.gauge-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  --gauge-deg: 0deg;
  background: conic-gradient(
    var(--cleared) 0deg,
    var(--cleared) var(--gauge-deg),
    rgba(255, 255, 255, 0.08) var(--gauge-deg),
    rgba(255, 255, 255, 0.08) 360deg
  );
  position: relative;
}
.gauge-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--panel-mid);
  border-radius: 50%;
}
.gauge-inner {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gauge-score {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-inv);
  line-height: 1;
}
.gauge-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kpi-tile {
  background: var(--panel-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
}
.kpi-tile-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.kpi-tile-label.cleared {
  color: var(--cleared);
}
.kpi-tile-label.review {
  color: var(--review);
}
.kpi-tile-label.blocked {
  color: var(--blocked);
}
.kpi-tile-label.total {
  color: #a3b0c0;
}
.kpi-tile-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-inv);
  line-height: 1;
}
.split-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stacked-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}
.bar-seg {
  height: 100%;
}
.bar-seg.cleared {
  background: var(--cleared);
}
.bar-seg.review {
  background: var(--review);
}
.bar-seg.blocked {
  background: var(--blocked);
}
.bar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-inv-dim);
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.cleared {
  background: var(--cleared);
}
.legend-dot.review {
  background: var(--review);
}
.legend-dot.blocked {
  background: var(--blocked);
}

/* ─── METRIC STRIP ───────────────────────────────────────── */
.metric-strip {
  background: var(--panel-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 24px;
}
.metric-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
}
.metric-item {
  flex: 1;
  padding: 20px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.metric-item:first-child {
  padding-left: 0;
}
.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-inv);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-desc {
  font-size: 12px;
  color: var(--text-inv-dim);
}

/* ─── SECTION ────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}
.section.tight {
  padding-top: 56px;
  padding-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cleared);
  margin-bottom: 16px;
}
.section-label-num {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 48px;
}
/* tighter variant when a grid follows immediately */
.section-sub.snug {
  margin-bottom: 40px;
}

/* optional-field hint in form labels + price lists */
.form-label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-inv-dim);
}

/* ─── STEPS ──────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.step {
  background: #fff;
  padding: 32px 28px;
}
.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step:nth-child(1) .step-icon {
  background: var(--cleared-dim);
}
.step:nth-child(2) .step-icon {
  background: var(--review-dim);
}
.step:nth-child(3) .step-icon {
  background: var(--blocked-dim);
}
.step-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── FINDINGS / SAMPLE ──────────────────────────────────── */
.surface-white {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.findings-section {
  padding: 80px 24px;
}
.findings-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.findings-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.findings-table {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.findings-table-header,
.finding-row {
  display: grid;
  grid-template-columns: 24px 1fr 80px;
  gap: 12px;
  align-items: center;
}
.findings-table-header {
  background: var(--ground);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.findings-table-header span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.finding-row {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: background 0.1s;
}
.finding-row:last-child {
  border-bottom: none;
}
.finding-row:hover {
  background: var(--ground);
}
.sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sev-dot.high {
  background: var(--blocked);
}
.sev-dot.medium {
  background: var(--review);
}
.sev-dot.low {
  background: var(--cleared);
}
.finding-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.finding-sev {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  text-align: center;
}
.finding-sev.high {
  color: #b52718;
  background: var(--blocked-dim);
}
.finding-sev.medium {
  color: #8a5800;
  background: var(--review-dim);
}
.finding-sev.low {
  color: #1d7a60;
  background: var(--cleared-dim);
}

/* sample report card */
.sample-card {
  background: var(--panel-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}
.sc-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-header-dots {
  display: flex;
  gap: 5px;
}
.sc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.sc-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.sc-body {
  padding: 20px;
}
.sc-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.sc-badge {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.sc-badge.cleared {
  background: var(--cleared-dim);
  border: 1px solid rgba(46, 196, 160, 0.25);
}
.sc-badge.review {
  background: var(--review-dim);
  border: 1px solid rgba(244, 166, 35, 0.25);
}
.sc-badge.blocked {
  background: var(--blocked-dim);
  border: 1px solid rgba(232, 89, 74, 0.25);
}
.sc-badge-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 3px;
}
.sc-badge.cleared .sc-badge-num {
  color: var(--cleared);
}
.sc-badge.review .sc-badge-num {
  color: var(--review);
}
.sc-badge.blocked .sc-badge-num {
  color: var(--blocked);
}
.sc-badge-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sc-findings-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}
.sc-finding {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-border);
}
.sc-finding:last-child {
  border-bottom: none;
}
.sc-finding-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-inv-dim);
}
.sc-finding-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
/* a grid that directly follows a section heading (no intervening .section-sub)
   gets the same breathing room a .section-sub would have provided */
.section-title + .card-grid {
  margin-top: 40px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}
.testimonial-text {
  font-size: 15px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 16px;
}
.testimonial-source {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-source::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.4;
}

/* ─── FEATURE / VALUE CARDS ──────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 9px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-card .chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.chip.high {
  color: #b52718;
  background: var(--blocked-dim);
}
.chip.medium {
  color: #8a5800;
  background: var(--review-dim);
}
.chip.low {
  color: #1d7a60;
  background: var(--cleared-dim);
}

/* ─── PRICING ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.price-card.featured {
  border-color: var(--cleared);
  box-shadow: 0 0 0 1px var(--cleared), var(--shadow-card);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -11px;
  left: 26px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--panel-dark);
  background: var(--cleared);
  padding: 3px 10px;
  border-radius: 3px;
}
.price-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted-ink);
  margin-bottom: 14px;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.price-amount .per {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-ink);
  margin-left: 4px;
}
.price-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 12px 0 20px;
  line-height: 1.55;
}
.price-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--cleared);
  border-bottom: 2px solid var(--cleared);
  transform: rotate(-45deg);
}
.price-card .btn-primary,
.price-card .btn-ghost-dark {
  justify-content: center;
  width: 100%;
}

/* centered footnote under a grid/section */
.note-center {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-muted-ink);
}

/* two-up pricing layout (free + one paid plan), centered & narrower than 3-up */
.pricing-grid.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

/* annual toggle / small price note under amount */
.price-annual {
  font-size: 13px;
  color: var(--text-muted-ink);
  margin-top: 6px;
}

/* ─── CTA BANNER (final) ─────────────────────────────────── */
.cta-section {
  background: var(--panel-dark);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(46, 196, 160, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 14px;
  line-height: 1.1;
}
.cta-sub {
  font-size: 15px;
  color: var(--text-inv-dim);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ─── FORM ───────────────────────────────────────────────── */
.form-card {
  background: var(--panel-mid);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-dark);
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input,
.form-select {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-inv);
  background: var(--panel-light);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input::placeholder {
  color: rgba(232, 236, 240, 0.62);
}
.form-input:focus,
.form-select:focus {
  border-color: var(--cleared);
}
/* keyboard focus gets a visible ring; mouse focus keeps the subtle border */
.form-input:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--cleared);
  outline-offset: 2px;
}
.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--panel-dark);
  background: var(--cleared);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.form-trust {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-inv-dim);
  text-align: center;
}
.form-trust span {
  margin: 0 5px;
  opacity: 0.35;
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--text-inv-dim);
}
.form-note.ok {
  color: var(--cleared);
  font-weight: 600;
}
.form-note.err {
  color: var(--blocked);
  font-weight: 600;
}

/* ─── FOOTER (Matrixify-style 3-col) ─────────────────────── */
footer {
  background: #0f1820;
  padding: 56px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand-col .footer-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inv);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-inv-dim);
  line-height: 1.6;
  max-width: 30ch;
}
.footer-col h4,
.footer-col-h {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-inv-dim);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text-inv);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-note {
  font-size: 12px;
  color: rgba(232, 236, 240, 0.6);
  max-width: 70ch;
  line-height: 1.5;
}
.footer-meta {
  font-size: 12px;
  color: rgba(232, 236, 240, 0.6);
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@property --gauge-deg {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@media (prefers-reduced-motion: no-preference) {
  .gauge-ring {
    transition: --gauge-deg 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  }
  .bar-seg {
    transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  }
}
.bar-seg:not(.animated) {
  width: 0%;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dashboard-card {
    max-width: 480px;
  }
  .steps-grid,
  .testimonials-grid,
  .card-grid,
  .card-grid.two,
  .pricing-grid,
  .pricing-grid.duo {
    grid-template-columns: 1fr;
  }
  .pricing-grid.duo {
    max-width: 440px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .findings-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .metric-strip-inner {
    flex-wrap: wrap;
  }
  .metric-item {
    flex: 1 1 130px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
  }
  .metric-item:last-child {
    border-bottom: none;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  /* nav collapses to a menu here (matches the layout breakpoint, so links never
     cram between 621–900px) */
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px;
    gap: 2px;
    box-shadow: var(--shadow-card);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .nav-cta {
    text-align: center;
    margin-top: 4px;
  }
  .nav-toggle {
    display: block;
    order: 3;
  }
  /* keep the toggle beside the language switcher on the right, not floating center */
  .nav-right {
    order: 2;
  }
}
@media (max-width: 620px) {
  .dc-top {
    grid-template-columns: 120px 1fr;
  }
  .gauge-wrap,
  .gauge-ring {
    width: 120px;
    height: 120px;
  }
  .gauge-score {
    font-size: 24px;
  }
  .hero {
    padding: 48px 20px;
  }
  .section {
    padding: 56px 20px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* a lone form field in a row spans the full width (SKU select, notes textarea) */
.form-row > .form-field:only-child {
  grid-column: 1 / -1;
}

/* nav toggle interaction states */
.nav-toggle:hover {
  border-color: rgba(0, 0, 0, 0.3);
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}
.form-submit:active {
  transform: translateY(0);
}

/* balance display headings so they don't drop a single-word last line */
.section-title,
.cta-title,
.hero-headline,
.page-hero h1 {
  text-wrap: balance;
}
