/* Pro Bookkeepers homepage layer. Loads after shell.css (tokens, header,
   buttons, forms, footer). Everything here is homepage-only. */

:root {
  /* Brand colours and fonts live in shell.css (loaded first). */
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dk); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: var(--tr-display); line-height: 1.02; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.005em; line-height: 1.25; }
p { margin: 0 0 1em; }
.ledger, .stmt, .calc__out, .calc__big, .slide b, .plan__price, .ring__num, .ill, .tracker__days, .hres__fix span, .wp__ref { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--ok { background: var(--pos); }
.dot--live { background: var(--pos); box-shadow: 0 0 0 0 rgba(31,122,84,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,122,84,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,84,0); } }

/* ---------- Hero: ledger paper ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    linear-gradient(90deg, transparent calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 9px), transparent calc(var(--gut) - 9px)),
    repeating-linear-gradient(transparent 0 31px, rgba(0,168,114,.09) 31px 32px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-h1); max-width: 17ch; }
.hl { color: var(--accent-dk); }
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--text); max-width: 52ch; margin: 1.5rem 0 2rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__note { font: 400 .875rem/1.5 var(--mono); color: var(--text); margin: 1.1rem 0 0; max-width: 56ch; }

/* close tracker */
.tracker { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 30px 70px -40px rgba(13,27,42,.45); }
.tracker__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tracker__head .tile__k { margin: 0; }
.tracker__today { font: 500 .75rem/1 var(--mono); color: var(--ink); background: var(--soft); padding: .4rem .6rem; border-radius: 6px; white-space: nowrap; }
.tracker__verdict { font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.25 var(--display); letter-spacing: -.01em; margin: 0 0 1.4rem; }
.tracker__verdict em { font-style: normal; color: var(--neg); }
.tracker__days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.tracker__days li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--soft); font: 500 .8125rem var(--mono); color: #6B7889; }
.tracker__days li.is-past { background: var(--accent-soft); color: var(--accent-dk); }
.tracker__days li.is-today { background: var(--accent); color: var(--ink); font-weight: 700; }
.tracker__days li.is-close { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.tracker__days li.is-close.is-past { background: var(--ink); color: #fff; }
.tracker__stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracker__stages li { position: relative; padding: .7rem 0 .7rem 1.9rem; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--text); }
.tracker__stages li b { display: block; font: 500 .8125rem/1.4 var(--mono); letter-spacing: .01em; color: #6B7889; }
.tracker__stages li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); box-sizing: border-box; }
.tracker__stages li.is-done::before { border-color: var(--pos); background: var(--pos); box-shadow: inset 0 0 0 3px var(--card); }
.tracker__stages li.is-now { color: var(--ink); }
.tracker__stages li.is-now b { color: var(--accent-dk); }
.tracker__stages li.is-now::before { border-color: var(--accent); background: var(--accent); animation: pulse2 2s infinite; }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(0,168,114,.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(0,168,114,0); } }
.tracker__q { margin: 1.1rem 0 0; font-weight: 600; }

/* software row */
.works { border-block: 1px solid var(--line); background: var(--card); }
.works__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.75rem; padding-block: 1.1rem; font: 500 .8125rem/1.3 var(--mono); color: var(--text); }
.works__in .tile__k { margin: 0; color: var(--ink); }
.works__in a { color: var(--text); text-decoration: none; }
.works__in a:hover { color: var(--accent-dk); }

/* health check */
.health { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hq-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -45px rgba(13,27,42,.35); }
.hq-bar { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: baseline; padding: 1.1rem 1.5rem 0; font: 500 .75rem/1.4 var(--mono); color: var(--text); }
.hq-bar b { color: var(--ink); }
.hq-bar__rule { justify-self: end; text-align: right; color: #6B7889; }
.hq-bar__track { grid-column: 1 / -1; display: block; height: 4px; background: var(--soft); border-radius: 4px; margin: .6rem 0 0; overflow: hidden; }
.hq-bar__track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.hq { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: q; }
.hq li { counter-increment: q; position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1.2rem 1.5rem; border-top: 1px solid var(--line); transition: background .25s; }
.hq li::before { content: counter(q); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font: 600 .75rem var(--mono); color: var(--text); transition: all .25s; }
.hq li.is-yes::before { content: '\2713'; background: var(--pos); border-color: var(--pos); color: #fff; }
.hq li.is-no::before { content: '\2715'; background: var(--neg); border-color: var(--neg); color: #fff; }
.hq li.is-no { background: #FDF6F3; }
.hq__area { display: block; font: 500 .8125rem/1 var(--mono); letter-spacing: .01em; color: #6B7889; margin-bottom: .45rem; }
.hq p { margin: 0; font-weight: 500; line-height: 1.45; }
.hq p small { display: block; font-weight: 400; color: #6B7889; font-size: .8125rem; margin-top: .2rem; }
.yn { display: inline-flex; padding: 3px; background: var(--soft); border-radius: 10px; gap: 2px; }
.yn button { font: 600 .8125rem/1 var(--body); padding: .6rem .85rem; border-radius: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.yn button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.yn button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(13,27,42,.15); }
.yn button[aria-pressed="true"][data-a="1"] { color: var(--pos); }
.yn button[aria-pressed="true"][data-a="0"] { color: var(--neg); }

.hres { --band: #7F8DA0; position: sticky; top: 90px; background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.1rem); }
.hres[data-band="good"] { --band: #34D399; }
.hres[data-band="ok"] { --band: #93C5FD; }
.hres[data-band="behind"] { --band: #FBBF24; }
.hres[data-band="bad"] { --band: #FF8A6B; }
.hres__top { position: relative; width: 150px; height: 150px; margin: 0 auto 1.25rem; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: #1E3246; }
.ring__fg { stroke: var(--band); stroke-linecap: round; transition: stroke-dasharray .7s cubic-bezier(.2,.8,.2,1), stroke .3s; }
.ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num b { font: 800 3rem/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ring__num small { font: 500 .75rem/1 var(--mono); color: #7F8DA0; margin-top: .3rem; }
.hres__band { text-align: center; font: 600 .75rem/1 var(--mono); letter-spacing: .01em; color: var(--band); margin: 0 0 .6rem; }
.hres__grade { text-align: center; font: 700 1.25rem/1.3 var(--display); letter-spacing: -.01em; margin: 0 0 1.25rem; }
.hres__fix { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hres__fix li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .75rem 0; border-top: 1px solid #22364D; font-size: .875rem; color: #C3CCD8; animation: rise .35s ease both; }
.hres__fix li b { color: #fff; font-weight: 600; }
.hres__fix li span { font: 600 .75rem var(--mono); color: #FF8A6B; white-space: nowrap; }
.hres__fix li p { grid-column: 1 / -1; margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.hres .form-status { background: #142740; color: #fff; }
.hres .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* working paper */
.wp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wp__head, .wp__row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.35rem 1.5rem; align-items: start; }
.wp__head { background: var(--ink); color: #9DAAB9; font: 500 .8125rem/1 var(--mono); letter-spacing: .01em; padding-block: .9rem; }
.wp__row { border-top: 1px solid var(--line); }
.wp__row:hover { background: #F8FAFB; }
.wp__ref { font: 600 .875rem/1.6 var(--mono); color: var(--neg); }
.wp__row h3 { font-size: var(--fs-h3); }
.wp__row p { margin: 0; color: var(--text); font-size: .9375rem; }
.wp__fix { position: relative; padding-left: 1.6rem; color: var(--ink) !important; font-weight: 500; }
.wp__fix::before { content: ''; position: absolute; left: 2px; top: .3rem; width: 11px; height: 6px; border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.sec { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sec--soft { background: var(--soft); }
.kicker { display: flex; align-items: center; gap: .6rem; font: 600 .875rem/1 var(--mono); letter-spacing: .01em; color: var(--text); margin: 0 0 1.1rem; }
.kicker::before { content: ''; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
.kicker--light { color: #9DAAB9; }
.sec h2 { font-size: var(--fs-h2); max-width: 16ch; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sec__head p { color: var(--text); font-size: 1.0625rem; margin: 0; max-width: 46ch; }
.tile__k { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .01em; color: var(--text); margin: 0 0 1rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 2.5vw, 2rem); }
.tile h3 { font-size: var(--fs-h3-lg); font-weight: 800; letter-spacing: -.01em; margin-bottom: .9rem; line-height: 1.1; }
.tile p { color: var(--text); margin: 0; }
.tile--wide { grid-column: span 2; }
.tile--wide2 { grid-column: span 2; }
.tile--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile--dark p, .tile--dark .tile__k { color: #9DAAB9; }
.tile--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.tile--accent p, .tile--accent .tile__k { color: #D6DDE6; }
.tile__big { font: 800 clamp(3rem, 5.4vw, 4.5rem)/1 var(--display) !important; letter-spacing: -.01em; color: var(--ink) !important; margin: 0 0 .6rem !important; }

/* ---------- Demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.demo__copy > p { color: var(--text); font-size: 1.0625rem; margin: 1.25rem 0 1.75rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font: 500 .8125rem/1 var(--mono); letter-spacing: .01em; color: var(--text); margin-bottom: .5rem; }
.field select { width: 100%; font: 500 1rem var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .85rem .9rem; }
.demo__fine { display: flex; align-items: center; gap: .5rem; font: 400 .75rem/1.4 var(--mono); color: var(--text); margin: 1rem 0 0; }

.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -40px rgba(13,27,42,.45); overflow: hidden; font-family: var(--mono); }
.ledger__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--text); }
.ledger__bar b { color: var(--ink); font-weight: 600; }
.ledger__state { font-size: .6875rem; letter-spacing: .01em; padding: .35rem .55rem; border-radius: 6px; background: var(--soft); color: var(--text); }
.ledger__state.is-busy { background: var(--accent-soft); color: var(--accent-dk); }
.ledger__state.is-done { background: #DDF3EA; color: var(--pos); }
.ledger__steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger__steps li { font-size: .6875rem; letter-spacing: .01em; text-align: center; padding: .7rem .25rem; color: #8C98A8; position: relative; }
.ledger__steps li::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background .3s; }
.ledger__steps li.is-on { color: var(--ink); }
.ledger__steps li.is-on::after { background: var(--accent); }
.ledger__steps li.is-done { color: var(--pos); }
.ledger__steps li.is-done::after { background: var(--pos); }
.ledger__rows { list-style: none; margin: 0; padding: .4rem 0; min-height: 300px; }
.ledger__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 8.5rem; gap: .9rem; align-items: center; padding: .55rem 1.25rem; font-size: .8125rem; transition: background .3s; }
.ledger__rows li.is-flag { background: #FDF0EC; }
.ledger__rows .d { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__rows .a { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger__rows .a.out { color: var(--neg); }
.ledger__rows .c { justify-self: end; font-size: .6875rem; padding: .3rem .5rem; border-radius: 6px; background: var(--soft); color: #6B7889; white-space: nowrap; transition: background .3s, color .3s; }
.ledger__rows .c.is-set { background: var(--accent-soft); color: var(--accent-dk); }
.ledger__rows .c.is-flag { background: #F9D9CF; color: var(--neg); }
.ledger__recon { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-top: 1px dashed var(--line); font-size: .8125rem; color: var(--text); }
.ledger__recon b { font-size: 1.125rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger__recon b.is-bad { color: var(--neg); }
.ledger__recon b.is-ok { color: var(--pos); }
.ledger__out { padding: 1.1rem 1.25rem 1.25rem; background: var(--ink); color: #C3CCD8; font-size: .8125rem; }
.ledger__out strong { display: block; font: 800 1.5rem/1.1 var(--display); color: #fff; letter-spacing: -.01em; margin-bottom: .6rem; }
.ledger__out ul { margin: 0; padding: 0 0 0 1.1rem; }
.ledger__out li { margin: .25rem 0; }

/* ---------- The work ---------- */
.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work > li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
.work__n { font: 500 .875rem/1 var(--mono); color: var(--accent-dk); padding-top: .5rem; }
.work h3 { font-size: var(--fs-h3-lg); font-weight: 800; letter-spacing: -.01em; margin-bottom: .75rem; }
.work h3 a { color: var(--ink); text-decoration: none; }
.work h3 a:hover { color: var(--accent-dk); }
.work p { color: var(--text); max-width: 68ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.tag { display: inline-block; font: 500 .8125rem/1 var(--mono); letter-spacing: .01em; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--card); }
.tag--hot { background: var(--accent-soft); border-color: transparent; color: var(--accent-dk); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.75rem, 4.5vw, 3.5rem); }
.calc h2 { color: #fff; font-size: var(--fs-h2); }
.calc__in > p { color: #9DAAB9; margin: 1.1rem 0 2rem; }
.slide { display: block; margin-bottom: 1.5rem; }
.slide span { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; color: #CFD6E0; margin-bottom: .6rem; }
.slide b { font: 600 1rem var(--mono); color: #fff; }
.slide input { width: 100%; accent-color: var(--accent); height: 22px; cursor: pointer; }
.calc__out { background: #142740; border: 1px solid #22364D; border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); align-self: start; }
.calc__big { font: 800 clamp(2.75rem, 6vw, 4.25rem)/1 var(--display); letter-spacing: -.01em; margin: 0 0 1.5rem; font-variant-numeric: tabular-nums; }
.calc__out dl { margin: 0 0 1.25rem; font-family: var(--mono); font-size: .875rem; }
.calc__out dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #22364D; }
.calc__out dt { color: #9DAAB9; }
.calc__out dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__net dt, .calc__net dd { color: #fff !important; font-weight: 600; }
.calc__net dd.is-save { color: #6EE7B7 !important; }
.calc__verdict { color: #CFD6E0; font-size: .9375rem; margin: 0 0 1.25rem; }
.calc__fine { font: 400 .75rem/1.5 var(--mono); color: #6B7889; margin: 1rem 0 0; }
.calc__fine a { color: #5FD3A6; }

/* ---------- Apps ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.app:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(13,27,42,.4); }
.app__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--ink); font: 700 .9375rem var(--mono); margin-bottom: 1.25rem; }
.app h3 { font-size: var(--fs-h3); }
.app__sub { font: 500 .75rem/1 var(--mono); color: var(--accent-dk); margin: .5rem 0 .9rem; }
.app p:last-child { color: var(--text); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; position: relative; counter-increment: s; }
.steps li::before { content: '0' counter(s); position: absolute; top: 1.4rem; right: 1.5rem; font: 500 .8125rem var(--mono); color: #A7B1BE; }
.steps h3 { font-size: var(--fs-h3); margin: 1.25rem 0 .6rem; }
.steps p { color: var(--text); margin: 0; font-size: .9375rem; }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.proof .tile--dark { grid-row: span 2; }
.founder { display: flex; gap: 1.1rem; align-items: flex-start; }
.founder__ava { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1rem var(--display); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.founder h3 { font-size: var(--fs-h3); margin-bottom: .25rem; }
.founder__role { font: 500 .75rem/1.4 var(--mono); color: var(--accent-dk) !important; margin-bottom: .6rem !important; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.plan__price { font: 800 3.25rem/1 var(--display); letter-spacing: -.01em; margin: 0 0 .5rem; }
.plan__price small { font: 500 .875rem var(--mono); color: var(--text); letter-spacing: 0; }
.plan__for { color: var(--text); margin-bottom: 1.5rem; }
.plan ul { list-style: none; margin: 0 0 2rem; padding: 1.25rem 0 0; border-top: 1px solid var(--line); flex: 1; }
.plan li { position: relative; padding: .35rem 0 .35rem 1.6rem; font-size: .9375rem; }
.plan li::before { content: ''; position: absolute; left: 0; top: .78rem; width: 12px; height: 6px; border-left: 2px solid var(--pos); border-bottom: 2px solid var(--pos); transform: rotate(-45deg); }
.plan--hot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(0,168,114,.6); }
.plan--hot .tile__k { color: #00A872; }
.plan--hot .plan__for, .plan--hot .plan__price small { color: #9DAAB9; }
.plan--hot ul { border-color: #22364D; }
.plan--hot li::before { border-color: #6EE7B7; }
.after { margin: 1.75rem 0 0; color: var(--text); text-align: center; }
.after b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.35rem; position: relative; font: 600 1.0625rem/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; font: 500 1.25rem var(--mono); color: var(--accent-dk); }
.faq details[open] summary::after { content: '\2212'; }
.faq__body { padding: 0 1.35rem 1.25rem; color: var(--text); }
.faq__body p { margin: 0; }

/* ---------- Final CTA ---------- */
.final { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.75rem, 5vw, 4rem); }
.final h2 { color: #fff; font-size: var(--fs-h2); }
.final > div > p { color: #D6DDE6; font-size: 1.0625rem; margin: 1.1rem 0 1.75rem; max-width: 46ch; }
.final .kicker--light { color: #B9C4D1; }
.final .kicker::before { border-color: var(--accent); }
.final__note { font: 400 .8125rem/1.4 var(--mono) !important; color: #B9C4D1 !important; margin: .9rem 0 0 !important; }
.final__side { background: #142740; border-radius: 16px; padding: 1.75rem; align-self: start; }
.final__side .tile__k { color: #B9C4D1; }
.final__side h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.final__side p { color: #D6DDE6; }


/* ---------- Software carousel ---------- */
.soft-row { background: var(--card); border-block: 1px solid var(--line); padding: 1.6rem 0 1.4rem; overflow: hidden; }
.soft-row__label { text-align: center; font: 500 .8125rem/1 var(--mono); letter-spacing: .01em; color: var(--text); margin: 0 0 1.25rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: slide 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: inline-flex; align-items: center; gap: .6rem; padding: 0 2.25rem; font: 700 1.1875rem/1 var(--display); letter-spacing: -.01em; color: #5C6B7F; white-space: nowrap; }
.marquee__track img { width: 22px; height: 22px; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section head variants ---------- */
.sec__head--stack { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.sec__head--stack h2 { max-width: 20ch; }
.sec__head--center { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; justify-items: center; text-align: center; }
.sec__head--center h2 { max-width: 22ch; }
.kicker--center { justify-content: center; }

/* ---------- Ink section (findings) ---------- */
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink h2 { color: #fff; }
.sec--ink .kicker { color: #9DAAB9; }
.sec--ink .sec__head p { color: #9DAAB9; }
.sec--ink .wp { border-color: #22364D; color: var(--ink); }
.sec--ink .wp__head { background: #142740; }

/* ---------- Services: sticky side ---------- */
.side { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
/* Only the illustration is pinned, centred in the window so it is always fully visible */
.side__head { position: sticky; top: max(96px, calc(50vh - 220px)); }
/* same column split as .side below, so the intro lines up with the list */
.sec__head--side { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); }
.side__intro p { color: var(--text); font-size: 1.0625rem; margin: 0 0 1.25rem; max-width: 46ch; }
.side .stage { margin-bottom: 0; }
/* Short laptop screens: scale the panel so it still fits under the header */
@media (min-width: 961px) and (max-height: 820px) { .side .stage { zoom: .85; } .side__head { top: max(84px, calc(50vh - 190px)); } }
@media (min-width: 961px) and (max-height: 660px) { .side .stage { zoom: .7; } }
.side__head .sec__head { margin-bottom: 1.75rem; }
.side .work { border-top: 0; }
.side .work > li:first-child { padding-top: 0; }
.side .work > li { grid-template-columns: 3.5rem minmax(0, 1fr); }

/* ---------- Service illustrations ----------
   Each panel's animations only run while it has .is-on, so they replay
   every time the visitor reaches that service. */
.side__h { font-size: var(--fs-h2-card) !important; margin-bottom: 1.5rem; }
.stage { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(13,27,42,.4); margin-bottom: 1.5rem; min-height: 310px; overflow: hidden; }
.stage__bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #F8FAFB; }
.stage__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.stage__bar span { margin-left: .5rem; font: 500 .75rem/1 var(--mono); color: var(--ink); }
.stage__note { position: absolute; right: 1rem; bottom: .7rem; margin: 0; font: 400 .75rem/1 var(--mono); color: #8C98A8; }
.ill { position: absolute; inset: 53px 0 0; padding: 1.25rem 1.25rem 2rem; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; pointer-events: none; font-family: var(--mono); font-size: .75rem; }
.ill.is-on { opacity: 1; transform: none; }
.ill__cap { margin: 0 0 .9rem; color: var(--text); letter-spacing: .01em; font-size: .6875rem; }
.ill__foot { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--pos); font-weight: 500; opacity: 0; }
.ill.is-on .ill__foot { animation: fadein .4s ease 1.5s both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ill .out { color: var(--neg); }

/* 0 calendar + P&L */
.ill-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.ill-cal b { text-align: center; color: #8C98A8; font-weight: 500; font-size: .625rem; }
.ill-cal span { display: grid; place-items: center; height: 30px; border-radius: 6px; background: var(--soft); color: var(--text); }
.ill-cal__close { background: var(--ink) !important; color: #fff !important; line-height: 1; font-weight: 600; }
.ill-cal__close small { font-size: .5rem; color: #9DF0C8; }
.ill.is-on .ill-cal__close { animation: pop .5s cubic-bezier(.2,1.6,.4,1) .3s both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.ill-pl div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ill-pl b { color: var(--ink); font-weight: 500; }
.ill-pl__tot { border-bottom: 3px double var(--ink) !important; }
.ill-pl__tot span, .ill-pl__tot b { color: var(--ink); font-weight: 600 !important; }

/* 1 catch-up months */
.ill-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ill-months span { display: grid; place-items: center; height: 46px; border-radius: 8px; background: #FDEEE9; color: var(--neg); font-weight: 500; }
.ill.is-on .ill-months span { animation: closeMonth .35s ease both; }
@keyframes closeMonth { to { background: #DDF3EA; color: var(--pos); } }
.ill.is-on .ill-months span:nth-child(1) { animation-delay: .1s; }
.ill.is-on .ill-months span:nth-child(2) { animation-delay: .2s; }
.ill.is-on .ill-months span:nth-child(3) { animation-delay: .3s; }
.ill.is-on .ill-months span:nth-child(4) { animation-delay: .4s; }
.ill.is-on .ill-months span:nth-child(5) { animation-delay: .5s; }
.ill.is-on .ill-months span:nth-child(6) { animation-delay: .6s; }
.ill.is-on .ill-months span:nth-child(7) { animation-delay: .7s; }
.ill.is-on .ill-months span:nth-child(8) { animation-delay: .8s; }
.ill.is-on .ill-months span:nth-child(9) { animation-delay: .9s; }
.ill.is-on .ill-months span:nth-child(10) { animation-delay: 1s; }
.ill.is-on .ill-months span:nth-child(11) { animation-delay: 1.1s; }
.ill.is-on .ill-months span:nth-child(12) { animation-delay: 1.2s; }

/* 2 payout split */
.ill-payout { display: flex; justify-content: space-between; padding: .75rem .9rem; border-radius: 8px; background: var(--ink); color: #fff; margin-bottom: .9rem; }
.ill-split div { position: relative; display: flex; justify-content: space-between; padding: .55rem .6rem; margin-bottom: 5px; border-radius: 6px; overflow: hidden; color: var(--ink); z-index: 0; }
.ill-split div::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); z-index: -1; }
.ill-split div.out::before { background: #FDEEE9; }
.ill.is-on .ill-split div::before { animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.ill.is-on .ill-split div:nth-child(2)::before { animation-delay: .25s; }
.ill.is-on .ill-split div:nth-child(3)::before { animation-delay: .45s; }
@keyframes grow { to { width: max(var(--w), 22%); } }

/* 3 payroll posting */
.ill-post div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ill-post em { font-style: normal; padding: .3rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dk); opacity: 0; }
.ill-post em::before { content: '\2192  '; }
.ill.is-on .ill-post em { animation: fadein .35s ease both; }
.ill.is-on .ill-post div:nth-child(2) em { animation-delay: .3s; }
.ill.is-on .ill-post div:nth-child(3) em { animation-delay: .6s; }
.ill.is-on .ill-post div:nth-child(4) em { animation-delay: .9s; }

/* 4 bills with a duplicate */
.ill-bills div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding: .55rem .5rem; border-bottom: 1px solid var(--line); color: var(--text); }
.ill-bills b { color: var(--ink); font-weight: 500; }
.ill-bills em { position: absolute; right: 5.5rem; top: 50%; translate: 0 -50%; font-style: normal; font-size: .625rem; padding: .25rem .4rem; border-radius: 4px; background: var(--neg); color: #fff; opacity: 0; }
.ill.is-on .ill-bills .is-dup { animation: dupRow .5s ease .6s both; }
.ill.is-on .ill-bills .is-dup span, .ill.is-on .ill-bills .is-dup b { animation: strike .4s ease 1s both; }
.ill.is-on .ill-bills em { animation: fadein .3s ease .7s both; }
@keyframes dupRow { to { background: #FDF0EC; } }
@keyframes strike { to { text-decoration: line-through; color: #8C98A8; } }

/* 5 year-end files */
.ill-files { list-style: none; margin: 0; padding: 0; }
.ill-files li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.ill-files li::before { content: ''; position: absolute; left: 0; top: .55rem; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); box-sizing: border-box; }
.ill.is-on .ill-files li::before { animation: tickbox .3s ease both; }
.ill.is-on .ill-files li:nth-child(2)::before { animation-delay: .2s; }
.ill.is-on .ill-files li:nth-child(3)::before { animation-delay: .4s; }
.ill.is-on .ill-files li:nth-child(4)::before { animation-delay: .6s; }
.ill.is-on .ill-files li:nth-child(5)::before { animation-delay: .8s; }
@keyframes tickbox { to { background: var(--pos); border-color: var(--pos); box-shadow: inset 0 0 0 3px #fff; } }

/* active service row */
.side .work > li { transition: opacity .3s; }
.side .work.is-live > li { opacity: .42; }
.side .work.is-live > li.is-on { opacity: 1; }
.side .work > li.is-on .work__n { color: var(--ink); }

/* ---------- Steps as a timeline ---------- */
.steps--line { position: relative; gap: 2rem; }
.steps--line::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; border-top: 2px dashed var(--line); }
.steps--line li { background: none; border: 0; padding: 0; counter-increment: s; }
.steps--line li::before { content: '0' counter(s); position: relative; top: auto; right: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font: 600 .875rem var(--mono); color: var(--ink); margin-bottom: 1.25rem; }
.steps--line li:last-child::before { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Who signs off ---------- */
.signoff { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.signoff__card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; text-align: center; box-shadow: 0 30px 60px -40px rgba(13,27,42,.4); }
.signoff__ava { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.75rem var(--display); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--accent); }
.signoff__name { font: 800 1.375rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 .4rem; }
.signoff__role { font: 500 .75rem/1.6 var(--mono); color: var(--text); margin: 0 0 1.25rem; }
.signoff__stamp { display: inline-block; font: 600 .75rem/1 var(--mono); letter-spacing: .01em; color: var(--pos); border: 2px solid var(--pos); border-radius: 6px; padding: .5rem .7rem; transform: rotate(-3deg); margin: 0; }
.signoff__q { margin: 0 0 1.5rem; font: 700 clamp(1.625rem, 3vw, 2.5rem)/1.2 var(--display); letter-spacing: -.01em; }
.signoff__note { color: var(--text); max-width: 56ch; margin-bottom: 1.5rem; }

/* ---------- SVG icons + illustrations ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.work__n { display: grid !important; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dk) !important; padding: 0 !important; transition: background .25s, color .25s; }
.side .work > li.is-on .work__n { background: var(--ink); color: var(--accent) !important; }
.stage__bar .stage__ico { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 8px; background: var(--ink); color: var(--accent); }
.stage__bar .stage__ico .ico { width: 17px; height: 17px; stroke-width: 2; }
.stage__bar span#stageTitle { margin-left: .15rem; font-weight: 600; }
.stage__live { margin-left: auto !important; display: inline-flex; align-items: center; gap: .35rem; font: 600 .75rem/1 var(--body) !important; color: var(--accent-dk) !important; }
.stage__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse2 2s infinite; }
.stage { min-height: 440px; }

/* 0 sparkline */
.ill-spark { margin: 0 0 .75rem; }
.ill-spark span { display: block; color: var(--text); font-size: .8125rem; margin-bottom: .35rem; }
.ill-spark svg { display: block; width: 100%; height: auto; overflow: visible; }
.ill-spark__area { fill: var(--accent-soft); opacity: 0; }
.ill-spark__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.ill-spark__dot { fill: var(--ink); stroke: var(--accent); stroke-width: 3; opacity: 0; }
.ill.is-on .ill-spark__line { animation: draw 1s cubic-bezier(.4,0,.2,1) .2s forwards; }
.ill.is-on .ill-spark__area { animation: fadein .6s ease .9s forwards; }
.ill.is-on .ill-spark__dot { animation: fadein .3s ease 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ill-cal span { height: 26px; }

/* 1 progress ring */
.ill-ringrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ill-ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.ill-ring circle { fill: none; stroke: var(--soft); stroke-width: 7; }
.ill-ring .ill-ring__fg { stroke: var(--pos); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ill.is-on .ill-ring__fg { animation: draw 1.3s linear .1s forwards; }
.ill-ringrow b { display: block; font: 800 1.5rem/1 var(--display); color: var(--ink); }
.ill-ringrow span { color: var(--text); font-size: .8125rem; }

/* 2 payout flow */
.ill-flow { display: block; width: 100%; height: auto; font-family: var(--body); }
.ill-flow__p { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ill-flow__p--out { stroke: var(--neg); opacity: .7; }
.ill.is-on .ill-flow__p { animation: draw .7s ease-out .25s forwards; }
.ill.is-on .ill-flow__p:nth-of-type(2) { animation-delay: .45s; }
.ill.is-on .ill-flow__p:nth-of-type(3) { animation-delay: .65s; }
.ill-flow__src { fill: var(--ink); }
.ill-flow__srck { fill: #9DAAB9; font-size: 11px; }
.ill-flow__srcv { fill: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ill-flow__n rect { fill: var(--accent-soft); }
.ill-flow__n--out rect { fill: #FDEEE9; }
.ill-flow__n text { fill: var(--text); font-size: 11px; }
.ill-flow__n text.v { fill: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ill-flow__n--out text.v { fill: var(--neg); }
.ill-flow__n { opacity: 0; }
.ill.is-on .ill-flow__n { animation: fadein .35s ease forwards; }
.ill.is-on .ill-flow__n:nth-of-type(1) { animation-delay: .8s; }
.ill.is-on .ill-flow__n:nth-of-type(2) { animation-delay: 1s; }
.ill.is-on .ill-flow__n:nth-of-type(3) { animation-delay: 1.2s; }

/* ---------- Getting started: centred timeline ---------- */
.steps--line li { text-align: center; }
.steps--line li::before { margin: 0 auto 1.25rem !important; }
.steps--line li p { max-width: 28ch; margin: 0 auto; }
.steps--line li h3 { margin-top: .9rem; }
/* line runs from the first circle's centre to the last one's */
.steps--line::before { left: calc((100% - 6rem) / 8); right: calc((100% - 6rem) / 8); }
@media (max-width: 960px) {
  .steps--line li { text-align: left; }
  .steps--line li::before { margin: 0 0 1.25rem !important; }
  .steps--line li p { margin: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid, .health, .demo, .calc, .faq-wrap, .final, .side, .signoff { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof .tile--dark { grid-row: auto; }
  .hres, .side__head { position: static; }
  .stage { display: none; }
  .side .work.is-live > li { opacity: 1; }
  .steps--line::before { display: none; }
  .wp__head { display: none; }
  .wp__row { grid-template-columns: 3rem minmax(0, 1fr); gap: .5rem 1rem; }
  .wp__row p { grid-column: 2; }
}
@media (max-width: 820px) {
  .sec__head { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .apps, .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bento, .steps { grid-template-columns: minmax(0, 1fr); }
  .tile--wide, .tile--wide2 { grid-column: auto; }
  .work > li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .ledger__rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger__rows .c { grid-column: 1 / -1; justify-self: start; }
  .hero__cta .btn { width: 100%; white-space: normal; }
  .hq li { grid-template-columns: 2rem minmax(0, 1fr); }
  .yn { grid-column: 2; justify-self: start; }
  .hq-bar { grid-template-columns: minmax(0, 1fr); }
  .hq-bar__rule { justify-self: start; text-align: left; }
  .hq li { padding: 1.1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot--live, .tracker__stages li.is-now::before, .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

