/* crewproof — shared styles.
   Product pages read in sans; the research report reads in serif, because it
   is a different kind of document and should feel like one. */

:root {
  --bg:        #F4F5F2;
  --surface:   #FFFFFF;
  --sunk:      #E8EAE4;
  --ink:       #14171A;
  --muted:     #59615F;
  --line:      #D6DAD2;
  --accent:    #4E6A00;   /* hi-vis, darkened for text contrast on light */
  --hi:        #C8E62C;   /* the actual hi-vis, for fills only */
  --hi-ink:    #14171A;   /* text that sits on --hi */
  --warn:      #B03020;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #101214;
    --surface: #191C1F;
    --sunk:    #22262A;
    --ink:     #E9ECE6;
    --muted:   #98A19E;
    --line:    #2A2F33;
    --accent:  #C8E62C;
    --hi:      #C8E62C;
    --hi-ink:  #14171A;
    --warn:    #FF8A75;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.03em;
  font-size: 20px; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 11px; height: 11px; background: var(--hi);
  border-radius: 2px; display: inline-block;
}
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 74px 0 8px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
}
h1 {
  font-size: clamp(38px, 7vw, 68px); font-weight: 850; line-height: 1.0;
  letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance;
}
.lede { font-size: 20px; color: var(--muted); margin: 0; max-width: 60ch; }
.lede strong { color: var(--ink); font-weight: 650; }

/* ---------- stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 44px 0 0;
}
.stats div { background: var(--surface); padding: 18px 20px; }
.stats .n {
  display: block; font-family: var(--mono); font-size: 27px; font-weight: 600;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stats .l {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

/* ---------- sections ---------- */
section { padding: 68px 0; }
h2 {
  font-size: clamp(27px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.028em;
  line-height: 1.12; margin: 0 0 18px; text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 720; letter-spacing: -.012em; margin: 0 0 8px; }
p { max-width: 68ch; }
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}

/* ---------- quotes ---------- */
.quote {
  background: var(--surface); border-left: 3px solid var(--hi);
  padding: 18px 22px; margin: 16px 0;
}
.quote p { margin: 0; font-size: 16.5px; }
.quote cite {
  display: block; margin-top: 10px; font-family: var(--mono);
  font-size: 11.5px; font-style: normal; color: var(--muted); letter-spacing: .03em;
}
.stars { color: var(--warn); font-weight: 700; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.pillar .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.pillar p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ---------- meters ---------- */
.meter { display: grid; grid-template-columns: minmax(96px,190px) 1fr 50px; align-items: center; gap: 14px; margin-bottom: 10px; }
.meter .lab { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter .track { background: var(--sunk); height: 12px; border-radius: 2px; overflow: hidden; }
.meter .fill { background: var(--hi); height: 100%; border-radius: 0 3px 3px 0; }
.meter .val { font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- waitlist ---------- */
.signup { background: var(--surface); border: 1px solid var(--line); padding: 34px; }
.signup h2 { margin-bottom: 10px; }
form.wl { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
form.wl input[type=email] {
  flex: 1 1 260px; padding: 14px 16px; font-size: 16px; font-family: var(--sans);
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
}
form.wl button {
  padding: 14px 26px; font-size: 16px; font-weight: 700; font-family: var(--sans);
  background: var(--hi); color: var(--hi-ink); border: none; border-radius: 3px; cursor: pointer;
}
form.wl button:hover { filter: brightness(1.07); }
form.wl button[disabled] { opacity: .55; cursor: default; }
.formnote { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.formmsg { margin: 14px 0 0; font-size: 15px; font-weight: 600; min-height: 1.4em; }

/* ---------- tables ---------- */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 13.5px; }
th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
td.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 20px; white-space: nowrap; }

/* ---------- research (serif) ---------- */
.research { font-family: var(--serif); font-size: 18px; line-height: 1.66; }
.research h1, .research h2, .research h3, .research .section-label,
.research table, .research .stats, .research .nav, .research .eyebrow { font-family: var(--sans); }
.research table { font-family: var(--mono); }
.research .quote p { font-family: var(--serif); }
.research ul { max-width: 68ch; padding-left: 22px; }
.research li { margin-bottom: 10px; }

.callout {
  border: 1px dashed var(--accent); padding: 20px 24px; margin: 26px 0;
  background: var(--surface);
}
.callout .lab {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); display: block;
  margin-bottom: 8px; font-weight: 700;
}
.callout p { margin: 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 34px 0 60px;
  font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); }
footer .cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
