/* Opty — theme
   Clean, friendly product style: Source Sans 3 + IBM Plex Mono, soft gray
   surfaces, rounded cards, bold headings, orange used sparingly. Small
   uppercase labels and a rule above each section heading. */

:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --surface-2: #fff7ed;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --text: #111827;
  --body: #374151;
  --muted: #6b7280;
  --accent: #ea580c;
  --accent-soft: #ffedd5;
  --ink: #0b0f19;
  --primary: #ffdd00;
  --primary-hover: #e6c800;
  --primary-ink: #050505;
  --critical: #b91c1c;
  --critical-soft: #fee2e2;
  --high: #c2410c;
  --high-soft: #ffedd5;
  --medium: #a16207;
  --medium-soft: #fef3c7;
  --low: #1d4ed8;
  --low-soft: #dbeafe;
  --info: #4b5563;
  --info-soft: #f3f4f6;
  --solved: #15803d;
  --solved-soft: #dcfce7;
  --acknowledged: #4f46e5;
  --acknowledged-soft: #e0e7ff;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 12px rgba(17, 24, 39, .06);
  --label-track: .14em;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container--narrow { max-width: 780px; }

.mono { font-family: var(--mono); font-size: .875em; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.h1, .h2, .h3 { color: var(--text); font-weight: 700; margin: 0; }
.h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h1--hero { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; margin-bottom: .5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.eyebrow--center { display: block; text-align: center; color: var(--muted); }

.lead {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 1rem 0 0;
}
.lead--center { margin-left: auto; margin-right: auto; }
.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary-hover); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline {
  background: linear-gradient(to bottom, #fff, var(--surface));
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { box-shadow: inset 0 2px 4px rgba(17, 24, 39, .06); }
.btn--link { background: transparent; color: var(--text); padding-left: 8px; padding-right: 8px; }
.btn--link:hover { color: var(--accent); }
.btn--sm { padding: 8px 14px; font-size: .9375rem; }
.btn--lg { padding: 14px 24px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2rem; }
.actions--center { justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__mark { width: 26px; height: 26px; color: var(--accent); }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > a:not(.btn) {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--body);
  text-decoration: none;
}
.nav__menu > a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav__menu > .btn { margin-left: 8px; }
.nav__menu > a.is-active { color: var(--text); }
.nav__label { position: relative; display: inline-block; }
.nav__underline { position: absolute; left: 0; bottom: -8px; width: 100%; height: 10px; overflow: visible; pointer-events: none; }
.nav__underline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nav-underline .45s ease-out forwards; }
.nav__underline path + path { animation-delay: .2s; }
@keyframes nav-underline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .nav__underline path { animation: none; stroke-dashoffset: 0; } }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a:not(.btn) { padding: 12px; }
  .nav__menu > .btn { margin: 12px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tight { padding: 32px 0; }
.section--hero {
  padding: 112px 0 56px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255, 247, 237, .8), rgba(255, 255, 255, 0) 70%);
}
.section--hero .lead { max-width: 800px; }
.section--hero-sm { padding: 88px 0 24px; }
.section__head { margin-bottom: 48px; padding-top: 32px; border-top: 1px solid var(--rule, var(--border)); }
.section__head .h2, .section__head .lead { max-width: 720px; }
.section__head .h2 { margin-bottom: 0; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section--hero { padding: 64px 0 40px; }
  .section--hero-sm { padding: 56px 0 16px; }
}

/* Tag pills under hero */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.chips li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, #fff, var(--surface));
  font-size: .875rem;
  color: var(--body);
}

/* Logo wall */
.logos {
  margin-top: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logos__track {
  display: flex;
  width: max-content;
  animation: logos-scroll 40s linear infinite;
}
.logos:hover .logos__track { animation-play-state: paused; }
.logos__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
@keyframes logos-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; }
  .logos__set[aria-hidden] { display: none; }
}
.logos img {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .15s ease, filter .15s ease;
}
.logos img:hover { opacity: 1; filter: none; }
.logos img.logo--wide { height: 18px; }

/* Stats + quotes panel */
.panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}
.panel__stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: linear-gradient(to bottom, var(--surface), var(--bg));
  border-right: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat__value small { font-size: 1rem; font-weight: 600; margin-left: 4px; color: var(--muted); }
.stat__label { font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.panel__quotes { display: flex; flex-direction: column; }
.quote { margin: 0; padding: 36px; flex: 1; }
.quote + .quote { border-top: 1px solid var(--border); }
.quote p { color: var(--text); font-size: 1.1875rem; line-height: 1.55; margin: 0 0 1rem; }
.quote footer { font-size: .9375rem; color: var(--muted); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel__stats { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 28px; gap: 24px; }
  .stat { flex: 1 1 120px; }
  .stat__value { font-size: 2.25rem; }
  .quote { padding: 28px; }
}

/* Card grid */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(to bottom, var(--surface), var(--bg));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--body);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0; }
.card--link:hover { text-decoration: none; border-color: var(--border); box-shadow: var(--shadow); }
.card__arrow { color: var(--muted); font-weight: 400; margin-left: 2px; transition: color .15s ease; }
.card--link:hover .card__arrow { color: var(--accent); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.features--2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.feature p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features, .features--2 { grid-template-columns: 1fr; } }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(to bottom, var(--surface), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan--featured { background: var(--bg); border-color: var(--text); box-shadow: var(--shadow); }
.plan__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.plan__badge {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.plan__price { margin: 0 0 20px; display: flex; align-items: baseline; gap: 4px; }
.plan__amount { color: var(--text); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.plan__period { color: var(--muted); font-size: 1rem; }
.plan__items { flex: 1; margin-bottom: 24px; }
.plan__items li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--body);
  font-size: 1rem;
}
.plan__items li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan__items strong { color: var(--text); font-weight: 600; }

/* Prose (about page, pricing explainer) */
.prose { color: var(--body); font-size: 1.125rem; line-height: 1.65; margin-top: 1.5rem; }
.prose h2, .prose h3 { color: var(--text); font-weight: 700; margin: 2rem 0 .75rem; letter-spacing: -0.01em; }
.prose h2 { font-size: 1.625rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1.25em; }
.prose ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1.25em; }
.prose code, .prose pre { font-family: var(--mono); font-size: .875em; }
.prose code { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--border); padding: 16px; overflow-x: auto; border-radius: var(--radius); }
.prose pre code { background: none; border: 0; padding: 0; }

/* Simple list (fallback index page) */
.list__item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }

/* CTA */
.section--cta { padding-bottom: 112px; }
.cta {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(to bottom, var(--surface-2), var(--bg));
}
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); padding: 40px 0; background: var(--surface); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 1.125rem; font-weight: 700; }
.footer__mark { width: 20px; height: 20px; color: var(--accent); }
.footer__tag { font-size: .9375rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; margin: 8px 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- Audits ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--body);
}
.badge--accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.sev, .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev--critical { color: var(--critical); background: var(--critical-soft); }
.sev--high { color: var(--high); background: var(--high-soft); }
.sev--medium { color: var(--medium); background: var(--medium-soft); }
.sev--low { color: var(--low); background: var(--low-soft); }
.sev--info { color: var(--info); background: var(--info-soft); }
.sev--plain { padding: 0; background: none; font-size: .9375rem; }
.status--solved { color: var(--solved); background: var(--solved-soft); }
.status--acknowledged { color: var(--acknowledged); background: var(--acknowledged-soft); }
.status--risk-accepted { color: var(--info); background: var(--info-soft); }
.status--open { color: var(--critical); background: var(--critical-soft); }

.audit-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, rgba(255, 247, 237, .8), rgba(255, 255, 255, .5));
}
.audit-hero__back { display: inline-block; margin-bottom: 24px; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.audit-hero__back:hover { color: var(--text); }
.audit-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: .9375rem; }
.audit-hero__by { margin: 12px 0 0; color: var(--muted); }
.audit-hero__by strong { color: var(--text); }
.audit-hero .actions { margin-top: 24px; }

.audit {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 88px;
}
.audit__toc { position: sticky; top: 88px; }
.audit__toc { display: flex; flex-direction: column; font-size: .9375rem; }
.audit__toc a { padding: 6px 12px; border-left: 2px solid var(--border-soft); color: var(--muted); text-decoration: none; }
.audit__toc a:hover { color: var(--text); border-left-color: var(--accent); }
.audit__label { margin: 0 0 10px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.audit__section + .audit__section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border-soft); }
.audit__h2 { font-size: 1.75rem; margin-bottom: 20px; }
.audit__headline { margin: 0 0 20px; font-size: 1.25rem; color: var(--text); }
.audit__headline strong { color: var(--solved); }
.audit__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.audit__stat {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--surface), var(--bg));
}
.audit__stat b { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--text); }
.audit__stat span { font-size: .875rem; color: var(--muted); }
.audit .prose { margin-top: 0; }
.audit .prose > h2:first-child { margin-top: 0; }
.audit__note { margin: 12px 0 0; font-size: .9375rem; color: var(--muted); }
.chips--left { justify-content: flex-start; margin-top: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.table th { background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; }
.table a:hover { color: var(--accent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { white-space: nowrap; }

.finding { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.finding + .finding { margin-top: 16px; }
.finding__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.finding__id { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.finding__title { font-size: 1.25rem; margin-bottom: 12px; }
.finding__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 8px; font-size: .875rem; color: var(--muted); }
.finding__meta dt, .finding__meta dd { display: inline; margin: 0; }
.finding__meta dd { color: var(--body); overflow-wrap: anywhere; }
.finding h4 { margin: 20px 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.finding .prose { margin: 0; font-size: 1rem; }
.finding .prose p:last-child, .finding .prose pre:last-child { margin-bottom: 0; }
.finding .prose pre { margin: 0 0 1.25em; }
.finding__remediation { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); }
.finding__remediation h4 { margin-top: 0; }

.audit__aside { display: flex; flex-direction: column; gap: 16px; }
.audit-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--surface), var(--bg));
}
.audit-box dl { margin: 0; }
.audit-box dt { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.audit-box dt:first-child { margin-top: 0; }
.audit-box dd { margin: 2px 0 0; font-size: .9375rem; color: var(--text); overflow-wrap: anywhere; }
.audit-box dd.mono { font-size: .8125rem; overflow-wrap: break-word; word-break: break-all; }
.sevbar__totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; text-align: center; }
.sevbar__totals b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--text); }
.sevbar__totals b.is-solved { color: var(--solved); }
.sevbar__totals b.is-ack { color: var(--acknowledged); }
.sevbar__totals span { font-size: .75rem; color: var(--muted); }
.sevbar__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; }
.sevbar__row + .sevbar__row { margin-top: 12px; }
.sevbar__count { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sevbar__track { grid-column: 1 / -1; display: flex; height: 6px; overflow: hidden; border-radius: 999px; background: var(--border-soft); }
.sevbar__solved { background: var(--solved); }
.sevbar__ack { background: var(--acknowledged); }

.audit-list { display: flex; flex-direction: column; gap: 16px; }
.audit-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: .9375rem; }
.audit-card__date { margin-left: auto; }
.audit-card .h3 { font-size: 1.375rem; }
.audit-card__counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- Government landing ---------- */
.section--gov {
  position: relative;
  overflow: hidden;
}
.backdrop {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, .45) 22%, rgba(0, 0, 0, .45) 78%, #000);
  mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, .45) 22%, rgba(0, 0, 0, .45) 78%, #000);
}
.section--gov > .container { position: relative; }

.panel__body { padding: 36px; }
.panel__body .prose { font-size: 1.0625rem; }
.panel__body .prose p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .panel__body { padding: 28px; } }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card--wide { grid-column: span 2; background: linear-gradient(to bottom, var(--surface-2), var(--bg)); border-color: var(--accent-soft); }
@media (max-width: 600px) { .card--wide { grid-column: auto; } }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card__tags li { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: .75rem; color: var(--body); }

.section--dark { background: var(--ink); }
.section--dark { --rule: rgba(255, 255, 255, .16); }
.section--dark .h2 { color: #fff; }
.section--dark .eyebrow { color: var(--primary); }
.section--dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section--dark .feature .h3 { color: #fff; }
.section--dark .feature p { color: #9ca3af; }
.section--dark .feature a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.section--dark .icon { background: rgba(255, 221, 0, .12); color: var(--primary); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--border); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step p { color: var(--muted); margin: 0; }

.cta--split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; text-align: left; padding: 56px; }
.cta--split .lead { margin-left: 0; }
.cta--split .actions { justify-content: flex-start; }
.sheet {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--body);
  text-decoration: none;
  transform: rotate(2deg);
  transition: transform .2s ease;
}
.sheet:hover { transform: rotate(0); }
.sheet__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font-weight: 700; color: var(--text); }
.sheet__sub { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); font-size: .8125rem; color: var(--muted); }
.sheet li { position: relative; padding: 5px 0 5px 22px; font-size: .9375rem; }
.sheet li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .cta--split { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .sheet { max-width: 320px; }
}

/* ---------- Government / capability statement ---------- */
.gov {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 88px;
}
.gov .prose { margin-top: 0; }
.gov .prose > h2:first-child { margin-top: 0; font-size: 1.75rem; }
.gov .prose ul:last-child { margin-bottom: 0; }
.gov .prose li + li { margin-top: .5em; }
.gov__sector { margin-bottom: 8px !important; font-size: .875rem !important; color: var(--accent) !important; }
.gov__aside { display: flex; flex-direction: column; gap: 16px; }
.codes li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: .9375rem; color: var(--text); }
.codes li + li { margin-top: 10px; }
.codes .mono { padding-top: 2px; color: var(--muted); }
.codes .badge { margin-left: 4px; }

@media (max-width: 860px) {
  .gov { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .gov__aside { order: -1; }
}

@media (max-width: 1100px) {
  .audit { grid-template-columns: minmax(0, 1fr) 280px; }
  .audit__toc { display: none; }
}
@media (max-width: 860px) {
  .audit { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .audit__aside { order: -1; }
  .audit__stats { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .backdrop, .nav, .footer, .section--cta, .audit__toc, .audit-hero .actions, .audit-hero__back { display: none !important; }
  .audit { display: block; padding: 0; }
  .audit__aside { position: static; margin: 24px 0; }
  .finding { break-inside: avoid; }
  .audit-hero { padding: 0 0 16px; background: none; }

  /* Capability statement prints as a one-page sheet */
  body:has(.gov) { font-size: 10px; }
  body:has(.gov) .container { padding: 0; }
  body:has(.gov) .h1 { font-size: 22px; }
  body:has(.gov) .lead { font-size: 11px; max-width: none; margin-top: 6px; }
  body:has(.gov) .audit-hero { padding-bottom: 8px; }
  body:has(.gov) .audit-hero__meta { margin-bottom: 6px; font-size: 9px; }
  body:has(.gov) .audit-hero__by { margin-top: 4px; }
  .gov { grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; padding: 10px 0 0; }
  .gov__aside { order: 0; gap: 6px; }
  .gov .audit__section + .audit__section { margin-top: 10px; padding-top: 10px; }
  .gov .audit__h2, .gov .prose > h2:first-child { font-size: 14px; margin-bottom: 6px; }
  .gov .prose { font-size: 10px; line-height: 1.4; }
  .gov .prose p { margin-bottom: .6em; }
  .gov .prose li + li { margin-top: 2px; }
  .gov .features { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gov .feature { padding: 6px 8px; break-inside: avoid; }
  .gov .feature p { font-size: 9.5px; line-height: 1.35; }
  .gov .h3 { font-size: 10.5px; margin-bottom: 2px; }
  .gov__sector { font-size: 9px !important; margin-bottom: 2px !important; }
  .gov .audit__note, .gov .audit__label { font-size: 8.5px; margin: 6px 0 4px; }
  .gov .audit-box { padding: 6px 10px; break-inside: avoid; }
  .gov .audit-box dt { margin-top: 3px; font-size: 8.5px; }
  .gov .audit-box dd, .codes li { font-size: 9.5px; }
  .codes li { grid-template-columns: 40px 1fr; gap: 4px; }
  .codes li + li { margin-top: 3px; }
  body:has(.gov) .badge { font-size: 8px; padding: 0 5px; }
}
