/* ceproof marketing site — shared stylesheet.
   Visual language matches the Annex VII/Annex V pack EXACTLY (same design
   tokens as ceproof-private/src/report/html.ts): white background,
   near-black slate text (never pure #000), ONE deep-blue accent (#1e3a8a)
   used only for structure, system font stack, generous whitespace, no
   gradients, no marketing-agency gloss, no emoji. The rendered pack IS the
   aesthetic; this site is its lobby — reusing its exact tokens is the point,
   not a coincidence. */

:root {
  --ink: #1a1a2e;
  --muted: #5b6472;
  --accent: #1e3a8a;
  --accent-soft: #eef1fb;
  --rule: #d7dbe3;
  --rule-soft: #eceef2;
  --paper: #ffffff;
  --panel: #f7f8fa;
  --sev-derived: #4b7a53;
  --sev-partial: #b45309;
  --sev-open: #6b7280;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.page { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.page--wide { max-width: 1100px; }

/* ---- Top nav ---- */
.nav {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.nav__row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav__brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.94rem; }
.nav__links a { color: var(--ink); text-decoration: none; }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---- Hero ---- */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
  max-width: 20ch;
}
.hero__sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 28px;
}
.hero__code {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: 1rem;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: #16296b; }
.btn--secondary { background: var(--paper); color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-soft); }

/* ---- Sections ---- */
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-weight: 700;
}
.section__lead { color: var(--muted); font-size: 1.02rem; max-width: 68ch; margin: 0 0 28px; }

/* ---- 3-step how-it-works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.step { border: 1px solid var(--rule); border-radius: 8px; padding: 22px 20px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.step code { font-size: 0.85em; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 8px; }
.price-card { border: 1px solid var(--rule); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; }
.price-card--free { background: var(--panel); }
.price-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.price-card__amount { font-size: 1.9rem; font-weight: 700; margin: 4px 0 14px; }
.price-card__amount .period { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 18px; flex: 1; }
.price-card .btn { align-self: flex-start; }
.pricing-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 74ch;
}

/* ---- Honest-scope callout ---- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  padding: 20px 22px;
  border-radius: 4px;
}
.callout p { margin: 0 0 12px; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Status chips (reused verbatim from the report pack) ---- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px 3px 8px; border: 1px solid var(--rule); border-radius: 4px; white-space: nowrap; }
.chip__dot { width: 10px; height: 10px; border-radius: 2px; background: var(--sev-open); flex: none; }
.chip--derived { color: var(--sev-derived); border-color: var(--sev-derived); }
.chip--derived .chip__dot { background: var(--sev-derived); }
.chip--partial { color: var(--sev-partial); border-color: var(--sev-partial); }
.chip--partial .chip__dot { background: var(--sev-partial); }
.chip--open { color: var(--sev-open); border-color: var(--rule); }
.chip--open .chip__dot { background: var(--sev-open); }

/* ---- Email capture ---- */
.capture { text-align: left; }
.capture h3 { font-size: 1.25rem; margin: 0 0 6px; }
.capture__sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.capture__form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.capture__form input[type="email"] {
  flex: 1 1 240px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
}
.capture__form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.capture__form button {
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
}
.capture__form button:hover { background: #16296b; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--rule-soft);
  padding: 16px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); margin: 12px 0 0; max-width: 70ch; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.disclaimer-line { margin-top: 10px; }

/* ---- Sample-page top bar ---- */
.sample-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 24px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.sample-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.sample-bar__sep { opacity: 0.5; }

/* ---- how-it-works prose ---- */
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--accent); }
.prose p { max-width: 74ch; margin: 0 0 14px; }
.prose ul, .prose ol { max-width: 72ch; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .cite { color: var(--muted); font-size: 0.88rem; }
.prose table { border-collapse: collapse; width: 100%; max-width: 74ch; margin: 16px 0 24px; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--rule); color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---- 404 ---- */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: 1.6rem; margin: 0 0 14px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.85rem; }
  .hero__sub { font-size: 1.02rem; }
  .section { padding: 40px 0; }
  .nav__row { padding: 0 16px; }
  .page { padding: 0 16px; }
  .page--wide { padding: 0 16px; }
}
