/* ForensicConsent — shared stylesheet
   Self-contained: no external fonts, no CDNs.
   Palette: clean white surfaces + a confident, AA-safe "legal teal" accent. */

:root {
  /* Base / surfaces (dark tokens retained only for the verify "record" panel + logo) */
  --navy-900: #0b1220;   /* code/record panel + step badge */
  --navy-800: #111a2e;
  --navy-700: #18243d;   /* verify-card (intentional dark panel) */
  --charcoal: #1f2937;
  --line: #29364f;       /* hairline borders on the dark record panel */

  /* Text */
  --ink: #0d1422;        /* headings / strong text on light */
  --ink-soft: #41506b;   /* body text on light (8.1:1 on white) */
  --paper: #ffffff;      /* page surface */
  --paper-soft: #f4f7fb; /* alternating section band */
  --paper-line: #e2e8f2; /* hairline borders on light */
  --on-dark: #eef3fa;    /* primary text inside the dark record panel */
  --on-dark-soft: #a7b6cf;/* muted text inside the dark record panel */

  /* Accent — legal teal. teal-strong is AA on white (5.6:1); teal is decorative only. */
  --teal: #16b8a6;            /* decorative only: logo gradient, dark-panel values, icon tiles */
  --teal-strong: #0b756a;     /* text / links / buttons / focus on light — AA */
  --teal-strong-hover: #095f56;/* button hover (stays AA) */
  --teal-ink: #053b35;
  --blue: #2f6df0;

  /* Semantic (bright variants used only on the dark record panel) */
  --good: #16a34a;
  --bad: #d4493f;
  --warn: #c98a1a;
  /* Semantic inks — AA as text on white / soft (>=5:1) */
  --good-ink: #0c7a39;
  --bad-ink: #c5342a;
  --warn-ink: #9a5b08;

  /* Geometry */
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Liberation Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* keep focus target clear of the sticky header (WCAG 2.4.11) */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Inline links inside running prose get a permanent underline (WCAG 1.4.1 —
   not distinguished by color alone). Nav, buttons, cards and footer links are
   standalone and intentionally excluded. */
.lede a,
.step p a,
.muted a,
.legal p a,
.legal li a,
.faq details p a,
.news-note a,
.hero-note a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

code, .mono { font-family: var(--mono); font-size: 0.92em; }

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* .section--dark was a dark band; the site is now light, so it renders as a
   plain light section (class kept as a styling hook). */
.section--dark { background: var(--paper); color: var(--ink); }
.section--soft { background: var(--paper-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-strong);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.lede strong { color: var(--ink); }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Screen-reader-only ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link & focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-strong);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-strong);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal-strong); color: #fff; }
.btn-primary:hover { background: var(--teal-strong-hover); }
.btn-ghost { background: transparent; color: var(--teal-strong); border-color: var(--paper-line); }
.btn-ghost:hover { border-color: var(--teal-strong); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #051b18;
  font-weight: 900;
  font-size: 0.95rem;
}
.brand .brand-fc { color: var(--teal-strong); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; } /* exclude the CTA button — it keeps white text on hover */
.nav-links .btn { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  color: var(--ink);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: 0.5rem var(--pad) 1rem;
    margin-left: 0;
  }
  .nav-links[hidden] { display: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }
  .nav-links .btn { margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(22, 184, 166, 0.10), transparent 60%),
    radial-gradient(800px 460px at 0% 0%, rgba(47, 109, 240, 0.07), transparent 55%),
    var(--paper);
  color: var(--ink);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { color: var(--ink); max-width: 18ch; }
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  list-style: none;
  padding: 0;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust li::before { content: "✓"; color: var(--teal-strong); font-weight: 800; }

/* ---------- Stats / problem block ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(13, 20, 34, 0.04);
}
.stat .num {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--teal-strong);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .label { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.stat cite { display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--ink-soft); font-style: normal; }
.stat cite a { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 2px; }
.stat cite a:hover { color: var(--teal-strong-hover); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--teal);
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Feature / differentiator cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(13, 20, 34, 0.04);
}
.card p { margin: 0; color: var(--ink-soft); }
.card .ico {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(15, 154, 139, 0.1);
  color: var(--teal-strong);
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
  font-weight: 800;
}

/* light variant card (kept for compatibility; same as .card now) */
.card--light { background: var(--paper); border-color: var(--paper-line); }
.card--light p { color: var(--ink-soft); }
.card--light .ico { background: rgba(15, 154, 139, 0.1); color: var(--teal-strong); }

/* ---------- "In the news" third-party proof cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
  border-color: var(--teal-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 20, 34, 0.08);
}
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.news-source { color: var(--teal-strong); }
.news-sep { color: var(--ink-soft); }
.news-date { color: var(--ink-soft); font-weight: 500; }
.news-headline {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.news-cta { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--teal-strong); }
.news-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Comparison / pricing tables ---------- */
.table-scroll { overflow-x: auto; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.95rem;
}
table.cmp caption { text-align: left; color: var(--ink-soft); margin-bottom: 0.75rem; font-size: 0.9rem; }
table.cmp th, table.cmp td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: middle;
}
table.cmp thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--paper-line);
}
table.cmp tbody th { font-weight: 700; }
table.cmp td.col-us, table.cmp th.col-us {
  background: rgba(22, 184, 166, 0.08);
}
table.cmp tr.row-us th, table.cmp tr.row-us td {
  background: rgba(22, 184, 166, 0.1);
  font-weight: 600;
}
.yes { color: var(--good-ink); font-weight: 800; }
.no { color: var(--bad-ink); font-weight: 800; }
.partial { color: var(--warn-ink); font-weight: 700; }
.cell-note { display: block; font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- Segmented CTA cards ---------- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.use-case {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.use-case h3 { margin-bottom: 0.4rem; }
.use-case p { color: var(--ink-soft); }
.use-case .btn { margin-top: auto; }

/* ---------- Pricing cards ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.price-card.featured {
  border-color: var(--teal-strong);
  box-shadow: 0 0 0 1px var(--teal-strong);
}
.price-card .tag {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  background: var(--teal-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.price-card .plan { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.4rem; }
.price-card .price { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price-card .price .per { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.price-card .price-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 0.4rem 0 1rem; min-height: 1.2em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.price-card li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; font-size: 0.92rem; color: var(--ink-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-strong); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 2.5rem auto 0; }
.faq details {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-strong); font-weight: 800; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 1.1rem; }

/* ---------- Verify / trust block ---------- */
.verify {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 760px) { .verify { grid-template-columns: 1fr; } }
/* "Forensic record" panel — a light, monospace code/data card. Dark AA text on
   a soft fill, so it holds up in normal viewing AND Windows High-Contrast
   (forced-colors), where the panel's fill is replaced by the system background. */
.verify-card {
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.verify-card .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--paper-line); }
.verify-card .row:last-child { border-bottom: 0; }
.verify-card .k { color: var(--ink-soft); }
.verify-card .v { color: var(--teal-strong); text-align: right; word-break: break-all; }
.verify-card .seal { color: var(--good-ink); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: var(--paper-soft); }
.final-cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-soft);
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-line);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { font-size: 0.9rem; max-width: 32ch; }
.footer-about .brand { margin-bottom: 0.75rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Legal pages (privacy/terms) ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; }
.legal .callout {
  background: var(--paper-soft);
  border-left: 4px solid var(--teal-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
