/* Ledgerly — ledger-paper identity: cool sage paper, ledger-navy ink, double red margin rule. */
:root {
  --paper: #EEF1EA;
  --paper-2: #E2E8E0;
  --sheet: #FAFBF8;
  --ink: #0F2340;
  --ink-2: #44546B;
  --ink-3: #6E7C8F;
  --rule: #C3D0DE;
  --rule-soft: #D9E1E8;
  --red: #C8372D;
  --red-bg: #F7E3DF;
  --green: #1D7550;
  --green-bg: #DCEEE3;
  --gold: #D9A12B;
  --gold-bg: #F6ECD3;
  --blue-bg: #E1E9F4;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --quote: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 8px;
  font: 600 16px/1 var(--display); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1B3760; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--full { width: 100%; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: var(--ink); }
.brand__mark .r { stroke: #E2574C; stroke-width: 1.6; }
.brand__mark .l { stroke: var(--paper); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 241, 234, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__signin { padding-left: 28px; border-left: 1px solid var(--rule); }
.nav__toggle { display: none; }

/* ---------- Ruled ledger paper (signature motif) ---------- */
.ruled { position: relative; isolation: isolate; }
.ruled::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule-soft) 35px 36px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.ruled::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  left: max(6px, calc((100vw - var(--wrap)) / 2 - 28px));
  width: 5px;
  border-left: 1px solid rgba(200, 55, 45, .55);
  border-right: 1px solid rgba(200, 55, 45, .55);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); overflow: hidden; }
.hero__copy { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.hero__title {
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 13.5em;
  text-wrap: balance;
}
.hero__sub { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.hero__product { margin-top: clamp(48px, 7vw, 88px); position: relative; }
.hero__product::after { /* paper edge fade so the mockup sinks into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(238, 241, 234, 0), var(--paper));
  pointer-events: none;
}

/* ---------- App mockup ---------- */
.app {
  position: relative;
  display: grid; grid-template-columns: 220px 1fr;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px rgba(15, 35, 64, .35), 0 12px 24px -16px rgba(15, 35, 64, .18);
  font-size: 13px; line-height: 1.4;
  overflow: hidden;
  max-height: 760px;
}
.app__side { background: #F2F4F0; border-right: 1px solid var(--rule-soft); padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; }
.app__org { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.app__orgmark { width: 26px; height: 26px; border-radius: 6px; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.app__menu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.app__menu li b { margin-left: auto; font-weight: 600; font-size: 11px; background: var(--paper-2); padding: 1px 7px; border-radius: 999px; }
.app__menu li.is-on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--rule-soft); }
.ico { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .7; flex: none; }
.ico--user { border-radius: 50%; }
.ico--clock { border-radius: 50%; }
.ico--chart { border-width: 0 0 1.5px 1.5px; border-radius: 0; }
.ico--card { height: 11px; }
.app__bank { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 8px; background: #fff; }
.app__bank strong { display: block; font-size: 12px; }
.app__bank small { color: var(--ink-3); font-size: 11px; }
.app__bankdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 4px; box-shadow: 0 0 0 3px var(--green-bg); flex: none; }

.app__main { padding: 22px 24px 0; min-width: 0; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.app__h { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.app__date { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.app__actions { display: flex; gap: 8px; }
.app__range, .app__new { padding: 7px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.app__range { border: 1px solid var(--rule); color: var(--ink-2); background: #fff; }
.app__new { background: var(--ink); color: var(--paper); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule-soft); border-radius: 8px; background: #fff; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi + .kpi { border-left: 1px solid var(--rule-soft); }
.kpi span { color: var(--ink-3); font-size: 12px; }
.kpi strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; transition: color .4s; }
.kpi small { font-size: 11.5px; color: var(--ink-3); }
.kpi small.up { color: var(--green); }
.kpi--late strong { color: var(--red); }
.kpi strong.is-bump { color: var(--green); }

.app__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; margin-top: 14px; }
.panel { background: #fff; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.panel h3 { font-size: 14px; font-weight: 700; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel__link { color: var(--ink-2); font-weight: 600; font-size: 12px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-3); font-size: 11.5px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; }
.sw--in { background: var(--ink); }
.sw--out { background: var(--rule); }
.sw--bal { height: 2px; width: 14px; background: var(--green); }
.sw--fc { height: 0; width: 14px; border-top: 2px dashed var(--gold); border-radius: 0; }

.cash { width: 100%; height: 230px; overflow: visible; }
.cash .grid { stroke: var(--rule-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cash .ylab, .cash .xlab { fill: var(--ink-3); font: 500 10.5px var(--display); }
.cash .xlab.is-now { fill: var(--ink); font-weight: 700; }
.cash .b-in { fill: var(--ink); }
.cash .b-out { fill: var(--rule); }
.cash .is-fc { opacity: .32; }
.cash .now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.cash .bal { fill: none; stroke: var(--green); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cash .fc { fill: none; stroke: var(--gold); stroke-width: 2.25; stroke-dasharray: 5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cash .dot { fill: #fff; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cash .bar { transform-box: fill-box; transform-origin: bottom; }

.next { margin-top: 10px; }
.next div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.next dt { color: var(--ink-2); }
.next dd { font-weight: 700; }
.next dd.pos { color: var(--green); }
.next__sub dt { padding-left: 12px; color: var(--ink-3); font-size: 12px; }
.next__sub dd { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.next__bal { margin-top: 14px; padding: 12px; border-radius: 6px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.next__bal span { color: var(--ink-3); font-size: 12px; }
.next__bal strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

.panel--table { margin-top: 14px; padding-bottom: 4px; }
.inv { width: 100%; border-collapse: collapse; }
.inv th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--rule-soft); }
.inv td { padding: 10px 8px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.inv tr:last-child td { border-bottom: 0; }
.inv td strong { display: block; font-weight: 600; }
.inv td small { color: var(--ink-3); font-size: 11.5px; }
.inv .num { text-align: right; font-weight: 600; }
.inv .c-no { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.inv tr.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: var(--green-bg); } 100% { background: transparent; } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background-color .35s, color .35s; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--sent { background: var(--blue-bg); color: #2F4F7F; }
.pill--viewed { background: var(--gold-bg); color: #7A5508; }
.pill--late { background: var(--red-bg); color: var(--red); }
.pill--paid { background: var(--green-bg); color: var(--green); }

.toast {
  position: absolute; right: 20px; top: 76px; z-index: 2;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 18px 40px -18px rgba(15, 35, 64, .6);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast i { width: 18px; height: 18px; border-radius: 50%; background: var(--green); flex: none; position: relative; margin-top: 1px; }
.toast i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.toast strong { display: block; font-size: 13px; }
.toast small { color: #B8C4D3; font-size: 11.5px; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Logos ---------- */
.logos { padding: 56px 0 24px; }
.logos__h { color: var(--ink-3); font-size: 15px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin-top: 22px; color: #5A687C; }
.lg { display: flex; align-items: center; gap: 8px; font-size: 22px; line-height: 1; white-space: nowrap; }
.lg svg { width: 18px; height: 18px; fill: currentColor; }
.lg--1 { font-weight: 800; letter-spacing: -.06em; font-size: 25px; }
.lg--2 { font-family: var(--quote); font-style: italic; font-size: 25px; }
.lg--3 { font-weight: 500; letter-spacing: -.02em; }
.lg--4 { font-weight: 900; letter-spacing: .32em; font-size: 18px; }
.lg--5 { font-family: var(--quote); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.lg--6 { font-weight: 700; letter-spacing: -.03em; }
.lg--7 { font-weight: 400; letter-spacing: .04em; font-size: 20px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 136px); }
.section--tint { background: var(--paper-2); }
.shead { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.shead h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.shead p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.shead--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.shead--row > div { max-width: 640px; }

/* Features: ledger entries — a rule, the text column, the visual column */
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--rule); align-items: center; }
.feat:last-child { border-bottom: 1px solid var(--rule); }
.feat__text h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.feat__text p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.ticks { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-3px); }
.feat__vis { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(20px, 3vw, 32px); font-size: 14px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.feat__vis--center { align-items: center; background: radial-gradient(circle at 50% 0%, var(--paper-2), var(--sheet) 70%); }

/* timeline */
.tl { position: relative; display: grid; gap: 18px; }
.tl::before { content: ""; position: absolute; left: 63px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl__item { display: grid; grid-template-columns: 52px 1fr; gap: 28px; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 59px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--sheet); border: 1.5px solid var(--ink-3); }
.tl__item time { color: var(--ink-3); font-size: 13px; font-weight: 500; padding-top: 1px; }
.tl__item strong { display: block; font-weight: 650; }
.tl__item span { color: var(--ink-2); font-size: 13.5px; }
.tl__quote { font-family: var(--quote); font-style: italic; font-size: 15px !important; }
.tl__item--paid::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.tl__item--paid strong { color: var(--green); }

/* forecast */
.fc__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.fc__top strong { color: var(--ink); font-weight: 700; }
.fc__svg { width: 100%; height: 170px; margin-top: 14px; overflow: visible; }
.fc__min { stroke: var(--red); stroke-width: 1.25; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.fc__area { fill: rgba(29, 117, 80, .09); }
.fc__line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fc__dot { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fc__low { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--ink); }
.fc__low span { color: var(--ink-3); font-size: 13px; }
.fc__axis { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--rule-soft); color: var(--ink-3); font-size: 12px; }

/* pay page */
.pay { width: 100%; max-width: 320px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px; box-shadow: 0 24px 40px -28px rgba(15, 35, 64, .4); }
.pay__from { display: flex; gap: 10px; align-items: center; }
.pay__from strong { display: block; font-size: 14px; }
.pay__from small { color: var(--ink-3); font-size: 12px; }
.pay__logo { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); display: grid; place-items: center; font-weight: 800; }
.pay__amt { margin-top: 18px; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.pay__due { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.pay__seg { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--paper); border-radius: 8px; font-weight: 600; font-size: 13px; text-align: center; }
.pay__seg span { padding: 7px; border-radius: 6px; color: var(--ink-2); }
.pay__seg .is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 35, 64, .12); }
.pay__field { margin-top: 12px; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.pay__field span:first-child { font-size: 11.5px; color: var(--ink-3); }
.pay__ph { color: #A6B1BE; letter-spacing: .04em; }
.pay__btn { margin-top: 14px; display: block; text-align: center; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 11px; font-weight: 700; }
.pay__fine { display: block; text-align: center; margin-top: 10px; color: var(--ink-3); font-size: 11.5px; }

/* time */
.time__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.time__head span { color: var(--ink-3); font-size: 13px; }
.time__list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.time__list b { margin-left: auto; font-weight: 600; }
.time__list li.is-off { color: var(--ink-3); }
.cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--rule); position: relative; flex: none; }
.cb.is-on { background: var(--ink); border-color: var(--ink); }
.cb.is-on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.time__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.time__foot > span:first-child { color: var(--ink-2); font-weight: 500; }
.time__btn { background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 13.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step__n { display: block; font-size: clamp(56px, 6vw, 80px); font-weight: 900; line-height: .9; letter-spacing: -.05em; color: var(--ink); margin-bottom: 22px; }
.step:nth-child(2) .step__n { color: #2F4F7F; }
.step:nth-child(3) .step__n { color: var(--green); }
.step h3 { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 26em; }

/* metrics */
.metrics { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 9vw, 112px); position: relative; }
.metrics::before { /* the margin rule runs through the dark band too */
  content: ""; position: absolute; top: 0; bottom: 0; left: max(6px, calc((100vw - var(--wrap)) / 2 - 28px)); width: 5px;
  border-left: 1px solid rgba(226, 87, 76, .6); border-right: 1px solid rgba(226, 87, 76, .6);
}
.metrics__h { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; color: #C9D3DF; }
.metrics__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 4px 28px 0; border-left: 1px solid rgba(238, 241, 234, .18); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric dd { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.metric dd span { font-size: .42em; letter-spacing: -.01em; font-weight: 600; color: #C9D3DF; margin-left: 4px; }
.metric dt { color: #AFBCCB; font-size: 15px; max-width: 14em; }
.metrics__note { margin-top: 48px; color: #8C9AAD; font-size: 13px; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.quote blockquote { font-family: var(--quote); font-style: italic; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.38; letter-spacing: -.005em; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption strong { display: block; font-size: 15px; }
.quote figcaption small { color: var(--ink-3); font-size: 13.5px; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.av--a { background: var(--ink); color: var(--paper); }
.av--b { background: var(--green-bg); color: var(--green); box-shadow: inset 0 0 0 1px rgba(29, 117, 80, .25); }
.av--c { background: var(--gold-bg); color: #7A5508; box-shadow: inset 0 0 0 1px rgba(217, 161, 43, .35); }

/* pricing */
.bill { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }
.bill__opt { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--display); padding: 10px 16px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .2s, color .2s; }
.bill__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bill__save { font-size: 12px; padding: 3px 7px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan__tag { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 9px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.plan__for { margin-top: 6px; color: var(--ink-2); font-size: 15px; min-height: 2.9em; }
.plan__price { margin-top: 22px; display: flex; align-items: baseline; gap: 2px; }
.plan__price .cur { font-size: 26px; font-weight: 700; align-self: flex-start; margin-top: 8px; }
.plan__price .amt { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; display: inline-block; min-width: 1.2em; }
.plan__price .amt.is-swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan__price .per { color: var(--ink-3); font-size: 15px; margin-left: 6px; }
.plan__bill { color: var(--ink-3); font-size: 14px; margin: 6px 0 24px; }
.plan__list { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 15px; }
.plan__list li { display: flex; gap: 10px; align-items: baseline; }
.plan__list li::before { content: ""; flex: none; width: 10px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-3px); }
.plan--main { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(15, 35, 64, .55); }
.plan--main .plan__for, .plan--main .plan__price .per, .plan--main .plan__bill { color: #AFBCCB; }
.plan--main .plan__list { border-top-color: rgba(238, 241, 234, .2); }
.plan--main .plan__list li::before { border-color: #7FD1A6; }
.plans__fees { margin-top: 24px; color: var(--ink-3); font-size: 14px; }

/* faq */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .shead { position: sticky; top: 100px; }
.faq__list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: #2F4F7F; }
.qa p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 38em; }
.qa[open] p { animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* final cta */
.cta { padding-block: clamp(96px, 13vw, 168px); border-top: 1px solid var(--rule); }
.cta::before { -webkit-mask-image: none; mask-image: none; }
.cta h2 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -.045em; max-width: 11em; text-wrap: balance; }
.cta p { margin-top: 20px; font-size: 19px; color: var(--ink-2); }

/* footer */
.foot { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 64px 0 32px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot__brand p { margin-top: 14px; color: var(--ink-2); max-width: 22em; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.foot__col a { color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { margin-top: 56px; color: var(--ink-3); font-size: 13.5px; }
.foot__base p { padding-top: 24px; border-top: 1px solid var(--rule); }

/* ---------- Reveal (transform/opacity only) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero load sequence */
.js .hero__title, .js .hero__sub, .js .hero__ctas, .js .hero__note { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.js .hero__sub { animation-delay: .1s; }
.js .hero__ctas { animation-delay: .18s; }
.js .hero__note { animation-delay: .24s; }
.js .hero__product { opacity: 0; transform: translateY(40px); animation: rise 1s var(--ease) .3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cash .bal.is-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .9s forwards; }
.cash .fc.is-draw { opacity: 0; animation: fade .6s ease 2.1s forwards; }
.cash .bar.is-grow { transform: scaleY(0); animation: grow .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .logos__row { justify-content: flex-start; gap: 20px 44px; }
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
}
@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 17px; }
  .nav__signin { padding-left: 0; border-left: 0; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: transparent; cursor: pointer; }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .app__grid { grid-template-columns: 1fr; }
  .panel--next { display: none; }
  .feat, .faq { grid-template-columns: 1fr; }
  .faq .shead { position: static; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .metrics__row { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan__for { min-height: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ruled::after, .metrics::before { left: 5px; width: 4px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .app { font-size: 12px; border-radius: 12px 12px 0 0; max-height: 820px; }
  .app__main { padding: 16px 14px 0; }
  .app__range { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .kpi { padding: 12px; }
  .kpi strong { font-size: 20px; }
  .cash { height: 180px; }
  .legend { gap: 8px 10px; }
  .inv .c-due, .inv .c-no, .inv td small { display: none; }
  .inv td, .inv th { padding-inline: 6px; }
  .toast { left: 14px; right: 14px; top: 64px; }
  .logos__row { justify-content: flex-start; gap: 18px 28px; }
  .lg { font-size: 19px; }
  .lg--1, .lg--2 { font-size: 21px; }
  .tl::before { left: 51px; }
  .tl__item { grid-template-columns: 44px 1fr; gap: 24px; }
  .tl__item::before { left: 47px; }
  .metric { padding: 0 0 0 18px; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric dd { font-size: 44px; }
  .metric dt { font-size: 14px; }
  .shead--row { align-items: flex-start; }
  .qa summary { font-size: 17px; }
  .qa p { padding-right: 0; }
}
