/* ==========================================================================
   Privy CFO — marketing site
   Tokens per Design_Brief_PrivyCFO_v1.1 §2 (single source of truth).
   Self-contained: does not load the Privy Consulting site stylesheet.
   ========================================================================== */

/* ---- Self-hosted fonts (GDPR — no font CDN) ---- */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-500italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---- Design tokens (Design Brief §2 — do not edit without a brief version bump) ---- */
:root {
  --ink:        #1C2B3A;
  --ink-soft:   #46586B;
  --paper:      #F7F7F4;
  --surface:    #FFFFFF;
  --rule:       #D9DCD6;
  --accent:     #2337C6;
  --accent-ink: #16227E;
  --pos:        #1E7F5C;
  --neg:        #B0402F;
  --warn:       #A66A00;
  --stamp:      #2337C6;

  --font-display: "Newsreader", Georgia, serif;
  --font-ui:      "Public Sans", system-ui, sans-serif;
  --font-figures: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
  --margin-col: 88px;
  --shadow: 0 1px 2px rgb(28 43 58 / 0.08);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.figure, .num {
  font-family: var(--font-figures);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0 0 16px; }
h1 { font-size: 3rem; line-height: 1.12; }
h2 { font-size: 2.25rem; line-height: 1.2; }
h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.125rem; margin: 0 0 8px; }
@media (max-width: 720px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

.eyebrow {
  font-family: var(--font-figures);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 58ch; }

/* ---- Buttons (Design Brief §4) ---- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.btn--text { background: none; border: none; color: var(--accent); padding: 12px 4px; }

/* ---- Header ---- */
.br-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.br-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.br-lockup { display: flex; align-items: baseline; gap: 12px; }
.br-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--ink);
}
.br-lockup__by {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.br-lockup__by a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--rule); }
.br-header__nav { display: flex; gap: 24px; align-items: center; font-size: 0.9375rem; }
.br-header__nav a:not(.btn) { color: var(--ink-soft); }
.br-header__nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) {
  .br-header__nav a:not(.btn) { display: none; }
}

/* ---- Hero ---- */
.hero { padding: 96px 0 88px; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pack-cover { aspect-ratio: auto; min-height: 380px; }
  .pack-cover__footer { flex-direction: column; align-items: flex-start; }
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Demo pack cover (hero artifact) ---- */
.pack-cover {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 210 / 260;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.pack-cover__client {
  font-family: var(--font-ui); font-weight: 600;
  font-size: 0.875rem; color: var(--ink-soft);
}
.pack-cover__title {
  font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1.15;
  margin-top: auto;
}
.pack-cover__period {
  font-family: var(--font-figures);
  font-size: 0.9375rem; color: var(--ink-soft);
  margin-top: 8px;
}
.pack-cover__footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.pack-cover__lockup { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; }
.pack-cover__lockup span { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 0.6875rem; color: var(--ink-soft); }
.demo-note {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-figures); font-size: 0.6875rem; color: var(--ink-soft);
}

/* ---- Attestation Mark (Design Brief §3) ---- */
.attestation {
  display: inline-block;
  border: 1px solid var(--stamp);
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--font-figures);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--stamp);
  white-space: nowrap;
}
.attestation strong { font-weight: 500; letter-spacing: 0.06em; }

/* ---- How it works (prose steps, no icon grid) ---- */
.steps { display: grid; gap: 0; max-width: 720px; }
.step {
  display: grid;
  grid-template-columns: var(--margin-col) 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num {
  font-family: var(--font-figures);
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-top: 4px;
}
.step p { margin: 8px 0 0; color: var(--ink-soft); max-width: 58ch; }
@media (max-width: 560px) {
  .step { grid-template-columns: 48px 1fr; gap: 12px; }
}

/* ---- Sample table (the design-system demo) ---- */
.sample {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  overflow-x: auto;
}
.sample__basis {
  font-family: var(--font-figures);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}
table.ledger th {
  font-family: var(--font-ui); font-weight: 600;
  text-align: right; padding: 8px 12px;
  border-bottom: 1px solid var(--ink);
}
table.ledger th:first-child { text-align: left; }
table.ledger td {
  font-family: var(--font-figures);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
}
table.ledger td:first-child { font-family: var(--font-ui); text-align: left; }
table.ledger tr:hover td { background: rgb(28 43 58 / 0.03); }
table.ledger tr.subtotal td {
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  font-weight: 500;
}
td.pos { color: var(--pos); }
td.neg { color: var(--neg); }

.lineage {
  font-family: var(--font-figures);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.pack-contents { max-width: 640px; }
.pack-contents ol {
  margin: 16px 0 0; padding: 0;
  list-style: none;
  counter-reset: pc;
}
.pack-contents li {
  counter-increment: pc;
  display: grid;
  grid-template-columns: var(--margin-col) 1fr;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.pack-contents li::before {
  content: counter(pc, decimal-leading-zero);
  font-family: var(--font-figures);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.pack-contents li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) {
  .pack-contents li { grid-template-columns: 48px 1fr; gap: 12px; }
}

/* ---- Pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--accent); }
.tier__name { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; margin: 0; }
.tier__price {
  font-family: var(--font-figures);
  font-size: 1.75rem;
  margin: 12px 0 4px;
}
.tier__price span { font-size: 0.875rem; color: var(--ink-soft); }
.tier__list { list-style: none; margin: 20px 0 28px; padding: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.tier__list li { padding: 8px 0; border-top: 1px solid var(--rule); }
.tier .btn { margin-top: auto; text-align: center; }
.pricing__note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 24px; }
.pricing__note .num { font-size: 0.8125rem; }

/* ---- Health Scan CTA ---- */
.scan {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.scan__inner { max-width: 720px; }

/* ---- Trust strip ---- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust__fact {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9375rem;
}
.trust__fact h3 { font-size: 0.9375rem; }
.trust__fact p { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

/* ---- Footer ---- */
.br-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 56px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.br-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.br-footer a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--rule); }
.br-footer a:hover { color: var(--ink); }
