/* Scan printed slips: paper-to-entries. Centred hero over a before/after slider; the sum check beside its explanation;
   a notebook page split into customers; printed vs handwritten side by side. */

.sc-hero { padding-top: 124px; padding-bottom: clamp(40px, 7vh, 80px) }
.sc-head { max-width: 860px; margin: 0 auto 40px; text-align: center }
.sc-head .crumbs ol, .sc-head .cta-row { justify-content: center } .sc-head .kick { justify-content: center }
.sc-head .h-xl { font-size: clamp(38px, 4.6vw, 68px) } .sc-head .lead { margin-left: auto; margin-right: auto }
.sc-eg { text-align: center; margin-top: 12px }

/* the slip and what Bisro read, side by side; pointing at a line lights up its match */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr); align-items: center; max-width: 1080px; margin: 0 auto; padding: 46px 40px 40px; border-radius: 18px;
  background: linear-gradient(90deg, #F1E8DA 0 46%, #E7F3FD 54% 100%); border: 1px solid var(--border); box-shadow: 0 50px 90px -60px rgba(31,35,40,.55) }
.pr-side { margin: 0; display: grid; justify-items: center; gap: 16px }
.pr-tag { order: -1; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.85); color: var(--ink) }
.pr-mid { display: grid; justify-items: center; gap: 10px; color: var(--link); font-size: 13px; font-weight: 700 }
.pr-beam { width: 100%; height: 2px; background: linear-gradient(90deg, rgba(3,105,161,0), var(--link)); position: relative }
.pr-beam::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--link) }
.pp-hl, .rv-hl { transition: background .15s, box-shadow .15s }
.pp-hl.hl { background: #FFE9A8; box-shadow: 0 0 0 4px #FFE9A8 }
.rv-hl { all: unset; box-sizing: border-box; cursor: pointer; width: 100% }
.rv-hl.hl { background: #FFF4CC; box-shadow: 0 0 0 4px #FFF4CC; border-radius: 6px }
.rv-hl:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px; border-radius: 6px }

/* the printed slip */
.paper { width: min(300px, 100%); padding: 22px 20px 34px; background: #FDFCF8; color: #2B2B2B; font: 500 13.5px/1.55 ui-monospace, "Cascadia Mono", "Courier New", monospace; transform: rotate(-2deg);
  box-shadow: 0 30px 40px -24px rgba(70,45,10,.55); -webkit-mask: linear-gradient(#000 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) bottom / 14px 10px repeat-x }
.pp-shop { display: block; text-align: center; font-size: 15px; letter-spacing: .08em; margin-bottom: 8px }
.pp-meta { display: flex; justify-content: space-between } .pp-rule { border-top: 1.5px dashed #9A9A9A; margin: 8px 0 }
.pp-line { display: grid; grid-template-columns: 1fr auto 42px; gap: 8px } .pp-line span:last-child { text-align: right }
.pp-tot { font-weight: 800; font-size: 15px } .pp-thanks { text-align: center; margin-top: 12px; letter-spacing: .1em }

/* the app's review card */
.rv-card { width: min(340px, 100%); padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 30px 50px -30px rgba(0,49,91,.5) }
.rv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px } .rv-h b { font-size: 17px }
.beta-pill { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: #E6F7F1; color: #0B6B50 }
.rv-cust { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px !important; border-radius: 10px; background: #F4F8FD }
.rv-cust b { display: block; font-size: 15px } .rv-cust small { color: var(--red); font-size: 12.5px; font-weight: 600 }
.rv-match { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--link) }
.rv-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px }
.rv-l { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint) }
.rv-items { list-style: none; margin: 0; padding: 0 }
.rv-items li { border-bottom: 1px solid #EEF2F7 }
.rv-items .rv-hl { display: grid; grid-template-columns: minmax(0, 1fr) 24px 56px; gap: 8px; align-items: center; padding: 7px 0 }
.rv-n { min-width: 0 } .rv-n b { display: block }
.rv-items b { font-size: 14px } .rv-items small { display: block; font-size: 11px; color: #5E4A3A; font-family: ui-monospace, monospace } .rv-items .tnum { text-align: right; font-size: 13.5px }
.rv-ok { display: flex !important; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #0B6B50 }
.rv-ok::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat }
.rv-post { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; text-align: center }

/* the sum check */
.sc-check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center }
.ck-steps { margin: 26px 0 0; padding: 0 0 0 22px; display: grid; gap: 10px; color: #2F3640; max-width: 34em } .ck-steps li::marker { color: var(--link); font-weight: 800 }
.ck-demo { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 20px; box-shadow: 0 40px 80px -60px rgba(31,35,40,.5) }
.ck-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 12px } .ck-top .tag { margin: 0 }
.ck-items { list-style: none; margin: 0; padding: 0 }
.ck-items li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 10px; margin: 0 -10px; border-bottom: 1px solid #EEF2F7; border-radius: 10px }
.ck-items li > div b { display: block; font-size: 15.5px } .ck-items small { font-size: 12.5px; color: var(--faint) }
.ck-items li > b { font-size: 16px }
.ck-items li.is-wrong { background: #FFF4E5 }
.ck-fix { all: unset; cursor: pointer; display: grid; justify-items: end; gap: 0; padding: 4px 10px; border-radius: 8px; border: 1.5px dashed #D9A35A; background: #fff }
.ck-fix span { font-weight: 800; font-size: 16px; color: #9A5B00 } .ck-fix em { font-style: normal; font-size: 11px; color: #9A5B00 }
.ck-fix.fixed { border: 0; padding: 0 } .ck-fix.fixed span { color: var(--ink) } .ck-fix.fixed em { display: none }
.ck-fix:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px }
.ck-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--muted) } .ck-sum b { color: var(--ink) }
.ck-state { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 700; background: #FFF4E5; color: #6B3E00; border: 1px solid #F6D9A8 }
.ck-state.ok { background: #E6F7F1; color: #0B6B50; border-color: #BFE8D8 }
.ck-confirm { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #F7F9FC; border: 1.5px dashed #C9D6E6; font-size: 14.5px; color: var(--muted); transition: border-color .3s, background .3s }
.ck-confirm b { display: block; color: var(--ink) } .is-ok .ck-confirm { background: #fff; border: 1.5px solid var(--ink) }

/* one page, several customers */
.sc-split { background: linear-gradient(180deg, var(--bg), #EEF4FB 30%, #EEF4FB 70%, var(--bg)) }
.sp-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; align-items: center }
.sp-vis { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; gap: 10px }
.nb { padding: 22px 20px 26px 46px; border-radius: 6px; background: #FFFEF8 repeating-linear-gradient(transparent 0 33px, #C7DCF1 33px 34px); background-position: 0 14px; position: relative; box-shadow: 0 24px 40px -26px rgba(31,35,40,.4); transform: rotate(1.5deg) }
.nb::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; border-left: 1.5px solid #F1A7A7 }
.nb-line { height: 34px; display: flex; align-items: flex-end; padding-bottom: 4px; font: italic 600 18px/1 var(--font); color: #1E3A8A }
.sp-arrow { height: 2px; background: var(--ink); position: relative } .sp-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--ink) }
.sp-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.sp-out li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border) }
.sp-out b { flex: 1 } .sp-out .tnum { font-weight: 800 }

/* printed vs handwritten */
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 34px; border-top: 2px solid var(--ink) }
.tw-col { padding: 26px 34px 10px 0 } .tw-col + .tw-col { padding-left: 34px; border-left: 1px solid var(--border) }
.tw-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase }
.tw-printed .tw-badge { background: #E6F7F1; color: #0B6B50 } .tw-hand .tw-badge { background: #FFF4E5; color: #9A5B00 }
.tw-col h3 { margin: 12px 0 12px; font-size: 22px; letter-spacing: -0.01em }
.tw-col ul { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; color: #2F3640 }
.tw-note { margin: 26px 0 0; color: var(--faint); font-size: 15px; max-width: 46em }

@media (max-width: 980px) {
  .sc-hero { padding-top: 104px } .sc-head { margin-bottom: 26px }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 14px; background: linear-gradient(180deg, #F1E8DA 0 46%, #E7F3FD 54% 100%) }
  .pr-mid { grid-template-columns: auto; } .pr-beam { width: 2px; height: 40px; background: linear-gradient(180deg, rgba(3,105,161,0), var(--link)) } .pr-beam::after { right: -6px; top: auto; bottom: -6px; border: 7px solid transparent; border-top: 10px solid var(--link) }
  .paper { font-size: 12.5px } .rv-card { padding: 14px }
  .sc-check, .sp-in { grid-template-columns: minmax(0, 1fr); gap: 28px }
  .sp-vis { grid-template-columns: minmax(0, 1fr); gap: 18px } .sp-arrow { width: 2px; height: 34px; justify-self: center } .sp-arrow::after { right: -6px; top: auto; bottom: -4px; border: 7px solid transparent; border-top: 10px solid var(--ink) }
  .tw-grid { grid-template-columns: minmax(0, 1fr) } .tw-col + .tw-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--border) }
}
@media (max-width: 480px) { .rv-match { display: none } .rv-cust small { white-space: nowrap } }
@media (prefers-reduced-motion: reduce) { .ck-confirm, .pp-hl, .rv-hl { transition: none } }
