/* PinVerity — brand system: Deep Evergreen #0E3B2E, Verification Green #22C55E
   (proof/status moments only — never text or button fill on light; interactive
   green on light is #15803D), Teal #14665A, Ink #1A2E28, Muted #5B6B64, Alt bg #F4F7F5.
   Flat color only. No gradients. Inter throughout. */

:root {
  --evergreen: #0E3B2E;
  --teal: #14665A;
  --green: #22C55E;
  --green-dark: #15803D;
  --ink: #1A2E28;
  --muted: #5B6B64;
  --bg: #FFFFFF;
  --alt: #F4F7F5;
  --line: #E2EAE6;
  --amber: #D97706;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Safety net: a stray wide element must never scroll the page sideways.
   overflow-x: clip (not hidden) creates no scroll container, so the sticky
   header keeps working. */
html, body { overflow-x: clip; }
img, video { max-width: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--evergreen); line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin-bottom: 16px; }
a { color: var(--teal); }

.section { padding: 84px 0; }
.section.alt { background: var(--alt); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--ink); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.lockup { height: 38px; width: auto; flex: none; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 550; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.suspended { color: var(--amber); font-weight: 650; }
/* The nav CTA is an <a> inside .nav-links, whose ink link color would otherwise
   override .btn's white text (dark text on dark green = the low-contrast bug
   Tatyana flagged). Pin the button's text to white, hover included. */
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; background: var(--evergreen); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green-dark); color: #fff; font-weight: 700;
  font-size: 1rem; padding: 13px 26px; border-radius: 10px; text-decoration: none;
  border: none; cursor: pointer; line-height: 1.3; text-align: center;
}
.btn:hover { background: var(--evergreen); }
.btn.small-btn { padding: 9px 18px; font-size: 0.92rem; }
.btn.secondary {
  background: var(--bg); color: var(--evergreen); border: 1.5px solid var(--evergreen);
}
.btn.secondary:hover { background: var(--alt); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero h1 { max-width: 15em; margin-bottom: 22px; }
.hero .sub { font-size: 1.18rem; max-width: 44em; margin-bottom: 30px; }
.hero .fineprint { margin-top: 14px; font-size: 0.9rem; color: var(--muted); max-width: 40em; }
.hero .trustline { margin-top: 18px; margin-bottom: 0; font-weight: 700; color: var(--evergreen); font-size: 1.02rem; }
.hero .accessline { margin-top: 8px; margin-bottom: 0; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 52px;
}
.stat-card {
  background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-card .num {
  font-size: 1.9rem; font-weight: 800; color: var(--evergreen);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-card .num .accent { color: var(--green-dark); }
.stat-card .lbl { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }

/* ---------- Problem / evidence ---------- */
.evidence-list { list-style: none; margin: 8px 0 20px; }
.evidence-list li {
  padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid var(--line);
}
.evidence-list li:last-child { border-bottom: none; }
.evidence-list li::before {
  content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--amber);
}
.signs { list-style: none; margin: 4px 0 8px; }
.signs li { padding: 8px 0 8px 30px; position: relative; }
.signs li::before {
  content: "!"; position: absolute; left: 0; top: 11px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800;
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
sup { color: var(--teal); font-weight: 700; line-height: 0; }

/* ---------- Research band ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 20px; }
.research-card {
  background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--green-dark); border-radius: var(--radius); padding: 24px;
}
.research-card .num { font-size: 2rem; font-weight: 800; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.research-card .lbl { color: var(--muted); font-size: 0.94rem; margin-top: 6px; }
.caveat {
  border-left: 4px solid var(--amber); background: var(--bg); padding: 16px 20px;
  border-radius: 0 10px 10px 0; font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 30px; }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.section.alt .step { background: var(--bg); }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--evergreen); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step p { font-size: 0.95rem; color: var(--ink); margin: 8px 0 0; }

/* ---------- Deliverables ---------- */
.checks { list-style: none; margin: 10px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
.checks li { padding: 9px 0 9px 34px; position: relative; min-width: 0; }
/* One inline SVG — filled circle + check as a single glyph — replaces the old
   mask-circle plus CSS-border check pair, whose two separately positioned
   pieces rendered off-center ("wonky"). 22px icon, centered on the first text
   line: 9px top padding + ~13px to the line's visual center = top 11px.
   Circle is #15803D (green-dark): white on #22C55E is ~2.3:1 and washed out. */
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2315803D'/%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='%23FFFFFF'/%3E%3C/svg%3E") center / contain no-repeat;
}
.honest {
  background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-top: 30px; }
.price-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--evergreen); }
.price-card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--evergreen); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-card .per { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.price-card p { font-size: 0.94rem; margin-top: 12px; flex: 1; }
.price-card .btn, .price-card .card-link { margin-top: 16px; }
.card-link { font-weight: 700; text-decoration: none; }
.pricing-note { margin-top: 22px; color: var(--muted); font-size: 0.93rem; font-style: italic; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; font-weight: 650; color: var(--evergreen); padding: 20px 36px 20px 0; position: relative;
}
.faq-item button::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--teal);
}
.faq-item.open button::after { content: "–"; }
.faq-answer { display: none; padding: 0 0 22px; max-width: 52em; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Audit form ---------- */
.audit-box {
  background: var(--evergreen); border-radius: 20px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
}
.audit-box h2 { color: #fff; }
.audit-box .lede { color: #D8E4DE; }
.audit-box .fineprint { color: #A9BDB3; font-size: 0.9rem; margin-top: 14px; }
form.audit { background: var(--bg); border-radius: var(--radius); padding: 28px; }
form.audit label { display: block; font-weight: 650; font-size: 0.93rem; margin-bottom: 6px; color: var(--evergreen); }
form.audit .field { margin-bottom: 16px; }
form.audit input, form.audit select {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
}
form.audit input:focus, form.audit select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
form.audit .btn { width: 100%; }
.form-error { color: #B91C1C; font-size: 0.92rem; margin-top: 12px; display: none; }
.thankyou { display: none; background: var(--bg); border-radius: var(--radius); padding: 36px 28px; text-align: left; }
.thankyou .tick {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-dark); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.thankyou .tick svg { width: 28px; height: 28px; }

/* ---------- Final CTA / footer ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 22em; margin-left: auto; margin-right: auto; }
.final-cta p { max-width: 40em; margin-left: auto; margin-right: auto; }
footer.site { background: var(--evergreen); color: #C9D8D1; padding: 52px 0 40px; }
footer.site .brand img.lockup { height: 34px; }
footer.site a { color: #C9D8D1; }
footer.site .foot-grid { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; margin-bottom: 30px; }
footer.site .foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site .legal { font-size: 0.86rem; color: #93ACA0; border-top: 1px solid #1D5240; padding-top: 22px; }
.sources { font-size: 0.85rem; color: var(--muted); }
.sources li { margin-bottom: 8px; margin-left: 18px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--line); }

/* ---------- Service page hero ---------- */
.svc-hero { padding: 64px 0 8px; }
.svc-price {
  display: inline-block; font-size: 1.35rem; font-weight: 800; color: var(--evergreen);
  font-variant-numeric: tabular-nums; margin: 4px 0 18px;
}
.svc-price .per { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 6px; }
.price-line { font-size: 1.15rem; font-weight: 800; color: var(--evergreen); font-variant-numeric: tabular-nums; margin: 22px 0 0; }
.price-line + .cta-row { margin-top: 12px; }
.cta-note { font-size: 0.92rem; color: var(--muted); max-width: 44em; }
.defn {
  background: var(--alt); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0; padding: 18px 22px; font-size: 1.02rem; margin: 26px 0;
}
.defn p { margin: 0; }
.checks.one-col { grid-template-columns: 1fr; max-width: 52em; }

/* ---------- Rules charter ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 30px; }
.rule {
  background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--green-dark);
  border-radius: var(--radius); padding: 24px;
}
.rule h3 { margin-bottom: 8px; }
.rule p { font-size: 0.95rem; margin: 0; }

/* ---------- Sample deliverables ---------- */
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
figure.sample {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 0;
}
figure.sample img { width: 100%; height: auto; display: block; border-radius: 8px; }
figure.sample figcaption { margin-top: 14px; font-size: 0.94rem; }
.sample-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-dark); border: 1.5px solid var(--green-dark);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
figure.sample .sample-note { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Data tables (study page) ---------- */
.table-scroll { overflow-x: auto; margin: 18px 0 26px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
table.data th, table.data td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
table.data th { background: var(--alt); color: var(--evergreen); font-weight: 700; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.study-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }

/* ---------- Footer sitemap ---------- */
footer.site .foot-cols { display: flex; flex-wrap: wrap; gap: 14px 56px; margin-bottom: 30px; }
footer.site .foot-col h4 {
  color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 10px;
}
footer.site .foot-col a { display: block; padding: 3px 0; text-decoration: none; font-size: 0.95rem; }
footer.site .foot-col a:hover { color: #fff; text-decoration: underline; }

/* ---------- Polish: focus, selection, states ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
::selection { background: var(--evergreen); color: #fff; }
.btn { transition: background-color 0.15s ease; }
.btn:disabled { opacity: 0.65; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
/* Grid items default to min-width:auto and can force a track wider than the
   viewport; zero them so cards can always shrink to their track. */
.step, .rule, .price-card, .stat-card, .research-card, figure.sample { min-width: 0; }
.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;
}

/* ---------- Comparison table ---------- */
table.compare {
  border-collapse: collapse; width: 100%; table-layout: fixed;
  font-size: 0.96rem; background: var(--bg); margin-top: 30px;
}
table.compare th, table.compare td {
  border: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top;
}
table.compare thead th { background: var(--alt); color: var(--evergreen); font-weight: 750; font-size: 1rem; }
table.compare thead th.us { background: var(--evergreen); color: #fff; }
table.compare tbody th { font-weight: 650; color: var(--evergreen); }
table.compare td.us { background: #EDF4EF; font-weight: 600; }
.cmp { display: flex; gap: 8px; align-items: flex-start; }
.cmp svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.compare-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); max-width: 56em; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  table.compare { font-size: 0.85rem; }
  table.compare th, table.compare td { padding: 10px 8px; }
  .cmp { gap: 6px; }
  .cmp svg { width: 17px; height: 17px; margin-top: 1px; }
}
@media (max-width: 900px) {
  .samples { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-stats, .research-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .audit-box { grid-template-columns: 1fr; padding: 30px 22px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
}
