:root {
  /* Light enterprise surfaces */
  --bg: #f4f7f5;
  --bg-soft: #eef2ef;
  --card: #ffffff;
  --card-2: #f3f6f4;
  --border: #e2e8e4;
  --border-strong: #d3dcd6;
  --text: #0f1f17;
  --muted: #5d6b63;
  --muted-2: #7a8881;

  /* Green brand (solid, no gradients) */
  --brand: #16a34a;        /* green-600 */
  --brand-dark: #15803d;   /* green-700 */
  --brand-soft: #e7f6ec;   /* green tint */
  --brand-softer: #f1faf4;
  --brand-ring: #bfe6cd;

  /* Severity / status */
  --crit: #dc2626;
  --high: #f97316;
  --med: #eab308;
  --low: #3b82f6;
  --good: #16a34a;

  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(17,40,28,.05), 0 1px 1px rgba(17,40,28,.03);
  --shadow: 0 8px 24px -10px rgba(17,40,28,.12), 0 2px 6px -2px rgba(17,40,28,.06);
  --shadow-lg: 0 30px 70px -28px rgba(17,40,28,.22), 0 8px 24px -12px rgba(17,40,28,.12);
  --shadow-brand: 0 12px 28px -10px rgba(22,163,74,.42);
  --ring: 0 0 0 4px var(--brand-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

/* Subtle enterprise dot-grid backdrop (no gradients) */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; background: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .6;
}

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: 12px;
}

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
nav.scrolled { background: rgba(255,255,255,.9); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; color: var(--text); }
.logo .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; box-shadow: var(--shadow-brand); }
.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 14.5px; font-weight: 500; margin-left: auto; }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--brand); border-radius: 2px; transition: right .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--text); padding: 9px 14px; border-radius: 10px; transition: background .15s; }
.nav-signin:hover { background: var(--card-2); }
@media (max-width: 720px){ .nav-signin { display: none; } }

.btn {
  border: 0; cursor: pointer; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 11px; color: #fff;
  background: var(--brand);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-brand);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(22,163,74,.5); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--brand-softer); border-color: var(--brand-ring); color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn.lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* Hero */
.hero { text-align: center; padding: 76px 0 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: #fff; padding: 7px 15px; border-radius: 999px; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.5);} 70%{box-shadow:0 0 0 9px rgba(22,163,74,0);} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0);} }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.035em; font-weight: 800; color: var(--text);
}
.hero h1 .grad { color: var(--brand); }
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 auto 36px; }

/* URL form */
.analyze-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.analyze-form .field {
  flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 4px 4px 4px 18px; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
.analyze-form .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.analyze-form input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 16px; padding: 14px 0; }
.analyze-form input::placeholder { color: #9aa6a0; }
.form-hint { margin-top: 14px; font-size: 13px; color: var(--muted-2); }
.form-error { margin-top: 14px; color: var(--crit); font-size: 14px; min-height: 18px; font-weight: 500; }

/* Trust row */
.trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 42px; color: var(--muted); font-size: 13px; font-weight: 500; }
.trust span { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--brand); font-weight: 700; }

/* Sections */
section.block { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.025em; color: var(--text); }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){ .grid.cols-3,.grid.cols-4{ grid-template-columns: 1fr; } .analyze-form{ flex-direction: column; } .nav-links{ display:none; } }

.card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature .fic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--brand-soft); border: 1px solid var(--brand-ring); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps .step { display: flex; gap: 18px; align-items: flex-start; }
.step .num { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: var(--brand); }
.step h3 { margin: 4px 0 6px; color: var(--text); }
.step p { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.faq code { background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 13px; color: var(--brand-dark); }

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 13px; text-align: center; background: #fff; }

/* ===== Scanning overlay ===== */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(244,247,245,.78); backdrop-filter: blur(8px); }
.overlay.show { display: grid; }
.scan-box { width: min(440px, 90vw); background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.scan-target { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 22px; word-break: break-all; font-weight: 500; }
.scan-ring { width: 96px; height: 96px; margin: 0 auto 26px; position: relative; }
.scan-ring svg { transform: rotate(-90deg); }
.scan-ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--brand-dark); }
.scan-steps { display: flex; flex-direction: column; gap: 12px; }
.scan-step { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 14px; transition: color .3s; }
.scan-step .mk { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; font-size: 11px; }
.scan-step.active { color: var(--text); font-weight: 500; }
.scan-step.active .mk { border-color: var(--brand); }
.scan-step.done { color: var(--text); }
.scan-step.done .mk { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===== Report ===== */
.report { display: none; padding: 44px 0 84px; }
.report.show { display: block; }

/* Report takeover: when a report is shown, hide the marketing page entirely. */
body.report-mode .hero,
body.report-mode section.block,
body.report-mode footer { display: none !important; }
body.report-mode .report { padding-top: 30px; }
.report-top { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.report-url { font-size: 14px; color: var(--muted); }
.report-url strong { color: var(--text); font-size: 21px; display: block; word-break: break-all; margin: 2px 0 4px; }
.health-block { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.health-cap { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.health-cap .icon { font-size: 15px; color: var(--brand); }
.health { display: flex; align-items: center; gap: 16px; padding: 6px 10px 6px 6px; background: var(--card-2); border: 1px solid var(--border); border-radius: 18px; }
.health-ring { width: 128px; height: 128px; position: relative; flex: none; }
.health-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
.health-ring .val .n { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.health-ring .val .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
@media (max-width: 860px){ .health-block { align-items: center; width: 100%; } }

.score-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 34px; }
@media (max-width: 860px){ .score-cards{ grid-template-columns: repeat(2,1fr);} .health{width:100%; justify-content:center;} }
.score-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.score-card .cat { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.score-card .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.score-card .bar { height: 6px; border-radius: 999px; background: var(--bg-soft); margin-top: 12px; overflow: hidden; }
.score-card .bar > i { display: block; height: 100%; border-radius: 999px; }

.report-section { margin-bottom: 40px; }
.report-section h2 { font-size: 22px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text); }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.pill.Critical { background: #fdeaea; color: var(--crit); }
.pill.High { background: #fdeee2; color: var(--high); }
.pill.Medium { background: #fdf3e0; color: #b87406; }
.pill.Low { background: #e8f0fe; color: var(--low); }

.issue { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.issue.Critical { border-left-color: var(--crit); }
.issue.High { border-left-color: var(--high); }
.issue.Medium { border-left-color: var(--med); }
.issue.Low { border-left-color: var(--low); }
.issue .ihead { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.issue .ititle { font-weight: 700; font-size: 16px; color: var(--text); }
.issue .meta-grid { margin-top: 14px; display: grid; grid-template-columns: 90px 1fr; gap: 9px 16px; font-size: 14px; }
.issue .meta-grid .k { color: var(--muted-2); font-weight: 500; }
.issue .meta-grid .v { color: var(--text); }
.issue .meta-grid .v.evi { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: #2f3d36; background: var(--card-2); padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); }

.rec { background: var(--brand-softer); border: 1px solid var(--brand-ring); border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; }
.rec .rtop { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rec h4 { margin: 0; font-size: 16px; color: var(--text); }
.rec .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border-strong); color: var(--muted); font-weight: 500; }
.rec p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.rec p strong { color: var(--text); }

.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tech-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tech-chip .tlogo { width: 26px; height: 26px; display: block; flex: none; }
.tech-chip .tlogo-fallback { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; }
.tech-chip .tname { font-weight: 700; color: var(--text); }
.tech-chip small { color: var(--muted-2); font-weight: 500; }
.tech-chip small::before { content: '· '; }

.ai-banner { font-size: 13px; color: var(--muted); background: var(--brand-soft); border: 1px solid var(--brand-ring); border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; padding: 12px 0; }
.report-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ===== Icons ===== */
.icon { display: inline-block; vertical-align: -.18em; }
.icon svg { display: block; width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature .fic { color: var(--brand-dark); }
.feature .fic .icon { font-size: 24px; }
.trust .ic .icon { font-size: 16px; }
.logo .dot .icon { font-size: 17px; }
.btn .icon, .nav-links .icon { font-size: 17px; margin-right: 7px; }
.report-section h2 .icon { font-size: 21px; color: var(--brand); }
.ai-banner .icon, .scan-target .icon { font-size: 15px; vertical-align: -.2em; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Charts row ===== */
.charts-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 34px; }
@media (max-width: 860px){ .charts-row { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.chart-card .sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.chart-body { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }

/* Radar */
.radar-wrap { flex: 1; min-width: 220px; display: grid; place-items: center; }
.radar polygon.grid-poly { fill: none; stroke: var(--border); stroke-width: 1; }
.radar line.axis { stroke: var(--border); stroke-width: 1; }
.radar polygon.data { fill: rgba(22,163,74,.16); stroke: var(--brand); stroke-width: 2;
  transition: clip-path 1s ease, opacity .8s ease; }
.radar .label { font-size: 11px; font-weight: 600; fill: var(--muted); }
.radar .dot { fill: var(--brand); }

/* Donut */
.donut-wrap { position: relative; width: 168px; height: 168px; flex: none; }
.donut-wrap .center { position: absolute; inset: 0; }
.donut-wrap .center .n { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.donut-wrap .center .l { position: absolute; left: 0; right: 0; top: 50%; margin-top: 19px; text-align: center;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.donut circle.seg { transition: stroke-dashoffset 1.1s cubic-bezier(.16,.84,.44,1); }
.legend { display: flex; flex-direction: column; gap: 9px; min-width: 168px; }
.legend .row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .row .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend .row .nm { color: var(--muted); flex: 1; font-weight: 500; }
.legend .row .pc { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.legend .row .ct { font-weight: 800; color: var(--text); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }

/* Animated score bar + count-up */
.score-card .bar > i { width: 0; transition: width 1.1s cubic-bezier(.16,.84,.44,1); }
.count { font-variant-numeric: tabular-nums; }

/* Issue stagger entrance */
.issue, .rec, .tech-chip { animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== KPI stat strip ===== */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 860px){ .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); border: 1px solid var(--brand-ring); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.kpi .ic .icon { font-size: 20px; }
.kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--text); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.kpi.warn .ic { background: #fdeaea; border-color: #f6c9c9; color: var(--crit); }
.kpi.ok .ic { background: var(--brand-soft); border-color: var(--brand-ring); color: var(--brand-dark); }

/* Health label pill */
.health .hlabel { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }

/* Radar responsiveness + spacing */
.radar { max-width: 100%; height: auto; }
.radar-wrap { min-height: 252px; }
.chart-card { display: flex; flex-direction: column; }
.chart-card .radar-wrap, .chart-card .chart-body { flex: 1; }
.chart-body { margin-top: 4px; }

/* Evidence / value overflow fixes */
.issue .meta-grid .v { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.issue .meta-grid .v.evi { overflow-x: auto; }

/* ===== Grade tile on the gauge ===== */
.grade-tile { width: 104px; height: 116px; border-radius: 16px; border: 1.5px solid; display: grid; place-items: center;
  text-align: center; flex: none; background-clip: padding-box; animation: pop .6s cubic-bezier(.16,1.2,.5,1) both; }
.grade-tile .g { font-size: 52px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.grade-tile .gl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 5px; }
@keyframes pop { from { opacity: 0; transform: scale(.5) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ===== Section subtitle ===== */
.section-sub { margin: -6px 0 18px; font-size: 14px; color: var(--muted); max-width: 760px; }

/* ===== Performance meters ===== */
.meters { display: flex; flex-direction: column; gap: 18px; }
.meter .mtop { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 7px; }
.meter .mname { color: var(--muted); font-weight: 500; }
.meter .mval { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.meter .track { position: relative; height: 9px; border-radius: 999px; background: var(--bg-soft); }
.meter .fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.2s cubic-bezier(.16,.84,.44,1); }
.meter .marker { position: absolute; top: -4px; width: 2px; height: 17px; background: var(--text); opacity: .28; border-radius: 2px; }
.meter .marker::after { content: 'target'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted-2); letter-spacing: .04em; }

/* ===== Issue filter chips ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar .flabel { color: var(--muted-2); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.fchip { border: 1px solid var(--border-strong); background: #fff; color: var(--muted); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.fchip:hover { border-color: var(--brand-ring); color: var(--brand-dark); transform: translateY(-1px); }
.fchip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fchip .c { opacity: .7; margin-left: 3px; }

/* ===== Collapsible issue cards ===== */
.issue { padding: 0; overflow: hidden; }
.issue .ihead { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.issue .sev-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.issue.Critical .sev-dot { background: var(--crit); }
.issue.High .sev-dot { background: var(--high); }
.issue.Medium .sev-dot { background: var(--med); }
.issue.Low .sev-dot { background: var(--low); }
.issue .ititle { flex: 1; font-weight: 700; font-size: 15.5px; color: var(--text); }
.issue .chev { display: flex; color: var(--muted-2); transition: transform .3s ease; }
.issue .chev .icon { font-size: 18px; }
.issue.open .chev { transform: rotate(180deg); }
.issue .ibody { max-height: 0; opacity: 0; overflow: hidden; padding: 0 20px;
  transition: max-height .35s ease, opacity .3s ease, padding .35s ease; }
.issue.open .ibody { max-height: 520px; opacity: 1; padding: 0 20px 18px; }
.issue .ibody .meta-grid { margin-top: 0; }
.issue.filtered-out { display: none; }
@media (max-width: 560px){ .issue .meta-grid { grid-template-columns: 1fr; gap: 4px 0; } .issue .meta-grid .k { margin-top: 8px; } }

/* ===== Audit checklist ===== */
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px){ .checklist-grid { grid-template-columns: 1fr; } }
.check-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.check-card .ch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.check-card .ch-head .icon { color: var(--brand); font-size: 19px; }
.check-card .ch-head h3 { margin: 0; font-size: 16px; }
.check-card .ch-head .score { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--card-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.check-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.check-row:first-of-type { border-top: 0; }
.check-row .st { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-row .st .icon { font-size: 12px; color: #fff; }
.check-row.pass .st { background: var(--good); }
.check-row.warn .st { background: var(--med); }
.check-row.fail .st { background: var(--crit); }
.check-row .lbl { color: var(--text); flex: 1; font-weight: 500; }
.check-row .dtl { color: var(--muted-2); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Issue concentration bars ===== */
.catbars { display: flex; flex-direction: column; gap: 15px; margin-top: 4px; }
.catbar .ct { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.catbar .ct .k { color: var(--text); font-weight: 600; }
.catbar .ct .v { color: var(--muted-2); }
.catbar .track { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; display: flex; }
.catbar .track i { height: 100%; width: 0; transition: width 1s cubic-bezier(.16,.84,.44,1); }
.catbar .track i:first-child { border-radius: 999px 0 0 999px; }
.catbar .track i:last-child { border-radius: 0 999px 999px 0; }

/* ===== Grouped issues ===== */
.issue-group { margin-bottom: 22px; }
.issue-group .group-head { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding-bottom: 2px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.issue-group .group-head .icon { color: var(--brand); font-size: 16px; }
.issue-group .group-head .gcount { margin-left: auto; color: var(--text); font-weight: 800; letter-spacing: 0;
  background: var(--card-2); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.issue-group.empty { display: none; }
.issue .idx { font-size: 12px; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; flex: none; min-width: 20px; }

/* ===== Hero: capability stats ===== */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 720px; margin: 44px auto 0; }
.hero-stats .stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 12px; box-shadow: var(--shadow-sm); }
.hero-stats .stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-dark); line-height: 1; }
.hero-stats .stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }
@media (max-width: 720px){ .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Tech logos strip ===== */
.logo-strip { margin-top: 56px; text-align: center; }
.logo-strip .cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.logo-strip .row { display: flex; flex-wrap: wrap; gap: 22px 44px; justify-content: center; align-items: center; }
.logo-strip .brand { display: inline-flex; align-items: center; }
.logo-strip .brand img { width: 42px; height: 42px; display: block; }
@media (max-width: 720px){ .logo-strip .row { gap: 20px 30px; } .logo-strip .brand img { width: 34px; height: 34px; } }

/* ===== Hero product preview ===== */
.hero-preview { max-width: 940px; margin: 64px auto 0; perspective: 1600px; }
.preview-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotateX(7deg); transform-origin: top center; transition: transform .5s ease; }
.hero-preview:hover .preview-card { transform: rotateX(0deg); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--card-2); }
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d6ddd8; display: block; }
.preview-bar .url { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; margin-left: 8px; }
.preview-body { padding: 22px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; text-align: left; }
@media (max-width: 720px){ .preview-body { grid-template-columns: 1fr; } }
.pv-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--card-2); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.pv-gauge .ring { width: 112px; height: 112px; position: relative; }
.pv-gauge .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--text); }
.pv-gauge .tag { font-size: 12px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .08em; }
.pv-rows { display: flex; flex-direction: column; gap: 13px; }
.pv-row .t { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.pv-row .t .k { color: var(--muted); font-weight: 500; }
.pv-row .t .v { font-weight: 800; }
.pv-row .b { height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.pv-row .b i { display: block; height: 100%; border-radius: 999px; }

/* ===== Pricing: feature lists + popular badge ===== */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: var(--brand); box-shadow: var(--shadow); }
.price-card .popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-brand); }
.price-card .plan { font-size: 15px; font-weight: 700; color: var(--text); }
.price-card .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 4px; }
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .feats { list-style: none; padding: 18px 0 22px; margin: 18px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card .feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.price-card .feats .icon { color: var(--brand); font-size: 17px; flex: none; margin-top: 1px; }
.price-card .btn { width: 100%; }

/* ===== Enterprise footer ===== */
footer { border-top: 1px solid var(--border); background: #fff; padding: 56px 0 28px; color: var(--muted); text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; margin: 0; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 14px; letter-spacing: .02em; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--brand-dark); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ===== Upgraded feature cards ===== */
.feature { position: relative; overflow: hidden; padding: 26px 24px 24px; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,.84,.44,1); }
.feature:hover::before { transform: scaleX(1); }
.feature .fic { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.feature:hover .fic { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.feature .ftags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feature .ftags span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--card-2);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }

/* ===== How it works — stepper ===== */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.stepper .conn { position: absolute; top: 30px; left: 17%; right: 17%; height: 2px;
  background-image: linear-gradient(to right, var(--border-strong) 60%, transparent 0); background-size: 12px 2px; }
.step2 { text-align: center; padding: 0 18px; }
.step2 .badge2 { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-ring);
  color: var(--brand-dark); display: grid; place-items: center; margin: 0 auto 18px; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s, box-shadow .2s; }
.step2 .badge2 .icon { font-size: 24px; }
.step2 .badge2 .n { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-brand); }
.step2:hover .badge2 { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.step2 h3 { margin: 0 0 8px; font-size: 18px; }
.step2 p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px){ .stepper { grid-template-columns: 1fr; gap: 28px; } .stepper .conn { display: none; } }

/* ===== Trust formula chips ===== */
.formula { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.formula .chip { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px;
  font-weight: 700; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 9px; font-size: 15px; }
.formula .chip .icon { color: var(--brand); font-size: 18px; }
.formula .plus { color: var(--muted-2); font-weight: 800; font-size: 18px; }

/* ===== Closing CTA band ===== */
.cta-band { background: var(--brand-soft); border: 1px solid var(--brand-ring); border-radius: var(--radius-xl);
  padding: 60px 32px; text-align: center; box-shadow: var(--shadow-sm); }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin: 0 auto 26px; max-width: 480px; }
.cta-band .copyline { margin-top: 22px; font-size: 13px; color: var(--muted-2); }

@media print {
  nav, .overlay, .report-actions, .bg-fx, footer { display: none !important; }
  body { background: #fff; }
  .card, .issue, .rec, .score-card, .report-top, .chart-card { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
