/* licenseproof.dev — shared stylesheet
   Design tokens copied verbatim from assets/samples/report.html so the site
   and the report artifact are visually one system, not two that happen to
   look similar. Do not introduce a second accent, a second radius scale, or
   a second font stack anywhere on this site. */

:root {
  --ink: #1a1a2e;          /* near-black slate, never pure #000 */
  --muted: #5b6472;        /* secondary text */
  --accent: #1e3a8a;       /* the ONE accent, structure only */
  --rule: #d7dbe3;         /* hairline borders */
  --rule-soft: #eceef2;
  --paper: #ffffff;
  --panel: #f7f8fa;        /* faint neutral panel, not a colored wash */
  --sev-conflict: #b91c1c;
  --sev-review: #b45309;
  --sev-agpl: #1e3a8a;
  --sev-unknown: #6b7280;
  --sev-clean: #4b7a53;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* the brief's "optional smooth-scroll" — pure CSS, zero JS */
}
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; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 68ch; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Top nav ---- */
.nav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.nav__row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  padding: 9px 16px;
  text-decoration: none;
}
.nav__cta:hover { background: #16306e; }
.nav__toggle { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #16306e; border-color: #16306e; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--panel); }
.btn:active { transform: translateY(1px); }

/* ---- Hero ---- */
.hero { padding: 56px 0 64px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; font-weight: 700; max-width: 16ch; }
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 0 0 24px; }
.hero__code {
  display: inline-block;
  font-size: 0.95rem;
  background: var(--ink);
  color: #f3f4f6;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--panel); }
.hero__media img { width: 100%; }

/* ---- Section rhythm (reused across the whole site) ---- */
.section { padding: 64px 0; border-top: 1px solid var(--rule-soft); }
.section:first-of-type { border-top: none; }
.section > h2 { font-size: 1.6rem; margin: 0 0 18px; font-weight: 700; }
.section__lead { color: var(--muted); margin: -8px 0 28px; max-width: 62ch; }

/* ---- "The moment" editorial block ---- */
.moment p { font-size: 1.12rem; max-width: 66ch; }

/* ---- How it works: numbered stacked list, not equal cards ---- */
.steps { display: grid; gap: 32px; margin-top: 8px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.step__num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}
.step h3 { font-size: 1.12rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); max-width: 62ch; }
.step code { font-size: 0.92em; background: var(--panel); border: 1px solid var(--rule-soft); border-radius: 4px; padding: 1px 6px; }

/* ---- Pricing ---- */
.free-row {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 20px;
  background: var(--panel);
}
.free-row strong { font-size: 1.05rem; }
.free-row span { color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-card { border: 1px solid var(--rule); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.price-card .amount { font-size: 2rem; font-weight: 700; margin: 4px 0 2px; }
.price-card .amount .cadence { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.price-card ul { margin: 14px 0 22px; padding-left: 20px; color: var(--muted); }
.price-card li { margin-bottom: 7px; }
.price-card .btn { margin-top: auto; }
.price-note { color: var(--muted); font-size: 0.9rem; margin: 20px 0 0; max-width: 70ch; }

/* ---- Honest scope callout — reuses the report's own .verdict bar pattern ---- */
.callout {
  font-size: 1rem;
  margin: 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  max-width: 72ch;
}

/* ---- Email capture ---- */
.subscribe { text-align: center; }
.subscribe h2 { margin-bottom: 6px; }
.subscribe__sub { color: var(--muted); margin: 0 0 24px; }
.subscribe__form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.subscribe__form input {
  flex: 1;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
}
.subscribe__form input::placeholder { color: var(--muted); }
.subscribe__form input:focus { border-color: var(--accent); }
.subscribe__note { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }

/* ---- FAQ (native details/summary, matching the report's own pattern) ---- */
.faq-item {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item > summary { cursor: pointer; font-weight: 600; padding: 16px 4px; list-style-position: inside; }
.faq-item p { color: var(--muted); margin: 0 0 16px 4px; max-width: 70ch; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 0.86rem; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---- report-sample.html top bar ---- */
.sample-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #e8eaf0;
  font-size: 0.86rem;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sample-topbar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---- how-it-works / 404 simple page shell ---- */
.plain-page { padding: 56px 0 72px; }
.plain-page h1 { font-size: 2rem; margin: 0 0 18px; }
.plain-page h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.plain-page h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--accent); }
.plain-page p, .plain-page li { color: var(--ink); }
.plain-page ol, .plain-page ul { max-width: 72ch; }
.plain-page li { margin-bottom: 8px; }
.plain-page code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.92em; background: var(--panel); border: 1px solid var(--rule-soft); border-radius: 4px; padding: 1px 6px; }

.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-page h1 { font-size: 1.6rem; margin: 0 0 14px; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .step { grid-template-columns: 40px 1fr; }
}
@media (max-width: 520px) {
  .subscribe__form { flex-direction: column; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .sample-topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Grayscale credibility check: every severity/accent distinction here already
   carries a text label or border, never relies on hue alone, matching the
   report's own chip design — confirmed by viewing the whole site under
   -webkit-filter: grayscale(1) during review. */
