/* ===========================================================================
   rennyai.com — the marketing site.

   The Renny brand system as a stylesheet. See the renny-brand skill for the
   audit these values come from. Three rules that shape everything here:

     - White dominant, Mist for section separation. NO dark surfaces: this
       gets printed and PDF'd by risk teams, and a dark page prints as a slab.
     - Renny Orange is ~3% of the surface and NEVER body text. It is 3.31:1 on
       white, which fails AA below 14pt bold.
     - 24px card radius, 999px pill CTAs, 8px spacing rhythm.

   No framework, no build step for the CSS, no external requests except the
   Google font and the production logo. A lender's security team can read this
   file top to bottom in five minutes, which is the point.
   ======================================================================== */

:root {
  --forest: #265129;
  --growth: #256129;
  --orange: #df6d26;
  --orange-light: #fa8e42;
  --deep: #0e1e0f;
  --ink: #212121;
  --slate: #64748b;
  --charcoal: #37404c;
  --mist: #f0f4f1;
  --white: #fff;
  --line: #e3eae4;

  --font: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --numeric: "Inter Tight", "Poppins", sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;

  --radius: 24px;
  --pill: 999px;
  --shadow: 0 8px 24px rgba(14, 30, 15, .08);
  --shadow-lift: 0 16px 40px rgba(14, 30, 15, .12);
  --ease: 220ms cubic-bezier(.2, .8, .2, 1);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 17px/1.62 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Skip link — the first thing a keyboard or screen-reader user meets. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(223, 109, 38, .7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s3); }

section { padding: var(--s12) 0; }
section.tight { padding: var(--s10) 0; }
.mist { background: var(--mist); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--growth); margin: 0 0 var(--s2);
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--forest); margin: 0 0 var(--s3); }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.14; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.26; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.34; font-weight: 600; margin-bottom: var(--s1); }

p { margin: 0 0 var(--s3); max-width: 68ch; }
p.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--charcoal); }
p.small { font-size: 15px; color: var(--slate); }
.muted { color: var(--slate); }

.center { text-align: center; }
.center p, .center h2 { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- buttons - */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--pill);
  font: 500 16px/1 var(--font); cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
  text-decoration: none !important; white-space: nowrap;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: #1d3f21; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary { background: #fff; color: var(--forest); border: 1px solid var(--forest); }
.btn--secondary:hover { background: var(--mist); transform: translateY(-1px); }
.btn--warm {
  color: var(--deep);
  background: linear-gradient(110deg, var(--orange), var(--orange-light));
}
.btn--warm:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.textlink { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.textlink::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform var(--ease); }
.textlink:hover::after { transform: translateX(3px); }

/* ----------------------------------------------------------------- header - */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 76px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 128px; height: 35px; }  /* 3.64:1 preserved */

.nav { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--charcoal); padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--forest); text-decoration: none; border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }

.header-cta { display: flex; align-items: center; gap: var(--s2); flex: 0 0 auto; }

.nav-toggle {
  display: none; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  width: 46px; height: 46px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 20px; height: 2px;
  background: var(--forest); margin: 0 auto; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ------------------------------------------------------------------- hero - */
.hero { padding: var(--s12) 0 var(--s10); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s8); align-items: center; }
.hero h1 { margin-bottom: var(--s3); }
.hero .lead { margin-bottom: var(--s5); }
.hero-note { font-size: 14.5px; color: var(--slate); margin-top: var(--s4); max-width: 46ch; }

/* --------------------------------------------------------------- trustbar - */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); padding-top: var(--s6); padding-bottom: var(--s6); }
.trustbar h4 { color: var(--forest); }
.trustbar p { font-size: 15px; margin: 0; color: var(--charcoal); }

/* ------------------------------------------------------------------ cards - */
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); transition: transform var(--ease), box-shadow var(--ease);
}
.card h3, .card h4 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Guided-process content gets the thin orange outline; everything else stays neutral. */
.card--process { border-color: rgba(223, 109, 38, .55); }
.card--flat { border: 0; padding: 0; background: transparent; }

.icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--forest); margin-bottom: var(--s3);
  flex: 0 0 auto;
}
.icon svg { width: 22px; height: 22px; }
.icon--orange { background: var(--orange); color: #fff; }

/* ------------------------------------------------------------------ steps - */
.steps { display: grid; gap: var(--s3); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--s3);
  padding: var(--s3) 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--font);
}
.step-num--orange { background: var(--orange); color: var(--deep); }
.step h4 { color: var(--forest); font-size: 19px; }
.step p { margin: 0; font-size: 16px; }

/* Horizontal pipeline for the process overview. */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.pipe-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3); text-align: left;
}
.pipe-card .step-num { margin-bottom: var(--s2); }
.pipe-card h4 { font-size: 17px; }
.pipe-card p { font-size: 15px; margin: 0; color: var(--charcoal); }

/* -------------------------------------------------------------- checklist - */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: var(--s2); align-items: start; }
.checks .tick {
  width: 24px; height: 24px; border-radius: 50%; margin-top: 3px;
  background: var(--orange); color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.checks strong { display: block; color: var(--forest); font-weight: 600; }
.checks span.body { font-size: 15.5px; color: var(--charcoal); }

/* Plain bulleted list with brand markers. */
ul.bullets { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 10px; }
ul.bullets li { position: relative; padding-left: 22px; font-size: 16px; }
ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}

/* ------------------------------------------------------------------- stats - */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.stat .n { font: 700 clamp(34px, 3.6vw, 46px)/1 var(--numeric); color: var(--forest); display: block; }
.stat .l { font-size: 14.5px; color: var(--slate); margin-top: 10px; display: block; line-height: 1.4; }

/* ------------------------------------------------------------------ split - */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }

/* ------------------------------------------------------------------- note - */
.note {
  background: var(--mist); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s3) var(--s4);
}
.note h4 { margin-bottom: 8px; }
.note p { margin: 0; font-size: 16px; }

/* -------------------------------------------------------------------- CTA - */
.cta-band { background: var(--forest); color: #fff; border-radius: var(--radius); padding: var(--s8) var(--s6); }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: #d6e0d7; }
.cta-band .btn--secondary { background: #fff; border-color: #fff; }

/* ------------------------------------------------------------------ table - */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th {
  text-align: left; background: var(--forest); color: #fff;
  font-weight: 600; padding: 14px 18px;
}
.tbl th:first-child { border-radius: 12px 0 0 0; }
.tbl th:last-child { border-radius: 0 12px 0 0; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--charcoal); }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

/* -------------------------------------------------------------------- FAQ - */
details.faq {
  border-bottom: 1px solid var(--line); padding: var(--s3) 0;
}
details.faq summary {
  cursor: pointer; font: 600 18px/1.4 var(--font); color: var(--forest);
  list-style: none; display: flex; justify-content: space-between; gap: var(--s3);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: var(--s2) 0 0; }

/* ------------------------------------------------------------------- form - */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 500; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font: 400 16px/1.5 var(--font); color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; min-height: 50px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline-offset: 1px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

/* ------------------------------------------------------------------ footer - */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: var(--s10) 0 var(--s5); margin-top: var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.site-footer h5 {
  font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); margin: 0 0 var(--s3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { font-size: 15px; color: var(--charcoal); }
.site-footer a:hover { color: var(--forest); }
.footer-brand img { width: 118px; height: 32px; margin-bottom: var(--s3); }
.footer-brand p { font-size: 14.5px; color: var(--slate); max-width: 34ch; }
.footer-legal {
  margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: 13.5px; color: var(--slate);
}

/* ------------------------------------------------- contrast on Mist ------- *
 * Slate is 4.76:1 on white — it passes AA, just. On Mist (#F0F4F1) the same
 * color is 4.29:1, which does NOT. Every supporting-text style therefore steps
 * up to Charcoal (9.46:1 on Mist) inside a Mist surface.
 *
 * Worth stating why this is a separate block rather than a change to --slate:
 * Slate is the brand's supporting-text color and it is correct on white, which
 * is most of the site. The failure is the pairing, not the token.
 */
.mist .muted,
.mist p.small,
.mist .stat .l,
.trustbar p { color: var(--charcoal); }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 980px) {
  .hero-grid, .split, .split--wide { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-4, .stats, .pipeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .trustbar .wrap { grid-template-columns: 1fr; gap: var(--s4); }

  .nav-toggle { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: var(--s2); width: 100%; margin: 0; padding: var(--s3) 0 var(--s2);
    border-top: 1px solid var(--line);
  }
  .site-header.open .header-cta { display: flex; width: 100%; padding-bottom: var(--s3); }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .nav a { font-size: 17px; padding: 8px 0; border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: var(--s8) 0; }
  .grid-2, .grid-3, .grid-4, .stats, .pipeline { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .cta-band { padding: var(--s6) var(--s4); }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 42px 1fr; gap: var(--s2); }
}

@media print {
  .site-header, .nav-toggle, .site-footer, .cta-band { display: none !important; }
  body { font-size: 11pt; }
  section { padding: 12pt 0; page-break-inside: avoid; }
  .card, .note { border: 1px solid #ccc !important; box-shadow: none !important; }
  a { text-decoration: none; color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===========================================================================
   PRODUCT FRAMES — UI shown on the marketing site.
   These are built in HTML/CSS in the application's own visual language rather
   than being bitmap screenshots, for three reasons: they stay sharp at any
   density, they are searchable and translatable, and they cannot silently rot
   into a picture of a version that no longer exists. Every frame carries a
   visible "illustrative, demo data" caption — a mocked-up screen presented as a
   real one is the kind of thing a lender's diligence catches.
   ======================================================================== */
.frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow); font-size: 13px;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--mist); border-bottom: 1px solid var(--line);
}
.frame-dots { display: flex; gap: 5px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8d1; display: block; }
.frame-url {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 11.5px; color: var(--slate);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-body { display: grid; grid-template-columns: 176px 1fr; min-height: 300px; }
.frame-side { background: var(--forest); padding: 16px 12px; }
.frame-side .fs-brand { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 18px; padding: 0 6px; }
.frame-side a, .frame-side span {
  display: block; color: #c9d8cb; padding: 7px 10px; border-radius: 10px;
  font-size: 12.5px; text-decoration: none; margin-bottom: 2px;
}
.frame-side .on { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.frame-main { padding: 18px 20px; background: #fff; }
.frame-h { font: 600 16px/1.3 var(--font); color: var(--forest); margin: 0 0 3px; }
.frame-sub { font-size: 12px; color: var(--slate); margin: 0 0 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi b { display: block; font: 700 21px/1 var(--numeric); color: var(--forest); }
.kpi s { display: block; font-size: 10.5px; color: var(--slate); text-decoration: none; margin-top: 5px; line-height: 1.3; }
.kpi.warn b { color: var(--orange); }

.rowlist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rowlist .rh, .rowlist .r {
  display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 92px; gap: 10px;
  padding: 9px 12px; align-items: center;
}
.rowlist .rh { background: var(--mist); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--charcoal); }
.rowlist .r { border-top: 1px solid var(--line); font-size: 12.5px; }
.rowlist .r b { color: var(--forest); font-weight: 600; }
.rowlist .r span.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--charcoal); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.pill.ok    { background: #e4efe5; color: #1d3f21; }
.pill.wait  { background: #fdeadd; color: #8a3f0d; }
.pill.stop  { background: #f6e2e2; color: #7d2626; }
.pill.info  { background: var(--mist); color: var(--charcoal); }

/* Audit trail: a vertical spine of events. */
.trail { display: grid; gap: 0; }
.trail .ev { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; }
.trail .ev + .ev { border-top: 1px dashed var(--line); }
.trail .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--forest); margin: 4px auto 0; }
.trail .dot.o { background: var(--orange); }
.trail .ev b { display: block; font-size: 12.5px; color: var(--forest); font-weight: 600; }
.trail .ev em { font-style: normal; font-size: 11.5px; color: var(--slate); display: block; margin-top: 2px; }
.trail .ev code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--charcoal); }

.frame-cap { font-size: 13px; color: var(--slate); margin: 12px 0 0; }
.frame-cap strong { color: var(--charcoal); font-weight: 600; }

/* Tabbed set of frames, CSS-only via radio inputs — no JavaScript needed. */
.shots input { position: absolute; opacity: 0; pointer-events: none; }
.shots-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.shots-tabs label {
  cursor: pointer; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14.5px;
  font-weight: 500; color: var(--charcoal);
}
.shots-tabs label:hover { border-color: var(--forest); color: var(--forest); }
.shots-panel { display: none; }
.shots input:nth-of-type(1):checked ~ .shots-tabs label:nth-of-type(1),
.shots input:nth-of-type(2):checked ~ .shots-tabs label:nth-of-type(2),
.shots input:nth-of-type(3):checked ~ .shots-tabs label:nth-of-type(3),
.shots input:nth-of-type(4):checked ~ .shots-tabs label:nth-of-type(4) {
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.shots input:nth-of-type(1):checked ~ .shots-panels .shots-panel:nth-of-type(1),
.shots input:nth-of-type(2):checked ~ .shots-panels .shots-panel:nth-of-type(2),
.shots input:nth-of-type(3):checked ~ .shots-panels .shots-panel:nth-of-type(3),
.shots input:nth-of-type(4):checked ~ .shots-panels .shots-panel:nth-of-type(4) { display: block; }
.shots input:focus-visible ~ .shots-tabs label { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ------------------------------------------------ compliance & standards --- */
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.badge {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  padding: var(--s3) var(--s2); text-align: center;
}
.badge .bmark {
  width: 44px; height: 44px; margin: 0 auto var(--s2); border-radius: 12px;
  background: var(--mist); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.badge .bmark svg { width: 22px; height: 22px; }
.badge b { display: block; font-size: 13.5px; color: var(--forest); font-weight: 600; line-height: 1.3; }
.badge s { display: block; text-decoration: none; font-size: 11px; margin-top: 7px; line-height: 1.35; }
.badge s.live { color: #1d3f21; font-weight: 600; }
.badge s.soon { color: var(--charcoal); }

/* ---------------------------------------------------------------- blog ----- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.post {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: var(--s3); display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post .tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--growth); background: var(--mist);
  padding: 4px 10px; border-radius: 999px;
}
.post h3 { font-size: 19px; line-height: 1.3; margin: 0; }
.post h3 a { color: var(--forest); }
.post p { font-size: 15px; color: var(--charcoal); margin: 0; }
.post .meta { font-size: 12.5px; color: var(--slate); margin-top: auto; }

.post-lead {
  border: 1px solid rgba(223,109,38,.55); border-radius: var(--radius);
  padding: var(--s5); background: #fff; margin-bottom: var(--s5);
}
.post-lead h2 { margin-bottom: var(--s2); }

/* Article page */
.article { max-width: 760px; margin: 0 auto; }
.article .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--growth); background: var(--mist);
  padding: 4px 10px; border-radius: 999px; margin-bottom: var(--s3); }
.article h1 { font-size: clamp(30px, 3.8vw, 44px); }
.article .byline { font-size: 14px; color: var(--slate); margin: 0 0 var(--s6);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(22px, 2.3vw, 28px); margin-top: var(--s6); }
.article h3 { font-size: 20px; margin-top: var(--s5); }
.article p, .article li { font-size: 17.5px; line-height: 1.68; }
.article p { max-width: none; }
.article blockquote {
  margin: var(--s5) 0; padding: var(--s3) var(--s4);
  background: var(--mist); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article blockquote p { margin: 0; font-size: 18px; color: var(--charcoal); }
.article .takeaway {
  margin: var(--s6) 0 0; padding: var(--s4);
  border: 1px solid rgba(223,109,38,.55); border-radius: var(--radius);
}
.article .takeaway h4 { color: var(--forest); }
.article .takeaway p { margin: 0; font-size: 16.5px; }
.article-foot { max-width: 760px; margin: var(--s8) auto 0; padding-top: var(--s5);
  border-top: 1px solid var(--line); }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }

@media (max-width: 980px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-body { grid-template-columns: 1fr; }
  .frame-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .related { grid-template-columns: 1fr; }
  .rowlist .rh, .rowlist .r { grid-template-columns: 1fr auto; }
  .rowlist .rh span:nth-child(2), .rowlist .rh span:nth-child(3),
  .rowlist .r span:nth-child(2), .rowlist .r span:nth-child(3) { display: none; }
  .article p, .article li { font-size: 16.5px; }
}

/* ===========================================================================
   DARK SURFACES

   The original rule in this file was "no dark surfaces, because risk teams print
   these pages and a dark page prints as a slab". That rule was about PRINT, and
   collapsing it into "never dark" cost the site its rhythm — twenty-eight pages
   of white and Mist read as a document, not a product.

   So the rule is now scoped where it belongs: dark sections on screen, forced
   back to white in the print stylesheet at the bottom of this file. A lender who
   hits Ctrl-P still gets a clean sheet of paper.

   Every color below was measured against #0e1e0f, not chosen by eye:
     #ffffff 17.34:1 · #d6e0d7 12.80:1 · #fa8e42 7.44:1 · #df6d26 5.24:1
   Note the last one. Renny Orange is only 3.31:1 on white, which is why it is
   never body text there — on the deep surface it finally clears AA, so this is
   the one place the brand accent can carry real text.
   ======================================================================== */
.deep {
  background: var(--deep);
  color: #d6e0d7;
  /* A very soft forest bloom, so a large dark band is not a flat rectangle. */
  background-image:
    radial-gradient(60rem 30rem at 15% 0%, rgba(37, 97, 41, .38), transparent 70%),
    radial-gradient(48rem 26rem at 92% 100%, rgba(223, 109, 38, .16), transparent 70%);
}
.deep h1, .deep h2, .deep h3, .deep h4 { color: #fff; }
.deep p, .deep li { color: #d6e0d7; }
.deep .lead { color: #e2eae3; }
.deep .eyebrow { color: var(--orange-light); }
.deep .muted, .deep p.small { color: #b6c7b8; }
.deep strong { color: #fff; }
.deep a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.deep a:not(.btn):hover { color: var(--orange-light); }

/* Cards on a dark surface are lifted with light, not with shadow — a shadow on
   near-black is invisible, so a white card would be the only thing with edges. */
.deep .card, .deep .note, .deep .stat {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
  color: #d6e0d7;
}
.deep .card:hover { background: rgba(255, 255, 255, .085); box-shadow: none; }
.deep .card h3, .deep .card h4, .deep .stat .n { color: #fff; }
.deep .bullets li::before { background: var(--orange-light); }
.deep hr, .deep .rule { border-color: rgba(255, 255, 255, .16); }
.deep .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.deep .btn--secondary:hover { background: rgba(255, 255, 255, .1); }
.deep .textlink { color: #fff; }

/* Hairlines between a dark band and its neighbors, so the seam is intentional. */
.deep + section, section + .deep { border-top: 0; }

/* The footer joins the dark family. It is the bottom of every page, so it also
   acts as the visual full stop. */
.site-footer {
  background: var(--deep);
  border-top: 0;
  color: #b6c7b8;
  background-image: radial-gradient(52rem 24rem at 10% 0%, rgba(37, 97, 41, .34), transparent 70%);
}
.site-footer h5 { color: #fff; }
.site-footer a { color: #cdd9ce; }
.site-footer a:hover { color: var(--orange-light); }
.footer-brand p { color: #a8bbaa; }
.footer-legal { color: #93a795; border-top-color: rgba(255, 255, 255, .12); }
.footer-legal .muted { color: #7f9281; }
/* The logo is dark-on-transparent, so it needs lifting off a near-black panel.
   Doing it with a filter keeps a single logo asset rather than a light variant
   that can drift out of sync with the real one. */
.site-footer .footer-brand img { filter: brightness(0) invert(1); opacity: .92; }

/* ===========================================================================
   ARTWORK

   Inline SVG from tools/site-art.mjs. Sized by its container, never by width and
   height attributes.
   ======================================================================== */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art--hero { max-width: 600px; margin-inline: auto; }
.art--wide { max-width: 100%; }
.art--mark { width: 44px; height: 44px; }

figure.art-fig { margin: 0; }
figure.art-fig figcaption {
  margin-top: var(--s2);
  font-size: 14px; line-height: 1.5; color: var(--slate);
  max-width: 62ch;
}
.deep figure.art-fig figcaption { color: #a8bbaa; }
.mist figure.art-fig figcaption { color: var(--charcoal); }

/* A held breath under the hero art. Two seconds, once, and it stops. */
@keyframes artFloat {
  from { transform: translateY(6px); }
  to   { transform: translateY(-6px); }
}
.art--hero { animation: artFloat 7s ease-in-out infinite alternate; }

/* ===========================================================================
   MOTION

   Sections rise into place as they enter the viewport. Two things make this safe
   rather than a way to hide the page:

   1. The hidden state is gated behind html.js-motion, which is set by an inline
      script in <head>. No JavaScript, blocked script, old browser, or a crash
      before the observer attaches all leave the content plainly visible. A
      reveal animation that can fail closed is a blank website.
   2. prefers-reduced-motion turns all of it off, including the float above.
   ======================================================================== */
html.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
html.js-motion [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms cubic-bezier(.2, .7, .2, 1), transform 640ms cubic-bezier(.2, .7, .2, 1);
}

/* Children of a grid arrive in sequence rather than as a block. Delays are in
   CSS by position, so nothing has to be tagged per card. */
html.js-motion [data-stagger] > * { opacity: 0; transform: translateY(16px); }
html.js-motion [data-stagger].in > * {
  opacity: 1; transform: none;
  transition: opacity 560ms cubic-bezier(.2, .7, .2, 1), transform 560ms cubic-bezier(.2, .7, .2, 1);
}
html.js-motion [data-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
html.js-motion [data-stagger].in > *:nth-child(2) { transition-delay: 70ms; }
html.js-motion [data-stagger].in > *:nth-child(3) { transition-delay: 140ms; }
html.js-motion [data-stagger].in > *:nth-child(4) { transition-delay: 210ms; }
html.js-motion [data-stagger].in > *:nth-child(5) { transition-delay: 280ms; }
html.js-motion [data-stagger].in > *:nth-child(6) { transition-delay: 350ms; }
html.js-motion [data-stagger].in > *:nth-child(n+7) { transition-delay: 420ms; }

/* The hero is above the fold, so it animates on load instead of on scroll —
   waiting for an intersection that already happened would leave it blank. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
html.js-motion .hero-grid > * { animation: heroIn 760ms cubic-bezier(.2, .7, .2, 1) both; }
html.js-motion .hero-grid > *:nth-child(2) { animation-delay: 130ms; }

/* The header earns an edge once the page has moved under it. */
.site-header { transition: box-shadow var(--ease), background var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14, 30, 15, .07); }

@media (prefers-reduced-motion: reduce) {
  .art--hero { animation: none; }
  html.js-motion [data-reveal],
  html.js-motion [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  html.js-motion .hero-grid > * { animation: none; }
}

/* ===========================================================================
   PRINT — dark surfaces come back to white here.
   This is the whole reason dark is allowed on screen at all.
   ======================================================================== */
@media print {
  .deep, .site-footer, .cta-band {
    background: #fff !important;
    background-image: none !important;
    color: #000 !important;
  }
  .deep h1, .deep h2, .deep h3, .deep h4,
  .deep p, .deep li, .deep strong, .deep .lead, .deep .eyebrow,
  .cta-band h2, .cta-band h3, .cta-band p { color: #000 !important; }
  .deep .card, .deep .note, .deep .stat {
    background: #fff !important; border: 1px solid #ccc !important; color: #000 !important;
  }
  .art { max-width: 460px; }
  html.js-motion [data-reveal],
  html.js-motion [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
