/* =================================================================================================
   V4a "The printer" and V4b "The ledger": two polished takes on the receipt (V4, the user's pick).
   One composition per page: the copy and the receipt sit on one centred band; the site's giant
   wordmark footer closes the page. Same tokens as the landing.
   ================================================================================================= */
:is(.v4a, .v4b) { min-height: 100svh; display: flex; flex-direction: column; }
:is(.v4a, .v4b) .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
:is(.v4a, .v4b) > .top { display: flex; align-items: center; height: 64px; }
:is(.v4a, .v4b) .stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(40px, 7vw, 112px); align-items: start; padding-block: clamp(32px, 6vh, 72px) clamp(48px, 8vh, 96px); }
@media (min-width: 981px) { :is(.v4a, .v4b) .copy { padding-top: clamp(16px, 4vh, 40px); } }
:is(.v4a, .v4b) h1 { font-size: clamp(2.5rem, 1.55rem + 3.1vw, 4rem); line-height: 1.01; font-weight: 600; letter-spacing: -0.047em; text-wrap: balance; max-width: 11em; }
:is(.v4a, .v4b) .lede { margin-top: 22px; max-width: 29em; font-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem); line-height: 1.55; color: var(--label-2); text-wrap: pretty; }
:is(.v4a, .v4b) .offer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--separator); max-width: 29em; }
:is(.v4a, .v4b) .reward { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -0.017em; }
:is(.v4a, .v4b) .spots { margin-top: 4px; font-size: 15px; color: var(--label-2); font-variant-numeric: tabular-nums; }
:is(.v4a, .v4b) .spots[hidden], :is(.v4a, .v4b) .wl-count[hidden] { display: none; }
:is(.v4a, .v4b) .wl-count { color: var(--label-2); }

/* shared paper bits */
:is(.v4a, .v4b) .rc-logo { width: 22px; height: 22px; fill: none; stroke: var(--ink); flex: none; }
:is(.v4a, .v4b) .rc-logo rect { stroke-dasharray: 2 1.6; stroke-width: 1.2; }
:is(.v4a, .v4b) .rc-logo circle { fill: var(--ink); stroke: none; }
.wl-btn-quiet { background: var(--bg-2); color: var(--ink); }
@media (hover: hover) { .wl-btn-quiet:hover:not([aria-disabled="true"]) { background: #e8e8ed; } }

/* ---- the site's giant wordmark footer (black/style.css .wm-*, motion from black/js/footer.js) ---- */
.wm { padding: 0 var(--gutter) 28px; overflow: hidden; }
.wm a { color: inherit; text-decoration: none; }
.wm-word { position: relative; margin: 0 0 clamp(24px, 3vw, 40px); user-select: none; -webkit-user-select: none; }
.wm-type { display: flex; justify-content: space-between; font-size: 24.5vw; font-weight: 600; letter-spacing: -0.065em; line-height: 0.74; color: var(--label); padding-top: 0.06em; cursor: default; }
@media (min-width: 1240px) { .wm-type { font-size: 283px; } }
.wm-type span { display: block; transition: opacity 420ms var(--ease); }
.wm-type span.gone { opacity: 0; transition: none; }
.wm-type span.back { transition: opacity 600ms var(--ease) 120ms; }
.wm-dust { position: absolute; left: 0; top: -20%; width: calc(100% + var(--gutter)); height: 140%; pointer-events: none; }
.wm-box { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border: 1.5px dashed var(--label); border-radius: 6px; pointer-events: none; transform: translate3d(var(--bx, 0), var(--by, 0), 0); transition: transform 520ms var(--ease-out), width 520ms var(--ease-out), height 520ms var(--ease-out); }
.wm-box i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 2px #fff; }
.wm-box i:nth-child(1) { left: -5px; top: -5px; } .wm-box i:nth-child(2) { right: -5px; top: -5px; }
.wm-box i:nth-child(3) { left: -5px; bottom: -5px; } .wm-box i:nth-child(4) { right: -5px; bottom: -5px; }
.wm-box.snap { transition: none; }
.wm-base { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--label-2); }
.wm-base::before { content: ""; order: 2; flex: 1; height: 1px; background: var(--separator); }
.wm-base p:first-child { order: 1; } .wm-base p:last-child { order: 3; }
.wm-base a { color: var(--label); position: relative; }
.wm-base a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wm-base a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 640px) {
  .wm-box { border-width: 1.2px; border-radius: 4px; }
  .wm-box i { width: 6px; height: 6px; }
  .wm-box i:nth-child(1), .wm-box i:nth-child(3) { left: -3.5px; } .wm-box i:nth-child(2), .wm-box i:nth-child(4) { right: -3.5px; }
  .wm-box i:nth-child(1), .wm-box i:nth-child(2) { top: -3.5px; } .wm-box i:nth-child(3), .wm-box i:nth-child(4) { bottom: -3.5px; }
  .wm-base { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 44px; }
  .wm-base::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wm-type span, .wm-box { transition: none; } }

/* =================================================================================================
   V4a  The printer: the form sits with the copy; the device prints what you type, live.
   ================================================================================================= */
.v4a .join { margin-top: 24px; max-width: 29em; }
.v4a .row { display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--bg-2); }
.v4a .row .wl-input { background: transparent; }
.v4a .row:focus-within:not(:has(.wl-btn:focus-visible)) { box-shadow: 0 0 0 2px var(--ink); }
.v4a form[data-state="error"] .row { box-shadow: 0 0 0 1.5px var(--err); }
.v4a .join .wl-small { margin-top: 12px; }
.v4a .join .wl-count { margin-top: 2px; }

.v4a .device { position: relative; padding: 18px 20px 0; border-radius: 26px; background: linear-gradient(#fbfbfd, #f1f1f4 70%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -32px rgba(0, 0, 0, 0.28); }
.v4a .dev-top { display: flex; align-items: center; justify-content: space-between; height: 28px; margin-bottom: 12px; padding: 0 4px; }
.v4a .dev-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--label-2); letter-spacing: 0.02em; }
.v4a .dev-led { width: 6px; height: 6px; border-radius: 50%; background: #c7c7cc; box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.25); transition: background-color 200ms; }
.v4a .device.is-busy .dev-led { background: var(--ink); animation: led 900ms ease-in-out infinite; }
.v4a .device.is-ok .dev-led { background: var(--ink); }
@keyframes led { 50% { opacity: 0.25; } }
.v4a .dev-sound { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; color: var(--label-2); cursor: pointer; }
.v4a .dev-sound:hover { background: rgba(120, 120, 128, 0.12); color: var(--label); }
.v4a .dev-sound:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.v4a .dev-sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v4a .dev-sound .on { display: none; } .v4a .dev-sound[aria-pressed="true"] .on { display: inline; } .v4a .dev-sound[aria-pressed="true"] .off { display: none; }
/* the slot: a dark lip with depth and a highlight under it */
.v4a .slot { position: relative; z-index: 3; height: 14px; border-radius: 7px; background: linear-gradient(#0d0d0e, #2b2b2e); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(255, 255, 255, 0.95), 0 -1px 0 rgba(0, 0, 0, 0.05); }
.v4a .head { position: absolute; left: 8%; right: 8%; bottom: 3px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.0); }
.v4a .head.flash { background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
.v4a .feed { position: relative; z-index: 1; display: grid; margin: -7px 14px 0; padding: 0 10px 34px; overflow: hidden; }
.v4a .feed > * { grid-area: 1 / 1; }
.v4a .paper { --z: 6px; position: relative; display: grid; gap: 14px; align-content: start; width: 100%; padding: 24px 22px calc(20px + var(--z)); background: #fff; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--label);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 12px 24px -14px rgba(0, 0, 0, 0.22);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x; }
.v4a .paper[hidden] { display: none; }
.v4a .rc-head { display: grid; justify-items: center; gap: 2px; text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--separator-2); }
.v4a .rc-head .rc-logo { margin-bottom: 4px; }
.v4a .rc-head h2 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.v4a .rc-head p { color: var(--label-2); }
.v4a .rc-lines { display: grid; gap: 7px; margin: 0; }
.v4a .rc-lines > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.v4a .rc-lines dt { display: flex; flex: 1 0 auto; color: var(--label-2); white-space: nowrap; }
.v4a .rc-lines dt::after { content: ""; flex: 1; min-width: 10px; margin: 0 2px 0 8px; border-bottom: 1px dotted var(--label-3); transform: translateY(-4px); }
.v4a .rc-lines dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.v4a .live dd { max-width: 62%; }
.v4a .live dd.typing::after { content: ""; display: inline-block; width: 6px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.v4a [data-req].tick { animation: tick 700ms var(--ease); }
@keyframes tick { 0%, 30% { background: var(--ink); color: #fff; } 100% { background: transparent; } }
.v4a .rc-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--separator-2); }
.v4a .rc-total span { font-weight: 500; }
.v4a .rc-total strong { font-family: var(--font); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.v4a .rc-thanks { text-align: center; color: var(--label-2); text-wrap: balance; }
.v4a .tk-num { font-family: var(--font); font-size: clamp(72px, 8vw, 96px); line-height: 0.88; font-weight: 600; letter-spacing: -0.06em; text-align: center; font-variant-numeric: tabular-nums; padding: 6px 0 2px; }
.v4a .tk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v4a .tk-acts .wl-btn { height: 44px; padding: 0 12px; font-family: var(--font); font-size: 14px; }
.v4a .ticket:focus { outline: none; }
.v4a .ticket:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* tearing: the preview drops away; the printed ticket gets a torn top and settles */
.v4a .preview.drop { transition: transform 420ms cubic-bezier(0.55, 0, 0.75, 0.2), opacity 420ms; transform: translateY(24px) rotate(1.5deg); opacity: 0; }
.v4a .ticket.printing { transition: none; }
.v4a .ticket.torn { -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - var(--z) * 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - var(--z) * 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) var(--z) repeat-x;
  padding-top: calc(24px + var(--z)); }
.v4a .ticket.settle { transition: transform 700ms var(--spring); transform: translateY(10px) rotate(-0.8deg); }

/* =================================================================================================
   V4b  The ledger: one crisp card that turns into your ticket, and a meter of 20 real spots.
   ================================================================================================= */
.v4b .meter { display: grid; grid-template-columns: repeat(var(--n, 20), 1fr); gap: 5px; max-width: 360px; margin: 14px 0 10px; }
.v4b .meter[hidden] { display: none; }
.v4b .meter i { position: relative; aspect-ratio: 4 / 3; border: 1.2px dashed rgba(60, 60, 67, 0.45); border-radius: 2px; transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.v4b .meter i.on { background: var(--ink); border: 1.2px solid var(--ink); }
.v4b .meter i.you { animation: you 900ms var(--spring) both; }
.v4b .meter i.you::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--ink); border-radius: 4px; }
@keyframes you { 0% { scale: 0.4; background: transparent; } 60% { scale: 1.25; } 100% { scale: 1; } }
.v4b .spots { margin-top: 0; }
.v4b .wl-count { margin-top: 2px; }

.v4b .ledger { position: relative; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 20px -8px rgba(0, 0, 0, 0.08), 0 34px 64px -34px rgba(0, 0, 0, 0.26); overflow: hidden; }
.v4b .face { display: grid; gap: 20px; padding: 26px 26px 24px; }
.v4b .face[hidden] { display: none; }
.v4b .lg-head { display: flex; align-items: center; gap: 10px; }
.v4b .lg-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.v4b form { display: grid; gap: 20px; }
.v4b .lg-field { display: grid; gap: 6px; font-size: 13px; color: var(--label-2); }
.v4b .lg-field .wl-input { color: var(--label); }
.v4b .lg-field .wl-input:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.v4b form[data-state="error"] .wl-input { box-shadow: 0 0 0 1.5px var(--err); }
.v4b .lg-rows { display: grid; gap: 0; margin: 0; font-size: 13px; }
.v4b .lg-rows > div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.v4b .lg-rows > div + div { border-top: 1px solid rgba(0, 0, 0, 0.05); }
.v4b .lg-rows dt { display: flex; flex: 1; min-width: 0; color: var(--label-2); white-space: nowrap; }
.v4b .lg-rows dt::after { content: ""; flex: 1; min-width: 12px; margin: 0 2px 0 10px; border-bottom: 1.5px dotted rgba(60, 60, 67, 0.32); transform: translateY(-4px); transform-origin: 0 50%; }
.v4b .lg-rows dd { margin: 0; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
/* leaders draw in on load */
.motion .v4b .lg-rows dt::after { animation: lead 700ms var(--ease-out) both; animation-delay: calc(240ms + var(--k, 0) * 90ms); }
@keyframes lead { from { scale: 0 1; } }
.v4b .ctr { display: inline-block; min-width: 1ch; border-radius: 4px; padding: 0 4px; margin-right: -4px; }
.v4b .ctr.tick { animation: tick 700ms var(--ease); }
.v4b [data-saved].ok { color: var(--label); }
.v4b [data-saved].bad { color: var(--err); }
.v4b form .wl-btn { width: 100%; }
.v4b .wl-err { margin-top: -8px; }
.v4b .lg-privacy { margin-top: -6px; text-align: center; text-wrap: balance; }
.v4b .tk-state { margin-top: -8px; color: var(--label-2); font-size: 15px; }
.v4b .tk-numrow { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -6px; }
.v4b .tk-num { font-size: clamp(76px, 8.4vw, 104px); line-height: 0.86; font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.v4b .stamp { align-self: center; margin-right: 6px; padding: 7px 10px 6px; border: 2px solid var(--ink); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; line-height: 1; color: var(--ink); rotate: -8deg; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2.5px var(--ink); }
.v4b .stamp[hidden] { display: none; }
.motion .v4b .stamp.in { animation: stamp 520ms cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes stamp { 0% { scale: 1.8; opacity: 0; } 55% { opacity: 1; } 100% { scale: 1; opacity: 1; } }
.v4b .tk-sub { color: var(--label-2); text-wrap: balance; }
.v4b .tk-acts { display: grid; }
.v4b .ticket:focus { outline: none; }
.v4b .ticket:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 22px; }
.v4b .face.fade-in > * { animation: e-in 520ms var(--ease-out) both; animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes e-in { from { opacity: 0; translate: 0 6px; } }
@keyframes tick { 0%, 30% { background: var(--ink); color: #fff; } 100% { background: transparent; } }

/* ---- tablet and phone ---------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :is(.v4a, .v4b) .stage { grid-template-columns: minmax(0, 1fr); max-width: 640px; gap: 40px; }
  :is(.v4a, .v4b) .device, :is(.v4a, .v4b) .ledger { width: min(100%, 440px); justify-self: center; }
}
@media (max-width: 560px) {
  :is(.v4a, .v4b) > .top { height: 56px; }
  :is(.v4a, .v4b) .stage { padding-block: 16px 48px; gap: 32px; }
  :is(.v4a, .v4b) .lede { margin-top: 16px; }
  :is(.v4a, .v4b) .offer { margin-top: 22px; padding-top: 18px; }
  .v4a .row { flex-direction: column; }
  .v4a .row .wl-btn { width: 100%; }
  .v4a .device { padding: 14px 12px 0; border-radius: 22px; }
  .v4a .feed { margin-inline: 8px; padding-inline: 4px; }
  .v4a .paper { padding-inline: 16px; }
  .v4b .face { padding: 22px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .v4a .preview.drop, .v4a .ticket.settle, .v4b .meter i { transition: none !important; }
  .v4a [data-req].tick, .v4b .ctr.tick, .v4b .meter i.you, .v4a .live dd.typing::after, .v4a .device.is-busy .dev-led { animation: none !important; }
}

/* creator portfolio: line globe beside "Mikky Innovate" (Hugeicons Globe02Icon, MIT) */
.wm-base .wm-web { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--label-2); transition: color 160ms ease; }
.wm-base .wm-web:hover { color: var(--label); text-decoration: none; }
.wm-base .wm-web::after { content: ""; position: absolute; inset: -12px -6px; }
.wm-ic { width: 14px; height: 14px; flex: none; }
.wm-ic-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse), (max-width: 640px) { .wm-base .wm-web::after { inset: -15px -24px -15px -6px; } }

/* Links back into the site (SEO plan): Vanish → the landing; the footer's small link row. */
:is(.v4a, .v4b) > .top .brand { color: var(--label); }
:is(.v4a, .v4b) > .top .brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.v4a .join .wl-small a { color: var(--label); text-decoration: underline; text-decoration-color: var(--separator); text-underline-offset: 3px; white-space: nowrap; }
.v4a .join .wl-small a:hover { text-decoration-color: currentColor; }
.v4a .join .wl-small a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.wm-base .wm-links { display: inline-flex; gap: 14px; margin-left: 14px; }
@media (max-width: 640px) { .wm-base .wm-links { display: flex; margin: 6px 0 0; } }
