/* ============================================================
   Seen NC — shared styling for the static trust/legal pages
   (about / privacy / terms / contact). Self-contained: mirrors
   the app's warm-dark palette + Public Sans type without
   pulling in the whole app stylesheet.
   ============================================================ */
:root {
  --ink-950: #17110d;
  --ink-900: #1c150f;
  --card:    #241c15;
  --paper:     #f3ead9;
  --paper-dim: #ccbda6;
  --muted:     #97876f;
  --faint:     #6c5f4c;
  --line:    rgba(243, 234, 217, 0.09);
  --line-hi: rgba(243, 234, 217, 0.16);
  --amber:    #e8a24e;
  --amber-hi: #f3b968;
  --amber-deep: #c07a2c;
  --sage:     #7fb08a;
  --clay:     #d67150;
  --clay-hi:  #e2865f;
  /* Type: Public Sans (the USWDS typeface) + IBM Plex Mono, self-hosted in
     /fonts.css. Seen NC is DELIBERATELY SANS-ONLY — no display serif. This is
     a public-accountability site built on state data; it should read civic and
     factual, and being the one property in the family without a serif is what
     keeps it from looking like a sibling template. Hierarchy comes from weight
     (--display runs 700-900) and letter-spacing, not from a second family.
     Do not reintroduce a serif here. */
  --display: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans:    "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Back-compat alias only. Office/statistics pages generated BEFORE this
     change are still on disk asking for the old --serif name until the next
     collector run; this keeps them rendering. Do not use it in new code. */
  --serif: var(--display);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper);
  background:
    radial-gradient(120% 60% at 88% -6%, rgba(232,162,78,0.16), transparent 55%),
    radial-gradient(90% 55% at -8% 6%, rgba(214,113,80,0.10), transparent 50%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- header ---- */
.page-head {
  max-width: 720px; margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--amber); display: inline-flex; filter: drop-shadow(0 2px 8px rgba(232,162,78,0.35)); }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--paper); }
.brand__tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-hi); border-radius: 999px; padding: 3px 7px;
}
.page-back {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
  transition: color .18s, border-color .18s;
}
.page-back:hover { color: var(--paper); border-color: var(--line-hi); }

/* ---- prose ---- */
.prose {
  max-width: 720px; margin: 0 auto;
  padding: 30px 20px 12px;
}
.prose h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 14px; color: var(--paper);
}
.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  margin: 34px 0 8px; color: var(--amber-hi); letter-spacing: -0.01em;
}
.prose .lead { font-size: 17.5px; color: var(--paper-dim); margin: 0 0 8px; }
.prose .updated {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); margin: 0 0 18px;
}
.prose p { margin: 0 0 14px; color: var(--paper-dim); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 0 0 9px; color: var(--paper-dim); }
.prose strong { color: var(--paper); font-weight: 700; }
/* Inline prose links only — note the :not([class]).
   `.prose a` is specificity (0,1,1) and beat every button class (0,1,0), so an
   anchor styled as a button (.tier__cta--primary, .builder-cta__btn) had its
   text repainted link-amber — the SAME amber as the button's own background.
   "Become the sponsor" and "clarityforge.dev →" were rendering at a 1:1
   contrast ratio, i.e. invisible. Any anchor carrying a class is styling itself
   deliberately and must win; bare inline links still get the amber treatment. */
.prose a:not([class]) { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232,162,78,0.35); }
.prose a:not([class]):hover { color: var(--amber-hi); border-bottom-color: var(--amber-hi); }

/* the not-affiliated callout — the load-bearing disclaimer */
.disclaimer {
  margin: 26px 0 4px; padding: 15px 16px;
  border: 1px solid var(--line-hi); border-left: 3px solid var(--sage);
  border-radius: 12px; background: var(--card);
  font-size: 14px; color: var(--paper-dim);
}
.disclaimer strong { color: var(--paper); }

/* ---- sponsor tiers (partners page) ---- */
.tiers { display: grid; gap: 14px; margin: 24px 0 10px; }
@media (min-width: 560px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier {
  border: 1px solid var(--line-hi); border-radius: 14px; background: var(--card);
  padding: 20px 18px; display: flex; flex-direction: column;
}
.tier--feature { border-color: rgba(232,162,78,0.5); box-shadow: 0 10px 30px -20px rgba(232,162,78,0.5); }
.tier__badge {
  align-self: flex-start; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber-hi); border: 1px solid rgba(232,162,78,0.4);
  border-radius: 999px; padding: 3px 8px; margin-bottom: 10px;
}
.tier__name { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--paper); margin: 0 0 6px; }
.tier__price { font-family: var(--mono); font-size: 23px; color: var(--amber-hi); margin: 0 0 2px; line-height: 1.1; }
.tier__price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.tier__note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.tier ul { margin: 0 0 18px; padding-left: 18px; }
.tier li { font-size: 13.5px; margin-bottom: 7px; color: var(--paper-dim); }
.tier__cta {
  display: block; text-align: center; text-decoration: none; margin-top: auto;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px; padding: 13px; border-radius: 10px;
  transition: transform .15s, filter .15s;
}
.tier__cta:active { transform: scale(0.98); }
.tier__cta--primary { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); color: #17110d; border: 0; }
.tier__cta--ghost { border: 1px solid var(--line-hi); color: var(--paper); }
.tier__cta--ghost:hover { border-color: var(--amber); }

/* ---- report page ---- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 8px; }
.stat { border: 1px solid var(--line-hi); border-radius: 14px; background: var(--card); padding: 16px; }
.stat__num { font-family: var(--mono); font-size: 27px; color: var(--amber-hi); line-height: 1.05; }
.stat__num small { font-size: 13px; color: var(--muted); }
.stat__label { font-size: 12.5px; color: var(--paper-dim); margin-top: 7px; line-height: 1.4; }
.stat--alarm .stat__num { color: var(--clay-hi); }
.rtable { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 14px; }
.rtable th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--paper-dim); }
.rtable td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable__name { color: var(--paper); font-weight: 600; }
.trend-wrap { overflow-x: auto; }
.trend-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin: 12px 0 4px; min-width: min-content; }
.trend-col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 34px; }
.trend-col i { width: 22px; background: linear-gradient(180deg, var(--amber), var(--amber-deep)); border-radius: 3px 3px 0 0; min-height: 4px; display: block; }
.trend-col span { font-family: var(--mono); font-size: 9px; color: var(--faint); }

/* ---- builder CTA (how-it-works page) ---- */
.builder-cta {
  margin: 30px 0 6px; padding: 22px 20px;
  border: 1px solid rgba(232,162,78,0.45); border-radius: 16px;
  background: linear-gradient(180deg, var(--card), rgba(0,0,0,0.15));
  text-align: center;
}
.builder-cta__eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.builder-cta__line { font-family: var(--display); font-size: 20px; color: var(--paper); margin: 8px 0 4px; line-height: 1.3; }
.builder-cta__sub { font-size: 13.5px; color: var(--paper-dim); margin: 0 0 16px; }
.builder-cta__btn {
  display: inline-block; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; color: #17110d;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
}
.builder-cta__btn:hover { filter: brightness(1.05); }

/* ---- footer ---- */
.page-foot {
  max-width: 720px; margin: 34px auto 0;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.foot-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--muted); text-decoration: none; transition: color .18s;
}
.foot-nav a:hover { color: var(--paper); }
.foot-disclosure { font-size: 12.5px; color: var(--faint); margin: 0 0 8px; line-height: 1.5; }
.foot-legit { font-size: 12px; color: var(--faint); margin: 0; line-height: 1.5; }
.foot-legit a { color: var(--muted); text-decoration: none; }
.foot-legit a:hover { color: var(--paper); }
