/* ==========================================================================
   Reliever website v2 — shared shell stylesheet
   Tokens, type scale, layout, buttons, eyebrows, cards, nav, footer, reveal.
   Per-page rules live in /css/<page>.css and load AFTER this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --paper: #ffffff;
  --field: #fafafa;
  --hairline: #e8e8e8;
  --line-strong: #c9c9c9;
  --ink: #111111;

  /* type */
  --muted: #6b6b6b;
  /* SPEC names #8A8A8A for `faint`; at the 10.5–13px sizes this build uses it
     that is 3.45:1 and fails AA, so the token is set to the darkest value that
     clears 4.5:1 on both paper and field (4.74:1 / 4.54:1). */
  --faint: #737373;

  /* accents (takeovers and marks only — never body text) */
  --purple: #7030b0;
  /* Adoption Purple lifted for display type on ink: #7030B0 on #111111 is
     2.0:1 and fails AA even at display size, so the pinned chapters' second
     line uses the same hue at 5.4:1. Nothing else uses it. */
  --purple-lift: #a56fe0;
  --orange: #f0600f;

  /* status */
  --good: #1f7a3d;
  --good-soft: #eef5ef;
  /* warn darkened from SPEC #9C6B0A (4.17:1 on its soft ground) to clear AA */
  --warn: #845a07;
  --warn-soft: #f8f2e7;
  --crit: #b23a2e;
  --crit-soft: #fbedeb;

  /* radii */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --pill: 999px;

  /* rhythm */
  --maxw: 1160px;
  --gutter: 24px;
  --section-pad: clamp(72px, 9vw, 140px);

  /* elevation — hairline plus at most one soft float */
  --float: 0 24px 48px rgba(17, 17, 17, 0.06);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Host Grotesk",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  display: block;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-ink :focus-visible,
.section--ink :focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: 840px;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 84px);
}
.section--paper {
  background: var(--paper);
}
.section--field {
  background: var(--field);
}
.section--ink {
  background: var(--ink);
  color: #ffffff;
}
.section--orange {
  background: var(--orange);
  color: var(--ink);
}

.section--ink .lede,
.section--ink .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* 12-column desktop grid, available to every page */
.grid12 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   4. Type scale
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.42em;
  flex: none;
  background: var(--purple);
}
.eyebrow--center {
  justify-content: center;
}
.section--ink .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}
.section--orange .eyebrow {
  color: rgba(17, 17, 17, 0.72);
}
.section--orange .eyebrow::before {
  background: var(--ink);
}

.h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0;
  text-wrap: balance;
}
.h2--center {
  margin-inline: auto;
}

.h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
}

.h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin: 16px 0 0;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
  margin: 16px 0 0;
}
.small {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--faint);
}
.note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

.section-head {
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head--center {
  text-align: center;
}
.section-head--center .lede,
.section-head--center .section-sub {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.003em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 44px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: var(--ink);
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}
.btn--solid {
  background: var(--ink);
  color: #ffffff;
}
.btn--solid:hover {
  background: #000000;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--sm {
  padding: 10px 18px;
  min-height: 38px;
  font-size: 13.5px;
}
.btn--full {
  width: 100%;
}

.on-ink .btn--solid,
.section--ink .btn--solid {
  background: #ffffff;
  color: var(--ink);
}
.on-ink .btn--solid:hover,
.section--ink .btn--solid:hover {
  background: #ededed;
}
.on-ink .btn--ghost,
.section--ink .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.on-ink .btn--ghost:hover,
.section--ink .btn--ghost:hover {
  border-color: #ffffff;
}

/* text link with an arrow */
.btn--text,
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 140ms ease;
}
.arrow-link:hover,
.btn--text:hover {
  color: var(--ink);
}
.on-ink .arrow-link,
.section--ink .arrow-link {
  color: rgba(255, 255, 255, 0.78);
}
.on-ink .arrow-link:hover,
.section--ink .arrow-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Cards and chips
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.2vw, 28px);
}
.card--field {
  background: var(--field);
}

/* the big rounded field card that holds a product mock */
.field-card {
  background: var(--field);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 32px);
}

/* a floating paper card — the only element allowed the soft shadow */
.float-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: var(--float);
}

.section--ink .card {
  background: #161616;
  border-color: #262626;
  color: #ffffff;
}
.section--ink .card .small,
.section--ink .card .note {
  color: rgba(255, 255, 255, 0.58);
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: var(--pill);
  white-space: nowrap;
  flex: none;
}
.status--good {
  background: var(--good-soft);
  color: var(--good);
}
.status--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.status--neutral {
  background: #efefef;
  color: var(--muted);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--pill);
  background: #efefef;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.avatar--purple {
  background: var(--purple);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
  padding-block: 12px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
/* the logo PNG carries its own trademark mark (H1: no second one in type) */
.nav__logo {
  width: 132px;
  height: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 140ms ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
}
.nav__spacer {
  flex: 1;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__login {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 12px;
  transition: color 140ms ease;
}
.nav__login:hover {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle-bars {
  display: block;
  width: 18px;
  height: 10px;
  position: relative;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
}
.nav__toggle-bars::before {
  top: 0;
}
.nav__toggle-bars::after {
  bottom: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

.nav__panel {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 39;
  background: var(--paper);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
}
.nav__panel a.nav__panel-link {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav__panel .btn {
  margin-top: 24px;
}
.nav__panel-login {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 18px 0;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__right {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__panel.is-open {
    display: flex;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   8. Footer (v4: H2 to H4)
   One row that mirrors the header: brand on the left; the four header links,
   Log In and a solid Get Started pill on the right. No Home link, no
   sub-link columns. Phones stack it: brand, a ruled link list, then Log In
   and Get Started as two equal pills.
   -------------------------------------------------------------------------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(56px, 6vw, 88px) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px 64px;
}
.footer__brand-logo {
  width: 160px;
  height: auto;
}
.footer__desc {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 31ch;
}
.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 32px;
  /* centres the row on the logo's cap height rather than on the brand block */
  margin-top: -8px;
}
.footer__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer__nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  transition: color 140ms ease;
}
.footer__nav a:hover {
  color: var(--purple);
}
.footer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
}
.footer__login {
  padding-inline: 14px;
  color: var(--muted);
}
.footer__login:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--faint);
}
.footer__copy img {
  width: 96px;
  height: auto;
}
.footer__legal {
  font-size: 12.5px;
  color: var(--faint);
  text-decoration: none;
}
.footer__legal:hover,
.footer__legal:focus-visible {
  color: var(--ink);
}
.footer__socials {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  color: var(--muted);
  transition:
    color 140ms ease,
    border-color 140ms ease;
}
.footer__socials a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.footer__socials svg {
  width: 17px;
  height: 17px;
}

/* tablet: the link row drops under the brand and runs the full measure */
@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__links {
    justify-content: space-between;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
  }
}

/* phone: a ruled list you can hit with a thumb, then two equal pills */
@media (max-width: 640px) {
  .footer__links {
    display: block;
    padding-top: 0;
  }
  .footer__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .footer__nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--hairline);
  }
  .footer__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    padding-left: 0;
    border-left: 0;
  }
  .footer__login {
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .footer__login:hover {
    border-color: var(--ink);
  }
  .footer__actions .btn {
    min-height: 48px;
  }
}

/* --------------------------------------------------------------------------
   9. Page-level shared blocks
   Used by two or more pages; page files only carry their deltas.
   -------------------------------------------------------------------------- */

/* --- page head (Solutions, Who We Serve) -------------------------------- */
.page-head {
  background: var(--paper);
  /* top air is the standard section rhythm so every inner page opens at the
     same height; the bottom is tighter because the next section adds its own */
  padding-block: var(--section-pad) clamp(32px, 4vw, 56px);
}
.page-head h1 {
  max-width: 16ch;
}
.page-head__lede {
  max-width: 52ch;
  margin-top: 22px;
  font-size: 18px;
}

/* Desktop: headline left, lede parked at the right of the measure and
   bottom-aligned with it, so the head fills the page instead of hanging
   off the left edge. */
@media (min-width: 901px) {
  .page-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: end;
  }
  .page-head__inner > .eyebrow {
    grid-column: 1 / -1;
  }
  .page-head__lede {
    margin-top: 0;
    padding-bottom: 0.5em;
  }
}

/* --- closing band (every page, partials/closing.html; H5, Q7) -------------
   Pure #000000, the prism images' own black, so the image has no edge. The
   v3 sheet stack still hangs into the top of the band; its sheets take the
   ground of whichever section sits above, so the seam never shows.        */
.closing {
  position: relative;
  overflow: hidden;
  background: #000000;
  text-align: center;
  padding-block: clamp(80px, 7.5vw, 112px) clamp(72px, 7vw, 104px);
}
.closing > .wrap {
  position: relative;
  z-index: 2;
}
.closing__prism {
  width: min(620px, 86vw);
  height: auto;
  margin: 0 auto;
  /* the source JPEGs carry one grey column on their right edge; trim it so
     the image meets the band with no visible line */
  clip-path: inset(0 0.5% 0 0);
}
/* the pill tucks up into the prism's own black margin, so it reads as part
   of the mark rather than a separate row */
.closing__cta {
  position: relative;
  margin-top: calc(min(620px, 86vw) * -0.065);
}
.section--field + .closing .sheet {
  background: var(--field);
}
.section--ink + .closing .sheet {
  background: var(--ink);
  border-bottom-color: #262626;
}

/* --- sports (partials/sports.html) ------------------------------------------
   v5 (V10): the labeled strip is gone; the statement and its glyph field
   are Home only and styled in css/home.css (.sport-field).               */

/* --- scheduler embed (js/scheduler.js; GS3) --------------------------------
   The HubSpot meetings frame, created inside [data-scheduler-embed] only
   after a successful submit. A hairline field card holds it; the plain
   "Open the calendar" link below it always stays visible.               */
.scheduler-embed {
  position: relative;
  margin-top: 24px;
  background: var(--field);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: hidden;
}
/* the card's own ground shows until HubSpot paints over it */
.scheduler-embed::before {
  content: "Loading the calendar";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: var(--faint);
}
.scheduler-embed.is-loaded::before {
  content: none;
}
.scheduler-embed__frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: transparent;
}
.scheduler-embed__fallback {
  margin-top: 8px;
  text-align: center;
}
/* phone: HubSpot's month grid clips below ~320px, which any slot inside card
   padding falls under, so the frame breaks out to the full viewport width
   (the slot's column must be centred, as every phone layout here is) */
@media (max-width: 599px) {
  .scheduler-embed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    border-inline: 0;
  }
  .scheduler-embed__frame {
    min-height: 900px;
  }
}

/* --- a section head that is only its eyebrow label (Our Story, Pricing) -- */
.section-head--label {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head--label .eyebrow {
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   10. Product mocks (viz-*)
   One definition serves Home (inside the tab panel) and Solutions (inside a
   chapter card). The ground and the inner chip tone are the only things that
   flip between the two, so they are variables: Solutions sets the mock on
   paper with field-toned chips, Home does the reverse.
   -------------------------------------------------------------------------- */
.viz {
  --viz-ground: var(--field);
  --viz-inner: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--viz-ground);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px) 24px;
  min-height: 272px;
}

/* banking — the team card face */
.viz-card {
  width: 100%;
  max-width: 272px;
  aspect-ratio: 1.586;
  background: var(--ink);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}
.viz-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.viz-card__mark {
  width: 30px;
  height: auto;
}
.viz-card__chip {
  width: 30px;
  height: 22px;
  border-radius: 4px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.viz-card__num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.viz-card__foot {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.viz-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.viz-balance em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* bookkeeping — ledger rows */
.viz-ledger {
  width: 100%;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
}
.viz-ledger div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.viz-ledger div:last-child {
  border-bottom: 0;
}
.viz-ledger b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* compliance — calendar strip */
.viz-cal {
  display: flex;
  gap: 6px;
}
.viz-cal span {
  width: 40px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
}
.viz-cal span.is-hot {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.viz-callout {
  text-align: center;
}
.viz-callout b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.viz-callout span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* vendor — document stack */
.viz-docs {
  position: relative;
  width: 160px;
  height: 152px;
}
.viz-doc {
  position: absolute;
  width: 106px;
  height: 132px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.viz-doc--back {
  right: 0;
  top: 0;
  transform: rotate(6deg);
}
.viz-doc--front {
  left: 0;
  top: 14px;
  background: var(--paper);
}
.viz-check {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 32px;
  height: 32px;
  border-radius: var(--pill);
  background: var(--good-soft);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.viz-check svg {
  width: 15px;
  height: 15px;
}

/* reconciliation — ring */
.viz-ring {
  position: relative;
  width: 152px;
  height: 152px;
}
.viz-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.viz-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* handoff — checklist */
.viz-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.viz-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 13.5px;
  color: var(--muted);
}
.viz-list i {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
}
.viz-list .is-done i {
  background: var(--good);
  border-color: var(--good);
}
.viz-list .is-done {
  color: var(--ink);
}

/* dashboard — per-team rollup */
.viz-rollup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.viz-rollup > div {
  display: grid;
  grid-template-columns: 1fr 70px auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.viz-rollup .track {
  height: 5px;
  background: #ededed;
  border-radius: var(--pill);
  overflow: hidden;
}
.viz-rollup .track i {
  display: block;
  height: 100%;
  background: var(--ink);
}
.viz-rollup b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Reveal states (observer adds .is-in, once)
   -------------------------------------------------------------------------- */
/* Hidden only when JS is present (the `js` class is set inline in <head>),
   so a no-JS visit renders every section at its final state. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease);
  will-change: auto;
}

/* --------------------------------------------------------------------------
   12. Reduced motion — final states, nothing moves
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. Cross-document view transition (v3)
   Feature-detected by definition: browsers without the rule ignore it, and
   it is switched off entirely when the visitor asks for reduced motion.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 240ms;
    animation-timing-function: var(--ease);
  }
}

/* the eyebrow square on an ink chapter, lifted with the display purple */
.chapter .eyebrow::before {
  background: var(--purple-lift);
}
