/* Payment Insight - marketing site. Multi-page; built by build.py. */

/* Colours come from schemes.css (generated by build.py), so the whole site
 * follows whichever scheme is chosen. Everything else is fixed here. */
:root {
  color-scheme: dark;
  --ground: #09090B; --ground-2: #0E0E11; --surface: #131317; --surface-2: #1A1A1F;
  --ink: #F4F4F5; --muted: #A8A8B3; --faint: #8D8D99;
  --rule: rgba(255,255,255,.09); --rule-2: rgba(255,255,255,.17);

  --brand: #F5B841; --brand-hover: #FFD98A; --brand-deep: #E28A1E; --brand-night: #050506;
  --brand-soft: rgba(245,184,65,.12); --brand-line: rgba(245,184,65,.32);
  --accent: #F5B841; --accent-soft: rgba(245,184,65,.10); --hl: #F5B841; --on-brand: #17130A;
  --card: linear-gradient(160deg, #18181D, #0F0F12);

  --settled: #4ADE80; --settled-bg: rgba(74,222,128,.12); --settled-line: rgba(74,222,128,.3);
  --accruing:#F5B841; --accruing-bg:rgba(245,184,65,.12); --accruing-line:rgba(245,184,65,.3);
  --overdue: #F87171; --overdue-bg: rgba(248,113,113,.12); --overdue-line: rgba(248,113,113,.3);

  --sans:    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--sans);
  --mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 6px; --r: 10px; --r-lg: 18px; --r-xl: 22px;
  --sh-1: 0 1px 0 rgba(255,255,255,.04) inset;
  --sh-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px -24px rgba(0,0,0,.8);
  --sh-3: 0 1px 0 rgba(255,255,255,.1) inset, 0 50px 100px -30px rgba(0,0,0,.9);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .15s; }
.skip:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.25rem); line-height: 1; letter-spacing: -.045em; }
h1 em { font-style: normal; color: var(--hl); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.kicker, .eyebrow { font: 500 .8125rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hl); }
.kicker { margin-bottom: 16px; }
.kicker--accent { color: var(--accent); }
.lede, .sec__lede { color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.sec__lede { margin-top: 18px; max-width: 62ch; }
.sec__lede a { color: var(--brand); text-underline-offset: 3px; }
.fineprint { margin-top: 20px; font-size: .9375rem; color: var(--faint); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  touch-action: manipulation;
}
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: rgba(255,255,255,.6); border-color: var(--rule-2); color: var(--ink); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--accent { background: var(--accent); color: var(--brand-night); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 78%, #fff); }

/* ---------- pills (status tokens, as in the app) ---------- */
.pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font: 500 .75rem/1.4 var(--sans); white-space: nowrap;
  background: var(--surface); color: var(--muted); border: 1px solid var(--rule-2);
}
.pill--settled { background: var(--settled-bg); color: var(--settled); border-color: var(--settled-line); }
.pill--accruing{ background: var(--accruing-bg); color: var(--accruing); border-color: var(--accruing-line); }
.pill--overdue { background: var(--overdue-bg); color: var(--overdue); border-color: var(--overdue-line); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.nav.is-stuck, .nav.is-open { background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--rule); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__name { font-weight: 700; letter-spacing: -.02em; font-size: 1.125rem; color: var(--ink); white-space: nowrap; }
.brand__name b { font-weight: 500; color: var(--hl); margin-left: .22em; }
.lg { display: none; width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--muted); transition: color .15s, background-color .15s; }
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(23,22,26,.05); }
.nav__links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav__cta-m, .nav__toggle { display: none; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico--close, .nav.is-open .nav__toggle .ico--open { display: none; }
.nav.is-open .nav__toggle .ico--close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 82% 8%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(55% 45% at 10% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
    linear-gradient(var(--ground), var(--ground));
}
/* Ledger ruling, fading out toward the fold — the page is a sheet of ledger paper. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand) 4%, transparent) 1px, transparent 1px);
  background-size: 100% 36px, 120px 100%;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent 85%);
          mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent 85%);
}
.hero__in { display: grid; gap: clamp(40px, 6vw, 72px); }
.hero__copy { text-align: center; max-width: 880px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--brand-line); background: rgba(255,255,255,.7); border-radius: 999px; margin-bottom: 28px; text-align: left; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); flex: none; }
.lede { margin: 26px auto 0; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; color: var(--muted); font-size: .9375rem; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }

/* product mock */
.hero__shot { --app-brand: var(--brand); --app-soft: var(--brand-soft); position: relative; }
.hero__shot::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent); filter: blur(40px); }
.app { background: #FCFCFD; border: 1px solid rgba(15, 23, 42,.14); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; font-size: .8125rem; line-height: 1.4; text-align: left; }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--app-brand); color: #fff; transition: background-color .3s var(--ease); }
.app__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.01em; }
.app__logo .lg { width: 20px; height: 20px; }
.flow__box .lg { width: 28px; height: 28px; }
.app__company { font-size: .75rem; padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; white-space: nowrap; }
.app__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.app__side { padding: 14px 10px; border-right: 1px solid #E4E2E8; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.app__group { font: 500 .625rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6E6A78; padding: 12px 10px 6px; }
.app__group:first-child { padding-top: 2px; }
.app__nav { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; color: #56535E; font-weight: 500; }
.app__nav.is-active { background: var(--app-soft); color: var(--app-brand); transition: background-color .3s var(--ease), color .3s var(--ease); }
.app__main { padding: 18px 20px 20px; min-width: 0; }
.app__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app__title { display: block; font-weight: 600; font-size: 1rem; color: #17161A; }
.app__sub { display: block; color: #6E6A78; font-size: .75rem; margin-top: 2px; }
.app__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.stat { border: 1px solid #E4E2E8; border-radius: 10px; background: #fff; padding: 12px 14px; min-width: 0; }
.stat__k { display: block; color: #6E6A78; font-size: .6875rem; }
.stat__v { display: block; font: 600 1.125rem/1.3 var(--mono); letter-spacing: -.02em; color: #17161A; margin-top: 2px; }
.app__tablewrap { border: 1px solid #E4E2E8; border-radius: 10px; background: #fff; overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: .75rem; }
.ledger th { text-align: left; font-weight: 500; color: #6E6A78; background: #F4F4F7; padding: 9px 12px; border-bottom: 1px solid #E4E2E8; white-space: nowrap; font-size: .6875rem; }
.ledger td { padding: 9px 12px; border-bottom: 1px solid #EDEDF2; white-space: nowrap; color: #17161A; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ledger th.n { font-family: var(--sans); }
.ledger .credit { color: var(--settled); font-weight: 500; }
.ledger tr.is-credit td { background: #F6FBF8; }
.ledger tbody tr:last-child td { font-weight: 600; }

.themes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; color: var(--muted); font-size: .875rem; }
.themes__row { display: flex; gap: 2px; }
.sw { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.sw::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ground), 0 0 0 3px transparent; transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.sw:hover::before { transform: scale(1.12); }
.sw.is-on::before { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--c); }

/* fact strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule-2); }
.strip li { padding: 22px 20px 0 0; }
.strip li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.strip__k { display: block; font: 500 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.strip__v { display: block; margin-top: 8px; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--tint { background: var(--ground-2); }
.sec__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--rule-2); }
.card p { color: var(--muted); margin-top: 8px; font-size: .9688rem; }
.card__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); margin-bottom: 18px; flex: none; }
.card__ico .ico { width: 22px; height: 22px; }
.card--ledger { grid-column: span 4; background: linear-gradient(160deg, #fff 40%, var(--accent-soft)); }
.card--run, .card--inv { grid-column: span 3; }
.card--run .card__txt, .card--inv .card__txt { margin-bottom: 24px; }
.card--ledger .card__txt { max-width: 56ch; }

.formula { margin-top: auto; padding-top: 28px; font-family: var(--mono); }
.formula__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.formula__row > span:not(.op) { display: grid; gap: 2px; }
.formula b { font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.875rem); letter-spacing: -.03em; line-height: 1.1; }
.formula i { font: 400 .75rem/1.3 var(--sans); color: var(--faint); font-style: normal; }
.formula .op { color: var(--brand); font-size: clamp(1.25rem, 2.6vw, 1.875rem); line-height: 1.1; }
.formula__eq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--rule-2); }
.formula__eq b { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--brand); }

.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; }
.ticks .ico { color: var(--settled); margin-top: .25em; stroke-width: 2.25; }
.ticks--light .ico { color: var(--accent); }

.mini { margin-top: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--ground); padding: 6px 16px 14px; font-size: .875rem; }
.mini__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; font-size: .75rem; color: var(--faint); border-bottom: 1px solid var(--rule); }
.run__row, .run__total { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.run__row .ico { color: var(--settled); stroke-width: 2.25; }
.run__row span { flex: 1; min-width: 0; }
.run__row i { font-style: normal; color: var(--faint); font-size: .75rem; margin-left: 6px; white-space: nowrap; }
.mini b { font: 500 .875rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.run__total { border: 0; padding-bottom: 0; justify-content: space-between; color: var(--muted); }
.run__total b { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }

.mini--inv { background: #fff; padding: 16px; }
.inv__top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--brand); }
.inv__top b { font: 600 .9375rem/1.3 var(--sans); display: block; }
.inv__top i, .inv__line i { display: block; font-style: normal; font-size: .75rem; color: var(--faint); }
.inv__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: #fff; font: 600 .875rem var(--display); flex: none; }
.inv__line { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.inv__line--total { font-weight: 600; border-bottom: 0; }
.inv__line--total b { font-size: 1.0625rem; font-weight: 600; }
.inv__note { font-size: .75rem; color: var(--muted); background: var(--ground); border-radius: 8px; padding: 8px 10px; }

.tree { margin-top: auto; padding-top: 22px; font-size: .875rem; }
.tree > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); }
.tree b { font: 500 .8125rem/1.6 var(--mono); }
.tree__p { font-weight: 600; }
.tree__c { margin: 6px 0 0 22px; position: relative; }
.tree__c::before { content: ""; position: absolute; left: -12px; top: -7px; width: 11px; height: calc(50% + 7px); border-left: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); border-bottom-left-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule-2); }
.extras li { display: flex; gap: 14px; }
.extras .ico { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.extras b { display: block; font-weight: 600; }
.extras span { display: block; color: var(--muted); font-size: .9375rem; margin-top: 4px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.calc__panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(20px, 3vw, 32px); }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label, .field legend { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.input { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--rule-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.input input, .input select { flex: 1; min-width: 0; width: 100%; height: 46px; border: 0; background: transparent; padding: 0 14px; font-size: 1rem; outline: none; border-radius: var(--r); }
.input select { cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356535E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 38px; }
.calc .input input { font-family: var(--mono); }
.input > span { color: var(--faint); font-family: var(--mono); }
.input--pre > span { padding-left: 14px; } .input--pre input { padding-left: 6px; }
.input--suf > span { padding-right: 14px; }
.seg__in { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground-2); border-radius: var(--r); padding: 4px; min-height: 48px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; display: grid; place-items: center; border-radius: 7px; cursor: pointer; font-size: .875rem; color: var(--muted); transition: background-color .18s, color .18s, box-shadow .18s; }
.seg input:checked + label { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--sh-1); }
.seg input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.calc__out { margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--brand-night); color: #fff; background-image: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%); transition: opacity .2s; }
.calc.is-bad .calc__out, .calc__panel.is-bad .calc__out { opacity: .45; }
.calc__k { display: block; font-size: .8125rem; color: rgba(255,255,255,.72); }
.calc__v { display: block; font: 500 clamp(2.25rem, 6vw, 3.25rem)/1.1 var(--mono); letter-spacing: -.04em; color: var(--accent); margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.calc__meta dt { font-size: .75rem; color: rgba(255,255,255,.72); }
.calc__meta dd { font: 500 .9375rem/1.4 var(--mono); margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__err { margin-top: 12px; font-size: .875rem; color: var(--overdue); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.step { padding: 28px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.step + .step::before { left: -5px; }
.step__n { display: block; font: 500 .875rem var(--mono); color: var(--brand); margin-bottom: 40px; letter-spacing: .06em; }
.step p { color: var(--muted); margin-top: 10px; font-size: .9688rem; }

/* ---------- quickbooks (dark) ---------- */
.sec--dark { background: var(--brand-night); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.sec--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 0% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%), radial-gradient(40% 50% at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.sec--dark .sec__lede { color: rgba(255,255,255,.78); }
.qb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.qb__copy { position: sticky; top: calc(var(--nav-h) + 32px); }
.flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 40px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.04); font-size: .8125rem; }
.flow__box { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 500; max-width: 96px; line-height: 1.3; }
.flow__qb { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand-night); font: 700 .6875rem var(--sans); }
.flow__lines { display: grid; gap: 10px; color: rgba(255,255,255,.82); font-family: var(--mono); font-size: .75rem; }
.flow__lines span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; }
.flow__lines .ico { color: var(--accent); }
.flow__back .ico { transform: rotate(180deg); }
.qb__list { display: grid; gap: 0; }
.qb__list li { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14); }
.qb__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.qb__list .ico { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.qb__list p { color: rgba(255,255,255,.76); margin-top: 6px; font-size: .9688rem; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tcard { padding: 26px 24px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.tcard .ico { width: 26px; height: 26px; color: var(--brand); margin-bottom: 18px; }
.tcard p { color: var(--muted); font-size: .9375rem; margin-top: 8px; }

/* ---------- platforms ---------- */
.plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--sh-2); display: flex; flex-direction: column; align-items: flex-start; }
.pcard--soon { background: transparent; border-style: dashed; border-color: var(--rule-2); box-shadow: none; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pcard__top .card__ico { margin-bottom: 0; }
.pcard h3 { font: 600 1.5rem/1.2 var(--display); letter-spacing: -.025em; margin-top: 22px; }
.pcard > p { color: var(--muted); margin-top: 10px; }
.pcard .ticks { margin-bottom: 28px; }
.pcard .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--rule-2); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; transition: color .15s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--brand); }
summary .ico { width: 20px; height: 20px; color: var(--brand); transition: transform .25s var(--ease); }
details[open] summary .ico { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 68ch; }

/* ---------- cta ---------- */
.sec--cta { background: var(--brand); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.sec--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%), linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta__copy h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.cta__copy > p { color: rgba(255,255,255,.86); font-size: 1.125rem; margin-top: 18px; max-width: 48ch; }
.cta__copy .ticks { margin-top: 28px; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.form__body { display: grid; gap: 16px; }
.form__body[hidden], .form__done[hidden] { display: none; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label span { color: var(--overdue); }
.field.is-invalid .input { border-color: var(--overdue); box-shadow: 0 0 0 3px rgba(163,43,37,.12); }
.field__err { color: var(--overdue); font-size: .8125rem; margin-top: 6px; }
.form__fine { font-size: .8125rem; color: var(--faint); text-align: center; }
.form__done { text-align: center; padding: 40px 8px; outline: none; }
.form__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--settled-bg); color: var(--settled); border: 1px solid var(--settled-line); margin-bottom: 18px; }
.form__tick .ico { width: 26px; height: 26px; stroke-width: 2.25; }
.form__done h3 { font: 600 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.form__done p { color: var(--muted); margin-top: 8px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(255,255,255,.08); background: var(--brand-night); color: rgba(255,255,255,.76); padding: 64px 0 28px; font-size: .9375rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
/* logo colours on dark grounds */
.foot, .sec--dark, .band, .opt__lock--dark { --lk-ink: #fff; --lk-hl: var(--accent); --lk-mark: #fff; --lk-tile: color-mix(in srgb, var(--brand) 80%, #fff); --lk-night: color-mix(in srgb, var(--brand-night) 78%, #fff); }
.app__bar { --lk-mark: #fff; --lk-tile: rgba(255,255,255,.2); --lk-night: rgba(0,0,0,.35); }
.foot__brand p { margin-top: 12px; max-width: 34ch; }
.foot__col { display: grid; align-content: start; }
.foot__col h4 { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.foot__col a { text-decoration: none; padding: 7px 0; transition: color .15s; }
.foot__col a:hover { color: #fff; }
.foot :focus-visible, .sec--dark :focus-visible, .cta__copy :focus-visible { outline-color: var(--accent); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8125rem; color: rgba(255,255,255,.64); }

/* ---------- logo lockups (sized in em, so one rule scales the whole logo) ---------- */
.lk { display: inline-flex; align-items: center; gap: .6em; font-size: 1rem; line-height: 1; color: var(--lk-ink, var(--ink)); white-space: nowrap; }
.brand .lk { display: none; }
.lk__m { width: 2.1em; height: 2.1em; flex: none; }
.lk__t { font-weight: 700; font-size: 1.125em; letter-spacing: -.02em; }
.lk__t b { font-weight: 500; color: var(--lk-hl, var(--hl)); margin-left: .22em; }
.lk__t--lower { font-size: 1.42em; letter-spacing: -.055em; }
.lk__t--lower b { margin-left: 0; font-weight: 400; }
.lk__t--stop { font-size: 1.28em; font-weight: 600; letter-spacing: -.04em; }
.lk__t--stop i { display: inline-block; width: .25em; height: .25em; border-radius: 50%; background: var(--lk-hl, var(--hl)); margin-left: .06em; }
.lk__t--slash { font-family: var(--mono); font-size: 1.08em; font-weight: 500; letter-spacing: -.04em; }
.lk__t--slash i { font-style: normal; font-weight: 600; color: var(--lk-hl, var(--hl)); margin: 0 .06em; }
.lk__t--stack { display: grid; gap: .28em; font-size: .76em; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.lk__t--stack span + span { font-weight: 400; color: var(--lk-hl, var(--hl)); }

/* ---------- multi-page pieces ---------- */
.kicker--accent { color: var(--accent); }
.phero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); background: radial-gradient(60% 120% at 90% 0%, var(--accent-soft), transparent 70%), radial-gradient(50% 100% at 0% 0%, var(--brand-soft), transparent 70%); border-bottom: 1px solid var(--rule); }
.phero h1 { max-width: 20ch; }
.phero .lede { margin: 20px 0 0; max-width: 62ch; }
.sec--flush { padding-top: clamp(40px, 5vw, 64px); }
.sec--top { padding-top: clamp(56px, 8vw, 104px); }
.sec--top h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.cta__copy h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }

.xgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xcard { display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1); text-decoration: none; cursor: pointer; transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.xcard:hover { box-shadow: var(--sh-2); border-color: var(--brand); transform: translateY(-3px); }
.xcard p { color: var(--muted); font-size: .9688rem; margin: 8px 0 22px; }
.xcard__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--hl); }
.xcard__go .ico { transition: transform .2s var(--ease); }
.xcard:hover .xcard__go .ico { transform: translateX(4px); }

.band { background: var(--brand-night); color: #fff; padding: clamp(48px, 6vw, 80px) 0; position: relative; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 120% at 100% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(45% 120% at 0% 50%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%); }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.band p { color: rgba(255,255,255,.8); margin-top: 10px; font-size: 1.0625rem; }
.band :focus-visible { outline-color: var(--accent); }
.trust--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1040px) { .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .xgrid { grid-template-columns: minmax(0, 1fr); } .band__in .btn { width: 100%; }  }

/* ---------- reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; border-top: 0; }
  .step, .step + .step { padding: 28px 24px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .step + .step::before { left: 0; }
  .step__n { margin-bottom: 24px; }
  .card, .card--ledger, .card--run, .card--inv { grid-column: span 3; }
  .card--ledger { grid-column: span 6; }
  .bento > .card:last-child { grid-column: span 6; }
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h); margin: 0; padding: 12px 20px 24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: color-mix(in srgb, var(--ground) 98%, transparent); border-bottom: 1px solid var(--rule); box-shadow: var(--sh-2);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; }
  .nav__links a:not(.btn) { padding: 14px 8px; font-size: 1.0625rem; color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav__cta-m { display: inline-flex; margin-top: 16px; min-height: 48px; }
  .calc, .qb, .faq, .cta { grid-template-columns: minmax(0, 1fr); }
  .qb__copy { position: static; }
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li { padding: 20px 16px 20px 0; }
  .strip li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .plat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .card, .bento > .card:last-child { grid-column: auto; }
  .trust, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { row-gap: 32px; }
  .hero__cta .btn { width: 100%; }
  .eyebrow { font-size: .6875rem; }
  .app__main { padding: 14px; }
  .app__stats { gap: 8px; }
  .stat { padding: 10px; }
  .stat__v { font-size: .875rem; }
  .app__stats .stat:last-child { display: none; }
  .app__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Four columns fit a phone without sideways scrolling: the balance column
     already shows the paydown, so the delta, days and running total step aside. */
  .ledger .c-days, .ledger .c-acc, .ledger tr > :nth-child(3) { display: none; }
  .ledger { font-size: .6875rem; }
  .ledger th, .ledger td { padding: 8px 6px; }
  .ledger tr > :first-child { padding-left: 10px; }
  .ledger tr > :nth-child(6) { padding-right: 10px; }
  .formula__row { gap: 8px; }
  .formula b, .formula .op { font-size: 1.0625rem; }
  .calc__grid, .form__two { grid-template-columns: minmax(0, 1fr); }
  .calc__meta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .calc__meta > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .flow__box { max-width: none; }
  .flow__lines { width: 100%; }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
  details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .nav, .themes, .nav__toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================= dark theme: colour fixes for pieces written for a light ground ================= */
::selection { color: var(--on-brand); }
.skip { background: var(--brand); color: var(--on-brand); }
h1 em { background: linear-gradient(100deg, #FFE3A3, #F5B841 55%, #E28A1E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { border-radius: 12px; }
.btn--primary { color: var(--on-brand); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 32px -12px color-mix(in srgb, var(--brand) 65%, transparent); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--rule-2); }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.32); }
.btn--outline:hover, .btn--accent { color: var(--on-brand); }
.btn--accent:hover { background: var(--brand-hover); }
.pill { background: rgba(255,255,255,.05); }
.nav__links a:not(.btn):hover { background: rgba(255,255,255,.06); }
.nav__toggle { background: var(--surface); color: var(--ink); }
.eyebrow { background: rgba(255,255,255,.04); }

.app { background: #0E0E11; border-color: var(--rule-2); }
.app__bar { background: #17171C; color: var(--ink); border-bottom: 1px solid var(--rule); }
.app__logo .lg, .flow__box .lg, .brand .lg { display: block; }
.app__company { border-color: var(--rule-2); color: var(--muted); }
.app__side { background: #0B0B0E; border-right-color: var(--rule); }
.app__group, .app__sub, .stat__k { color: var(--faint); }
.app__nav { color: var(--muted); }
.app__nav.is-active { background: var(--brand-soft); color: var(--brand); }
.app__title, .stat__v { color: var(--ink); }
.stat { background: rgba(255,255,255,.03); border-color: var(--rule); }
.app__tablewrap { background: transparent; border-color: var(--rule); }
.ledger th { background: rgba(255,255,255,.03); color: var(--faint); border-bottom-color: var(--rule); }
.ledger td { color: var(--ink); border-bottom-color: var(--rule); }
.ledger tr.is-credit td { background: rgba(74,222,128,.06); }

.card, .tcard, .xcard, .pcard, .calc__panel, .form { background: var(--card); border-color: var(--rule); }
.card:hover, .tcard:hover { border-color: var(--brand-line); }
.tcard { transition: border-color .25s var(--ease), transform .25s var(--ease); }
.tcard:hover { transform: translateY(-3px); }
.card--ledger { background: radial-gradient(80% 90% at 100% 100%, rgba(245,184,65,.16), transparent 70%), var(--card); }
.pcard--soon { background: transparent; }
.mini, .tree > div { background: rgba(255,255,255,.03); }
/* The invoice stays white paper: it is the one thing in the product that gets printed. */
.mini--inv { --ink: #17161A; --muted: #56535E; --faint: #6E6A78; --rule: #E4E2E8; --ground: #F4F4F7; --brand: #B45309; background: #fff; color: var(--ink); }
.inv__logo { background: #17161A; color: #F5B841; }
.input { background: rgba(255,255,255,.04); }
.input select { color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A8B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input select option { background: #17171C; color: var(--ink); }
.seg__in { background: rgba(255,255,255,.05); }
.seg input:checked + label { background: var(--brand); color: var(--on-brand); }
.calc__out { border: 1px solid var(--rule); }
.faq__list { border-top-color: var(--rule-2); }
.sec--tint { border-block: 1px solid var(--rule); }
.sec--dark::before { background: radial-gradient(50% 60% at 0% 0%, rgba(245,184,65,.16), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(245,184,65,.08), transparent 70%); }
.sec--cta { background: var(--ground); color: var(--ink); }
.sec--cta::before { background: radial-gradient(60% 80% at 100% 0%, rgba(245,184,65,.2), transparent 65%), radial-gradient(50% 70% at 0% 100%, rgba(245,184,65,.08), transparent 70%); }
.cta__copy > p { color: var(--muted); }

/* steps become cards with a large numeral */
ol.steps { border: 0; gap: 16px; }
ol.steps .step { padding: 26px 24px 28px; border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--card); transition: border-color .25s var(--ease), transform .25s var(--ease); }
ol.steps .step:hover { border-color: var(--brand-line); transform: translateY(-3px); }
ol.steps .step::before { display: none; }
ol.steps .step__n { font-size: 2.25rem; letter-spacing: -.04em; margin-bottom: 36px; background: linear-gradient(180deg, #FFE3A3, #E28A1E); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* page header on inner pages: grid, glow and rings so it is not a flat strip */
.phero { position: relative; overflow: hidden; isolation: isolate; border-bottom-color: var(--rule); background: radial-gradient(50% 120% at 85% 0%, rgba(245,184,65,.2), transparent 70%); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); opacity: .7; }
.phero::after { content: ""; position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); z-index: -1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 38px, rgba(245,184,65,.16) 38px 39px); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }

/* closing call to action: an inset glowing panel */
.band { background: transparent; padding: clamp(56px, 7vw, 96px) 0; overflow: visible; }
.band::before { display: none; }
.band__in { border: 1px solid var(--rule-2); border-radius: 28px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(60% 160% at 100% 0%, rgba(245,184,65,.22), transparent 70%), var(--surface); box-shadow: var(--sh-2); }
.band p { color: var(--muted); }

/* ================= logo ================= */
.brand { gap: 11px; font-weight: 600; font-size: 1.125rem; letter-spacing: -.025em; color: var(--ink); }
.brand .lg { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(245,184,65,.35)); }
.brand b { font-weight: 600; color: var(--brand); margin-left: .2em; }

/* ================= home: hero with picture ================= */
.hx { position: relative; isolation: isolate; margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hx__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 78% 30%, rgba(245,184,65,.22), transparent 70%), radial-gradient(35% 45% at 8% 0%, rgba(110,130,255,.12), transparent 70%); }
.hx__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent); mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent); opacity: .6; }
.hx__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hx h1 { font-size: clamp(2.75rem, 6.2vw, 5rem); line-height: 1; letter-spacing: -.05em; margin-top: 26px; }
.hx .lede { margin: 24px 0 0; max-width: 46ch; }
.hx .hero__cta { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: .8125rem; color: var(--muted); background: rgba(255,255,255,.03); }
.chip b { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.hx__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9063rem; }
.hx__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hx__trust .ico { color: var(--brand); stroke-width: 2.4; }

.hx__art { position: relative; }
.hx__photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.5; border: 1px solid var(--rule-2); box-shadow: 0 0 0 8px rgba(255,255,255,.03), 0 60px 120px -40px rgba(245,184,65,.45), 0 40px 80px -30px #000; }
.hx__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; filter: saturate(.75) contrast(1.05) brightness(.82); }
.hx__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(245,184,65,.3), transparent 45%), linear-gradient(0deg, rgba(9,9,11,.92), rgba(9,9,11,.1) 60%); mix-blend-mode: normal; }
.fl { position: absolute; z-index: 2; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--rule-2); background: rgba(19,19,23,.82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 60px -20px #000; animation: bob 7s ease-in-out infinite; }
.fl small { display: block; font-size: .75rem; color: var(--muted); }
.fl b { display: block; font: 500 1.5rem/1.25 var(--mono); letter-spacing: -.04em; color: var(--ink); }
.fl--bal { left: -32px; top: 9%; }
.fl--bal .pill { margin-top: 8px; }
.fl--int { right: -24px; top: 44%; animation-delay: -2.5s; min-width: 220px; }
.fl--int b { color: var(--brand); }
.fl--int svg { display: block; width: 100%; height: 44px; margin-top: 10px; }
.fl--qb { left: 7%; bottom: -26px; display: flex; align-items: center; gap: 12px; animation-delay: -4.5s; }
.fl--qb b { font: 600 .9375rem/1.3 var(--sans); letter-spacing: -.01em; }
.fl__ok { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--settled-bg); color: var(--settled); border: 1px solid var(--settled-line); flex: none; }
.fl__ok .ico { stroke-width: 2.6; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.facts { border-block: 1px solid var(--rule); background: var(--ground-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 28px 24px; }
.facts li + li { border-left: 1px solid var(--rule); }
.facts b { display: block; font: 500 1.625rem/1.2 var(--mono); letter-spacing: -.04em; color: var(--brand); }
.facts span { color: var(--muted); font-size: .9375rem; }

.sec__head--c { text-align: center; margin-inline: auto; }
.sec__head--c .sec__lede { margin-inline: auto; }
.shot { position: relative; }
.shot::before { content: ""; position: absolute; inset: 12% 8% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(245,184,65,.34), transparent); filter: blur(60px); }

.b4 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bc { grid-column: span 2; position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--card); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.bc:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.bc--wide { grid-column: span 4; }
.bc--glow::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,184,65,.3), transparent); pointer-events: none; }
.bc h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.bc > p { color: var(--muted); margin-top: 8px; font-size: .9688rem; max-width: 46ch; }
.bc .card__ico { margin-bottom: 20px; }
.bc p.bc__big { font: 500 clamp(2.25rem, 5vw, 3.75rem)/1 var(--mono); letter-spacing: -.05em; color: var(--brand); margin-top: 32px; max-width: none; }
.bc p.bc__eq { font: 400 .9375rem var(--mono); color: var(--faint); margin-top: 10px; }
.rows { margin-top: 24px; font-size: .875rem; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.rows b { font: 500 .875rem var(--mono); color: var(--ink); }
.sync { display: flex; align-items: center; gap: 12px; margin-top: 30px; font: 400 .8125rem var(--mono); }
.sync i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.sync span { padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 10px; white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 600; color: var(--brand); text-decoration: none; min-height: 44px; }
.more .ico { transition: transform .2s var(--ease); }
.more:hover .ico { transform: translateX(4px); }

/* ================= footer ================= */
.foot { background: #050506; border-top: 1px solid var(--rule); padding: 72px 0 28px; position: relative; overflow: hidden; isolation: isolate; }
.foot::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 280px; transform: translate(-50%, -55%); z-index: -1; background: radial-gradient(closest-side, rgba(245,184,65,.16), transparent); }
.foot__brand p { color: var(--muted); }
.foot__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.foot__col h4 { color: var(--ink); letter-spacing: .1em; }
.foot__col a { color: var(--muted); min-height: 36px; display: flex; align-items: center; }
.foot__col a:hover { color: var(--brand); }
@media (min-width: 641px) { .foot__in { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); } }

@media (max-width: 1040px) {
  .hx__in { grid-template-columns: minmax(0, 1fr); }
  .hx__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hx__photo { aspect-ratio: 4 / 3.4; }
  .bc, .bc--wide { grid-column: span 6; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .phero::after { opacity: .5; }
}
@media (max-width: 640px) {
  .fl { padding: 12px 14px; }
  .fl b { font-size: 1.125rem; }
  .fl--bal { left: 10px; top: 10px; }
  .fl--int { right: 10px; top: auto; bottom: 64px; min-width: 0; }
  .fl--int svg { display: none; }
  .fl--qb { left: 10px; bottom: -22px; }
  .facts li { padding: 20px 16px; }
  .facts b { font-size: 1.25rem; }
  ol.steps .step__n { margin-bottom: 20px; }
  .sync { gap: 8px; }
  .sync span { padding: 6px 8px; font-size: .6875rem; }
  .sync i { min-width: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fl { animation: none; } }

/* ================= legal pages ================= */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__doc { max-width: 72ch; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.legal__doc h2 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal__doc p { margin-top: 12px; }
.legal__doc ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.legal__doc li::marker { color: var(--brand); }
.legal__doc strong { color: var(--ink); font-weight: 600; }
.legal__doc a, .legal__side p a, .cta__mail a, .form__alt a { color: var(--brand); text-underline-offset: 3px; }
.legal__doc .caps { font-size: .9375rem; color: var(--ink); padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); background: rgba(255,255,255,.03); }
.legal__doc .box { margin-top: 20px; padding: 6px 20px 18px; border: 1px solid var(--brand-line); border-radius: var(--r-lg); background: var(--brand-soft); color: var(--ink); }
.legal__doc .table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--rule); border-radius: var(--r); }
.legal__doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal__doc th, .legal__doc td { text-align: left; vertical-align: top; padding: 14px 16px; min-width: 220px; }
.legal__doc th { color: var(--ink); font-weight: 600; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--rule); }
.legal__doc td + td, .legal__doc th + th { border-left: 1px solid var(--rule); }
.legal__side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 6px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); }
.legal__side h2 { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.legal__side > a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; transition: background-color .15s, color .15s; }
.legal__side > a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.legal__side > a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.legal__side p { font-size: .875rem; color: var(--faint); margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.cta__mail { margin-top: 26px; font-size: .9375rem !important; }
.form__alt { font-size: .875rem; margin-top: 14px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__side { position: static; order: -1; } }
