/* proc.css — the card processing page (Vera's spec, Sep 28 2026):
   follow one $40 sale, read the fine print through a loupe. home.css
   supplies the base (nav, type, buttons, scene fades). No gradients,
   no glow, no cards; one idea per screen. */
.proc { --paper: #F4F1EA; --paper-ink: #2A2A33; --coral: #F08A91; --ox: #C8323C; --mono: "IBM Plex Mono", ui-monospace, monospace; }
.proc section { position: relative; }
.proc h2 { font-size: clamp(30px, 3.4vw, 46px); }
.caption--dark { color: var(--ink-2); opacity: 1; }
.caption a, .scale__cap a { border-bottom: 1px solid currentColor; }

/* ---------- 1. the receipt ---------- */
.p1 { padding: clamp(150px, 16vw, 200px) 0 160px; }
.p1__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.p1 h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.02; }
.p1__sub { color: var(--snow-2); font-size: 18px; line-height: 1.55; max-width: 30em; margin-top: 24px; }
.p1 .cta { margin-top: 32px; }
.term { width: 260px; justify-self: center; }
.term__slit { height: 14px; border-radius: 7px; background: #0B0F19; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08); }
.term__paper { width: 220px; margin: -7px auto 0; overflow: hidden; }
.rcpt { background: var(--paper); color: var(--paper-ink); font: 400 13px/1.7 var(--mono); padding: 18px 18px 26px; text-align: center; letter-spacing: .02em;
  -webkit-mask: linear-gradient(#000, #000) 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, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; }
.rcpt__b { font-weight: 500; }
.rcpt__rule { border-top: 1px dashed #9A968C; margin: 10px 0; }
.rcpt__row { display: flex; justify-content: space-between; text-align: left; }
.rcpt__c { margin-top: 10px; letter-spacing: .2em; }
.rcpt--print { animation: print 900ms steps(12) 400ms both, lift 6s ease-in-out 2.5s infinite; }
@keyframes print { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes lift { 0%, 86%, 100% { transform: none; } 92% { transform: translateY(2px); } }

/* ---------- 2. the route ---------- */
.route { height: 420vh; }
.route__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.route__pin > .wrap { width: 100%; }
.odo { margin-top: 18px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.odo__v { font: 500 clamp(48px, 6vw, 64px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: inline-block; }
.odo__v.roll { animation: roll 420ms cubic-bezier(.2,.8,.2,1); }
@keyframes roll { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.odo small { font-size: 15px; color: var(--snow-2); }
.line { position: relative; margin-top: 72px; width: 100%; }
.line__track { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,.28); }
.line__chip { position: absolute; top: -34px; left: var(--x, 0%); transform: translateX(-50%); background: var(--paper); color: var(--paper-ink); font: 500 12px var(--mono);
  padding: 4px 8px; border-radius: 2px; transition: left 900ms cubic-bezier(.65,0,.35,1); white-space: nowrap; }
.stns { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stn { position: relative; padding-right: 18px; }
.stn__dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: #141A2A; border: 1.5px solid rgba(255,255,255,.5); }
.stn__name { font-size: 14px; color: var(--snow-2); margin-top: 18px; }
.stn__amt { font: 500 22px var(--mono); margin-top: 6px; }
.stn__cap { font-size: 15px; color: var(--snow-2); margin-top: 6px; line-height: 1.45; max-width: 15em; }
.stn.is-bad .stn__amt { color: var(--coral); }
.stn.is-bad .stn__dot { border-color: var(--coral); }
.route__end { margin-top: 64px; font-size: clamp(22px, 2.4vw, 30px); max-width: 26em; line-height: 1.3; text-wrap: balance; }
.route__end b { font-weight: 500; color: var(--coral); }
.js [data-from] { opacity: .18; transition: opacity 500ms ease; }
.js [data-from].on { opacity: 1; }
.js .route__end[data-from] { opacity: 0; }
.js .route__end.on { opacity: 1; }

/* ---------- 3. under the loupe ---------- */
.loupe-sec { height: 360vh; }
.loupe__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.loupe__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
.loupe-sec h2 { color: var(--ink); }
.lnotes { position: relative; min-height: 190px; margin-top: 36px; }
.lnote { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.lnote.is-on { opacity: 1; transform: none; }
.lnote:last-child { opacity: 1; transform: none; }
.js .lnote:last-child:not(.is-on) { opacity: 0; transform: translateY(8px); }
.lnote__k { font: 500 13px var(--mono); color: var(--ox); }
.lnote p:last-child { color: var(--ink); font-size: 17px; line-height: 1.55; margin-top: 8px; }
.fp { position: relative; }
.fp__doc { background: #fff; color: #2A2A33; padding: 16px 18px; font: 400 8px/1.9 var(--mono); max-width: 300px; margin-left: auto; margin-right: auto; border: 1px solid rgba(17,24,39,.12); }
.fp__t { font-weight: 500; letter-spacing: .06em; border-bottom: 1px solid #2A2A33; padding-bottom: 6px; margin-bottom: 6px; }
.fp__row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted #C9C6BD; }
.fp__total { border-top: 1px solid #2A2A33; border-bottom: 0; font-weight: 500; margin-top: 4px; }
.loupe { position: absolute; left: 0; top: 0; width: 240px; height: 240px; transform: translate(calc(var(--lx, 40px) - 120px), calc(var(--ly, 40px) - 120px)); transition: transform 60ms linear; pointer-events: none; }
.loupe__lens { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 1.5px solid #1A1D2B; background: #fff; box-shadow: 0 18px 40px -20px rgba(17,24,39,.45); }
.fp__doc--zoom { position: absolute; left: var(--dl, 0px); top: var(--dt, 0px); width: var(--dw, 600px); max-width: none; margin: 0; transform-origin: 0 0; transform: translate(calc(120px - (var(--lx, 40px) - var(--dl, 0px)) * 2.4 - var(--dl, 0px)), calc(120px - (var(--ly, 40px) - var(--dt, 0px)) * 2.4 - var(--dt, 0px))) scale(2.4); border: 0; }
.fp__doc--zoom .is-stop { color: var(--ox); }
.loupe__handle { position: absolute; width: 1.5px; height: 64px; background: #1A1D2B; right: 18px; bottom: -48px; transform: rotate(-40deg); transform-origin: top; }

/* ---------- 4. the price board ---------- */
.board-sec { padding: 160px 0; }
.board { margin-top: 44px; font: 500 16px var(--mono); }
.board__h, .board li { display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 1px; }
.board__h span { font-size: 11px; letter-spacing: .14em; color: var(--snow-2); padding: 0 12px 10px; }
.board ol { list-style: none; display: grid; gap: 1px; }
.flap { display: block; background: #1B2335; color: #F4F1EA; padding: 10px 12px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -1px 0 #0E1320, inset 0 1px 0 rgba(255,255,255,.04); position: relative; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0E1320; }
.flap--c { text-align: right; }
.board .is-this .flap { color: var(--coral); }
.board-sec .caption { margin-top: 18px; max-width: 60em; }

/* ---------- 5. the scale ---------- */
.scale { height: 260vh; }
.scale__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.scale__n { font: 480 22vw/1 var(--head); letter-spacing: -.03em; white-space: nowrap; transform: translateX(var(--sx, 10vw)); will-change: transform; }
.scale__cap { color: var(--snow-2); font-size: 17px; margin-top: 24px; }

/* ---------- 6. the working paper ---------- */
.wp-sec { padding: 160px 0; }
.wp-wrap { display: flex; flex-direction: column; align-items: center; }
.wp { width: min(640px, 100%); margin-top: 28px; background: #F2F5EC; color: #243024; padding: 34px 40px 34px 76px; position: relative;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(80,110,80,.28) 27px 28px); box-shadow: 0 30px 60px -40px rgba(17,24,39,.45); }
.wp::before, .wp::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(200,50,60,.55); }
.wp::before { left: 52px; } .wp::after { left: 56px; }
.wp__h { font: 500 11px var(--mono); letter-spacing: .16em; line-height: 28px; }
.wp__l { font: 400 17px/28px var(--body); display: flex; gap: 14px; align-items: center; margin-top: 28px; }
.wp__tick { width: 20px; height: 20px; position: relative; flex: none; }
.wp__tick::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 13px; border: solid #2F6B3A; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: bottom right; animation: tick 7.5s ease infinite; }
.wp__l:nth-of-type(3) .wp__tick::after { animation-delay: .9s; } .wp__l:nth-of-type(4) .wp__tick::after { animation-delay: 1.8s; }
@keyframes tick { 0%, 6% { transform: rotate(45deg) scale(0); } 12%, 88% { transform: rotate(45deg) scale(1); } 96%, 100% { transform: rotate(45deg) scale(0); } }
.wp__foot { color: var(--ink-2); margin-top: 32px; font-size: 17px; }

/* ---------- 7. the reprint ---------- */
.p7 { padding: 160px 0; }
.p7__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.term--center { justify-self: auto; }
.rcpt--end { transition: transform 900ms steps(12); }
.js .p7:not(.in) .rcpt--end { transform: translateY(-100%); }
.rcpt__after { color: var(--ox); font-weight: 500; transition: clip-path 700ms steps(18) 1.2s; }
.js .p7:not(.in) .rcpt__after { clip-path: inset(0 100% 0 0); }
.p7 h2 { margin-top: 56px; font-size: clamp(40px, 5vw, 64px); }
.p7__sub { color: var(--snow-2); font-size: 18px; margin-top: 14px; }
.p7 .cta { justify-content: center; margin-top: 28px; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .p1__grid { grid-template-columns: 1fr; }
  .term { margin-top: 24px; }
  .route { height: 460vh; }
  .route__pin { align-items: flex-start; padding-top: 84px; }
  .line { margin-top: 28px; }
  .line__track { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .line__chip { display: none; }
  .stns { grid-template-columns: 1fr; gap: 14px; }
  .stn { padding-left: 32px; } .stn__dot { position: absolute; left: 0; top: 2px; } .stn__name { margin-top: 0; }
  .stn__cap { font-size: 13px; max-width: none; } .stn__amt { font-size: 18px; }
  .route__end { margin-top: 24px; font-size: 20px; }
  .loupe__grid { grid-template-columns: 1fr; }
  .lnotes { min-height: 150px; margin-top: 16px; }
  .loupe { width: 130px; height: 130px; transform: translate(calc(var(--lx, 40px) - 65px), calc(var(--ly, 40px) - 65px)); }
  .fp__doc--zoom { transform: translate(calc(65px - var(--lx, 40px) * 3), calc(65px - var(--ly, 40px) * 3)) scale(3); }
  .board { font-size: 11px; } .board__h, .board li { grid-template-columns: 5fr 4fr 3fr; }
  .flap { padding: 8px 6px; }
  .wp { padding: 26px 20px 26px 60px; } .wp::before { left: 40px; } .wp::after { left: 44px; }
}
@media (prefers-reduced-motion: reduce) { .rcpt--print, .wp__tick::after { animation: none; } .wp__tick::after { transform: rotate(45deg); } }
.board .is-fair .flap { color: #9FD8AE; }
