/* ReBoost Books for HVAC: "the shoebox and the ledger". A split hero with a torn-paper edge: dark kraft cardboard on
   the LEFT with the copy and an overflowing shoebox of receipts, cream ledger paper on the RIGHT with one job's money
   card. Banknote green accent and green button, so it reads differently from Leads (sunset), Ads (royal blue
   technician), SEO Audit (teal AI card), Rank Tracker (violet dusk), Review Manager (charcoal, coral), Smart Inbox
   (wine, centered), Pipeline (evergreen, lime, sticky notes), Ignite (paper map, orange radar) and Scheduling (navy
   clock, red, three columns).
   Below the hero it is the same road-map system as hvac-scheduling.css: phones stack the stops along a vertical road;
   from 1280px each stop is a full-width row and hvac-books.js draws the winding road from measured positions. */

.rb-books-page {
  --rb-bg: #241a12;
  background: var(--rb-bg);
  color: #f6f1e4;
}
.bk-main { min-width: 0; }
.bk-main > footer { width: auto; margin: 0; padding-inline: 24px; }
.bk :is(a, button, summary):focus-visible { outline: 3px solid #5fd08f; outline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.bk {
  --ink: #1d1a16;
  --ink2: #423b31;
  --muted: #736a5c;
  --kraft: #241a12;
  --kraft2: #33261b;
  --paper: #f6f1e4;
  --green: #12a454;
  --green-deep: #0b7a3e;
  --green-soft: #7fe0a8;
  --red: #d63a3a;
  --asphalt: #4a4843;
  --road-edge: #fbf8f1;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(18, 164, 84, .07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 64%, rgba(224, 137, 43, .07), transparent 70%),
    linear-gradient(180deg, #f3efe6 0%, #f9f7f1 40%, #f4f1e9 72%, #efebe1 100%);
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
:where(.bk) :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote) { margin: 0; padding: 0; }
:where(.bk) :where(ul, ol) { list-style: none; }
.bk img { display: block; max-width: none; }
.bk svg { display: block; overflow: visible; }
.bk h1, .bk h2, .bk h3, .bk-pin b, .bk-brand__logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.bk h1 em, .bk h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; }
.bk-i { width: 22px; height: 22px; flex: 0 0 auto; }
.bk-cap { color: var(--muted); font-size: 12px; }
.bk [hidden] { display: none !important; }

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, #1dbb65 0%, #0f9449 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 10px 24px rgba(18, 164, 84, .32);
  color: #fff;
  font: 700 16px/1.1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bk-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .32) inset, 0 14px 30px rgba(18, 164, 84, .45); }
.bk-btn .bk-i { width: 18px; height: 18px; }
.bk-btn--ghost { border-color: rgba(246, 241, 228, .45); background: rgba(0, 0, 0, .18); box-shadow: none; color: #fff; }
.bk-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); box-shadow: none; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bk-note { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: .95; color: #22303f; }
.bk-note u { color: var(--green-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.bk-checks { display: flex; flex-direction: column; gap: 9px; }
.bk-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.bk-checks svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bk-ok { color: var(--green); }
.bk-no { color: #bdb5a6; }
.bk-addon { padding: 4px 11px; border-radius: 999px; background: rgba(29, 26, 22, .07); color: var(--ink2); font-size: 13px; font-weight: 700; }

/* White and dark cards (house style: fine border, layered shadow, lift on hover). */
.bk-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(40, 30, 18, .1), 0 2px 5px rgba(40, 30, 18, .06), 0 0 0 1px rgba(40, 30, 18, .08);
  color: var(--ink);
}
.bk-dark {
  border: 1px solid rgba(127, 224, 168, .16);
  border-radius: 16px;
  background: linear-gradient(160deg, #1f2a24 0%, #16201b 55%, #101813 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(16, 24, 19, .18), 0 16px 30px -8px rgba(16, 24, 19, .4), 0 36px 64px -20px rgba(16, 24, 19, .5);
  color: #eef4ef;
}
.bk-card, .bk-dark { transition: transform .25s ease, box-shadow .25s ease; }
.bk-visual .bk-card:hover, .bk-visual .bk-dark:hover { transform: translateY(-2px); }

.bk-chip { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.bk-chip .bk-i { width: 14px; height: 14px; }
.bk-chip--wait { background: #fde7c7; color: #8a4b06; }
.bk-chip--go { background: var(--green); color: #fff; }
.bk-chip--calm { background: #dbe9ff; color: #1b4f9c; }
.bk-tag { padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.bk-fakebtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: start; padding: 8px 14px; border-radius: 9px; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.bk-fakebtn .bk-i { width: 15px; height: 15px; }
.bk-fakebtn.is-press { transform: scale(.94); filter: brightness(.9); }

/* One cell holds every state of a label or button, so switching never moves anything. */
.bk-stack { display: grid; }
.bk-stack > * { grid-area: 1 / 1; }
.bk-stack > [data-show] { transition: opacity .3s ease; }
.bk-stack > [data-show]:not(.is-shown) { visibility: hidden; opacity: 0; }
/* Parts a widget brings in one at a time (JS adds is-off; the HTML is the finished state). */
.bk [data-line], .bk [data-part], .bk [data-row] { transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .24, 1); }
.bk .is-off { opacity: 0; transform: translateY(8px); }

/* ---------------------------------------------------------------- hero */
.bk-hero { position: relative; overflow: hidden; background: var(--kraft); color: #fff; }
.bk-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "box" "paper"; }
.bk-hero__copy {
  grid-area: copy;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 20px 10px;
}
/* Kraft cardboard: warm base, faint fibers, a green glow low on the left. */
.bk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 6% 100%, rgba(18, 164, 84, .22), transparent 70%),
    repeating-linear-gradient(97deg, rgba(255, 230, 190, .025) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(8deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #2a1f16 0%, #241a12 60%, #1f160f 100%);
  pointer-events: none;
}
.bk-brand { display: flex; flex-direction: column; gap: 8px; }
.bk-brand__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.bk-brand__logo svg { width: 34px; height: 34px; }
.bk-eyebrow { color: #e9d7b9; font-size: 14px; font-weight: 600; line-height: 1.3; }
.bk h1 { margin: 0; color: #fff; font-size: clamp(33px, 8.2vw, 50px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
/* The second line sits on a green marker stroke, like a highlighted line in a ledger. */
.bk h1 > span { display: block; margin-bottom: 8px; }
.bk h1 em { color: var(--paper); background: linear-gradient(180deg, transparent 58%, rgba(18, 164, 84, .6) 58%, rgba(18, 164, 84, .6) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bk-hero__sub { max-width: 600px; color: #eadfcb; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.bk-signals { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.bk-signals li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.bk-signals .bk-ok { width: 22px; height: 22px; color: var(--green-soft); }

/* The shoebox: a cardboard box, a lid knocked askew and receipts spilling out the top. */
.bk-shoebox { grid-area: box; position: relative; justify-self: center; width: 210px; height: 128px; margin: 14px 0 20px; }
.bk-shoebox__box { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; border-radius: 4px 4px 7px 7px; background: linear-gradient(180deg, #b58a5c 0%, #9c7249 100%); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), 0 14px 22px rgba(0, 0, 0, .45); }
.bk-shoebox__lid { position: absolute; left: -14px; top: -34px; width: 150px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #c99b69, #ad8155); box-shadow: 0 6px 10px rgba(0, 0, 0, .35); transform: rotate(-16deg); transform-origin: left bottom; }
.bk-shoebox__label { position: absolute; left: 50%; top: 22px; translate: -50% 0; padding: 3px 9px; border-radius: 2px; background: #f4ecd9; color: #3c2a19; font: 700 19px/1 "Caveat", cursive; white-space: nowrap; transform: rotate(-2deg); }
.bk-shoebox__slip { position: absolute; bottom: 52px; display: grid; gap: 4px; width: 62px; padding: 7px 6px 10px; background: #fbf8f0; color: #5f5646; box-shadow: 0 4px 8px rgba(0, 0, 0, .3); font: 700 7.5px/1 "DM Sans", sans-serif; letter-spacing: .04em; }
.bk-shoebox__slip i { height: 3px; border-radius: 2px; background: #ddd5c4; }
.bk-shoebox__slip em { justify-self: end; font-style: normal; font-size: 9px; color: #2d271f; }
.bk-shoebox__slip--1 { left: 30px; height: 84px; transform: rotate(-12deg); }
.bk-shoebox__slip--2 { left: 84px; height: 70px; transform: rotate(6deg); }
.bk-shoebox__slip--3 { left: 128px; height: 90px; transform: rotate(-4deg); }
.bk-shoebox__slip--4 { right: -8px; bottom: 34px; height: 56px; transform: rotate(24deg); }

/* Ledger paper: cream, ruled lines, a red margin rule, a torn top edge on phones. */
.bk-hero__paper {
  grid-area: paper;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 36px 16px 34px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 30px, rgba(224, 90, 79, .4) 30px 32px, transparent 32px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 130, 190, .16) 31px 32px),
    var(--paper);
}
.bk-hero__paper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 16h40V6l-6-4-7 7-7-6-7 5-7-7L0 7z' fill='%23f6f1e4'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 16px;
}
.bk-job {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: min(100%, 440px);
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 44px -12px rgba(40, 30, 18, .35), 0 3px 8px rgba(40, 30, 18, .08), 0 0 0 1px rgba(40, 30, 18, .08);
}
.bk-job__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e2dccd; }
.bk-job__id { padding: 5px 9px; border-radius: 8px; background: var(--kraft); color: var(--paper); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bk-job__head b { display: block; font: 700 18px/1.15 "Space Grotesk", sans-serif; }
.bk-job__head small { display: block; color: var(--muted); font-size: 13px; }
.bk-job__lines { display: grid; }
.bk-job__line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0ebdf; }
.bk-job__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f3efe5; color: var(--ink2); }
.bk-job__ico .bk-i { width: 18px; height: 18px; }
.bk-job__line--in .bk-job__ico { background: #dcf5e6; color: var(--green-deep); }
.bk-job__line b { display: block; font-size: 15px; }
.bk-job__line small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.bk-job__line strong { font: 700 17px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.bk-job__line--in strong { color: var(--green-deep); }
.bk-job__profit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #12a454, #0b7a3e); color: #fff; box-shadow: 0 10px 22px -8px rgba(11, 122, 62, .6); }
.bk-job__profit b { display: block; font-size: 16px; }
.bk-job__profit small { display: block; color: #d3f5e1; font-size: 12.5px; }
.bk-job__profit strong { font: 700 34px/1 "Space Grotesk", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bk-job__profit.is-land { animation: bk-land .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes bk-land { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.bk-job__cap { margin-top: 8px; color: var(--muted); font-size: 12px; }
.bk-note--hero { position: relative; z-index: 1; justify-self: end; transform: rotate(-4deg); }

/* ---------------------------------------------------------------- road + steps (phones first) */
.bk-course { position: relative; }
.bk .bk-road, .bk .bk-drive { display: none; }
.bk-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; max-width: 780px; margin: 0 auto; padding: 34px 16px 34px 76px; }
.bk-step::before, .bk-finish::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 22px; background: var(--asphalt); box-shadow: 0 0 0 2.5px var(--road-edge), 0 0 0 3.5px #d9d3c6; }
.bk-step::after, .bk-finish::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 2px dashed #fff; }
.bk-step > * { min-width: 0; }
.bk-pin { position: absolute; z-index: 1; left: 0; top: 20px; width: 62px; height: 78px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.bk-pin svg { width: 100%; height: 100%; color: var(--pin); }
.bk-pin b { position: absolute; left: 0; right: 0; top: 8px; color: #fff; font-size: 36px; text-align: center; }
@keyframes bk-pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.bk-step.is-in .bk-pin, .bk:not(.bk-motion) .bk-pin { animation: bk-pin-bob 2.6s ease-in-out infinite; }
.bk-step:nth-of-type(even) .bk-pin { animation-delay: -1.3s; }
.bk h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.08; }
.bk-intro { display: grid; gap: 12px; align-content: start; }
.bk-aside { display: grid; gap: 14px; justify-items: start; }
.bk-sub { color: var(--ink2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.bk-visual { display: grid; gap: 12px; min-width: 0; container-type: inline-size; }

/* Stop 1: invoice paid, lands in the income list */
.bk-post { display: grid; justify-items: stretch; gap: 10px; max-width: 620px; }
.bk-inv { display: grid; gap: 10px; padding: 16px 18px; }
.bk-inv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-inv__top b { display: block; font-size: 16px; }
.bk-inv__top small { display: block; color: #a9bbb0; font-size: 13px; }
.bk-inv__top strong { font: 700 28px/1 "Space Grotesk", sans-serif; }
.bk-post__arrow { justify-self: center; color: var(--green); }
.bk-post__arrow svg { width: 26px; height: 26px; }
.bk-ledger { padding: 14px 16px 8px; }
.bk-ledger__head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #eee9dc; }
.bk-ledger__head b { font-size: 14px; }
.bk-ledger__head span { color: var(--muted); font-size: 13px; }
.bk-ledger__rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3efe6; }
.bk-ledger__rows li:last-child { border-bottom: 0; }
.bk-ledger__rows time { color: var(--muted); font-size: 13px; font-weight: 600; }
.bk-ledger__rows b { display: block; font-size: 14.5px; }
.bk-ledger__rows small { display: block; color: var(--muted); font-size: 12.5px; }
.bk-ledger__rows strong { color: var(--green-deep); font: 700 16px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.bk-ledger__rows .bk-tag { grid-column: 2 / -1; justify-self: start; margin-top: 6px; }
.bk-ledger__new { margin: 0 -8px; padding-inline: 8px !important; border-radius: 10px; background: #effaf3; }
.bk-ledger__new.is-off { opacity: 0; transform: translateY(-10px); }
.bk-status { justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--kraft); color: var(--paper); font-size: 13.5px; font-weight: 700; }
.bk-status .bk-stack { justify-items: center; }

/* Stop 2: receipt photo, then the filled bill */
.bk-scan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 640px; padding: 18px; }
.bk-receipt {
  position: relative;
  overflow: hidden;
  justify-self: center;
  width: min(100%, 240px);
  padding: 16px 16px 26px;
  background: #fffdf7;
  color: #3a342a;
  font: 500 12px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  box-shadow: 0 10px 20px rgba(40, 30, 18, .16), 0 0 0 1px rgba(40, 30, 18, .06);
  transform: rotate(-2deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.bk-receipt__biz { font-weight: 800; text-align: center; letter-spacing: .05em; }
.bk-receipt__meta { margin-bottom: 8px; color: #8a8171; text-align: center; }
.bk-receipt__items li { display: flex; justify-content: space-between; gap: 8px; }
.bk-receipt__items .is-sub { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #cfc6b3; }
.bk-receipt__items .is-total { margin-top: 4px; font-weight: 800; font-size: 13px; }
.bk-receipt__beam { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(18, 164, 84, .28) 60%, rgba(18, 164, 84, .8) 62%, transparent 64%); opacity: 0; pointer-events: none; }
.bk-scan[data-state="read"] .bk-receipt__beam { animation: bk-beam 1.3s ease-in-out infinite; }
@keyframes bk-beam { 0% { opacity: 1; transform: translateY(-36px); } 100% { opacity: 1; transform: translateY(260px); } }
.bk-scan__form { display: grid; align-content: start; gap: 12px; }
.bk-scan__label { color: var(--green-deep); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bk-scan__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bk-scan__fields div { display: grid; gap: 4px; }
.bk-scan__fields dt { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bk-scan__fields dd { position: relative; min-height: 36px; padding: 8px 10px; border: 1px solid #e6e0d2; border-radius: 9px; background: #fbfaf6; font-size: 14px; font-weight: 700; overflow: hidden; }
.bk-val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s ease; }
.bk-scan[data-state="snap"] .bk-val, .bk-scan[data-state="read"] .bk-val { opacity: 0; }
.bk-scan[data-state="read"] .bk-scan__fields dd::after { content: ""; position: absolute; inset: 11px 10px; border-radius: 5px; background: linear-gradient(90deg, #eee9dd 0%, #f8f5ee 50%, #eee9dd 100%) 0 0 / 200% 100%; animation: bk-shimmer 1.1s linear infinite; }
@keyframes bk-shimmer { to { background-position: -200% 0; } }
.bk-scan__act { justify-items: start; }

/* Stop 3: one bank line at a time */
.bk-bank { display: grid; gap: 12px; max-width: 620px; padding: 16px 18px 18px; }
.bk-bank__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-bank__head b { display: block; font-size: 16px; }
.bk-bank__head small { display: block; color: #a9bbb0; font-size: 13px; }
.bk-bank__count { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #cfe2d6; font-size: 12.5px; font-weight: 700; }
.bk-txn { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: #fff; color: var(--ink); }
.bk-txn__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bk-txn__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #ece6d8; color: var(--ink2); font: 700 13px/1 "Space Grotesk", sans-serif; }
.bk-txn__logo--in { background: #dcf5e6; color: var(--green-deep); font-size: 20px; }
.bk-txn__row b { display: block; font-size: 14.5px; letter-spacing: .02em; }
.bk-txn__row small { display: block; color: var(--muted); font-size: 12.5px; }
.bk-txn__row strong { font: 700 18px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.bk-txn__row strong.is-in { color: var(--green-deep); }
.bk-txn__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #f0ebdf; }
.bk-txn__cat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #e6e0d2; border-radius: 9px; font-size: 14.5px; font-weight: 800; }
.bk-txn__cat small { color: var(--muted); font-size: 12px; font-weight: 700; }
.bk-txn__why { color: var(--ink2); font-size: 13.5px; }
.bk-bank.is-switch .bk-txn.is-shown { animation: bk-in .45s cubic-bezier(.22, .8, .24, 1); }
@keyframes bk-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* Stop 4: profit per job */
.bk-jobs { display: grid; gap: 4px; max-width: 640px; padding: 16px 18px; }
.bk-jobs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #eee9dc; }
.bk-jobs__head b { font: 700 17px/1.1 "Space Grotesk", sans-serif; }
.bk-jobs__head span { color: var(--muted); font-size: 13px; }
.bk-jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amt" "bar bar"; align-items: center; column-gap: 12px; row-gap: 8px; padding: 12px 0; border-bottom: 1px solid #f3efe6; }
.bk-jrow__name { grid-area: name; min-width: 0; }
.bk-jrow__name b { display: block; font-size: 15px; }
.bk-jrow__name small { display: block; color: var(--muted); font-size: 12.5px; }
.bk-jrow strong { grid-area: amt; color: var(--green-deep); font: 700 20px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.bk-jrow__bar { grid-area: bar; height: 8px; border-radius: 999px; background: #f0ebdf; overflow: hidden; }
.bk-jrow__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--green); transition: width .8s cubic-bezier(.22, .8, .24, 1); }
.bk-jrow.is-off .bk-jrow__bar i { width: 0; }
.bk-jrow--loss strong { color: var(--red); }
.bk-jrow--loss .bk-jrow__bar i { background: var(--red); }
.bk-jrow--loss { margin: 4px -10px 0; padding-inline: 10px; border-radius: 10px; background: #fff1f0; }
.bk-jobs__flag { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--red); color: #fff; font-size: 14px; }
.bk-jobs__flag .bk-i { width: 20px; height: 20px; }

/* Stop 5: the Money Snapshot */
.bk-money { display: grid; gap: 14px; max-width: 680px; padding: 18px; }
.bk-money__verdict { display: flex; align-items: flex-start; gap: 12px; }
.bk-money__up { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: #dcf5e6; color: var(--green-deep); }
.bk-money__verdict b { display: block; font: 700 20px/1.15 "Space Grotesk", sans-serif; }
.bk-money__verdict small { display: block; margin-top: 4px; color: var(--ink2); font-size: 14.5px; line-height: 1.4; }
.bk-money__tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bk-tile { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #ebe5d8; border-radius: 12px; background: #fbfaf6; }
.bk-tile small { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bk-tile b { font: 700 24px/1.1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.bk-tile span { color: var(--muted); font-size: 13px; }
.bk-tile .is-go { color: var(--green-deep); }
.bk-tile--tax { border-color: #f1d08f; background: #fff8e8; }
.bk-tile--tax b { color: #8a5a06; }
.bk-money__foot { color: var(--muted); font-size: 12.5px; font-style: italic; }

/* Stop 6: the accountant packet */
.bk-cpa { display: grid; gap: 12px; max-width: 620px; padding: 18px; }
.bk-cpa__head b { display: block; font-size: 17px; }
.bk-cpa__head small { display: block; color: #a9bbb0; font-size: 13.5px; }
.bk-cpa__btn { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 11px 16px; border-radius: 10px; background: var(--green); color: #fff; font-size: 14.5px; font-weight: 800; transition: transform .15s ease, filter .15s ease; }
.bk-cpa__btn .bk-i { width: 18px; height: 18px; }
.bk-cpa__btn.is-press { transform: scale(.95); filter: brightness(.9); }
.bk-cpa__files { display: grid; gap: 8px; }
.bk-cpa__files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.bk-file { display: grid; place-items: center; width: 38px; height: 44px; flex: 0 0 auto; border-radius: 6px 12px 6px 6px; background: #f6f1e4; color: var(--green-deep); font: 800 11px/1 "DM Sans", sans-serif; }
.bk-cpa__files b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.bk-cpa__files small { display: block; color: #a9bbb0; font-size: 12.5px; }
.bk-cpa__toast { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #dcf5e6; color: #0a5c30; font-size: 14px; font-weight: 700; }
.bk-cpa__toast .bk-i { width: 16px; height: 16px; }

/* Finish band */
.bk-finish { position: relative; display: grid; gap: 16px; max-width: 780px; margin: 0 auto; padding: 30px 16px 44px 76px; }
.bk-finish > * { position: relative; z-index: 2; }
.bk-bigcard { position: relative; display: grid; gap: 2px; width: 200px; padding: 0 0 14px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px rgba(40, 30, 18, .16), 0 0 0 1px rgba(40, 30, 18, .06); text-align: center; transform: rotate(-3deg); }
.bk-bigcard small { display: block; padding: 7px 0; background: var(--kraft); color: var(--paper); font-size: 13px; font-weight: 800; }
.bk-bigcard b { margin-top: 8px; color: var(--green-deep); font: 700 32px/1 "Space Grotesk", sans-serif; }
.bk-bigcard span { color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.bk-bigcard em { display: inline-flex; align-items: center; justify-self: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12.5px; font-style: normal; font-weight: 800; }
.bk-bigcard em .bk-i { width: 14px; height: 14px; }
.bk-finish__copy { display: grid; gap: 10px; }
.bk-finish__copy h2 { font-size: clamp(24px, 5.6vw, 30px); }
.bk-finish__copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.bk-note--out { justify-self: end; transform: rotate(-5deg); }

/* ---------------------------------------------------------------- sample reviews (same design as the other road pages) */
.bk-reviews { position: relative; z-index: 3; display: grid; gap: 26px; padding: 48px 16px 56px; background: linear-gradient(180deg, #efebe1 0%, #f9f7f1 100%); scroll-margin-top: 186px; }
.bk-reviews__head, .bk-get__head { display: grid; justify-items: center; gap: 10px; max-width: 760px; margin: 0 auto; text-align: center; }
.bk-reviews__label { padding: 4px 12px; border-radius: 999px; background: rgba(29, 26, 22, .06); color: var(--muted); font-size: 13px; font-weight: 600; }
.bk-reviews__grid { display: grid; gap: 18px; width: 100%; max-width: 1280px; margin: 0 auto; }
.bk-review { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fdfcf9 100%); box-shadow: 0 16px 34px rgba(40, 30, 18, .1), 0 2px 6px rgba(40, 30, 18, .05), 0 0 0 1px rgba(40, 30, 18, .06); }
.bk-review::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--av); opacity: .85; }
.bk-review::after { content: "\201C"; position: absolute; top: 6px; right: 18px; color: color-mix(in srgb, var(--av) 16%, transparent); font: 700 84px/1 Georgia, serif; pointer-events: none; }
.bk-review blockquote { flex: 1 1 auto; }
.bk-review blockquote p { color: var(--ink); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.bk-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(29, 26, 22, .08); }
.bk-review__av { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--av); color: #fff; font: 700 15px/1 "Space Grotesk", sans-serif; }
.bk-review figcaption b { display: block; color: var(--ink); font-size: 16px; }
.bk-review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------------------------------------------------------------- FAQ */
.bk-close { position: relative; z-index: 3; padding: 44px 16px 52px; background: linear-gradient(180deg, #2a1f16 0%, #1f160f 100%); color: #fff; }
.bk-faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.bk-faq h2 { margin-bottom: 6px; color: #fff; font-size: clamp(24px, 5.4vw, 30px); }
.bk-faq details { border: 1px solid rgba(233, 215, 185, .16); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.bk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq .bk-plus { flex: 0 0 auto; width: 18px; height: 18px; color: var(--green-soft); transition: transform .25s ease; }
.bk-faq details[open] .bk-plus { transform: rotate(45deg); }
.bk-faq details p { padding: 0 16px 15px; color: #eadfcb; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- how you get it */
.bk-get { position: relative; z-index: 3; display: grid; gap: 26px; padding: 52px 16px 56px; background: #fdfcf8; scroll-margin-top: 186px; }
.bk-vs { display: grid; width: 100%; max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 16px 34px rgba(40, 30, 18, .08), 0 0 0 1px rgba(40, 30, 18, .07); }
.bk-vs__head, .bk-vs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bk-vs__head span { padding: 12px 16px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bk-vs__head span:last-child { background: var(--kraft); color: var(--green-soft); }
.bk-vs__row span { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(29, 26, 22, .07); font-size: 16px; line-height: 1.4; }
.bk-vs__row span:first-child { color: var(--muted); }
.bk-vs__row span:last-child { background: #f2fbf5; color: var(--ink); font-weight: 600; }
.bk-vs__row svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.bk-plan { display: grid; gap: 20px; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; border-radius: 18px; background: linear-gradient(160deg, #33261b 0%, #2a1f16 60%, #1f160f 100%); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); color: #f6f1e4; }
.bk-plan h3 { color: #fff; font-size: 24px; line-height: 1.15; }
.bk-plan__copy { display: grid; gap: 14px; }
.bk-plan__list { display: grid; gap: 10px; }
.bk-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: #eadfcb; font-size: 15.5px; line-height: 1.45; }
.bk-plan__list b { color: #fff; }
.bk-plan__list .bk-ok { width: 20px; height: 20px; margin-top: 2px; color: var(--green-soft); }

/* ---------------------------------------------------------------- motion */
.bk-motion .bk-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22, .8, .24, 1), transform .6s cubic-bezier(.22, .8, .24, 1); }
.bk-motion .bk-reveal.is-in { opacity: 1; transform: none; }
.bk-motion .bk-pin { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .4s ease; }
.bk-motion .bk-step:not(.is-in) .bk-pin { transform: translateY(-28px) scale(.8); filter: grayscale(1) opacity(.55); }

/* ---------------------------------------------------------------- container layouts for the widgets */
@container (min-width: 560px) {
  .bk-scan { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
  .bk-money__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 400px) {
  .bk-scan__fields { grid-template-columns: minmax(0, 1fr); }
  .bk-inv__top strong { font-size: 23px; }
  .bk-txn__row { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-txn__logo { display: none; }
  .bk-txn__row b { font-size: 13.5px; letter-spacing: 0; }
  .bk-txn__row strong { font-size: 16px; }
}

/* ---------------------------------------------------------------- tablets */
@media (min-width: 700px) {
  .bk-hero__copy { align-items: center; padding: 42px 32px 10px; text-align: center; }
  .bk-brand { align-items: center; }
  .bk-hero__copy .bk-actions, .bk-signals { justify-content: center; }
  .bk-hero__paper { padding: 44px 32px 40px; }
  .bk-finish { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .bk-note--out { grid-column: 1 / -1; }
  .bk-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 30px; }
  .bk-plan .bk-actions { flex-direction: column; }
  .bk-close { padding: 52px clamp(24px, 5vw, 64px) 60px; }
}
@media (min-width: 1100px) { .bk-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------------------------------------------------------------- desktop rows */
@media (min-width: 1280px) {
  /* Split hero: kraft copy on the left, torn edge, ledger paper with the job card on the right. The shoebox sits
     on the tear, bottom left of the paper. */
  .bk-hero__in { grid-template-columns: 46% 54%; grid-template-areas: "copy paper"; min-height: 640px; }
  .bk-hero__copy { align-items: flex-start; justify-content: center; gap: 16px; padding: 40px clamp(28px, 3.4vw, 72px) 40px clamp(28px, 3.4vw, 80px); text-align: left; }
  .bk-brand { align-items: flex-start; }
  .bk-hero__copy .bk-actions, .bk-signals { justify-content: flex-start; }
  .bk-brand__logo { font-size: 32px; }
  .bk h1 { max-width: 700px; font-size: clamp(38px, 3vw, 58px); }
  .bk-hero__sub { max-width: 620px; font-size: clamp(16px, 1.1vw, 19px); }
  .bk-hero__paper { grid-template-rows: 1fr auto; align-content: center; padding: 40px clamp(28px, 3vw, 64px) 30px clamp(40px, 4vw, 80px); background-position: 0 0; }
  .bk-hero__paper::before { left: -15px; right: auto; top: 0; bottom: 0; width: 16px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='40'%3E%3Cpath d='M16 0v40H6l-4-6 7-7-6-7 5-7-7-7L7 0z' fill='%23f6f1e4'/%3E%3C/svg%3E") repeat-y 0 0 / 16px 40px; }
  .bk-job { align-self: center; justify-self: center; width: min(100%, 460px); }
  .bk-note--hero { align-self: end; font-size: 32px; }
  .bk-shoebox { position: absolute; z-index: 2; left: calc(46% + 40px); bottom: 24px; margin: 0; }

  .bk-course { --edge: 92px; max-width: 1680px; margin: 0 auto; padding: 36px var(--edge) 0; }
  .bk .bk-road { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
  .bk-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .bk-road__edge { stroke: var(--road-edge); stroke-width: 36; filter: drop-shadow(0 2px 3px rgba(40, 30, 18, .25)); }
  .bk-road__top { stroke: var(--asphalt); stroke-width: 30; }
  .bk-road__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: butt !important; }
  .bk .bk-drive { position: absolute; z-index: 4; left: 0; top: 0; display: block; width: 140px; visibility: hidden; filter: drop-shadow(0 7px 5px rgba(40, 30, 18, .28)); pointer-events: none; will-change: transform; }
  .bk .bk-drive.is-placed { visibility: visible; }
  .bk-drive img { width: 100%; height: auto; }
  .bk-drive__right, .bk-drive.is-right .bk-drive__left { display: none !important; }
  .bk-drive.is-right .bk-drive__right { display: block !important; }

  .bk-step {
    z-index: 2;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.45fr);
    grid-template-areas: "intro visual";
    align-items: start;
    column-gap: clamp(28px, 3vw, 56px);
    max-width: none;
    margin: 0;
    padding: 58px 36px 58px 104px;
  }
  .bk-intro { grid-area: intro; padding-top: 14px; }
  .bk-visual { grid-area: visual; }
  .bk-step::before, .bk-step::after, .bk-finish::before, .bk-finish::after { content: none; }
  .bk-pin { left: 17px; top: 28px; width: 80px; height: 100px; }
  .bk-pin b { top: 12px; font-size: 42px; }
  .bk h2 { font-size: clamp(27px, 1.95vw, 34px); line-height: 1.06; }

  .bk-finish {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "card copy note";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: none;
    margin: 10px 0 0 104px;
    padding: 30px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 36px rgba(40, 30, 18, .1), 0 0 0 1px rgba(40, 30, 18, .05);
  }
  .bk-bigcard { grid-area: card; }
  .bk-finish__copy { grid-area: copy; }
  .bk-finish__copy h2 { font-size: clamp(24px, 1.7vw, 30px); }
  .bk-note--out { grid-column: auto; grid-area: note; font-size: 34px; }
  .bk-course::after { content: ""; display: block; height: 96px; }

  .bk-reviews, .bk-get { gap: 30px; padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .bk-close { padding: 60px clamp(40px, 5vw, 96px) 68px; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  /* With the side panel open the course is ~1150px wide: visuals get the full row under a two-column intro. */
  .bk-step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "visual"; row-gap: 26px; }
  .bk-step .bk-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .bk-step .bk-intro > :is(h2, .bk-sub) { grid-column: 1; }
  .bk-step .bk-intro > .bk-aside { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bk-finish { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card copy" "card note"; row-gap: 8px; }
  .bk-note--out { justify-self: end; }
  /* Keep the whole hero above the fold at 1440x900 with the side panel open. */
  .bk-hero__in { min-height: 600px; }
  .bk h1 { font-size: clamp(34px, 2.7vw, 44px); }
  .bk-hero__copy { gap: 13px; padding-block: 30px; }
  .bk-hero__sub { font-size: 16px; }
  .bk-signals { gap: 8px 16px; }
  .bk-signals li { font-size: 14px; }
  .bk-job__line { padding: 9px 0; }
  .bk-shoebox { transform: scale(.86); transform-origin: left bottom; }
}

@media (max-width: 1180px) { .bk-step, .bk-reviews, .bk-get { scroll-margin-top: 236px; } }
@media (min-width: 1181px) { .bk-step { scroll-margin-top: 186px; } }
@media (max-width: 850px) { .bk-step, .bk-reviews, .bk-get { scroll-margin-top: 218px; } }
@media (max-width: 699px) {
  .bk-vs__head span:first-child { display: none; }
  .bk-vs__head, .bk-vs__row { grid-template-columns: minmax(0, 1fr); }
  .bk-vs__row span:first-child { padding-bottom: 4px; border-top: 1px solid rgba(29, 26, 22, .07); font-size: 14px; }
  .bk-vs__row span:last-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-btn, .bk-faq .bk-plus, .bk-card, .bk-dark, .bk-fakebtn, .bk-cpa__btn, .bk-val, .bk-stack > [data-show], .bk-jrow__bar i, .bk [data-line], .bk [data-part], .bk [data-row] { transition: none !important; }
  .bk-pin, .bk-receipt__beam, .bk-job__profit, .bk-txn, .bk-scan__fields dd::after { animation: none !important; }
  .bk-motion .bk-reveal, .bk-motion .bk-pin { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bk-motion .bk-pin { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)) !important; }
}
