/* TrustCapture — marketing site. Hand-written CSS, brand tokens, mobile-first.
   No frameworks, no web fonts (system stack), flat design: no gradients or shadows. */

:root {
  --navy: #17242F;
  --green: #2E8B47;
  --green-ink: #24693a;      /* darker green for text/links (contrast on white) */
  --gray: #5B6570;
  --bg: #ffffff;
  --line: #e3e7ea;           /* hairline borders */
  --surface: #f6f8f9;        /* subtle section fill */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --maxw: 1080px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  /* fluid type scale */
  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 3.9rem);

  --radius: 12px;
  --tap: 44px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; max-width: var(--measure); }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 0; top: -60px; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--fill { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-ink); margin: 0 0 0.75rem;
}
.lede { font-size: var(--step-1); color: var(--navy); }
.muted { color: var(--gray); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

/* recurring tagline next to the logo (header + footer) — small, never competes with the hero */
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.foot-lockup { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tagline { font-size: var(--step--1); color: var(--gray); font-weight: 500; }
@media (max-width: 600px) { .nav-brand .tagline { display: none; } }
.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.75rem); }
.nav-links a { color: var(--navy); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav-links a:hover { color: var(--green-ink); }
.nav-cta { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 721px) {
  .nav-cta { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem;
    gap: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  }
  .nav-links[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { min-height: var(--tap); display: flex; align-items: center; border-top: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.7rem 1.4rem; border-radius: var(--radius);
  font-size: var(--step-0); font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--navy); transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: #0f1a22; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn--accent { background: var(--green); border-color: var(--green); color: #fff; }
.btn--accent:hover { background: var(--green-ink); border-color: var(--green-ink); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero .mark { width: clamp(72px, 12vw, 104px); height: auto; margin-bottom: 1.75rem; }
.hero h1 { max-width: 15ch; }
.hero p { font-size: var(--step-1); color: var(--gray); max-width: 60ch; }
.hero .cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- insight (featured) ---------- */
.insight { border-left: 4px solid var(--green); padding-left: clamp(1rem, 3vw, 2rem); }
.insight .big { font-size: var(--step-2); font-weight: 700; color: var(--navy); max-width: 22ch; margin: 0 0 1.25rem; }

/* ---------- how it works: step strip ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--navy); font-size: 0.85rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.85rem;
}
.step:nth-child(4) .n { border-color: var(--green); color: var(--green-ink); } /* Verify */
.step h3 { font-size: var(--step-0); margin: 0 0 0.35rem; }
.step p { font-size: var(--step--1); color: var(--gray); margin: 0; max-width: none; }
/* connector arrows between steps (desktop only, decorative) */
@media (min-width: 860px) {
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -0.75rem; width: 0.5rem; height: 0.5rem;
    border-top: 2px solid var(--line); border-right: 2px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- demo ---------- */
.demo-grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
@media (min-width: 780px) { .demo-grid { grid-template-columns: minmax(0,1fr) auto; } }
.qr-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff;
  text-align: center; width: max-content; margin-inline: auto;
}
.qr-card img { width: 200px; height: 200px; margin-inline: auto; }
.qr-card .qr-note { font-size: var(--step--1); color: var(--gray); margin: 0.75rem 0 0; max-width: 24ch; margin-inline: auto; }
.badge-img { height: 46px; width: auto; margin-bottom: 1rem; }
.demo-note {
  display: inline-block; font-size: var(--step--1); font-weight: 600; color: var(--green-ink);
  background: #eaf3ed; border: 1px solid #cfe4d6; border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 1rem;
}

/* ---------- generic prose block width ---------- */
.prose { max-width: var(--measure); }

/* ---------- side-by-side comparison cards (proof vs. assessment) ---------- */
.compare-grid { display: grid; gap: clamp(1.25rem, 4vw, 2rem); margin-top: 2rem; }
@media (min-width: 720px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-grid .callout p:last-child { margin-bottom: 0; }

/* ---------- draft-only pages (privacy-policy scaffold) ----------
   --warn reuses the SAME amber (#7a5d00) the verify page already uses for "pending" states —
   deliberately NOT --green, which reads as "good/complete" everywhere else on this site. */
.draft-banner {
  position: sticky; top: 0; z-index: 20;
  background: #fdf3e2; border-bottom: 2px solid #7a5d00; color: #5a4200;
}
.draft-banner .wrap { padding-block: 0.75rem; font-size: var(--step--1); font-weight: 600; text-align: center; }
.pending-note, .pending-list li { color: #7a5d00; }
.pending-list { margin: 1rem 0 0; padding-left: 1.25rem; }
.pending-list li { margin-bottom: 0.4rem; }

/* ---------- platforms callout ---------- */
.callout {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
}

/* ---------- founder ---------- */
.founder { display: flex; gap: 1.25rem; align-items: flex-start; }
.founder .glyph { flex: 0 0 auto; }
.founder .glyph img { width: 56px; height: 56px; }

/* ---------- founder / team cards (repeatable) ---------- */
.team-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.founder-card {
  flex: 1 1 320px; max-width: 560px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); background: #fff;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.founder-card .who { display: flex; align-items: center; gap: 0.9rem; }
.founder-card .who .glyph img { width: 48px; height: 48px; display: block; }
.founder-card .name { font-size: var(--step-1); font-weight: 700; color: var(--navy); margin: 0; }
.founder-card .role { font-size: var(--step--1); font-weight: 600; color: var(--green-ink); margin: 0.1rem 0 0; }
.founder-card .bio { font-size: var(--step-0); color: var(--gray); margin: 0; }
.founder-card .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin: 0.25rem 0 0; font-size: var(--step--1);
}
.founder-card .meta a { font-weight: 600; }
.founder-card .meta .loc { color: var(--gray); }

/* ---------- downloads ---------- */
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 1rem; max-width: 620px; margin-top: 2rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--navy); }
.field .req { color: var(--green-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--navy); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; min-height: var(--tap);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field--row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: var(--step--1); color: var(--gray); min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--green-ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 2rem; }
.footer-grid .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-grid a { color: var(--gray); text-decoration: none; font-size: var(--step--1); }
.footer-grid a:hover { color: var(--green-ink); }
.footer-grid .copy { color: var(--gray); font-size: var(--step--1); }
.foot-brand img { height: 26px; }

/* ---------- verify (demo) page ---------- */
.verify-banner {
  background: #fff8e6; border-bottom: 1px solid #f0e2b6; color: #7a5d00;
  font-size: var(--step--1); font-weight: 600; text-align: center; padding: 0.6rem var(--gutter);
}
.verify-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.verify-head .status {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--green-ink);
  background: #eaf3ed; border: 1px solid #cfe4d6; border-radius: 999px; padding: 0.35rem 0.9rem; font-size: var(--step--1);
}
.verify-head .status svg { width: 18px; height: 18px; }
.manifest { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.manifest dl { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .manifest dl { grid-template-columns: max-content 1fr; } }
.manifest .row { display: contents; }
.manifest dt { font-weight: 600; color: var(--gray); padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); }
.manifest dd { margin: 0; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; word-break: break-word; }
.manifest .row:first-child dt, .manifest .row:first-child dd { border-top: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
