/* ==========================================================================
   Reclaim — site design system
   Paper and ink: warm paper for the light sections, a green-black ink for the
   dark ones, a grotesk for display type (Schibsted Grotesk), Geist for text,
   Geist Mono for figures and labels. Two signal colours with fixed meanings: vermillion
   (--cl-leak) marks money leaking out, the accent (--cl-reclaim) marks money
   coming back.
   ========================================================================== */

:root {
  --cl-white: #fcfbf7;         /* paper */
  --cl-black: #08100c;         /* ink */
  --cl-grey-100: #f4f1ea;
  --cl-grey-200: #ebe7de;
  --cl-grey-300: #dedad0;
  --cl-grey-400: #c7c2b7;
  --cl-grey-500: #6b665c;      /* small text on paper and grey-100: 4.5:1 or better */
  --cl-grey-600: #47443e;
  --cl-grey-800: #212a25;
  --cl-grey-900: #121a16;
  --cl-leak: #e5482b;          /* vermillion: the red pencil on a leak */
  --cl-leak-2: #fbe3db;
  --cl-leak-ink: #b3301a;
  --cl-reclaim: #00fd74;       /* bright Reclaim green: money coming back; always ink text on it */
  --cl-green-1: #00fd74;
  --cl-green-2: #d1ffca;
  --cl-pink-1: #ff7ef2;
  --cl-pink-2: #ffd5f8;
  --cl-blue-1: #00d1ff;
  --cl-blue-2: #bef3ff;
  --cl-orange-1: #ff6838;
  --cl-orange-2: #ffe0c4;
  --cl-purple-1: #b874fc;
  --cl-purple-2: #e7cfff;

  --cl-bg1: var(--cl-white);
  --cl-bg2: var(--cl-grey-100);
  --cl-color1: var(--cl-black);
  --cl-color2: var(--cl-black);

  --font-display: 'Schibsted Grotesk', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-caption: 1.2rem;       --leading-caption: 1.6;       --tracking-caption: -.03em;
  --text-body-sm: 1.4rem;       --leading-body-sm: 1.3;       --tracking-body-sm: -.011em;
  --text-body: 1.6rem;          --leading-body: 1.25;
  --text-subheading: 1.8rem;    --leading-subheading: 1.33;
  --text-subheading-lg: 2rem;   --leading-subheading-lg: 1.2;
  --text-heading-sm: 2.8rem;    --leading-heading-sm: 1.3;    --tracking-heading-sm: -.03em;
  --text-heading: 4rem;         --leading-heading: 1.1;       --tracking-heading: -.02em;
  --text-heading-lg: 4.8rem;    --leading-heading-lg: .9;     --tracking-heading-lg: -.03em;
  --text-display: 8rem;         --leading-display: .9;        --tracking-display: -.03em;
  --text-display-xl: 13rem;     --leading-display-xl: .9;     --tracking-display-xl: -.03em;

  --font-weight-regular: 400;
  --font-weight-w450: 450;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --spacing-8: .8rem; --spacing-16: 1.6rem; --spacing-24: 2.4rem; --spacing-40: 4rem;
  --spacing-64: 6.4rem; --spacing-80: 8rem; --spacing-96: 9.6rem;

  --radius-md: .4rem; --radius-lg: .8rem; --radius-xl: 1.2rem; --radius-2xl: 2rem;
  --radius-3xl: 2.4rem; --radius-3xl-2: 3.2rem; --radius-full: 4.8rem; --radius-full-2: 6.4rem; --radius-full-3: 9999px;
  --radius-tags: 6.4rem; --radius-nav-pill: 4.8rem; --radius-large-cards: 6.4rem;

  --f-sans: var(--font-text);
  --f-display: var(--font-display);
  --f-mono: var(--font-mono);
  --w-sans: normal;
  --w-mono: normal;

  --nav-height: 8rem;
  --section-margin: 9.6rem;
  --rounded-margin: 6.4rem;
  --grid-columns: 12;
  --grid-column-gap: 2.4rem;
  --grid-side-margin: 8rem;
  --scrollbar-width: 0px;
  --grid-width: min(calc(100vw - var(--scrollbar-width) - var(--grid-side-margin) * 2), 2560px);
  --grid-column-width: calc((var(--grid-width) - (var(--grid-columns) - 1) * var(--grid-column-gap)) / var(--grid-columns));

  --e-sine-io: cubic-bezier(.445, .05, .55, .95);
  --e-p1-io: cubic-bezier(.455, .03, .515, .955);
  --e-p2-io: cubic-bezier(.645, .045, .355, 1);
  --e-p2-o: cubic-bezier(.215, .61, .355, 1);
  --e-expo-io: cubic-bezier(1, 0, 0, 1);
  --e-out: cubic-bezier(.23, 1, .32, 1);
}

[theme="black"] { --cl-grey-500: #8f8a80; --cl-bg1: var(--cl-black); --cl-bg2: var(--cl-grey-200); --cl-color1: var(--cl-white); --cl-color2: var(--cl-black); }
[theme="grey"]  { --cl-bg1: var(--cl-grey-200); --cl-bg2: var(--cl-white); --cl-color1: var(--cl-black); --cl-color2: var(--cl-black); }
[theme="white"] { --cl-bg1: var(--cl-white); --cl-bg2: var(--cl-grey-100); --cl-color1: var(--cl-black); --cl-color2: var(--cl-black); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; -webkit-tap-highlight-color: transparent; }
html {
  font-size: 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: none;
  background: var(--cl-grey-200);
}
@media (min-width: 1024px) { html { font-size: clamp(5.33333px, .694444vw, 17.7778px); } }
@media (max-width: 1023px) { html { font-size: clamp(8.53333px, 2.66667vw, 11px); } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  font-family: var(--f-sans);
  font-stretch: var(--w-sans);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--cl-black);
  background: var(--cl-grey-200);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; font-stretch: inherit; color: inherit; background: none; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1024px) { .mobile-only { display: none !important; } }
@media (max-width: 1023px) { .desktop-only { display: none !important; } }

/* ---------- grid ---------- */
.the-container { width: var(--grid-width); max-width: 2560px; margin-inline: auto; }
.the-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  column-gap: var(--grid-column-gap);
  width: var(--grid-width);
  max-width: 2560px;
  margin-inline: auto;
}

/* ---------- type ---------- */
/* Display type is a regular-weight grotesk set in sentence case, never shouted (a quiet scale, after Slope and Caret, so the product pictures carry the page). Italic (<em>)
   carries the one phrase in a heading that matters most; use it once per heading, at most. */
.type-h1, .type-h2, .type-h3, .type-h4, .type-quote {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
}
.type-h1 em, .type-h2 em, .type-h3 em, .type-h4 em, .type-quote em { font-style: italic; }
.type-h1, .type-h2, .type-h3 { text-wrap: balance; }   /* no one-word last lines */
.type-h1 { font-size: 6.4rem; line-height: 1; }
.type-h2 { font-size: 4.8rem; line-height: 1.04; }
.type-h3 { font-size: 4rem; line-height: 1.05; }
.type-h4 { font-size: 2.4rem; line-height: 1.15; letter-spacing: -.02em; }
.type-quote { font-size: 4rem; line-height: 1.05; }
.type-body-headline { font-size: 2.8rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.3; }
.type-body-large { font-size: 2rem; font-weight: 400; letter-spacing: normal; line-height: 1.2; }
.type-body-medium { font-size: 1.8rem; font-weight: 500; letter-spacing: normal; line-height: 2.4rem; }
.type-body-small { font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.type-body-xs { font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.type-mono { font-family: var(--f-mono); font-stretch: var(--w-mono); font-size: 1.2rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; font-variant-numeric: tabular-nums; }

/* split headings (lines authored explicitly, like the reference's split-lines) */
/* The mask is padded past the line box (and pulled back by the same margin) so
   descenders and italic overhang are not cut off by the reveal. */
.line-wrap { display: block; width: fit-content; overflow: hidden; padding: .1em .12em .18em 0; margin-block: -.1em -.18em; }
.line { display: block; white-space: nowrap; }   /* (GSAP lifts a line onto its own layer only while it moves) */
.heading1 .line-wrap { margin-bottom: calc(.04em - .18em); }
.heading1 .line-wrap:last-child { margin-bottom: -.18em; }

/* ---------- logo ---------- */
.hx-logo { --h: 2.4rem; display: flex; align-items: center; gap: calc(var(--h) * .28); height: var(--h); color: currentColor; }
.hx-logo .wheel { height: 125%; width: auto; overflow: visible; flex: none; }
.hx-logo .wheel .fill { color: var(--cl-reclaim); }
.hx-logo .word {
  display: flex;
  overflow: hidden;
  font-size: calc(var(--h) * 1.02);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: -.045em;
  line-height: 1;
  padding: .06em .04em .1em 0;
}
.hx-logo .letter { display: inline-block; }

/* ---------- hover-loop (label wrapper; hover is colour only, the label never moves) ---------- */
.hover-loop { position: relative; display: block; overflow: hidden; }
.hover-loop .inner { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }

/* ---------- buttons ---------- */
.cta { position: relative; display: inline-block; white-space: nowrap; }
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, scale .16s var(--e-out);
}
.cta-button:active, .cta-button-square:active { scale: .97; }
.cta-button .inner { padding-inline: 2.4rem; }
.cta-button .icon { width: 1.6rem; height: 1.6rem; margin-left: .8rem; transform: rotate(90deg); }
.cta-button[size="large"] { height: 4.8rem; min-height: 4.8rem; border-radius: 1.2rem; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.cta-button[size="small"] { height: 4rem; min-height: 4rem; border-radius: 1.2rem; font-size: 1.4rem; font-weight: 500; line-height: 1.6rem; }
.cta-button[theme="black"] { background: var(--cl-black); color: var(--cl-white); }
.cta-button[theme="black"].hovering { background: var(--cl-grey-800); }
.cta-button[theme="green"] { background: var(--cl-reclaim); color: var(--cl-black); }
.cta-button[theme="green"].hovering { background: var(--cl-white); color: var(--cl-black); }
.cta-button[theme="white"] { background: var(--cl-white); color: var(--cl-black); }
.cta-button[theme="white"].hovering { background: var(--cl-grey-100); }
.cta-button[theme="grey"] { background: var(--cl-grey-100); color: var(--cl-black); }
.cta-button[theme="grey"].hovering { background: var(--cl-grey-300); }
.cta-button[theme="dark-grey"] { background: var(--cl-grey-800); color: var(--cl-white); }
.cta-button[theme="dark-grey"].hovering { background: var(--cl-black); }
.cta-button[theme="none"] { background: none; border-radius: 0; }
.cta-button[theme="none"] .inner { padding-inline: 0; }

.cta-button-square {
  --size: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  border-radius: 1.2rem;
  transition: background-color .3s ease-in-out, scale .16s var(--e-out);
}
.cta-button-square .inner { width: 100%; }
.cta-button-square[size="medium"] { --size: 4rem; border-radius: 1rem; }
.cta-button-square[theme="black"] { background: var(--cl-black); color: var(--cl-white); }
.cta-button-square[theme="black"].hovering { background: var(--cl-grey-800); }

/* ---------- nav: a plain header bar, full width and sticky (after Slope). Paper, a little translucent over the page;
   a hairline under it once the page scrolls (main.js sets .is-scrolled, and the theme of the section under its middle) ---------- */
.the-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 2000;
  color: var(--cl-black);
  border-bottom: 1px solid transparent;
  background-color: color-mix(in srgb, var(--cl-bg1) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: opacity .1s var(--e-sine-io), color .3s var(--e-sine-io), background-color .3s var(--e-sine-io), border-color .3s var(--e-sine-io);
}
.the-nav[theme="black"] { color: var(--cl-white); }
.the-nav.is-scrolled { border-bottom-color: rgb(8 16 12 / .08); }
.the-nav[theme="black"].is-scrolled { border-bottom-color: rgb(255 255 255 / .1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .the-nav { background-color: var(--cl-bg1); }
}
.the-nav .the-container { position: relative; display: flex; align-items: center; justify-content: space-between; width: var(--grid-width); height: 100%; margin: 0 auto; }
.the-nav .left, .the-nav .center, .the-nav .right { position: relative; display: flex; align-items: center; height: 100%; }
.the-nav .right { gap: .8rem; justify-content: flex-end; }
.the-nav .center { position: absolute; left: 50%; transform: translateX(-50%); }

.nav-bar { display: flex; align-items: center; height: 100%; color: var(--cl-grey-600); }
.nav-bar .group { position: relative; height: 100%; cursor: pointer; transition: color .2s ease-in-out; }
.nav-bar .link { display: flex; align-items: center; justify-content: center; height: 100%; padding-inline: 1.6rem; }
.the-nav .right .nav-login { display: inline-flex; align-items: center; height: 100%; padding-inline: 1.2rem; opacity: .78; transition: opacity .2s ease; }
.the-nav .right .nav-login:hover { opacity: 1; }
@media (max-width: 1023px) { .the-nav .right .nav-login { display: none; } }
.nav-bar .label { position: relative; white-space: nowrap; }
.nav-bar.hovering .group.active { color: var(--cl-black); }
.nav-bar.hovering .group:not(.active) { color: var(--cl-grey-500); }
.the-nav[theme="black"] .nav-bar { color: var(--cl-grey-400); }
.the-nav[theme="black"] .nav-bar.hovering .group.active { color: var(--cl-white); }

/* ---------- mobile menu (≤1023px) ---------- */
.menu-toggle { position: relative; display: none; flex: none; width: 4rem; height: 4rem; border-radius: 1.2rem; background: var(--cl-grey-100); color: var(--cl-black); }
.the-nav[theme="black"] .menu-toggle { background: var(--cl-grey-900); color: var(--cl-white); }
.menu-toggle .bar { position: absolute; left: 50%; top: 50%; width: 1.6rem; height: .15rem; margin: -.075rem 0 0 -.8rem; border-radius: .1rem; background: currentColor; }
.menu-toggle .bar:first-child { transform: translateY(-.3rem); }
.menu-toggle .bar:last-child { transform: translateY(.3rem); }
.mobile-menu { position: fixed; inset: 0; z-index: 2500; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--cl-black); color: var(--cl-white); }
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; flex: none; align-items: center; justify-content: space-between; height: var(--nav-height); padding-inline: var(--grid-side-margin); }
.mm-close { display: block; background: var(--cl-grey-900); color: var(--cl-white); }
.mm-close .bar:first-child { transform: rotate(45deg); }
.mm-close .bar:last-child { transform: rotate(-45deg); }
.mm-list { flex: 1; padding: 1.6rem var(--grid-side-margin) 4rem; }
.mm-item { border-bottom: 1px solid var(--cl-grey-800); }
.mm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 2rem 1.6rem;
  font-family: var(--f-display);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.mm-foot { flex: none; padding: 0 var(--grid-side-margin) calc(2.4rem + env(safe-area-inset-bottom)); }
.mm-foot .cta { display: block; }
.mm-foot .cta-button { width: 100%; }
.mm-foot .mm-login { display: block; margin-top: 1.6rem; text-align: center; opacity: .78; }

/* ---------- intro (green flash + grey panel) ---------- */
.site-in {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 100vw;
  pointer-events: none;
}
.site-in .flash { position: absolute; inset: 0; background: var(--cl-reclaim); }
.site-in .mask { position: absolute; left: 0; top: 0; width: 100%; height: 150vh; background: var(--cl-grey-200); opacity: 0; transform-origin: 50% 50vh; transform-style: preserve-3d; }

/* ---------- sections ---------- */
.page { width: 100%; overflow-x: clip; }
.section {
  position: relative;
  width: 100%;
  padding-block: var(--section-margin);
  background: var(--cl-bg1);
  color: var(--cl-color1);
  clip-path: inset(0);
  overflow-x: clip;
}

.header { grid-column-start: 1; }
.header:has(+ *) { margin-bottom: 6.4rem; }
.header .heading + .desc { margin-top: 4rem; }
.header * + .cta { margin-top: 4rem; }
.header .desc { max-width: calc(var(--grid-column-width) * 5 + var(--grid-column-gap) * 4); color: var(--cl-grey-500); }
.header .desc.type-body-headline { max-width: calc(var(--grid-column-width) * 8 + var(--grid-column-gap) * 7); }
.header[theme="black"] .desc, .header[theme="grey"] .desc { color: currentColor; }
.desc p + p { margin-top: 1.2em; }

/* ---------- hero ---------- */
.hero-home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: -1px;
  padding-block: var(--section-margin);
  padding-top: calc(var(--nav-height) + 6.4rem);
  background: var(--cl-bg1);
  color: var(--cl-color1);
}
.hero-home .clip { position: absolute; inset: 0; z-index: 2; clip-path: inset(0); overflow-x: clip; pointer-events: none; }
.hero-home .content { position: relative; z-index: 1; }
.hero-home .content { align-items: end; }
.hero-home .heading { position: relative; z-index: 1; grid-column: 1 / span 8; }
.hero-home .desc { position: relative; z-index: 1; grid-column: 9 / span 4; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2.4rem; margin-top: 2.4rem; }
.hero-ctas .cta-button[theme="none"] { color: var(--cl-black); }
.hero-ctas .cta-button[theme="none"].hovering { color: var(--cl-grey-600); }
/* the product as the picture: the Recoveries screen, settled, in a window set on a painting (media/art, after cursor.com's
   stages). main.js lays the app out at its desktop width (data-base-width) and scales it to the window */
.hero-app { position: relative; width: var(--grid-width); margin-top: 6.4rem; padding: 7.2rem 8rem; overflow: hidden; border-radius: 1.6rem; background: var(--cl-grey-200) var(--art) center / cover no-repeat; }
.hero-win { aspect-ratio: 1440 / 820; overflow: hidden; border-radius: 1rem; box-shadow: 0 0 0 1px rgb(8 16 12 / .1), 0 2px 6px rgb(8 16 12 / .06), 0 40px 80px -24px rgb(8 16 12 / .38); }
.hero-app [data-state="before"] { display: none !important; }

/* ---------- rounded sections ---------- */
.rounded-section { --radius: 3.2rem; position: relative; isolation: isolate; }
.rounded-section > .bg { position: absolute; left: 0; width: 100%; height: 50%; z-index: -1; }
.rounded-section > .bg-top { top: 0; }
.rounded-section > .bg-bottom { bottom: 0; }
.bg[theme="black"] { background: var(--cl-black); }
.bg[theme="grey"] { background: var(--cl-grey-200); }
.bg[theme="white"] { background: var(--cl-white); }
.rs-scale {
  position: relative;
  overflow: clip;
  background: var(--cl-bg1);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.rounded-section + .rounded-section { margin-top: calc(var(--rounded-margin) * -1); }

/* ---------- content columns ---------- */
.content-columns .columns { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9.6rem; }
.content-column .heading { white-space: pre-line; }
.content-column .desc { margin-top: 1.6rem; }

/* ---------- steps: one finding in five cards, each a crop of the screen it happens on ----------
   Grey cards on the paper, two wide over three narrow. The app is laid out at its desktop width (main.js, data-fit-always)
   and panned by the card: --w is its width against the window, --x and --y move the crop (percent of the app). */
.steps { padding-block: var(--section-margin); }
.st-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem; width: var(--grid-width); margin-inline: auto; }
.st-card { position: relative; display: flex; flex-direction: column; grid-column: span 2; min-height: 52rem; padding: 2.8rem; overflow: hidden; border-radius: 1.6rem; background: var(--cl-grey-100); }
.st-card.is-wide { grid-column: span 3; min-height: 58rem; }
.st-step { color: var(--cl-grey-500); }
.st-text { max-width: 44rem; margin-top: 1.2rem; color: var(--cl-grey-500); font-size: 2rem; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.st-text strong { color: var(--cl-color1); font-weight: 500; }
/* the window sits on its painting (--art, media/art), inset from the top and left and running off the card's corner */
.st-win { position: relative; flex: 1; min-height: 24rem; margin: 3.2rem -2.8rem -2.8rem; overflow: hidden; background: var(--cl-grey-200) var(--art) center / cover no-repeat; }
.st-screen { position: absolute; inset: 4rem 0 0 4rem; overflow: hidden; border-radius: .8rem 0 0 0; background: #fcfbf7; box-shadow: 0 0 0 1px rgb(8 16 12 / .1), 0 24px 48px -16px rgb(8 16 12 / .4); }
.st-screen.is-phone { left: 50%; right: auto; width: min(calc(100% - 8rem), 36rem); translate: -50% 0; border-radius: 1.6rem 1.6rem 0 0; }   /* the approver's phone page, at about its own size */
.st-screen.is-phone .st-pan { top: auto; bottom: 0; }   /* held to the foot, so the decision bar always shows */
.st-pan { position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: var(--ar, 1440 / 956); overflow: hidden; translate: var(--x) var(--y); }   /* out of flow: the card sets the height, not the screen */
.st-card:not(.is-settled) [data-state="after"], .st-card.is-settled [data-state="before"] { display: none !important; }
.st-end { display: flex; flex-wrap: wrap; gap: 1.2rem; width: var(--grid-width); margin: 4rem auto 0; }

/* ---------- what Reclaim finds ----------
   One passage on a grey card, then the four mistakes on the paper under it (each a still of its own with a
   quiet line at its foot, the whole tile a link to how it's caught) and the recovery summary they add up to.
   Static by default (no JS, or reduced motion): the passage is a card above the four. finds.js adds .is-live: the
   card starts full-screen under the steps, the track holds it a moment
   (sticky), and a clip draws it in to the four's width and corners while its words light. */
.finds { position: relative; display: flow-root; padding-bottom: var(--section-margin); background: var(--cl-bg1); color: var(--cl-color1); }
.fd-card { width: var(--grid-width); margin: 1.6rem auto 0; padding: 12rem 0; border-radius: 2.4rem; background: var(--cl-bg1); color: var(--cl-color1); }
.fd-copy { grid-column: 2 / span 10; }
.fd-eyebrow { font: 400 1.3rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--cl-color1) 50%, transparent); }
.fd-text { margin-top: 3.2rem; font: 400 4rem/1.12 var(--f-display); letter-spacing: -.025em; text-wrap: pretty; }
.fd-money { padding: 0 .14em; border-radius: .14em; background: var(--cl-reclaim); color: var(--cl-black); -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* ink on the green, never green type */
.fd-mark { text-decoration: underline var(--cl-leak) .075em; text-underline-offset: .2em; text-decoration-skip-ink: none; }   /* the red pencil under each kind of leak */
.fd-mark.is-soft { text-decoration-color: color-mix(in srgb, var(--cl-color1) 45%, transparent); text-decoration-thickness: .05em; }   /* money not lost, only not saved */
.finds.is-live .fd-track { height: 170vh; height: 170svh; }   /* the screen it fills, and the hold: 70% of one */
.is-live .fd-card { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; width: auto; height: 100vh; height: 100svh; margin: 0; padding: 4.8rem 0 0; border-radius: 0; }   /* (the padding: centred in the card it becomes, under the nav) */

/* the four: each mistake as it shows in the ledger, the rows that give it away, the line under it */
.fd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; width: var(--grid-width); margin: 1.6rem auto 0; padding: 0; list-style: none; }
.is-live .fd-tiles { margin-top: 0; }   /* the card's own clip leaves the gap */
.fd-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 3.2rem; height: 100%; padding: 3.2rem; border: 1px solid #e6e2d9; border-radius: 2.4rem; background: #fff; color: var(--cl-black); transition: scale .16s var(--e-out), border-color .2s; }
.fd-tile:active { scale: .98; }   /* pressed: it gives a little */
@media (hover: hover) and (pointer: fine) { .fd-tile:hover { border-color: #cfc9bc; } }
.fd-rec { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem; border-radius: 1.6rem; background: var(--cl-grey-100, #f4f3ef); font: 400 1.4rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.fd-rec-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .8rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 1rem; background: #fff; }
.fd-rec-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-rec-row > span:last-child { text-align: right; }
.fd-rec-head { padding-block: .4rem; background: none; color: var(--cl-grey-500); font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.fd-rec-row .is-match { justify-self: start; padding: .2rem .6rem; margin: -.2rem -.6rem; border-radius: .6rem; background: #dcf7e6; color: #0c5a2c; }
.fd-rec-row .is-flag { justify-self: end; padding: .2rem .6rem; margin: -.2rem -.6rem; border-radius: .6rem; background: #fde4dc; color: #8a2a10; }
.fd-rec-row > span:last-child.is-match { justify-self: end; }
.fd-rec-note { padding: .8rem 1.2rem .2rem; color: var(--cl-grey-600, #555); font: 400 1.3rem/1.3 var(--f-sans); }
.fd-cap { display: flex; flex-direction: column; gap: .6rem; }
.fd-title { font: 500 2.2rem/1.2 var(--f-sans); letter-spacing: -.02em; }
.fd-meta { font: 400 1.2rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cl-grey-500); }
.fd-tile:focus-visible { outline: 2px solid var(--cl-black); outline-offset: 3px; }
.finds .ex-close { margin-top: 14rem; }

/* the close: the line on the left, the four put right as one recovery summary on the right, adding up to the total */
.ex-close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: center; width: var(--grid-width); margin-inline: auto; }
.ex-close-eyebrow { font: 400 1.3rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cl-grey-500); }
.ex-close-title { margin-top: 2rem; font: 400 4.8rem/1.04 var(--f-display); letter-spacing: -.03em; }
.ex-close-desc { max-width: 46rem; margin-top: 2.4rem; color: var(--cl-grey-500); }
.ex-ctas { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3.6rem; }
.ex-sum { padding: 1.2rem; border: 1px solid #e6e2d9; border-radius: 2.8rem; background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / .02), 0 24px 48px -32px rgb(20 26 22 / .28); color: var(--cl-black); font-family: var(--f-sans); }
.ex-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.6rem 1.6rem 1.8rem; }
.ex-sum-head h3 { font: 600 2.2rem/1 var(--f-sans); letter-spacing: -.03em; }
.ex-sum-all, .ex-sum-state { display: inline-flex; align-items: center; gap: .6rem; height: 3rem; padding: 0 1.2rem; border-radius: 99rem; font: 500 1.3rem/1 var(--f-sans); white-space: nowrap; }
.ex-sum-all { background: #dcf7e6; color: #0c5a2c; }
.ex-sum-all i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--cl-reclaim); }
.ex-sum-rows { margin: 0; padding: 0; list-style: none; }
.ex-sum-row { --tint: #d6f5e2; --ink: #0c3a23; display: grid; grid-template-columns: minmax(0, 1fr) auto 15rem; gap: 1.6rem; align-items: center; padding: 1.4rem 1.6rem; border-top: 1px solid #efebe3; }
.ex-sum-what { min-width: 0; }
.ex-sum-kind { display: block; font: 500 1.7rem/1.2 var(--f-sans); letter-spacing: -.015em; }
.ex-sum-sub { display: block; margin-top: .4rem; overflow: hidden; color: var(--cl-grey-500); font-size: 1.4rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.ex-sum-amt { font: 500 1.9rem/1 var(--f-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.ex-sum-state { justify-self: end; background: var(--tint); color: var(--ink); }
/* not recovered, so not in the total */
.ex-sum-row.is-open .ex-sum-amt { color: var(--cl-grey-500); }
.ex-sum-row.is-open .ex-sum-state { background: var(--cl-grey-100); color: var(--cl-grey-600); }
.ex-sum-total { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; margin-top: .4rem; padding: 2rem 2.4rem; border-radius: 1.8rem; background: var(--cl-grey-100); }
.ex-sum-total span { font: 500 1.8rem/1 var(--f-sans); letter-spacing: -.02em; }
.ex-sum-total small { display: block; margin-top: .6rem; color: var(--cl-grey-500); font: 400 1.2rem/1.3 var(--f-mono); }
.ex-sum-total strong { font: 600 4.8rem/1 var(--f-sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }

@media (max-width: 1023px) {
  .fd-card { padding: 8rem 0; border-radius: 1.6rem; }
  .fd-card .the-grid { padding-inline: 2.4rem; }   /* inside the card it gathers into (the card meets the page gutter) */
  .fd-copy { grid-column: 1 / -1; }
  .fd-text { margin-top: 2.4rem; font-size: 2.6rem; line-height: 1.15; }
  .fd-tiles { grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.2rem; }
  .fd-tile { gap: 2.4rem; padding: 2rem; border-radius: 1.6rem; }
  .fd-rec { padding: .8rem; font-size: 1.2rem; }
  .fd-rec-row { gap: .6rem; padding: 1rem .8rem; }
  .fd-rec-row .is-match, .fd-rec-row .is-flag { padding-inline: .4rem; margin-inline: -.4rem; }
  .fd-title { font-size: 1.8rem; }
  .finds .ex-close { margin-top: 10rem; }
  .ex-close { grid-template-columns: 1fr; gap: 4rem; }
  .ex-close-title { font-size: 3.4rem; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .fd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ex-sum { padding: .8rem; border-radius: 2.2rem; }
  .ex-sum-head { padding: 1.2rem 1.2rem 1.4rem; }
  .ex-sum-head h3 { font-size: 1.9rem; }
  .ex-sum-row { grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; padding: 1.2rem; }
  .ex-sum-kind { font-size: 1.6rem; }
  .ex-sum-sub { font-size: 1.3rem; }
  .ex-sum-amt { font-size: 1.7rem; }
  .ex-sum-state { grid-column: 1 / -1; justify-self: start; height: 2.6rem; margin-top: -.4rem; }   /* under the line it belongs to */
  .ex-sum-total { padding: 1.6rem; }
  .ex-sum-total strong { font-size: 3.6rem; }
}

/* ---------- app mock-ups: the Reclaim dashboard, V4, light theme ----------
   Mirrors src/v4/styles (system.css tokens, shell.css frame, home.css, v4-findings.css, recoveries.css,
   v4-recoveries.css): the off-white sheet beside the darker sidebar, Geist for text, Schibsted Grotesk for titles and
   figures, the bright green only as a fill with ink on it, dark green (--a-returned) for money back.
   Sized in rem at 1rem = 10px of the app's 1440px window, so it scales with the page; in a [data-fit-always] frame
   main.js lays it out at data-base-width and scales it to fit. Static: nothing in it moves on hover. */
.app {
  --a-ink-1: #08100c; --a-ink-2: #212a25; --a-ink-3: #5c5850; --a-ink-4: #827d73;
  --a-canvas: #fcfbf7; --a-sunken: #f4f1ea; --a-fill: #ebe7de; --a-line-1: #ebe7de; --a-line-2: #dedad0;
  --a-ring: 0 0 0 1px #e6e2d8, 0 1px 2px rgb(8 16 12 / .05);
  --a-float: 0 8px 24px -8px rgb(8 16 12 / .16), 0 0 0 1px #e1ddd3;
  --a-accent: #00fd74; --a-accent-ink: #0a7a3f; --a-returned: #0a7a3f;
  --a-side: #efebe3; --a-side-ink: #5c5850; --a-side-dim: #827d73; --a-side-on: #e1dbd0;
  --a-risk-fill: #fbe3db; --a-risk-ink: #b3301a; --a-caution-fill: #f7ecd2; --a-caution-ink: #7a5410;
  --a-display: "Schibsted Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 21.6rem minmax(0, 1fr);
  grid-template-rows: 6.3rem minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--a-side);
  color: var(--a-ink-2);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-stretch: normal;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2.4rem;
  letter-spacing: -.011em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
/* the work area: one light sheet beside the sidebar, rounded where it meets it */
.app::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 21.6rem; border-radius: 1.6rem 0 0 1.6rem; background: var(--a-canvas); box-shadow: 0 0 0 1px #e3ded4; }
.app.is-bare { display: block; background: var(--a-canvas); }   /* a page with no shell: the full finding page, the phone */
.app.is-bare::before { display: none; }
.app svg { flex: none; }
.app .i { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app b, .app strong { font-weight: 500; }
.app .amt { white-space: nowrap; }
.app .amt .c { margin-left: .03em; font-size: .62em; line-height: 0; vertical-align: .38em; }
.app .t-ui { font-size: 1.4rem; line-height: 2rem; letter-spacing: -.006em; }
.app .t-small { font-size: 1.3rem; line-height: 2rem; letter-spacing: 0; }
.app .t-label { font-size: 1.2rem; line-height: 1.6rem; letter-spacing: 0; }
.app .t-heading { font: 500 2rem/2.8rem var(--a-display); letter-spacing: -.02em; color: var(--a-ink-1); }
.app .t-title { font: 500 2.8rem/3.6rem var(--a-display); letter-spacing: -.03em; color: var(--a-ink-1); }
.app .t-figure { font: 500 3.2rem/4rem var(--a-display); letter-spacing: -.03em; color: var(--a-ink-1); }
.app .ink-1 { color: var(--a-ink-1); } .app .ink-3 { color: var(--a-ink-3); }
.app .is-link { color: var(--a-accent-ink); }
.app .is-returned { color: var(--a-returned); }

/* sidebar (Sidebar.tsx): the audit switcher on the band row, seven places, the workspace group */
.app-side { grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0; color: var(--a-side-ink); }
.app-switch { display: flex; flex: none; align-items: center; gap: .8rem; height: 6.4rem; margin: 0 .8rem; padding: 0 .4rem 0 .7rem; }
.app-switch .mark { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; color: var(--a-ink-1); }
.app-switch .mark svg { width: 2.2rem; height: 2rem; }
.app-switch .nm { flex: 1; min-width: 0; margin-right: -.6rem; overflow: hidden; color: var(--a-side-ink); font-size: 1.4rem; font-weight: 500; line-height: 2rem; text-overflow: ellipsis; white-space: nowrap; }
.app-switch .i { margin-right: -.5rem; color: var(--a-side-dim); }
.app-nav { display: flex; flex-direction: column; gap: .4rem; padding: 2.4rem 1.2rem 0; }
.app-nav li { display: flex; align-items: center; gap: 1.7rem; height: 3.6rem; padding: 0 1.3rem 0 1rem; border-radius: .8rem; white-space: nowrap; }
/* the open page */
.app-nav[data-current="home"] [data-page="home"], .app-nav[data-current="findings"] [data-page="findings"], .app-nav[data-current="recoveries"] [data-page="recoveries"], .app-nav[data-current="approvals"] [data-page="approvals"] { background: var(--a-side-on); color: var(--a-ink-1); font-weight: 500; }
.app-nav[data-current="home"] [data-page="home"] .i, .app-nav[data-current="findings"] [data-page="findings"] .i, .app-nav[data-current="recoveries"] [data-page="recoveries"] .i, .app-nav[data-current="approvals"] [data-page="approvals"] .i { color: var(--a-accent-ink); }
.app-nav li b { margin-left: auto; color: var(--a-side-dim); font-size: 1.3rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.app-nav[data-current="home"] [data-page="home"] b, .app-nav[data-current="findings"] [data-page="findings"] b, .app-nav[data-current="recoveries"] [data-page="recoveries"] b, .app-nav[data-current="approvals"] [data-page="approvals"] b { color: var(--a-side-ink); }
.app-nav li.app-group { height: 2.9rem; margin: 1.6rem 0 .4rem; padding-left: .7rem; color: var(--a-side-dim); font-size: 1.3rem; }

/* top band (TopBand.tsx): search, Ask Reclaim, the circles */
.app-band { display: flex; grid-column: 2; grid-row: 1; align-items: center; gap: 1.6rem; min-width: 0; padding: 0 2.4rem; border-bottom: 1px solid var(--a-line-1); }
.app-search { display: flex; flex: 0 1 64.6rem; align-items: center; gap: 1.1rem; min-width: 0; height: 4rem; padding: 0 1.8rem 0 1.4rem; border: 1px solid var(--a-line-2); border-radius: .8rem; color: var(--a-ink-4); white-space: nowrap; }
.app-search .i { color: var(--a-ink-3); }
.app-keys { display: flex; gap: .4rem; margin-left: auto; }
.app-key { min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: .4rem; background: var(--a-fill); color: var(--a-ink-3); font-size: 1.2rem; line-height: 1.6rem; letter-spacing: 0; text-align: center; }
.app-ask { display: flex; flex: none; align-items: center; justify-content: center; gap: .9rem; width: 17.8rem; height: 4rem; margin-left: auto; border: 1px solid var(--a-line-2); border-radius: 99rem; color: var(--a-accent-ink); font-weight: 500; white-space: nowrap; }
.app-circ { position: relative; display: grid; flex: none; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--a-fill); color: var(--a-ink-3); font-size: 1.2rem; font-weight: 500; }
.app-circ.is-me { color: var(--a-ink-2); }
.app-circ.has-dot::after { content: ""; position: absolute; top: 0; right: .2rem; width: .9rem; height: .9rem; border: 1px solid var(--a-canvas); border-radius: 50%; background: var(--a-risk-ink); }
/* Home: Mercury's centred 969 column, no rule under the band */
.app.is-centred .app-band { border-bottom: 0; }
.app-band-in { display: contents; }
.app.is-centred .app-band-in { display: flex; align-items: center; gap: 1.6rem; width: 96.9rem; margin: 0 auto; }
.app.is-centred .app-band { padding: 0; }
.app.is-centred .app-search { flex: 1; }
.app.is-centred .app-ask { margin-left: 0; }

.app-main { position: relative; grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; }

/* shared pieces (system.css): buttons, tags, tabs, cards, avatars, field rows */
.app-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .8rem; height: 3.2rem; padding: 0 1.4rem; border-radius: 99rem; background: var(--a-fill); color: var(--a-ink-2); font-size: 1.4rem; font-weight: 500; line-height: 2rem; letter-spacing: -.006em; white-space: nowrap; }
.app-btn.is-primary { background: var(--a-accent); color: var(--a-ink-1); }   /* the bright green always carries ink */
.app-btn.is-ghost { background: transparent; color: var(--a-ink-3); }
.app-btn.is-danger { border: 1px solid var(--a-risk-ink); background: transparent; color: var(--a-risk-ink); }
.app-btn.is-icon { width: 3.2rem; padding: 0; }
.app-btn.is-lg { height: 4.4rem; padding: 0 2.4rem; }
.app-btn .hue { color: var(--hue); }
.app-tag { display: inline-flex; align-items: center; height: 2rem; padding: 0 .6rem; border-radius: .4rem; background: var(--a-fill); color: var(--a-ink-2); font-size: 1.3rem; font-weight: 500; line-height: 2rem; white-space: nowrap; }
.app-tag.is-caution { background: var(--a-caution-fill); color: var(--a-caution-ink); }
.app-tabs { display: flex; align-items: center; gap: .4rem; }
.app-tabs > span { display: inline-flex; align-items: center; gap: .6rem; height: 3.2rem; padding: 0 1.4rem; border-radius: 99rem; color: var(--a-ink-3); font-size: 1.4rem; font-weight: 500; white-space: nowrap; }
.app-tabs > span.is-on { background: var(--a-fill); color: var(--a-ink-1); }
.app-tabs i { color: var(--a-ink-3); font-style: normal; font-variant-numeric: tabular-nums; }
.app-card { border-radius: 1.2rem; background: var(--a-canvas); box-shadow: var(--a-ring); }
.app-card-label { color: var(--a-ink-2); font-size: 1.4rem; font-weight: 500; line-height: 2rem; }
.app-av { display: inline-grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--a-fill); color: var(--a-ink-2); font-size: 1.2rem; font-weight: 500; line-height: 1; letter-spacing: 0; }
.app-av.is-lg { width: 3.2rem; height: 3.2rem; }
.app [data-hue="slate"] { --hue: #4a6b8a; --hue-tint: #e1e8ef; --hue-ink: #33506b; }
.app [data-hue="plum"] { --hue: #7a4f7a; --hue-tint: #ece2ec; --hue-ink: #5c3a5c; }
.app [data-hue="ochre"] { --hue: #b8862b; --hue-tint: #f3ead2; --hue-ink: #7a5a17; }
.app [data-hue="clay"] { --hue: #c2593a; --hue-tint: #f3e3dc; --hue-ink: #8a3a22; }
.app [data-hue="green"] { --hue: #0a7a3f; --hue-tint: #dcefe2; --hue-ink: #0a7a3f; }
.app [data-hue="risk"] { --hue: #b3301a; --hue-tint: #fbe3db; --hue-ink: #b3301a; }
.app-av[data-hue] { background: var(--hue-tint); color: var(--hue-ink); }
.app-dot { display: inline-block; flex: none; width: .8rem; height: .8rem; margin-right: .6rem; border-radius: 50%; background: var(--hue, var(--a-ink-4)); vertical-align: .1rem; }
.app-fields > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); align-items: center; column-gap: 1.2rem; min-height: 4.4rem; font-size: 1.4rem; line-height: 2rem; letter-spacing: -.006em; }
.app-fields dt { color: var(--a-ink-3); }
.app-fields dd { min-width: 0; overflow: hidden; color: var(--a-ink-2); text-overflow: ellipsis; white-space: nowrap; }
.app-src { display: inline-flex; align-items: center; height: 2rem; padding: 0 .6rem; border-radius: .4rem; background: var(--a-fill); color: var(--a-ink-2); font-size: 1.3rem; white-space: nowrap; }
.app-check { display: inline-grid; flex: none; place-content: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--a-line-2); border-radius: .4rem; background: var(--a-canvas); }
.app-check.is-on { border-color: var(--a-accent); background: var(--a-accent); }
.app-check.is-on::after { content: ""; width: .8rem; height: .5rem; border: 1.5px solid var(--a-ink-1); border-top: 0; border-right: 0; transform: translateY(-.1rem) rotate(-45deg); }

/* Home (Home.tsx, home.css) */
.app-home { width: 96.9rem; margin: 0 auto; padding-top: 2.8rem; }
.app-home h1 { min-height: 3.2rem; }
.h-acts { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.2rem; }
.h-date { margin-left: auto; color: var(--a-ink-3); white-space: nowrap; }
.h-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 1.2rem; background: var(--a-canvas); box-shadow: var(--a-ring); }
.h-big { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 42.4rem; gap: 2.3rem; margin-top: 2.3rem; }
.h-bal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 2.1rem 2.5rem 0; }
.h-bal-head .t-figure { margin-top: .4rem; }
.h-seg { display: flex; gap: .4rem; }
.h-seg .app-btn.is-on { background: var(--a-fill); color: var(--a-ink-1); }
.h-bal-period { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding: 0 2.5rem; }
.h-delta { display: inline-flex; align-items: center; gap: .6rem; }
.h-delta .i { color: var(--a-risk-ink); }
.h-chart { display: flex; flex: 1; flex-direction: column; min-height: 0; margin-top: 3.9rem; }
.h-chart svg { display: block; width: 100%; height: 23.6rem; }
.h-axis { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; height: 2.9rem; margin-top: auto; border-top: 1px solid var(--a-line-1); color: var(--a-ink-3); font-size: 1.2rem; text-align: center; }
.h-acc-in { padding: 2.1rem 2.5rem 0; }
.h-cardhead { display: flex; align-items: center; justify-content: space-between; height: 3.2rem; }
.h-circ { display: grid; flex: none; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--a-fill); color: var(--a-ink-2); }
.h-rows { margin-top: 1.1rem; }
.h-rows li { display: flex; align-items: center; gap: 1.3rem; height: 4.4rem; }
.h-rows .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-rows .n { color: var(--a-ink-1); white-space: nowrap; }
.h-create { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.7rem; }
.h-auto { display: flex; flex: none; align-items: center; gap: 1.6rem; height: 9.4rem; margin-top: auto; padding: 0 1.5rem 0 2.5rem; border-top: 1px solid var(--a-line-1); background: var(--a-sunken); }
.h-auto > div { flex: 1; min-width: 0; }
.h-auto p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-auto p + p { color: var(--a-ink-3); font-size: 1.3rem; line-height: 2rem; }
.h-auto .h-circ { background: var(--a-canvas); }
.h-low { display: grid; grid-template-columns: 1fr 1fr; gap: 2.3rem; margin-top: 3.8rem; }
.h-lowcard { min-height: 23.3rem; padding: 2.5rem 2.5rem 2.4rem; }
.h-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--a-line-1); }
.h-stats > div, .h-foot > div { display: flex; flex-direction: column; min-width: 0; }
.h-label { overflow: hidden; color: var(--a-ink-3); font-size: 1.3rem; line-height: 2rem; text-overflow: ellipsis; white-space: nowrap; }
.h-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding-top: 2.4rem; }
.h-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--a-accent-ink); white-space: nowrap; }

/* full finding page (FindingPage.tsx, v4-findings.css): the review column, the proof as a document on the sunken pane */
.app-fpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; font-size: 1.4rem; line-height: 2rem; letter-spacing: -.006em; }
.fp-review { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--a-line-1); }
.fp-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 2.4rem 4.8rem 4.8rem; }
.fp-top { display: flex; align-items: center; gap: .4rem; }
.fp-top > span:first-child { flex: 1; color: var(--a-ink-3); }
.fp-top .app-btn { color: var(--a-ink-3); }
.fp-title { margin-top: 3.2rem; }
.fp-card { margin-top: 2.4rem; }
.fp-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 1.2rem; padding: 2.4rem; }
.fp-card-top .t-figure { grid-column: 1 / -1; }
.fp-card-foot { padding: 1.6rem 2.4rem; border-top: 1px solid var(--a-line-1); }
.fp-help { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.4rem; }
.fp-group { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--a-line-1); }
.fp-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .8rem; color: var(--a-ink-3); font-size: 1.2rem; line-height: 1.6rem; }
.fp-checks li { display: flex; align-items: center; gap: 1.2rem; min-height: 4.4rem; border-top: 1px solid var(--a-line-1); }
.fp-checks li:last-child { border-bottom: 1px solid var(--a-line-1); }
.fp-checks li > span:nth-child(2) { flex: 1; }
.fp-foot { display: flex; flex: none; align-items: center; gap: 1.6rem; padding: 1.6rem 4.8rem; border-top: 1px solid var(--a-line-1); }
.fp-foot > div { display: flex; flex: 1; flex-direction: column; gap: .8rem; min-width: 0; }
.fp-btns { display: flex; align-items: center; gap: .8rem; }
.fp-pane { position: relative; padding: 6.4rem 3.2rem; background: var(--a-sunken); }
.fp-next { position: absolute; top: 50%; left: .8rem; translate: 0 -50%; }
.fp-doc { padding: 4.8rem 3.2rem; }
.fp-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--a-line-1); }
.fp-doc-head dl { display: flex; gap: 2.4rem; font-size: 1.2rem; line-height: 1.6rem; }
.fp-doc-head dd { margin-top: .4rem; color: var(--a-ink-1); }
.fp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; padding-top: 1.6rem; }
.fp-parties div { display: flex; flex-direction: column; }
.fp-due { margin-top: 3.2rem; color: var(--a-ink-1); font-weight: 500; }
.fp-table { width: 100%; margin-top: 1.2rem; border-collapse: collapse; table-layout: fixed; }
.fp-table th { height: 3.6rem; padding: 0 1.2rem; border-bottom: 1px solid var(--a-line-1); color: var(--a-ink-3); font-size: 1.2rem; font-weight: 400; line-height: 1.6rem; text-align: left; }
.fp-table td { height: 3.6rem; padding: 0 1.2rem; overflow: hidden; border-bottom: 1px solid var(--a-line-1); text-overflow: ellipsis; white-space: nowrap; }
.fp-table :is(th, td):first-child { width: 28%; padding-left: 0; }
.fp-table td:first-child { color: var(--a-ink-3); }
.fp-eq { display: inline-block; width: 1.2rem; color: var(--a-ink-3); }
.fp-total { display: flex; flex-direction: column; gap: .4rem; margin: 2.4rem 0 0 40%; padding-top: 1.2rem; border-top: 1px solid var(--a-line-1); }
.fp-total b { color: var(--a-ink-1); }
.fp-bar { position: absolute; bottom: 2.4rem; left: 50%; display: flex; align-items: center; gap: .8rem; width: max-content; height: 4rem; padding: 0 .4rem 0 1.6rem; translate: -50% 0; border-radius: 99rem; background: var(--a-canvas); box-shadow: var(--a-float); }
.fp-bar .sep { width: 1px; height: 2.4rem; margin: 0 .4rem; background: var(--a-line-2); }

/* the approver's phone page (ApprovePage.tsx, ApprovalSummary.tsx, v4-recoveries.css): 390 wide, the decision pinned at the foot */
.app.is-phone { font-size: 1.4rem; line-height: 2rem; letter-spacing: -.006em; }
.ap-body { padding: 1.2rem 1.6rem 9.6rem; }
.ap-eyebrow { margin-top: 2.4rem; color: var(--a-ink-2); }
.ap-title { margin-top: .4rem; }
.ap-meta { margin-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.ap-body .app-tabs { margin-top: 2.4rem; }
.ap-rec { margin-top: 2.4rem; padding: 2.4rem; }
.ap-rec .t-heading { margin-top: 1.2rem; }
.ap-rec p + p { margin-top: 1.2rem; }
.ap-rec .app-card-label { margin-top: 1.6rem; }
.ap-rec ul { margin-top: .4rem; padding-left: 2.4rem; list-style: disc; }
.ap-rec li + li { margin-top: .4rem; }
.ap-sec { margin-top: 4.8rem; }
.ap-sec > h2 { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.ap-sec > h2 .i { color: var(--a-ink-3); }
.app-email { padding: 1.6rem; }
.app-email .app-fields > div { grid-template-columns: 7.2rem minmax(0, 1fr); }
.app-email .app-fields dd { white-space: normal; overflow-wrap: anywhere; }
.app-email-body { margin-top: 1.6rem; color: var(--a-ink-2); font-size: 1.5rem; line-height: 2.4rem; letter-spacing: -.011em; }
.app-email-body p + p { margin-top: 1.2rem; }
.app-files { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 0; }
.app-files > span { display: inline-flex; align-items: center; gap: .8rem; }
.app-files .i { color: var(--a-ink-3); }
.ap-foot { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: .8rem; height: 6.4rem; padding: 0 1.6rem; border-top: 1px solid var(--a-line-1); background: var(--a-canvas); }
.ap-foot .app-btn.is-danger { flex: 1; }
.ap-foot .app-btn.is-primary { flex: 2; }

/* recovery page (RecoveryPage.tsx, recoveries.css): head, view tabs, the document beside the rail of cards */
.app-rcp { display: flex; flex-direction: column; height: 100%; font-size: 1.4rem; line-height: 2rem; letter-spacing: -.006em; }
.rc-head { display: flex; flex: none; align-items: center; gap: .8rem; height: 4.4rem; padding: 0 1.2rem 0 2.4rem; border-bottom: 1px solid var(--a-line-1); white-space: nowrap; }
.rc-head .sep { color: var(--a-ink-4); }
.rc-head b { color: var(--a-ink-1); }
.rc-head .app-btn { margin-left: auto; }
.rc-tabrow { display: flex; flex: none; align-items: center; height: 5.6rem; padding: 0 2.4rem 0 1.6rem; }
.rc-body { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 38.9rem; column-gap: 2.4rem; min-height: 0; padding-right: 1.6rem; }
.rc-doc { min-height: 0; overflow: hidden; }
.rc-docin { max-width: 86rem; padding: 3.2rem 2.4rem 4.8rem 4.8rem; }
.rc-docin > .t-title { margin-top: 1.6rem; }
.rc-desc, .rc-prose { color: var(--a-ink-2); font-size: 1.5rem; line-height: 2.4rem; letter-spacing: -.011em; }
.rc-desc { margin-top: .8rem; }
.rc-props { margin-top: 1.6rem; }
.rc-props > div { align-items: start; }
.rc-props dt { padding-top: 1.2rem; }
.rc-props dd { padding: .6rem 0; white-space: normal; }
.rc-line { display: flex; flex-wrap: wrap; align-items: center; }
.rc-pchip { display: inline-flex; align-items: center; gap: .8rem; height: 3.2rem; margin: 0 .8rem 0 -.8rem; padding: 0 .8rem; white-space: nowrap; }
.rc-pchip > .i { color: var(--a-ink-3); }
.rc-pchip.is-link > .i { color: var(--a-ink-3); }
.rc-update { margin-top: 2.4rem; padding: 2.4rem; }
.rc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.rc-by { display: inline-flex; align-items: center; gap: .8rem; margin-left: .8rem; }
.rc-update .rc-prose { margin-top: 1.2rem; }
.rc-steps { margin-top: 1.6rem; padding-left: 1.6rem; border-left: 2px solid var(--a-line-1); }
.rc-steps ol { margin-top: .4rem; }
.rc-steps li { display: grid; grid-template-columns: 6.4rem auto auto minmax(0, 1fr); align-items: center; column-gap: 1.2rem; min-height: 3.2rem; }
.rc-steps .n { color: var(--a-ink-1); font-weight: 500; }
.rc-steps .is-next .n { color: var(--a-ink-3); font-weight: 400; }
.rc-steps .ink-3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sec { margin-top: 3.2rem; }
.rc-sechead { display: flex; gap: .8rem; margin-bottom: 1.2rem; }
.rc-thread li + li { border-top: 1px solid var(--a-line-1); }
.rc-msg { display: flex; align-items: center; gap: .8rem; height: 4.4rem; padding: 0 1.6rem; }
.rc-msg .who { flex: none; color: var(--a-ink-1); font-weight: 500; }
.rc-msg .peek { flex: 1; min-width: 0; overflow: hidden; color: var(--a-ink-3); text-overflow: ellipsis; white-space: nowrap; }
.rc-msg time { flex: none; margin-left: .8rem; color: var(--a-ink-3); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rc-rail { display: flex; flex-direction: column; gap: 1.2rem; min-height: 0; overflow: hidden; padding: .4rem .2rem 2.4rem; }
.rc-rail .app-card { flex: none; padding: 2.4rem; }
.rc-rail .app-card-label + * { margin-top: .8rem; }
.rc-rail .app-fields > div { min-height: 4rem; }
.rc-legend { display: grid; grid-template-columns: repeat(3, 1fr); color: var(--a-ink-3); }
.rc-legend > span { position: relative; display: flex; flex-direction: column; padding-left: 1.2rem; }
.rc-legend > span:not(:last-child)::before { content: ""; position: absolute; top: .6rem; left: 0; width: .8rem; height: .8rem; border-radius: .4rem; background: var(--a-line-2); }
.rc-legend > span:nth-child(2)::before { background: var(--a-returned); }
.rc-legend b { color: var(--a-ink-1); }
.rc-legend b.is-returned { color: var(--a-returned); }
.rc-chart { margin-top: 2.4rem; }
.rc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rc-chart .grid { stroke: var(--a-line-1); stroke-width: 1; }
.rc-chart .scope { fill: none; stroke: var(--a-line-2); stroke-width: 1.5; }
.rc-chart .done { fill: none; stroke: var(--a-returned); stroke-width: 1.5; }
.rc-chart .back { fill: rgb(10 122 63 / .1); }
.rc-chart .dm { fill: var(--a-ink-4); }
.rc-axis { display: flex; justify-content: space-between; margin-top: .4rem; color: var(--a-ink-3); font-size: 1.2rem; line-height: 1.6rem; white-space: nowrap; }
.rc-axis span:first-child { margin-left: 18%; }
.rc-rail .app-tabs { margin-top: 2.4rem; }
.rc-who { margin-top: .8rem; }
.rc-who li { display: flex; align-items: center; gap: .8rem; height: 4.4rem; }
.rc-who .nm { flex: 1; }
.rc-who .pct { width: 9.6rem; flex: none; color: var(--a-ink-3); }
.rc-acts { display: flex; flex-direction: column; gap: 1.2rem; }
.rc-acts li { display: flex; align-items: flex-start; gap: 1.2rem; }
.rc-acts li > .i { margin-top: .2rem; color: var(--a-ink-3); }
.rc-acts b { color: var(--a-ink-1); }

/* ---------- carousels (the article carousels: a wrapper, and prev / next under it) ---------- */
.carousel-wrapper { margin-top: 6.4rem; }
.carousel-prev-next-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 4rem; }
.carousel-prev-next-controls .cta-button-square { --size: 4rem; border-radius: 1rem; }
.carousel-prev-next-controls .prev { transform: rotate(-90deg); }
.carousel-prev-next-controls .next { transform: rotate(90deg); }
.carousel-prev-next-controls .icon { width: 1.6rem; height: 1.6rem; }

/* ---------- grid1 (integrations) ---------- */
.grid1 { padding-top: 0; }
.grid1 .desc.type-body-headline { color: var(--cl-grey-500); }
.grid1 .content { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; place-items: stretch; }
.grid-item-brand { position: relative; width: 100%; max-width: 100%; aspect-ratio: 302 / 140; }
.grid-item-brand .m3d, .grid-item-brand .rotate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* Flat tiles: the two direct connections are ink, exports are paper with a hairline.
   Hover only firms the edge; nothing tilts. */
.grid-item-brand .wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--cl-black);
  color: var(--cl-white);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.grid-item-brand .wm { display: flex; align-items: center; gap: .8rem; height: 33%; }
@media (hover: hover) and (pointer: fine) { .grid-item-brand:hover[idx="0"] .wrap { background: var(--cl-grey-800); } }
.wm-netsuite { font-size: 1.8rem; font-weight: 600; letter-spacing: .22em; }
.wm-quickbooks { font-size: 2.6rem; font-weight: 750; letter-spacing: -.05em; }
.wm-xero { font-size: 3rem; font-weight: 700; letter-spacing: .02em; }
.wm-ramp { font-family: var(--f-mono); font-size: 2rem; font-weight: 500; letter-spacing: -.04em; }
.wm-csv { font-size: 2.2rem; font-weight: 300; letter-spacing: .01em; }
.wm-bill { font-size: 2.4rem; font-weight: 650; font-style: italic; letter-spacing: -.03em; }

.cta-button .hover-loop { height: 100%; }

/* ---------- closing: the one stack put right, one action, the three promises under it ---------- */
.closing { padding-block: 12rem 20rem; text-align: center; }
.closing-object { display: block; width: 40rem; height: auto; margin: 0 auto 1.2rem; }
video.closing-object { aspect-ratio: 1116 / 622; object-fit: contain; }
.closing .heading, .closing .heading .line-wrap { margin-inline: auto; }
.closing-lede { max-width: 62rem; margin: 2.8rem auto 0; color: var(--cl-grey-500); font-size: 2.2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.closing-actions { display: flex; align-items: center; justify-content: center; gap: 2.8rem; margin-top: 4rem; }
.closing-actions .cta-button[theme="green"].hovering { background: var(--cl-black); color: var(--cl-reclaim); }   /* white would vanish on the page */
.closing-talk { color: var(--cl-grey-600); font-size: 1.6rem; letter-spacing: -.01em; }
.closing-talk span { color: var(--cl-black); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-thickness .2s; }
.closing-talk:hover span, .closing-talk:focus-visible span { text-decoration-thickness: 2px; }
.closing-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.8rem; max-width: 112rem; margin: 9.6rem auto 0; padding-top: 3.2rem; border-top: 1px solid var(--cl-grey-300); text-align: left; }
.closing-promises li { display: grid; grid-template-columns: 4rem 1fr; align-content: start; column-gap: 1.6rem; }
.closing-ico { grid-row: span 2; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; background: var(--cl-grey-100); }
.closing-ico svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.closing-promises h3 { margin-top: .2rem; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.closing-promises p { margin-top: .4rem; color: var(--cl-grey-500); font-size: 1.5rem; line-height: 1.45; letter-spacing: -.005em; }

/* ---------- footer: the last rounded card (the rounded-section opening, run to the end of the page) ---------- */
.rounded-section + .ft-card { margin-top: 0; }   /* nothing above to overlap: it opens over the white */
.the-footer { position: relative; color: var(--cl-white); }
.the-footer .the-container { padding-block: 8rem 4rem; }
.ft-top { display: grid; grid-template-columns: 5fr 7fr; gap: 4.8rem; }
.the-footer .hx-logo { --h: 3rem; font-size: 2.8rem; }
.ft-line { max-width: 38rem; margin-top: 2rem; color: var(--cl-grey-400); font-size: 1.6rem; line-height: 1.5; }
.ft-mail { display: inline-block; margin-top: 2.4rem; padding-bottom: .2rem; border-bottom: 1px solid var(--cl-grey-800); color: var(--cl-grey-400); font-size: 1.5rem; transition: color .3s, border-color .3s; }
.ft-mail:hover { color: var(--cl-white); border-color: var(--cl-grey-500); }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
.ft-label { margin-bottom: 1.2rem; color: var(--cl-grey-500); text-transform: uppercase; letter-spacing: .02em; }
.ft-group a { display: block; padding-block: .6rem; color: var(--cl-grey-300); font-size: 1.6rem; letter-spacing: -.01em; transition: color .3s; }
@media (hover: hover) and (pointer: fine) { .ft-group a:hover { color: var(--cl-reclaim); } }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 7.2rem; padding-top: 2.4rem; border-top: 1px solid var(--cl-grey-800); color: var(--cl-grey-500); font-size: 1.4rem; }
.ft-legal { display: flex; gap: 2.4rem; }
.ft-legal a, .cta-scroll { color: var(--cl-grey-400); transition: color .3s; }
.ft-legal a:hover, .cta-scroll:hover { color: var(--cl-white); }
.cta-scroll { display: inline-flex; align-items: center; gap: .8rem; }
.cta-scroll .icon { width: 1.4rem; height: 1.4rem; }

/* ---------- mobile + tablet (≤1023px) ---------- */
@media (max-width: 1023px) {
  :root { --nav-height: 8.2rem; --section-margin: 3.2rem; --rounded-margin: 3.2rem; --grid-columns: 6; --grid-column-gap: 1.6rem; --grid-side-margin: 2.4rem; }
  .type-h1 { font-size: 4.4rem; }
  .type-h2 { font-size: 3.4rem; }
  .type-h3 { font-size: 3.2rem; }
  .type-h4 { font-size: 2.2rem; }
  .type-quote { font-size: 3.2rem; }
  .type-body-headline { font-size: 2.2rem; line-height: 1.2; }
  .type-body-large { font-size: 1.8rem; line-height: 2.4rem; }
  .type-body-medium { font-size: 1.6rem; line-height: 1.25; }
  .line { white-space: normal; }
  .line-wrap { width: auto; }
  .the-nav .right .cta-button .inner { padding-inline: 1.6rem; }   /* leaves the wordmark room on a 375px phone */
  .header { grid-column-end: -1 !important; }
  .header:has(+ *) { margin-bottom: 4rem; }
  .header .desc { max-width: 100% !important; margin-block: 2.4rem; }
  .rounded-section { --radius: 2.4rem; }
  .hero-home { min-height: 0; padding-top: calc(var(--nav-height) + var(--section-margin)); padding-bottom: 0; }
  .hero-home .heading { grid-column: 1 / -1; }
  .hero-home .desc { grid-column: 1 / span 5; margin-top: 3.2rem; }
  .hero-app { margin-top: 4rem; padding: 3.2rem 0 0 3.2rem; }
  .hero-win { width: 170%; border-radius: 1rem 0 0 0; }   /* cropped at the right edge, so the screen reads larger */
  .content-columns .columns { display: flex; flex-direction: column; gap: 4rem; grid-column: 1 / span 6; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-card, .st-card.is-wide { grid-column: auto; min-height: 46rem; }
  .grid1 .content { grid-template-columns: repeat(2, 1fr); gap: .8rem; grid-column: 1 / -1; }
  .grid-item-brand .wrap { border-radius: 2rem; }
  .closing { padding-block: 7.2rem 12rem; }
  .closing-object { width: 72vw; max-width: 34rem; }
  .closing .heading { max-width: 6.4em; }   /* breaks as "Don't just find / the money." */
  .closing-lede { margin-top: 2rem; font-size: 1.8rem; }
  .closing-actions { flex-direction: column; gap: 1.8rem; margin-top: 3.2rem; }
  .closing-actions .cta-button { width: 100%; }
  .closing-promises { grid-template-columns: 1fr; gap: 2.4rem; margin-top: 6.4rem; }
  .the-footer .the-container { padding-block: 5.6rem 3.2rem; }
  .ft-top { grid-template-columns: 1fr; gap: 4.8rem; }
  .ft-cols { grid-template-columns: 1fr 1fr; row-gap: 3.2rem; }
  .ft-group a { padding-block: .9rem; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 1.6rem; margin-top: 5.6rem; }
  .the-nav .center { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- tablet (600–1023px): the stacked layout, with columns back where they fit ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  :root { --grid-side-margin: 4rem; --grid-column-gap: 2rem; }
  .type-h1 { font-size: 5.6rem; }
  .type-h2 { font-size: 4rem; }
  .header .desc { max-width: 60rem !important; }
  .hero-home .desc { grid-column: 1 / span 4; }
  .content-columns .columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-card:last-child { grid-column: 1 / -1; }
  .st-card:last-child .st-pan { --w: 120% !important; --x: -16.6% !important; --y: -45% !important; }   /* full width here: a wider crop, the update beside the money */
  .grid1 .content { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
  .closing .heading { max-width: none; }
  .closing-actions { flex-direction: row; }
  .closing-actions .cta-button { width: auto; }
  .closing-promises { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
  .ft-cols { grid-template-columns: repeat(4, 1fr); }
  .ft-bottom { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .site-in { display: none; }
}

/* ---------- home ---------- */
/* connect / find / recover: a quiet index above each word, so the columns read as one sequence */
.content-column .step-no { display: block; margin-bottom: 1.6rem; color: var(--cl-grey-500); }
.content-column .heading.type-h4 + .desc { margin-top: 1.2rem; }


/* integrations: the two direct connections are solid and wide; exports sit a step back */
.grid1 .grid-item-wrap.is-wide { grid-column: span 2; }
.grid1 .is-wide .grid-item-brand { aspect-ratio: 628 / 140; }
.grid1 a.grid-item-brand { display: block; }
.grid-item-brand .depth { position: absolute; left: 2.8rem; top: 2.4rem; display: flex; align-items: center; gap: .8rem; color: var(--cl-grey-500); text-transform: uppercase; transition: color .2s; }
.grid-item-brand[idx="0"] .depth::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--cl-reclaim); }
.grid1 .grid-item-brand:not([idx="0"]) .wrap { background: var(--cl-grey-100); color: var(--cl-black); box-shadow: inset 0 0 0 1px var(--cl-grey-300); }
@media (hover: hover) and (pointer: fine) { 
  .grid1 .grid-item-brand:not([idx="0"]):hover .wrap { box-shadow: inset 0 0 0 1px var(--cl-black); }
  .grid1 .grid-item-brand:not([idx="0"]):hover .depth { color: var(--cl-black); }
}

/* statement: where a finding goes. Two lanes over five steps: most tools stop at the
   first (a red-pencil tick), Reclaim's lane runs to the money coming back. The lanes are
   decoration for the heading; the steps list is the content. Nodes sit on the left edge of
   each step, so the fills run from the first node's centre to the last one's. */
.pipeline { --pl-gap: 2.4rem; --pl-node: 1.2rem; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--pl-gap); row-gap: 2.8rem; margin-top: 2.4rem; }
.pl-lane { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: auto var(--pl-node); row-gap: 1.2rem; align-items: center; }
.pl-who { grid-column: 1 / -1; grid-row: 1; color: var(--cl-grey-500); text-transform: uppercase; letter-spacing: .04em; }
.is-us .pl-who { color: var(--cl-white); }
.pl-track, .pl-fill { grid-row: 2; height: 2px; margin-left: calc(var(--pl-node) / 2); }
.pl-track { grid-column: 1 / 5; margin-right: calc(var(--pl-gap) * -1 - var(--pl-node) / 2); background: var(--cl-grey-300); }
.is-others .pl-track { background: repeating-linear-gradient(90deg, var(--cl-grey-300) 0 .6rem, transparent .6rem 1.2rem); }
.pl-fill { transform-origin: left center; }
.is-others .pl-fill { grid-column: 1 / 2; background: var(--cl-grey-500); }
.is-us .pl-fill { grid-column: 1 / 5; margin-right: calc(var(--pl-gap) * -1 - var(--pl-node) / 2); background: var(--cl-reclaim); }
.pl-stop { position: relative; grid-column: 1; grid-row: 2; justify-self: end; width: 2px; height: 2rem; background: var(--cl-leak); }
.pl-stop span { position: absolute; left: calc(100% + 1rem); top: 50%; transform: translateY(-50%); color: var(--cl-leak); font-style: normal; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.pl-node { grid-row: 2; justify-self: start; width: var(--pl-node); height: var(--pl-node); border: 2px solid var(--cl-reclaim); border-radius: 50%; background: var(--cl-bg1); }
.pl-node:nth-child(4) { grid-column: 1; }
.pl-node:nth-child(5) { grid-column: 2; }
.pl-node:nth-child(6) { grid-column: 3; }
.pl-node:nth-child(7) { grid-column: 4; }
.pl-node:nth-child(8) { grid-column: 5; }
.pl-node.is-end { background: var(--cl-reclaim); }
.is-others .pl-node.is-start { grid-column: 1; border-color: var(--cl-grey-500); }
.pl-steps { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: 1.6rem; }
.pl-steps li { padding-top: 2rem; border-top: 1px solid var(--cl-grey-300); }
.pl-no { display: block; color: var(--cl-grey-500); }
.pl-steps strong { display: block; margin-top: 1.2rem; font-family: var(--f-display); font-size: 2.4rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.pl-steps p { max-width: 26rem; margin-top: 1rem; color: var(--cl-grey-500); font-size: 1.6rem; line-height: 1.35; }
.pl-note { display: none; }

/* drawn in when the diagram arrives (main.js arms it; without JS or with reduced motion it just shows) */
.pipeline.is-armed:not(.is-in) .pl-fill { transform: scaleX(0); }
.pipeline.is-armed:not(.is-in) .pl-stop { opacity: 0; scale: .5; }
.pipeline.is-armed:not(.is-in) .pl-node { border-color: var(--cl-grey-300); background: var(--cl-bg1); }
.pipeline.is-in .is-others .pl-fill { transition: transform .5s var(--e-p2-o); }
.pipeline.is-in .pl-stop { transition: opacity .2s ease .45s, scale .45s cubic-bezier(.34, 1.56, .64, 1) .45s; }
.pipeline.is-in .is-us .pl-fill { transition: transform 2s cubic-bezier(.45, 0, .3, 1) .6s; }
.pipeline.is-in .pl-node { transition: border-color .25s ease, background-color .25s ease; }
.pipeline.is-in .pl-node:nth-child(4) { transition-delay: .6s; }
.pipeline.is-in .pl-node:nth-child(5) { transition-delay: 1.2s; }
.pipeline.is-in .pl-node:nth-child(6) { transition-delay: 1.41s; }
.pipeline.is-in .pl-node:nth-child(7) { transition-delay: 1.67s; }
.pipeline.is-in .pl-node:nth-child(8) { transition-delay: 2.6s; }

/* Safari plays the MP4 twins of the 3D loops, which have the old flat black baked in (reels.js
   marks them). Lightening lets the current page colour through instead. */
.article-text-image .image:has(> video[data-baked="dark"]) { mix-blend-mode: lighten; }

@media (max-width: 1023px) {
  .grid1 .is-wide .grid-item-brand { aspect-ratio: 302 / 100; }
  .grid-item-brand .depth { left: 1.6rem; top: 1.4rem; font-size: 1rem; }
  .grid1 .grid-item-brand:not(.is-wide *) .wm { margin-top: 1.6rem; }
  /* the pipeline turns vertical: one green rail down the steps, the red-pencil note on the first */
  .pipeline { display: block; margin-top: .8rem; }
  .pl-lane { display: none; }
  .pl-steps { display: block; margin-top: 0; }
  .pl-steps li { position: relative; padding: 0 0 2.8rem 3.2rem; border-top: 0; }
  .pl-steps li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.2rem; height: 1.2rem; border: 2px solid var(--cl-reclaim); border-radius: 50%; background: var(--cl-bg1); }
  .pl-steps li::after { content: ""; position: absolute; left: .5rem; top: 1.6rem; bottom: .2rem; width: 2px; background: var(--cl-reclaim); }
  .pl-steps li:last-child { padding-bottom: 0; }
  .pl-steps li:last-child::before { background: var(--cl-reclaim); }
  .pl-steps li:last-child::after { display: none; }
  .pl-steps strong { margin-top: .6rem; font-size: 2.2rem; }
  .pl-steps p { max-width: none; }
  .pl-note { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1rem; color: var(--cl-leak); text-transform: uppercase; letter-spacing: .04em; }
  .pl-note::before { content: ""; width: 1.2rem; height: 2px; background: var(--cl-leak); }
}
