/* FinCalc design system — marketing site
   Fonts are self-hosted (no third-party requests), matching our privacy stance.
   Type: Plus Jakarta Sans (display/wordmark), IBM Plex Mono (data), IBM Plex Sans (prose)
   Color: the 11-color FinCalc brand system, plus derived tokens marked below.
   Every pairing used on this site is verified against WCAG AA. */

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
:root {
  /* ---- Brand core (fincalc color system, do not alter) ---- */
  --ledger: #0E2A2B;         /* primary dark: headers, footers, dark sections, icon tile */
  --green: #17804F;          /* primary brand: buttons and links on light */
  --signal: #3EC482;         /* accent on dark only, never text on a light surface */

  /* ---- Brand neutrals ---- */
  --ink: #142222;            /* body text on light */
  --slate: #56696A;          /* captions, axis labels, tertiary text */
  --paper: #F6F7F4;          /* default light surface */
  --surface: #FFFFFF;        /* cards and inputs */
  --mint: #E4F3EA;           /* tinted panels, selected rows, highlights.
                                Brand rule 4: text on Mint is --green-deep or
                                --ink. --green is only 4.32:1 here. */

  /* ---- Brand support ---- */
  --green-deep: #0F6440;     /* hover/pressed, and text on Mint */
  --amber: #9A5B00;          /* caution states, secondary data series */
  --loss: #B3261E;           /* errors and negative values only */

  /* ---- Derived: not brand colors. Mixed from the above and AA-verified.
         See the contrast table in README before changing any of these. ---- */
  --ink-soft: #3C4D4D;       /* secondary prose, 8.27:1 on Paper */
  --rule: #C6CCCB;           /* hairline on light */
  --rule-soft: #D9DDDB;      /* subdued hairline on light */
  --ledger-2: #1E3839;       /* raised surface on Ledger, 1.21:1 lift */
  --rule-dark: #314849;      /* hairline on Ledger, 1.56:1 */
  --on-ledger: #F6F7F4;      /* body text on Ledger, 14.10:1 */
  --on-ledger-muted: #A9B3B2;/* secondary text on Ledger, 7.06:1 */
  --signal-rule: #2F6B4C;    /* chip/border on Ledger */
  --mint-rule: #92C5AC;      /* border on Mint panels */
  --amber-tint: #F0EEE5;      /* Amber reads 4.67:1 on this */
  --amber-rule: #D3BC97;
  --amber-dark: #D7B078;     /* caution text on Ledger, 7.49:1 */
  --loss-tint: #EFE2DF;
  --loss-dark: #DD8882;      /* error text on Ledger, 5.72:1 */

  /* ---- Focus ring. Ink on light / Signal on dark: both clear 3:1 against
         every surface AND against the green primary button. Amber does not
         (1.09:1 on Green) — do not go back to it. ---- */
  --focus: #142222;
  --focus-dark: #3EC482;

  /* ---- Chart series (brand order: Green, Ledger, Amber, Slate) ---- */
  --series-1: #17804F;
  --series-2: #0E2A2B;
  --series-3: #9A5B00;
  --series-4: #56696A;

  --display: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 43, .06), 0 6px 16px -10px rgba(14, 42, 43, .25);
  --shadow: 0 2px 6px rgba(14, 42, 43, .06), 0 24px 48px -28px rgba(14, 42, 43, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a, main li a, .site-footer a:hover { color: var(--green); }
.on-deep p a, .on-deep li a { color: var(--signal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-deep :focus-visible, .launch-strip :focus-visible { outline-color: var(--focus-dark); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ledger); color: var(--surface); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h3 { font-weight: 700; }
h1 { font-size: var(--step-4); line-height: 1.05; }
h2 { font-size: var(--step-3); line-height: 1.15; }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }

/* Section heading */
.head { margin-bottom: 2.75rem; }
.head p { color: var(--ink-soft); font-size: var(--step-1); margin-top: .9rem; }
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
  padding: .8rem 1.25rem; border-radius: var(--radius-sm); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
}
/* Brand rule 7: primary is FinCalc Green with white text, hover Deep Green.
   One primary per view — the persistent header CTA is deliberately .btn-solid
   so the in-page CTA stays the only green button on screen. */
.btn-primary { background: var(--green); color: var(--surface); border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-solid { background: var(--ledger); color: var(--surface); border-color: var(--ledger); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.on-deep .btn-primary { background: var(--signal); color: var(--ledger); border-color: var(--signal); }
.on-deep .btn-primary:hover { background: var(--surface); border-color: var(--surface); }
.on-deep .btn-solid { background: var(--on-ledger); color: var(--ledger); border-color: var(--on-ledger); }
.on-deep .btn-ghost { color: var(--on-ledger); border-color: var(--on-ledger-muted); }
.on-deep .btn-ghost:hover { background: var(--ledger-2); }

/* Status chips */
.status { font-family: var(--mono); font-size: .75rem; padding: .15rem .5rem; border-radius: 2px; white-space: nowrap; border: 1px solid; }
.status-launch { color: var(--green-deep); border-color: var(--mint-rule); background: var(--mint); }
.status-soon { color: var(--amber); border-color: var(--amber-rule); background: var(--amber-tint); }
.status-roadmap { color: var(--ink-soft); border-color: var(--rule); background: var(--surface); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
/* Brand lockup. The wordmark is outlined artwork — never retype it in a live
   font. Minimum width 96px; clear space is half the icon height (see brand README). */
.logo { display: inline-flex; align-items: center; text-decoration: none; padding: .25rem 0; }
.logo img, .logo svg { display: block; width: auto; height: 1.85rem; min-width: 100px; }
.site-footer .logo img { height: 1.7rem; }
.on-deep .logo-light, .launch-strip .logo-light { display: none; }
.logo-dark { display: none; }
.on-deep .logo-dark { display: block; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .btn-solid, .nav .btn-solid:hover { color: var(--surface); text-decoration: none; }
.nav .nav-dev { font-family: var(--mono); font-size: .875rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: .45rem .7rem; font: 600 .9rem var(--sans); color: var(--ink); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4.25rem; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav .btn { margin-top: 1rem; padding: .8rem 1.25rem; border-bottom: 1.5px solid var(--ink); }
}

/* Launch strip */
.launch-strip { background: var(--ledger); color: var(--on-ledger); font-size: var(--step--1); }
.launch-strip .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-top: .6rem; padding-bottom: .6rem; align-items: center; }
.launch-strip a { color: var(--on-ledger); font-weight: 600; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 var(--section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-lede { font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--slate); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* The ledger: signature element */
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(14, 42, 43, .35); }
.ledger-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--rule); background: var(--paper); font-family: var(--mono); font-size: .8rem; color: var(--slate); }
.ledger-bar .fx { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: .1rem .5rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-scroll { overflow-x: auto; }
.ledger table { border-collapse: collapse; width: 100%; min-width: 30rem; font-family: var(--mono); font-size: .85rem; }
.ledger th { font-weight: 500; color: var(--slate); background: var(--paper); border-bottom: 1px solid var(--rule); padding: .3rem .6rem; text-align: left; font-size: .75rem; }
.ledger th:first-child, .ledger td:first-child { width: 2.25rem; text-align: center; color: var(--slate); background: var(--paper); border-right: 1px solid var(--rule); font-size: .75rem; }
.ledger td { padding: .7rem .6rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .step { color: var(--ink-soft); font-family: var(--sans); font-size: .85rem; white-space: nowrap; }
.ledger .val { color: var(--ink); }
.ledger .val small { display: block; color: var(--slate); font-size: .75rem; margin-top: .15rem; }
.ledger .ok { color: var(--green); white-space: nowrap; }
.ledger .big { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.ledger-foot { padding: .55rem .9rem; border-top: 1px solid var(--rule); font-size: .75rem; color: var(--slate); background: var(--paper); }

.js .ledger tbody tr { opacity: .18; }
.js .ledger tbody tr .ok { visibility: hidden; }
.js .ledger.play tbody tr { animation: row-in .5s ease forwards; animation-delay: calc(var(--i) * 480ms + 200ms); }
.js .ledger.play tbody tr td:not(:first-child) { animation: row-flash 1.1s ease forwards; animation-delay: calc(var(--i) * 480ms + 200ms); }
.js .ledger.play tbody tr .ok { animation: ok-in .01s linear forwards; animation-delay: calc(var(--i) * 480ms + 650ms); }
@keyframes row-in { to { opacity: 1; } }
@keyframes row-flash { 0% { background: var(--amber-tint); } 60% { background: var(--amber-tint); } 100% { background: transparent; } }
@keyframes ok-in { to { visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ledger tbody tr { opacity: 1; }
  .js .ledger tbody tr .ok { visibility: visible; }
  .js .ledger.play tbody tr, .js .ledger.play tbody tr td:not(:first-child), .js .ledger.play tbody tr .ok { animation: none; }
}

/* Gap comparison */
.gap { display: grid; grid-template-columns: 1fr 1.35fr; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.gap > div { padding: clamp(1.5rem, 3vw, 2.25rem); }
.gap .typical { background: var(--paper); border-right: 1px solid var(--rule); color: var(--ink-soft); }
.gap h3 { margin-bottom: 1rem; }
.gap ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .6rem; }
.gap .typical li:last-child { color: var(--amber); }
.gap .ours li:last-child { color: var(--green); font-weight: 500; }
@media (max-width: 760px) { .gap { grid-template-columns: 1fr; } .gap .typical { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* Journey steps */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.journey li { padding: 1.5rem 1.5rem 1.75rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.journey .n { font-family: var(--mono); font-size: .8rem; color: var(--slate); display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.journey h3 { margin-bottom: .5rem; }
.journey p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .journey { grid-template-columns: 1fr; } }

/* Demo library */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { font: 500 .9rem var(--sans); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ledger); color: var(--surface); border-color: var(--ledger); }
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.demo { background: var(--surface); padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.demo[hidden] { display: none; }
.demo .fam { font-family: var(--mono); font-size: .75rem; color: var(--slate); }
.demo p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.demo a { font-weight: 600; margin-top: .5rem; }
.demos-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.5rem; color: var(--slate); font-size: var(--step--1); }
@media (max-width: 860px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .demos { grid-template-columns: 1fr; } }

/* Split feature layout */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0,1fr); } }
.features { list-style: none; margin: 0; padding: 0; }
.features li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.features li:first-child { border-top: 1px solid var(--rule); }
.features strong { font-weight: 600; }
.features p { grid-column: 1 / -1; color: var(--ink-soft); font-size: .95rem; }
.on-deep .features li { border-color: var(--rule-dark); }
.on-deep .features p { color: var(--on-ledger-muted); }

.snippet { background: var(--ledger); color: var(--on-ledger); border-radius: var(--radius); overflow: hidden; }
.snippet-bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid var(--rule-dark); font-size: .85rem; color: var(--on-ledger-muted); }
.snippet-bar button { font: 500 .8rem var(--mono); background: transparent; color: var(--on-ledger); border: 1px solid var(--rule-dark); border-radius: 2px; padding: .25rem .6rem; cursor: pointer; }
.snippet pre { margin: 0; padding: 1.1rem 1rem 1.25rem; overflow-x: auto; font: .85rem/1.7 var(--mono); }
.snippet .t { color: var(--signal); } .snippet .a { color: var(--amber-dark); }

.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.rates div { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.rates h3 { font-size: 1rem; margin-bottom: .35rem; }
.rates p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 520px) { .rates { grid-template-columns: 1fr; } }

/* Deep section */
.on-deep { background: var(--ledger); color: var(--on-ledger); }
.on-deep .head p { color: var(--on-ledger-muted); }
.section.on-deep + .section { border-top: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.trust-grid h3 { font-size: 1rem; margin-bottom: .4rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.trust-grid p { color: var(--on-ledger-muted); font-size: .95rem; }
.on-deep .status-launch { background: transparent; color: var(--signal); border-color: var(--signal-rule); }
.on-deep .status-roadmap { background: transparent; color: var(--on-ledger-muted); border-color: var(--rule-dark); }
.on-deep .status-soon { background: transparent; color: var(--amber-dark); border-color: var(--amber-rule); }
.trust-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.trust-foot p { color: var(--on-ledger-muted); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* Integrations */
.integrations { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.integration { padding: 1.35rem 1.2rem; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.integration:last-child { border-right: 0; background: var(--paper); }
.integration strong { font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.integration p { font-size: .875rem; color: var(--ink-soft); }
@media (max-width: 960px) { .integrations { grid-template-columns: repeat(2, 1fr); } .integration { border-bottom: 1px solid var(--rule); } .integration:nth-child(2n) { border-right: 0; } .integration:last-child { grid-column: 1 / -1; border-bottom: 0; } }
@media (max-width: 520px) { .integrations { grid-template-columns: 1fr; } .integration { border-right: 0; } }

/* Engine */
.engine { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.engine-flow { font-family: var(--mono); font-size: .9rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.engine-flow div { display: grid; grid-template-columns: 2.5rem 1fr; padding: .85rem 1rem; border-bottom: 1px solid var(--rule-soft); gap: .5rem; }
.engine-flow div:last-child { border-bottom: 0; color: var(--green); }
.engine-flow span { color: var(--slate); }
.figures { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2rem; }
.figures div { font-family: var(--mono); }
.figures b { display: block; font-size: var(--step-3); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.figures span { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .engine { grid-template-columns: 1fr; } }

/* Heritage */
.heritage { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.logos div { background: var(--surface); height: 5rem; display: grid; place-items: center; font-family: var(--mono); font-size: .75rem; color: var(--slate); }
@media (max-width: 860px) { .heritage { grid-template-columns: 1fr; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.tier.featured { border: 1.5px solid var(--ink); }
.tier p { color: var(--ink-soft); font-size: .95rem; }
.tier ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; display: grid; gap: .35rem; flex: 1; }
.tier .price { font-family: var(--mono); font-size: 1.1rem; font-weight: 600; }
.pricing-foot { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); position: absolute; right: .25rem; top: 1.05rem; font-size: 1.25rem; color: var(--slate); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-soft); }

/* Preview form */
.preview { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.preview-copy p { color: var(--on-ledger-muted); margin-top: 1rem; font-size: var(--step-1); }
.preview-copy ul { margin: 1.5rem 0 0; padding-left: 1.1rem; color: var(--on-ledger); display: grid; gap: .5rem; }
form.capture { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select { font: 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: .65rem .75rem; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: 3px solid var(--amber-tint); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--amber); }
.error { color: var(--amber); font-size: .85rem; min-height: 0; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .85rem; color: var(--ink-soft); align-items: start; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--ink); }
form.capture .btn { grid-column: 1 / -1; justify-self: start; }
.form-done { grid-column: 1 / -1; background: var(--mint); border: 1px solid var(--mint-rule); color: var(--green-deep); padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form.capture { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 3.5rem 0 2.5rem; font-size: .9rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: .9rem; margin-bottom: .75rem; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--slate); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Review mode: add ?review to the URL to outline unconfirmed content */
.review-mode [data-review] { outline: 2px dashed var(--amber); outline-offset: 2px; position: relative; }
.review-mode [data-review]:hover::after {
  content: "Review: " attr(data-review); position: absolute; left: 0; top: 100%; z-index: 60; margin-top: 6px;
  background: var(--amber); color: var(--surface); font: 500 .8rem/1.4 var(--sans); padding: .45rem .6rem; border-radius: 3px; width: max-content; max-width: 22rem;
}
.review-banner { display: none; }
.review-mode .review-banner { display: block; background: var(--amber); color: var(--surface); text-align: center; font-size: .85rem; padding: .4rem 1rem; }
.on-deep form.capture .btn-primary { background: var(--signal); color: var(--ledger); border-color: var(--signal); }

/* ---------- Inner pages ---------- */
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.page-hero .hero-lede { margin-top: 1.25rem; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.subnav { position: sticky; top: 4.25rem; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; overflow-x: auto; }
.subnav a { display: block; padding: .8rem 0; font-size: .9rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--ink); text-decoration: underline; }
.subnav a[aria-current="location"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); }
.subnav a[aria-current="location"]:hover { text-decoration: none; }
[id] { scroll-margin-top: 8rem; }

.status-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); font-size: .95rem; }
.status-table caption { text-align: left; font-size: .85rem; color: var(--slate); padding-bottom: .6rem; }
.status-table th, .status-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.status-table thead th { font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--slate); background: var(--paper); border-bottom: 1px solid var(--rule); }
.status-table tbody th { font-weight: 600; width: 30%; }
.status-table td:last-child { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }
.table-scroll .status-table { min-width: 36rem; }

.manifest { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.manifest .ledger-bar { justify-content: space-between; }
.manifest pre { margin: 0; padding: 1rem 1.1rem 1.2rem; font: .82rem/1.75 var(--mono); overflow-x: auto; color: var(--ink); }
.manifest .c { color: var(--slate); }
.manifest .g { color: var(--green); }

.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.prose-grid h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.prose-grid p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .prose-grid { grid-template-columns: minmax(0, 1fr); } }

.package { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.package li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-dark); color: var(--on-ledger); font-size: .95rem; }
.package li span:last-child { color: var(--on-ledger-muted); font-size: .85rem; }

.callout { border-left: 3px solid var(--amber); background: var(--surface); padding: 1rem 1.25rem; color: var(--ink-soft); font-size: .95rem; margin-top: 2rem; max-width: 60ch; }
.page-hero .table-scroll .status-table { min-width: 0; }
.status-table td .status { display: inline-block; margin: 0 .5rem .25rem 0; }
.split .table-scroll .status-table { min-width: 0; }

/* Console mocks (For institutions) */
.mock { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 0; }
.mock-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .6rem; }
.mock-note { padding: .5rem 1.1rem; border-top: 1px solid var(--rule); background: var(--paper); font-size: .75rem; color: var(--slate); }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .75rem; padding: .7rem .8rem; border: 1px solid var(--rule-soft); border-radius: var(--radius-sm); font-size: .9rem; }
.rule .k { font-family: var(--mono); font-size: .75rem; color: var(--slate); padding-top: .15rem; }
.rule .v { color: var(--ink); }
.rule .v b { font-weight: 600; }
.pill { display: inline-block; font-family: var(--mono); font-size: .75rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: .05rem .4rem; margin: .1rem .15rem .1rem 0; }

.readout { display: grid; gap: .9rem; }
.variant { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3.5rem; gap: .75rem; align-items: center; font-size: .9rem; }
.variant .bar { height: .7rem; background: var(--rule-soft); border-radius: 1px; position: relative; overflow: hidden; }
.variant .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-soft); }
.variant span:last-child { font-family: var(--mono); text-align: right; }
.verdict { font-size: .85rem; color: var(--amber); border-top: 1px solid var(--rule-soft); padding-top: .75rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1rem minmax(0, 1fr); gap: .75rem; font-size: .9rem; }
.timeline time { font-family: var(--mono); font-size: .8rem; color: var(--slate); padding-top: .05rem; }
.timeline .dot { position: relative; }
.timeline .dot::before { content: ""; position: absolute; left: 50%; top: .4rem; width: .55rem; height: .55rem; margin-left: -.275rem; border-radius: 50%; background: var(--ink-soft); }
.timeline .dot::after { content: ""; position: absolute; left: 50%; top: 1rem; bottom: -.4rem; width: 1px; background: var(--rule); }
.timeline li:last-child .dot::after { display: none; }
.timeline li:last-child .dot::before { background: var(--green); }
.timeline p { padding-bottom: 1rem; }

.funnel { width: 100%; border-collapse: collapse; font-size: .875rem; }
.funnel th, .funnel td { padding: .55rem .5rem; border-bottom: 1px solid var(--rule-soft); text-align: right; white-space: nowrap; }
.funnel th:first-child, .funnel td:first-child { text-align: left; white-space: normal; }
.funnel thead th { font-family: var(--mono); font-weight: 500; font-size: .75rem; color: var(--slate); }
.funnel td { font-family: var(--mono); }
.funnel td:first-child { font-family: var(--sans); }
.funnel td.funded { color: var(--green); font-weight: 600; }

.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps-row li { padding: 1.1rem 1.25rem 0 0; }
.steps-row .n { font-family: var(--mono); font-size: .8rem; color: var(--slate); display: block; margin-bottom: .5rem; }
.steps-row h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps-row p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; } }
@media (max-width: 460px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 2.5rem; }
.tabs button { font: 600 .95rem var(--sans); padding: .7rem 1.2rem; background: var(--surface); color: var(--ink); border: 0; cursor: pointer; }
.tabs button + button { border-left: 1.5px solid var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ledger); color: var(--surface); }
[role="tabpanel"][hidden] { display: none; }
.tier .for { font-size: .85rem; color: var(--slate); }
.tier .btn { align-self: flex-start; margin-top: .5rem; }
.compare { min-width: 42rem; }
.compare td { text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 500; }
.compare .group th { font-family: var(--mono); font-size: .8rem; font-weight: 600; background: var(--paper); color: var(--ink); padding-top: 1.1rem; }
.compare .yes { color: var(--green); font-weight: 600; }
.compare .no { color: var(--slate); }
.table-scroll, .ledger-scroll { position: relative; }

/* Calculators catalog */
.families { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.families button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: .35rem; width: 100%; height: 100%; padding: 1.1rem 1.15rem 1.25rem; background: var(--surface); cursor: pointer; }
.families button:hover { background: var(--paper); }
.families button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.families b { font-family: var(--mono); font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: .5rem; }
.families b span { font-weight: 400; font-size: .8rem; color: var(--slate); }
.families small { color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
@media (max-width: 960px) { .families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .families { grid-template-columns: minmax(0, 1fr); } }

.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 1rem; align-items: end; margin-bottom: 1.25rem; }
.catalog-controls .field input, .catalog-controls .field select { background: var(--surface); }
@media (max-width: 620px) { .catalog-controls { grid-template-columns: minmax(0, 1fr); } }
.catalog-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: var(--step--1); color: var(--slate); margin-bottom: .75rem; }
.catalog-status button { font: 500 .875rem var(--sans); color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.catalog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.catalog li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: .35rem 1.5rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.catalog h3 { font-size: 1rem; }
.catalog .fam { display: block; font-family: var(--mono); font-size: .75rem; color: var(--slate); margin-top: .2rem; }
.catalog p { color: var(--ink-soft); font-size: .95rem; }
.catalog .actions { display: flex; gap: 1.25rem; font-size: .9rem; white-space: nowrap; }
.catalog .actions a:first-child { font-weight: 600; }
.catalog-empty { padding: 2rem 0; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .catalog li { grid-template-columns: minmax(0, 1fr); } }
.families li:last-child { grid-column: span 3; }
@media (max-width: 960px) { .families li:last-child { grid-column: span 3; } }
@media (max-width: 700px) { .families li:last-child { grid-column: span 2; } }
@media (max-width: 440px) { .families li:last-child { grid-column: auto; } }
.cta-band { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--on-ledger-muted); }

/* Developers */
.code { background: var(--ledger); color: var(--on-ledger); border-radius: var(--radius); overflow: hidden; }
.code [role="tablist"] { display: flex; border-bottom: 1px solid var(--rule-dark); }
.code [role="tab"] { font: 500 .85rem var(--mono); color: var(--on-ledger-muted); background: transparent; border: 0; border-right: 1px solid var(--rule-dark); padding: .65rem 1rem; cursor: pointer; }
.code [role="tab"][aria-selected="true"] { color: var(--on-ledger); background: var(--ledger-2); box-shadow: inset 0 -2px 0 var(--signal); }
.code pre { margin: 0; padding: 1rem 1.1rem 1.2rem; overflow-x: auto; font: .8rem/1.7 var(--mono); }
.code .k { color: var(--signal); } .code .s { color: var(--amber-dark); } .code .c { color: var(--on-ledger-muted); }
.code-foot { padding: .5rem 1.1rem; border-top: 1px solid var(--rule-dark); font-size: .75rem; color: var(--on-ledger-muted); }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.pipeline li { padding: 1.25rem 1.1rem 1.4rem; border-right: 1px solid var(--rule); position: relative; }
.pipeline li:last-child { border-right: 0; background: var(--mint); }
.pipeline .n { font-family: var(--mono); font-size: .75rem; color: var(--slate); display: block; margin-bottom: .6rem; }
.pipeline h3 { font-size: .98rem; margin-bottom: .4rem; }
.pipeline p { font-size: .88rem; color: var(--ink-soft); }
.pipeline code { font-family: var(--mono); font-size: .8rem; background: var(--paper); border: 1px solid var(--rule-soft); padding: 0 .25rem; border-radius: 2px; }
@media (max-width: 960px) { .pipeline { grid-template-columns: minmax(0, 1fr); } .pipeline li { border-right: 0; border-bottom: 1px solid var(--rule); } .pipeline li:last-child { border-bottom: 0; } }

/* Utilities (replace inline styles so the Content Security Policy can forbid them) */
.u-m-0 { margin: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mb-s { margin-bottom: 1rem !important; }
.u-mb-m { margin-bottom: 1.5rem !important; }
.u-mt-xs { margin-top: .75rem !important; }
.u-mt-s { margin-top: 1rem !important; }
.u-mt-1-25 { margin-top: 1.25rem !important; }
.u-mt-m { margin-top: 1.5rem !important; }
.u-mt-2 { margin-top: 2rem !important; }
.u-mt-l { margin-top: 2.5rem !important; }
.u-mt-xl { margin-top: 4rem !important; }
.u-note { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }
.u-small-muted { font-size: .85rem; color: var(--ink-soft); }
.u-muted { color: var(--ink-soft); }
.u-text-base { font-size: 1rem !important; }
.u-mono { font-family: var(--mono); }
.u-block { display: block; }
.u-items-center { align-items: center !important; }
.u-no-border { border-bottom: 0 !important; }
.variant .bar i.u-w-64 { width: 64%; }
.variant .bar i.u-w-57 { width: 57%; }

/* ---------- Homepage motif: slider tracks (body.motif-slider) ----------
   Each section heading gets a small decorative slider underneath, like a
   calculator input. The handle moves further along with each section, as if
   the reader is adjusting inputs on the way to a result; the last one is full.
   Drawn with backgrounds on a pseudo-element: no extra markup, hidden from
   assistive technology. */
.motif-slider .head h2::after,
.motif-slider .preview-copy h2::after {
  --track: var(--rule); --fill: var(--green); --knob: var(--surface);
  content: ""; display: block; width: 9.5rem; height: 18px; margin-top: 1rem;
  background:
    radial-gradient(circle at var(--pos, 50%) 50%, var(--knob) 0 3.5px, var(--fill) 4px 8px, transparent 8.5px),
    linear-gradient(to right, var(--fill) var(--pos, 50%), var(--track) var(--pos, 50%)) center / 100% 4px no-repeat;
  border-radius: 2px;
}
.motif-slider .on-deep .head h2::after,
.motif-slider .on-deep .preview-copy h2::after { --track: var(--rule-dark); --fill: var(--signal); --knob: var(--ledger); }
.motif-slider main > .section:nth-of-type(2) { --pos: 8%; }
.motif-slider main > .section:nth-of-type(3) { --pos: 16%; }
.motif-slider main > .section:nth-of-type(4) { --pos: 25%; }
.motif-slider main > .section:nth-of-type(5) { --pos: 33%; }
.motif-slider main > .section:nth-of-type(6) { --pos: 42%; }
.motif-slider main > .section:nth-of-type(7) { --pos: 50%; }
.motif-slider main > .section:nth-of-type(8) { --pos: 58%; }
.motif-slider main > .section:nth-of-type(9) { --pos: 67%; }
.motif-slider main > .section:nth-of-type(10) { --pos: 75%; }
.motif-slider main > .section:nth-of-type(11) { --pos: 84%; }
.motif-slider main > .section:nth-of-type(12) { --pos: 92%; }
.footer-contact { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.footer-contact a { display: inline-block; padding: .15rem 0; }
.status-score { color: var(--green-deep); border-color: var(--mint-rule); background: var(--mint); }

/* Audience cards (Who we serve) */
.audiences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.audiences li { background: var(--surface); padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.audiences h3 { font-size: 1.15rem; }
.audiences p { color: var(--ink-soft); font-size: .95rem; }
.audiences .who { font-family: var(--mono); font-size: .75rem; color: var(--slate); }
.audiences a { font-weight: 600; margin-top: auto; padding-top: .5rem; }
@media (max-width: 720px) { .audiences { grid-template-columns: minmax(0, 1fr); } }

/* Segment switcher */
.segments { display: flex; flex-wrap: wrap; gap: .5rem; }
.segments a { font: 500 .9rem var(--sans); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .9rem; text-decoration: none; }
.segments a:hover { color: var(--ink); border-color: var(--slate); }
.segments a[aria-current="page"] { background: var(--ledger); color: var(--surface); border-color: var(--ledger); }

/* Logo wall grouped by segment */
.logo-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.logo-group h3 { font-size: .95rem; margin-bottom: .75rem; }
.logo-group .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logo-group .logos div { height: 4rem; }
@media (max-width: 760px) { .logo-groups { grid-template-columns: minmax(0, 1fr); } }
.segment-bar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.segment-bar .wrap { padding-top: .9rem; padding-bottom: .9rem; overflow-x: auto; }
.segment-bar .segments { flex-wrap: nowrap; }

/* ---------- Modern surface components ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem; font: 600 .75rem/1 var(--mono);
  letter-spacing: .02em; color: var(--green-deep); background: var(--mint);
  border: 1px solid var(--mint-rule); border-radius: 999px; padding: .4rem .75rem; margin-bottom: 1rem;
}
.on-deep .pill { color: var(--signal); background: rgba(62, 196, 130, .12); border-color: var(--signal-rule); }
.section-tint { background: var(--paper); }
.section-mint { background: var(--mint); }
.section.section-tint + .section, .section.section-mint + .section { border-top: 0; }
.section-tint + .section-tint, .section-mint + .section-mint { border-top: 1px solid var(--rule); }

.head-center { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.head-center p { margin-inline: auto; }

.card {
  background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); } }

.step-card .num {
  font: 700 .8rem/1 var(--mono); color: var(--green-deep); background: var(--mint);
  border-radius: 999px; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; margin-bottom: 1rem;
}
.step-card.is-last { background: var(--green); border-color: var(--green); }
.step-card.is-last h3, .step-card.is-last p { color: var(--surface); }
.step-card.is-last p { color: var(--paper); }   /* Mint on Green is 4.32:1 */
.step-card.is-last .num { background: var(--surface); color: var(--green-deep); }

/* Logo strip */
.logo-strip { text-align: center; padding: 2.5rem 0; }
.logo-strip p { color: var(--slate); font-size: .85rem; margin: 0 auto 1.25rem; }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.logo-strip li {
  font: 500 .8rem var(--mono); color: var(--slate); background: var(--surface);
  border: 1px dashed var(--rule); border-radius: var(--radius-sm); padding: .9rem 1.6rem;
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.quote { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; font-size: 1rem; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote .avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; font: 700 .8rem var(--mono); }
.quote .who { font-size: .85rem; color: var(--ink-soft); }
.quote .who b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero product demo (phone-framed calculator) ---------- */
.demo-stage { position: relative; width: min(20rem, 100%); margin-inline: auto 0; }
.phone {
  position: relative; width: 100%; background: var(--surface);
  border: 10px solid var(--ledger); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden;
}
.calc { padding: 1.1rem 1.1rem 1.25rem; display: grid; gap: .9rem; }
.calc-top { display: flex; justify-content: space-between; align-items: center; font: 500 .75rem var(--mono); color: var(--slate); }
.calc-top .brand { color: var(--ink); background: var(--mint); border-radius: 999px; padding: .2rem .55rem; }
.calc-result { background: var(--mint); border-radius: var(--radius); padding: 1rem 1.1rem; }
.calc-result .label { font-size: .75rem; color: var(--ink-soft); }
.calc-result .amount { font: 800 2rem/1.1 var(--display); letter-spacing: -.03em; margin: .2rem 0 .15rem; }
.calc-result .sub { font: 500 .72rem var(--mono); color: var(--ink-soft); }
.calc-field { display: grid; gap: .35rem; }
.calc-field .row { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--ink-soft); }
.calc-field .row b { font: 600 .95rem var(--mono); color: var(--ink); }
.calc input[type="range"] { width: 100%; accent-color: var(--green); height: 1.5rem; }
.seg { display: flex; gap: .35rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .2rem; }
.seg label { flex: 1; text-align: center; font-size: .8rem; padding: .4rem .5rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label { background: var(--ledger); color: var(--surface); font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-cta { display: grid; gap: .5rem; }
.calc-cta .primary { background: var(--green); color: var(--surface); border-radius: var(--radius-sm); padding: .65rem; text-align: center; font-weight: 600; font-size: .9rem; }
.calc-officer { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .5rem .6rem; }
.calc-officer .avatar { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; font: 700 .7rem var(--mono); }
.calc-officer span { font-size: .8rem; line-height: 1.25; }
.calc-officer span small { display: block; color: var(--slate); font-size: .7rem; }
.calc-note { font: 500 .68rem var(--mono); color: var(--slate); text-align: center; }

.float {
  position: absolute; background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: .65rem .8rem; width: 11.5rem;
  display: flex; gap: .6rem; align-items: flex-start;
}
.float .tick { color: var(--green); font-size: .9rem; line-height: 1.2; }
.float b { display: block; font-size: .8rem; }
.float small { color: var(--slate); font-size: .72rem; line-height: 1.3; display: block; }
.float-1 { top: 7%; left: -10.5rem; }
.float-2 { top: 44%; right: -7.5rem; }
.float-3 { bottom: 9%; left: -11rem; }
@media (max-width: 1180px) { .float-1, .float-3 { left: -8rem; } .float-2 { right: -4rem; } }
@media (max-width: 980px) {
  .float { position: static; width: auto; }
  .demo-stage { flex-direction: column; align-items: center; gap: .75rem; }
  .demo-floats { display: grid; gap: .75rem; width: min(20rem, 100%); }
}
@media (min-width: 981px) { .demo-floats { display: contents; } }
.calc-result .amount .per { font-size: 1rem; font-weight: 700; }
.calc-result .amount { margin: .2rem 0 .15rem; }

/* Restyled homepage blocks */
.gap { border: 0; background: transparent; gap: 1.25rem; grid-template-columns: 1fr 1.25fr; }
.gap > div { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.75rem; }
.gap .typical { background: var(--paper); border-right: 1px solid var(--rule-soft); box-shadow: none; }
@media (max-width: 760px) { .gap { grid-template-columns: minmax(0, 1fr); } .gap .typical { border-right: 1px solid var(--rule-soft); } }

.journey.cards { border: 0; border-left: 0; border-top: 0; }
.journey.cards li { border: 1px solid var(--rule-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.journey.cards li p { color: var(--ink-soft); }
.journey.cards li.is-last p { color: var(--paper); }   /* Mint on Green is 4.32:1 */

.demos { gap: 1.25rem; background: transparent; border: 0; }
.demo { border: 1px solid var(--rule-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.integrations { border: 0; background: transparent; gap: 1rem; }
.integration { border: 1px solid var(--rule-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.integration:last-child { background: var(--mint); border-color: var(--mint-rule); }
@media (min-width: 961px) { .integration { border-right: 1px solid var(--rule-soft); } }

.on-deep .trust-grid > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: 1.4rem; }
.trust-grid { gap: 1rem; }
.tiers .tier, .engine-flow, .logos div, .manifest, .mock, .snippet, .ledger, .code { border-radius: var(--radius); }
.tier { box-shadow: var(--shadow-sm); }
.section-surface { background: var(--surface); }
.head-center h2::after { margin-inline: auto; }
/* Family tiles: card grid that works with any number of families */
.families { background: transparent; border: 0; gap: 1rem; }
.families li { border: 1px solid var(--rule-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.families li:last-child { grid-column: auto; }
.families button { border-radius: var(--radius); }
