/* Receipt section: an itemized spend review prints as you scroll */
.receipt { --mono: "Geist Mono", ui-monospace, monospace; }
.rc-track { height: 240vh; position: relative; }
.rc-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-start; padding-top: max(104px, 13vh); overflow: hidden; }
.rc-grid { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: start; }
.rc-copy { padding-top: 40px; }
.rc-copy h2 { margin-bottom: 20px; }
.rc-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.rc-total { display: flex; flex-direction: column; margin: 36px 0 28px; }
.rc-total span { font-size: 15px; font-weight: 600; color: var(--brand); }
.rc-total strong {
  font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 30%, #2d6b48);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-total small { font-size: 15px; color: var(--muted); margin-top: 6px; }
.rc-fine { font-size: 14px !important; max-width: 34em; }

.rc-printer { position: relative; display: flex; flex-direction: column; align-items: center; }
.rc-slot {
  position: relative; z-index: 2;
  width: 100%; height: 34px; border-radius: 17px;
  --g-tint: rgba(11, 42, 27, 0.82);
  --g-shadow: 0 14px 30px -12px rgba(11, 42, 27, 0.5);
}
.rc-led { position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #4cc785; box-shadow: 0 0 10px #4cc785; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.rc-clip { width: calc(100% - 36px); height: var(--h, 0px); margin-top: -14px; overflow: hidden; position: relative; z-index: 1; }
.rc-paper {
  position: relative;
  padding: 34px 26px 44px;
  background: linear-gradient(180deg, #e9ece9 0, #fdfdfb 26px);
  font-family: var(--mono); font-size: 13.5px; color: #26302a;
  box-shadow: 0 30px 60px -30px rgba(11, 42, 27, 0.4);
  /* torn zig-zag bottom edge */
  --zz: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
}
.rc-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1.5px dashed rgba(38, 48, 42, 0.35); text-align: center; }
.rc-head strong { font-family: var(--font); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.rc-head span { font-size: 12px; color: #6b766f; }
.rc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(38, 48, 42, 0.25);
  opacity: 0.25;
  transition: opacity 0.5s var(--ease-out);
}
.rc-row.on { opacity: 1; }
.rc-cat { font-weight: 500; }
.rc-rate { font-size: 11.5px; color: #6b766f; }
.rc-gain { font-size: 12.5px; font-weight: 600; color: var(--brand); text-align: right; }
.rc-row.on .rc-gain { animation: pop 0.6s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.rc-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; border-top: 1.5px dashed rgba(38, 48, 42, 0.35); font-weight: 600; }
.rc-sum strong { font-size: 22px; color: var(--brand); }
.rc-barcode {
  height: 42px; margin: 22px 10px 0;
  background: repeating-linear-gradient(90deg, #26302a 0 2px, transparent 2px 4px, #26302a 4px 5px, transparent 5px 8px, #26302a 8px 11px, transparent 11px 12px);
  opacity: 0.8;
}
.rc-stamp {
  position: absolute; right: 34px; bottom: 30px;
  padding: 6px 16px;
  border: 3px solid var(--brand); border-radius: 10px;
  color: var(--brand); font-family: var(--font); font-weight: 700; font-size: 26px; letter-spacing: 0.04em;
  rotate: -12deg;
  opacity: 0; scale: 2.2;
  mix-blend-mode: multiply;
  transition: opacity 0.25s, scale 0.55s var(--ease-spring);
}
.rc-stamp.on { opacity: 0.85; scale: 1; }

@media (max-width: 1040px) {
  .rc-grid { grid-template-columns: 1fr 380px; gap: 48px; }
}
@media (max-width: 860px) {
  .rc-track { height: auto; }
  .rc-sticky { position: static; height: auto; display: block; padding: 90px 0; }
  .rc-copy { padding-top: 0; }
  .rc-grid { grid-template-columns: 1fr; gap: 36px; }
  .rc-total { margin: 24px 0 16px; }
  .rc-printer { max-width: 400px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-stamp { transition: none; }
}
