/* Landing: the receipt. A thermal printer feeding today's receipt of what tokens paid their holders.
   The page stays dark; only the receipt and the slips are paper (the cool off-white of the product's main button). */
.rc-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:72px;align-items:center;min-height:min(880px,calc(100svh - 60px));padding-top:24px;padding-bottom:64px}
.rc-copy{display:flex;flex-direction:column;gap:24px}
.rc-h1{font-size:clamp(40px,5.4vw,76px)}

/* ---------- the machine ----------
   The printer sits at the foot of the column; the paper rises out of the slot in its top deck. The clip ends at the
   slot, so the paper passes behind the slot's front lip. Its height is reserved for the tallest receipt, so the page
   never changes length between receipts. */
.rc-machine{--pr:94px;--slot:15px;--clip:620px;position:relative;height:calc(var(--clip) + var(--pr) - var(--slot))}
.rc-clip{position:absolute;left:0;right:0;top:0;height:var(--clip);clip-path:inset(-600px -400px 0 -400px);z-index:3}
.rc-drop{position:absolute;inset:0;z-index:5;pointer-events:none}
/* shadow where the paper leaves the slot */
.rc-lip{position:absolute;left:50%;width:var(--pw,340px);margin-left:calc(var(--pw,340px) / -2);top:calc(var(--clip) - 26px);height:26px;z-index:4;pointer-events:none;
  background:linear-gradient(to top,rgba(10,10,11,.26),rgba(10,10,11,0))}

.rc-paper{position:absolute;left:50%;top:100%;width:var(--pw,340px);margin-left:calc(var(--pw,340px) / -2);padding:24px 22px 26px;color:#0b0b0c;
  background-color:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg,rgba(10,10,11,.018) 0 1px,transparent 1px 3px);
  font:400 12px/1.5 var(--num);will-change:transform}
/* torn top edge; once it's cut off, the cut edge at the bottom too */
.rc-paper::before,.rc-paper.cut::after,.rs::after{content:"";position:absolute;left:0;right:0;height:8px;
  background:linear-gradient(135deg,var(--bg) 4px,transparent 4.5px) 0 0/8px 8px repeat-x,linear-gradient(225deg,var(--bg) 4px,transparent 4.5px) 0 0/8px 8px repeat-x}
.rc-paper::before{top:-1px}
.rc-paper.cut::after{bottom:-1px;transform:scaleY(-1)}
.rc-ln{display:flex;justify-content:space-between;gap:12px;min-height:19px}
/* printing: each line is laid down left to right as the head passes */
.rc-paper.printing .rc-ln{clip-path:inset(0 100% 0 0)}
.rc-paper.printing .rc-ln.p{clip-path:inset(0 0 0 0);transition:clip-path var(--t,120ms) linear}
.rc-top{justify-content:center;align-items:center;gap:7px;font:600 15px/1 var(--sans);letter-spacing:-.02em;padding:2px 0 12px}
.rc-mark{width:18px;height:18px}
.rc-title{flex-direction:column;align-items:center;gap:1px;text-align:center;padding-bottom:6px}
.rc-title b{font:500 15px/1.3 var(--sans)}
.rc-title span{font:400 12px/1.4 var(--sans);color:#4a4a51}
.rc-date{color:#2c2c31}
.rc-note{justify-content:center;color:#5c5c63;font-size:11px;padding-top:2px}
.rc-rule{min-height:0;height:1px;margin:9px 0;background:repeating-linear-gradient(90deg,#8e8e96 0 2px,transparent 2px 5px)}
.rc-rule-solid{background:#0b0b0c;height:1.5px}
.rc-cols{color:#5c5c63;font-size:11px}
.rc-cols span:nth-child(2),.rc-code{margin-left:auto;width:44px;flex:none;text-align:left}
.rc-cols span:nth-child(3),.rc-amt{width:66px;flex:none;text-align:right}
.lk-rc a.rc-item{color:#0b0b0c;text-decoration:none;gap:8px;min-height:20px;align-items:center;margin:0 -6px;padding:0 6px;border-radius:3px;outline-offset:1px}
.rc-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;text-decoration-thickness:1px}
.rc-code{position:relative;color:#5c5c63;font-size:11px}
.rc-code em{position:absolute;left:0;top:50%;transform:translateY(-50%);font:500 11px/1 var(--sans);font-style:normal;color:#0b0b0c;opacity:0}
a.rc-item:hover .rc-name,a.rc-item:focus-visible .rc-name{text-decoration-color:#0b0b0c}
a.rc-item:hover .rc-code>span,a.rc-item:focus-visible .rc-code>span{opacity:0}
a.rc-item:hover .rc-code em,a.rc-item:focus-visible .rc-code em{opacity:1}
.lk-rc a.rc-item:focus-visible{outline:1.5px solid #0b0b0c}
.rc-amt{font-weight:500}
.rc-sub{gap:8px;color:#2c2c31}
.rc-sub span:first-child{width:44px;flex:none;color:#5c5c63;font-size:11px}
.rc-sub span:nth-child(2){flex:1}
.rc-total{font:500 15px/1.4 var(--num);padding:2px 0}
.rc-total span:first-child{font:500 14px/1.5 var(--sans)}
.rc-more{color:#4a4a51}
.rc-bar{justify-content:center;padding:4px 0 6px}
.rc-bar svg{width:230px;height:38px;fill:#0b0b0c}
.rc-foot{color:#5c5c63;font-size:11px}

/* ---------- the printer: a plain dark body, a top deck with the slot and its cutter, a front face ---------- */
.rc-printer{position:absolute;left:50%;bottom:0;width:420px;margin-left:-210px;height:var(--pr);z-index:2;display:flex;flex-direction:column}
.rc-deck{position:relative;height:30px;border-radius:16px 16px 0 0;background:linear-gradient(#202024,#1a1a1d);border:1px solid #2b2b30;border-bottom-color:#0c0c0e;box-shadow:inset 0 1px 0 #2e2e33}
.rc-slot{position:absolute;left:24px;right:24px;top:calc(var(--slot) - 5px);height:9px;border-radius:5px;background:#030304;overflow:hidden;box-shadow:inset 0 2px 2px rgba(0,0,0,.9),0 1px 0 #2a2a2f}
.rc-head{position:absolute;top:3px;left:0;width:36px;height:2px;border-radius:1px;background:rgba(237,237,239,.42);transform:translateX(-40px);opacity:0}
/* the serrated tear bar in front of the slot */
.rc-cutter{position:absolute;left:28px;right:28px;top:calc(var(--slot) + 6px);height:3px;
  background:linear-gradient(135deg,#3b3b41 1.2px,transparent 1.6px) 0 0/4px 3px repeat-x,linear-gradient(225deg,#3b3b41 1.2px,transparent 1.6px) 0 0/4px 3px repeat-x}
.rc-front{position:relative;flex:1;display:flex;align-items:center;justify-content:space-between;padding:12px 22px 0;border-radius:0 0 18px 18px;
  background:linear-gradient(#161619,#101012);border:1px solid #232327;border-top:0}
/* the paper door's seam */
.rc-front::before{content:"";position:absolute;left:14px;right:14px;top:14px;height:1px;background:#0a0a0c;box-shadow:0 1px 0 #1d1d21}
.rc-brand{font:600 13px/1 var(--sans);letter-spacing:-.02em;color:#3a3a40}
.rc-ctl{display:flex;align-items:center;gap:12px}
.rc-led{width:6px;height:6px;border-radius:50%;background:#26262b}
.rc-printer.on .rc-led{animation:rc-led .44s steps(1) infinite}
@keyframes rc-led{0%{background:var(--accent)}50%{background:#1d3b30}}
.rc-btn{width:30px;height:10px;border-radius:5px;background:#1c1c20;border:1px solid #2a2a2f}

/* ---------- slips: one per tool, each hanging from its own slot ---------- */
.rc-verbs{padding-top:88px;padding-bottom:48px}
.rc-vhead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px 48px;flex-wrap:wrap;margin-bottom:40px}
.rc-vhead .lk-lede{font-size:15px}
.rc-slips{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;align-items:stretch}
.rs-wrap{display:flex;flex-direction:column}
.rs-rail{position:relative;z-index:2;height:16px;margin:0 -8px;border-radius:8px;background:linear-gradient(#1d1d21,#18181b);border:1px solid #2b2b30;box-shadow:inset 0 1px 0 #2e2e33}
.rs-rail::after{content:"";position:absolute;left:12px;right:12px;top:5px;height:5px;border-radius:3px;background:#030304;box-shadow:inset 0 1px 2px rgba(0,0,0,.9)}
.rs-out{flex:1;display:flex;overflow:hidden;margin-top:-8px;padding-bottom:10px}
.lk-rc .rs{position:relative;flex:1;display:flex;flex-direction:column;gap:3px;padding:24px 18px 18px;color:#0b0b0c;text-decoration:none;font:400 12px/1.5 var(--num);
  background-color:var(--paper);background-image:repeating-linear-gradient(0deg,rgba(10,10,11,.018) 0 1px,transparent 1px 3px);
  transform:translateY(calc(-100% - 12px));transition:transform 1s cubic-bezier(.25,.8,.3,1) calc(var(--i) * 160ms)}
/* shadow under the rail's lip, and the torn bottom edge */
.rs::before{content:"";position:absolute;left:0;right:0;top:0;height:20px;background:linear-gradient(rgba(10,10,11,.2),rgba(10,10,11,0))}
.rs::after{bottom:-1px;transform:scaleY(-1)}
.rc-slips.in .rs{transform:none}
.rs b{font:500 16px/1.25 var(--sans)}
.rs small{font:400 12px/1.4 var(--sans);color:#4a4a51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-rule{height:1px;margin:9px 0;background:repeating-linear-gradient(90deg,#8e8e96 0 2px,transparent 2px 5px)}
.rs-ln{display:flex;justify-content:space-between;gap:10px;min-height:19px}
.rs-ln span:first-child{color:#2c2c31;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-strong{font-weight:500}
.rs-strong span:first-child{color:#0b0b0c}
.rs-go{margin-top:auto;font:500 13px/1.3 var(--sans);padding-top:2px}
.rs-gap{flex:1;min-height:6px}
.rs:hover .rs-go,.rs:focus-visible .rs-go{text-decoration:underline;text-underline-offset:3px}
.lk-rc .rs:focus-visible{outline:2px solid var(--paper);outline-offset:3px}

@media (max-width:1000px){
  .rc-hero{grid-template-columns:1fr 380px;gap:32px}
  .rc-machine{--pw:320px}
  .rc-printer{width:380px;margin-left:-190px}
  .rc-slips{grid-template-columns:1fr 1fr;row-gap:28px}
}
@media (max-width:760px){
  .rc-hero{grid-template-columns:1fr;gap:28px;min-height:0;padding-top:28px;padding-bottom:16px}
  .rc-copy{gap:18px}
  .rc-h1{font-size:38px}
  .rc-copy .lk-lede{font-size:16px}
  .rc-verbs{padding-top:56px}
  .rc-vhead{margin-bottom:28px}
  .rc-slips{grid-template-columns:1fr;row-gap:0}
  /* Phone: one strip from one slot. Only the first slip hangs from the rail; each one below feeds out from under the
     one above as it scrolls into view. */
  .rs-wrap+.rs-wrap .rs-rail,.rs-wrap+.rs-wrap .rs::before{display:none}
  .rs-wrap+.rs-wrap .rs-out{margin-top:0}
  .lk-rc .rs{padding:20px 16px 16px;transition-delay:0s}
  .rs-wrap.in .rs{transform:none}
}

/* Phone: the printer is a ticket slot under the buttons and the receipt comes out downwards, header first
   (receipt.js reveals it line by line with a clip instead of lifting it). The slot is the printer's bottom edge. */
@media (max-width:760px){
  .rc-machine{--pw:min(300px,calc(100vw - 64px));--pr:72px;--out:calc(var(--pr) - 13px);height:calc(var(--out) + var(--clip))}
  .rc-clip{top:var(--out);clip-path:inset(0 -400px -600px -400px)}
  .rc-lip{top:var(--out);background:linear-gradient(rgba(10,10,11,.3),rgba(10,10,11,0))}
  .rc-paper{top:0;padding:18px 16px 22px}
  .rc-paper::before{display:none}
  .rc-paper.cut::before{display:block}
  .rc-paper::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:8px;transform:scaleY(-1);
    background:linear-gradient(135deg,var(--bg) 4px,transparent 4.5px) 0 0/8px 8px repeat-x,linear-gradient(225deg,var(--bg) 4px,transparent 4.5px) 0 0/8px 8px repeat-x}
  .rc-bar svg{width:100%;max-width:230px}
  .rc-printer{top:0;bottom:auto;width:min(352px,100%);margin-left:max(-176px,-50%);flex-direction:column-reverse}
  .rc-deck{height:26px;border-radius:0 0 14px 14px;border-bottom-color:#2b2b30;border-top-color:#0c0c0e;box-shadow:inset 0 -1px 0 #2a2a2f}
  .rc-slot{left:18px;right:18px;top:auto;bottom:8px}
  .rc-cutter{left:22px;right:22px;top:auto;bottom:4px}
  .rc-front{padding:0 18px 8px;border-radius:16px 16px 0 0;border:1px solid #232327;border-bottom:0;box-shadow:inset 0 1px 0 #26262b}
  .rc-front::before{top:auto;bottom:6px}
}
/* "Click" on a mouse, "Tap" on a touch screen */
.rc-tap{display:none}
@media (hover:none){.rc-click{display:none}.rc-tap{display:inline}}

/* Links on paper keep the ink colour on hover; the product's green hover does not belong on a receipt. */
.v2.lk-rc a.rs:hover,.v2.lk-rc a.rs:focus-visible,.v2.lk-rc a.rc-item:hover,.v2.lk-rc a.rc-item:focus-visible{color:#0b0b0c}



/* Loading and failure: a blank receipt top in the printer, and one plain line where the slips go. */
.rc-wait .rc-title span{color:#6b6b72}
.rc-fail{margin:0;font-size:15px;color:var(--text-secondary)}
.v2 .rc-fail a{color:var(--text-primary);text-decoration:underline;text-underline-offset:3px}
