/* PipInsights LLC — site styles. Brand bundle v1 palette. */
:root {
  --emerald: #1F6B4E;
  --emerald-dk: #17543D;
  --terracotta: #B8543A;
  --cream: #FAF7F2;
  --warm-cream: #F4EFE6;
  --ink: #0E1116;
  --muted: #5C6169;
  --line: #E3DDD2;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
header.site img.logo { height: 30px; width: auto; display: block; }
nav.site { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
nav.site a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
nav.site a:hover { color: var(--emerald); text-decoration: none; }
nav.site a.cta {
  background: var(--emerald);
  color: #fff;
  padding: 9px 17px;
  border-radius: 7px;
  font-weight: 600;
}
nav.site a.cta:hover { background: var(--emerald-dk); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; border-bottom: 1px solid var(--line); }
.hero .eyebrow {
  color: var(--emerald);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 20ch;
}
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 30px;
}
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 7px;
}
.btn:hover { background: var(--emerald-dk); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--emerald);
}
.btn.ghost:hover { background: var(--warm-cream); }

/* ---------- sections ---------- */
section { padding: 62px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
section.alt { background: var(--warm-cream); }
h2 {
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 12px;
}
h2 + p.sub { color: var(--muted); max-width: 66ch; margin: 0 0 34px; font-size: 17px; }
h3 { font-size: 18px; font-weight: 650; margin: 0 0 8px; letter-spacing: -0.005em; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 26px 26px 28px;
}
section.alt .card { background: var(--cream); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 12px;
}

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
ol.steps li { counter-increment: s; }
ol.steps li::before {
  content: counter(s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
ol.steps li p { color: var(--muted); margin: 0; font-size: 16px; }

ul.plain { padding-left: 20px; color: var(--muted); }
ul.plain li { margin-bottom: 8px; }

.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sources span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
}
section.alt .sources span { background: var(--cream); }

/* ---------- contact ---------- */
.contactbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 32px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
.contactbox .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contactbox .val { font-size: 16px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--warm-cream);
  padding: 40px 0 46px;
  font-size: 14.5px;
  color: var(--muted);
}
footer.site .frow {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer.site img.logo { height: 26px; margin-bottom: 12px; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site .legal { margin-top: 22px; font-size: 13.5px; line-height: 1.7; }

/* ---------- legal / doc pages ---------- */
.doc { padding: 56px 0 72px; max-width: 760px; }
.doc h1 { font-size: 33px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 34px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: #24282E; font-size: 16.5px; }
.doc .callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--emerald);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 26px 0;
}
.doc .callout p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.doc th { background: var(--warm-cream); font-weight: 650; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 33px; max-width: none; }
  .hero p.lede { font-size: 17.5px; }
  h2 { font-size: 24px; }
  .grid, .grid.three, ol.steps, .contactbox { grid-template-columns: 1fr; }
  header.site .bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav.site { gap: 18px; }
  section { padding: 46px 0; }
}
