/* Kapital Bookkeeping: "The Sheet". The site is one big spreadsheet.
 Colours: logo pink #D031D0 for fills and big type, deep #9A229A for small text, mint for the active cell.
 Type: Russo One headings, Calibri (Carlito fallback) body, IBM Plex Mono for cell references. */
[hidden] { display: none !important; }
:root { color-scheme: light; --paper: #FFFEFB; --ink: #161214; --muted: #5E555C; --line: #EAE2E9; --head: #F6F0F5; --pink: #D031D0; --deep: #9A229A; --mint: #CDEBD9; --cell: 26px; }
* { box-sizing: border-box; min-width: 0; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--paper); color: var(--ink); font: 18px/1.55 Calibri, Carlito, "Segoe UI", sans-serif; overflow-x: clip; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.disp { font-family: "Russo One", sans-serif; font-weight: 400; letter-spacing: -.01em; }
a { color: var(--deep); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(3vw, 14px); }

/* top bar + tabs */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 10px; }
.top img { height: 32px; width: auto; display: block; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; }
.tabs a { display: block; padding: 8px 14px; min-height: 40px; border: 1px solid var(--ink); margin-left: -1px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; background: var(--head); }
.tabs a:hover, .tabs a:focus-visible { background: var(--pink); color: var(--ink); outline: none; }

/* formula bar */
.fbar { display: grid; grid-template-columns: 64px 40px 1fr; border: 1px solid var(--ink); margin-top: 18px; background: #fff; }
.fbar > * { padding: 8px 10px; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.fbar > :last-child { border-right: none; }
.fbar .ref { text-align: center; background: var(--head); }
.fbar .fx { font-style: italic; color: var(--muted); text-align: center; }
.fbar .val { font-size: 15px; }
.fbar .val .eq { color: var(--muted); margin-right: .5ch; }
.fbar .val #typed span { color: var(--deep); background: #F7E1F7; }
.fbar .val .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--pink); vertical-align: -.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }

/* the sheet */
.sheet { position: relative; border: 1px solid var(--ink); border-top: none; overflow: hidden; background-color: #fff;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: calc(var(--cell) * 1.5 - 1px) calc(var(--cell) - 1px); }
.cols, .rows { position: absolute; display: flex; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: clamp(7px, calc(var(--cell) * .42), 11px); pointer-events: none; }
.cols { left: calc(var(--cell) * 1.5); right: 0; top: 0; height: var(--cell); background: var(--head); border-bottom: 1px solid var(--ink); }
.rows { top: var(--cell); bottom: 0; left: 0; width: calc(var(--cell) * 1.5); flex-direction: column; background: var(--head); border-right: 1px solid var(--ink); }
.cols span, .rows span { flex: none; width: var(--cell); height: var(--cell); display: grid; place-items: center; }
.rows span { width: 100%; }
.px { position: absolute; width: var(--cell); height: var(--cell); background: var(--pink); outline: 1px solid rgba(22,18,20,.18); outline-offset: -1px; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.px.wild { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
.merge { position: absolute; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.merge img { width: 84%; height: auto; }
.hp { position: absolute; background: var(--pink); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.hp.wild { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
.merge .hpg { position: absolute; inset: 0; }
.merge.pulse .real { animation: pulse .45s ease-in-out; }
@keyframes pulse { 50% { transform: scale(1.09); } }
.merge .real { position: absolute; width: auto; opacity: 0; transform-origin: center; z-index: 2; }
.merge.filled .real { opacity: 1; } /* no crossfade: the smooth logo snaps on at full strength, so nothing dims or flickers */
.merge.filled .hp { opacity: 0; transition: opacity .2s ease !important; transition-delay: 0s !important; } /* beats each pixel's fly-in delay */
.merge .tag { position: absolute; left: 6px; top: 4px; color: var(--ink); }
.note-cell { position: absolute; background: #fff; border: 1px solid var(--ink); padding: 0 14px; font-size: 16px; line-height: 1.4; display: flex; align-items: center; }
.note-cell::after { content: ""; position: absolute; right: 0; top: 0; border: 7px solid transparent; border-top-color: var(--pink); border-right-color: var(--pink); }
.sel { position: absolute; width: var(--cell); height: var(--cell); border: 2px solid var(--pink); box-shadow: 0 0 0 1px #fff inset; pointer-events: none; opacity: 0; transition: left .06s, top .06s; }
@media (hover: hover) { .sheet:hover .sel { opacity: 1; } }

.under { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 40px; align-items: center; padding: 28px 0 8px; }
.under .act { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.under .cta { display: flex; width: min(100%, 420px); justify-content: center; min-height: 64px; font-size: 20px; padding: 0 28px; }
.under h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; text-wrap: balance; }
.under h1 span { color: var(--pink); }
.under p { color: var(--muted); max-width: 46ch; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.badge-slot { width: 118px; height: 118px; border: 2px dashed var(--ink); border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.3; padding: 12px; background: #fff; }

section { padding: clamp(52px, 7vw, 96px) 0 0; }
.sh { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 0; }
.sh .mono { color: var(--deep); order: 2; margin-left: auto; align-self: flex-end; padding-bottom: 4px; }
.sh h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; }

table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--head); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; color: var(--muted); }
td:first-child, th:first-child { width: 4ch; text-align: center; background: var(--head); font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
td:nth-child(2) { font-weight: 700; }
tbody tr:hover td:not(:first-child) { box-shadow: inset 0 0 0 2px var(--pink); }
tbody tr:hover td:first-child { background: var(--pink); color: var(--ink); }

.calc { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--ink); border-top: none; background: #fff; }
.calc > div { padding: 22px 24px; }
.calc > div + div { border-left: 1px solid var(--ink); }
.formula { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.result { font-family: "Russo One", sans-serif; font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; color: var(--pink); white-space: nowrap; }
.result small { font-size: .32em; color: var(--ink); font-weight: 400; }
label.slide { display: grid; gap: 8px; margin-top: 18px; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--pink); height: 44px; }
.est { font-size: 14px; color: var(--muted); margin-top: 10px; }
.pk { border: 2px solid var(--line); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; position: relative; transition: transform .25s cubic-bezier(.2,.8,.2,1.4), box-shadow .25s, background .2s, border-color .2s; }
.pk.on { background: var(--mint); border-color: var(--ink); }
.pk:hover, .pk:focus-visible { transform: translate(-4px, -4px) scale(1.02); border-color: var(--pink); box-shadow: 6px 6px 0 var(--pink); outline: none; z-index: 1; }
.pk:hover h3, .pk:focus-visible h3 { color: var(--deep); }
.pk .pick { font: 500 12px "IBM Plex Mono", monospace; color: var(--deep); margin-top: 8px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.pk:hover .pick, .pk:focus-visible .pick { opacity: 1; transform: none; }
@media (hover: none) { .pk .pick { opacity: 1; transform: none; } }
.pk h3 { font: 400 18px/1.2 "Russo One", sans-serif; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pk h3 span { font: 500 13px "IBM Plex Mono", monospace; color: var(--deep); }
.pk ul { list-style: none; font-size: 15px; margin-top: 6px; color: var(--muted); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cnote { position: relative; background: #fff; border: 1px solid var(--ink); padding: 14px 18px; font-size: 16px; }
.cnote::after { content: ""; position: absolute; right: 0; top: 0; border: 8px solid transparent; border-top-color: var(--pink); border-right-color: var(--pink); }
.cnote b { display: block; margin-bottom: 2px; }

.about { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--ink); border-top: none; background: #fff; }
.about figure { border-right: 1px solid var(--ink); background: var(--mint); align-self: stretch; min-height: 380px; position: relative; overflow: hidden; }
.about figure img { position: absolute; inset: 0; z-index: 1; }
/* the logo's plus signs and squares behind her, popping one at a time */
.spark { position: absolute; inset: 0; }
.spark i { position: absolute; display: block; background: var(--pink); animation: pop 7s ease-in-out infinite; animation-delay: var(--d); }
.spark i.p { background: linear-gradient(var(--pink), var(--pink)) center / 100% 34% no-repeat, linear-gradient(var(--pink), var(--pink)) center / 34% 100% no-repeat; }
@keyframes pop { 0%, 86%, 100% { transform: scale(1); } 90% { transform: scale(1.75) rotate(8deg); } 94% { transform: scale(.9); } 97% { transform: scale(1.05); } }
.about figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.about .txt { padding: 24px 28px; }
.about .txt p + p { margin-top: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; margin-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.kv > * { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--deep); padding-top: 11px; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--ink); border-top: none; background: #fff; }
.contact .lines a { color: var(--ink); }
.gform { border-left: 1px solid var(--ink); display: grid; }
.gform iframe { width: 100%; height: 1700px; border: 0; display: block; }
.gform iframe.sent { height: 420px; }
.gform .todo { place-self: center; text-align: center; padding: 24px; color: var(--muted); font-size: 15px; }
.about + .about { margin-top: 18px; border-top: 1px solid var(--ink); }
.about .mono-portrait { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 400 96px "Russo One", sans-serif; color: var(--ink); }
.placeholder { background: #FFF6C9; outline: 1px dashed #B58B00; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.contact > div { padding: 24px 28px; }
.contact .big { font: 400 clamp(26px, 3.2vw, 40px)/1.1 "Russo One", sans-serif; margin-bottom: 14px; }
.contact .lines { font-weight: 700; }
form { border-left: 1px solid var(--ink); display: grid; }
.row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.row label { background: var(--head); padding: 12px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.row input, .row textarea { font: inherit; border: none; padding: 12px; background: #fff; min-height: 48px; }
.row textarea { min-height: 120px; resize: vertical; }
.row input:focus, .row textarea:focus { outline: 2px solid var(--pink); outline-offset: -2px; }
form .go { padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
form button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.note { font-size: 14px; color: var(--muted); }

footer { margin-top: clamp(52px, 7vw, 96px); border-top: 1px solid var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-block: 0 28px; }
footer .tabs a { border-top: none; background: #fff; }
footer .tabs a.cur { background: var(--mint); }
footer small { color: var(--muted); font-size: 14px; padding-top: 12px; }

@keyframes bob { 50% { transform: translateY(-6%) rotate(-3deg); } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spark i { animation: none; } .pk, .pk .pick { transition: none; } .px, .px.wild, .hp, .hp.wild { transition: none; opacity: 1; transform: none; } .merge img, .caret { animation: none; } .btn { transition: none; } }
@media (max-width: 860px) {
  .under { grid-template-columns: 1fr; } .calc, .about, .contact, .notes { grid-template-columns: 1fr; }
  .calc > div + div { border-left: none; border-top: 1px solid var(--ink); }
  .about figure { border-right: none; border-bottom: 1px solid var(--ink); min-height: 0; height: 420px; }
  form { border-left: none; border-top: 1px solid var(--ink); }
  .note-cell { display: none; }
  .merge .tag { display: none; }
}
@media (max-width: 600px) {
  .merge .tag { display: none; }
  .row { grid-template-columns: 1fr; } .row label { border-right: none; padding-bottom: 4px; }
  .stack thead { display: none; } .stack tr { display: grid; border-bottom: 2px solid var(--line); }
  .stack tr { padding: 8px 0; border-left: 4px solid var(--pink); }
  .stack td { display: flow-root; border: 0; padding: 3px 12px; padding-inline-start: 9.5em; }
  .stack td::before { content: attr(data-l); float: inline-start; width: 8.5em; margin-inline-start: -8.8em; font: 500 12px/1.9 "IBM Plex Mono", monospace; color: var(--muted); white-space: nowrap; }
  .stack td:first-child { display: none; }
  .stack td:nth-child(2) { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 17px; padding-inline-start: 12px; }
  .stack td:nth-child(2)::before { display: none; }
  .stack td:nth-child(4) { display: none; }
}
/* client reviews, quoted word for word from her Intuit ProAdvisor profile */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 22px; }
.tst-card { margin: 0; padding: 24px 26px; border: 2px solid currentColor; background: #fff; border-width: 1px; border-color: var(--ink); }
.tst-card blockquote { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; }
.tst-card blockquote::before { content: "\201C"; display: block; font: 700 64px/.6 Georgia, serif; color: var(--pink); margin-bottom: 8px; }
.tst-card figcaption { margin-top: 14px; font-size: 15px; }
.tst-card figcaption b { display: block; margin-bottom: 2px; }
.tst-card .stars { color: var(--pink); letter-spacing: 2px; margin-right: 6px; }
.tst-src { margin-top: 14px; font-size: 15px; }
.tst-grid { transition: opacity .5s, filter .5s; }
.tst-grid.fade { opacity: 0; filter: blur(6px); }
.tst-pause { margin-top: 12px; font: inherit; font-size: 14px; background: none; border: 1px solid var(--ink); padding: 4px 10px; cursor: pointer; }
.tst-pause:hover { background: #fff; }
.qbo { border: none !important; background: none !important; border-radius: 0 !important; padding: 0 !important; width: 120px !important; height: auto !important; display: block !important; transform: none !important; }
.qbo img { width: 100%; height: auto; display: block; }
.qbo:hover img { transform: translateY(-2px); transition: transform .2s; }
