/* Landing page only. Tokens and shared components come from style.css.
   The hero is one object: a vellum ledger sheet with real depth (CSS 3D), lit row by row by the visitor's own filter. */

/* ---------- hero layout ---------- */
.nav .btn, .nav .btn:hover { color: #0e1830; }
.hero { padding: clamp(20px, 5vw, 48px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hero h1 { max-width: 12ch; margin-bottom: 18px; }
.lede { font-size: clamp(1.02rem, 2.4vw, 1.14rem); color: var(--ink-2); max-width: 44ch; margin-bottom: 24px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 420px) { .hero-act .btn { padding: 0 15px; font-size: .9rem; } .hero-act { gap: 8px; } }
.hero-note { margin: 16px 0 0; font: 400 .74rem/1.5 var(--mono); color: var(--ink-3); display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 10px; }
.hero-note::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(200, 112, 62, .6); flex: none; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 40px; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 24px 0 40px; }
  .stage { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 72px; align-self: start; }
  .bench { grid-column: 1; grid-row: 2; }
}

/* ---------- the stage and the sheet ---------- */
.stage { position: relative; min-width: 0; scroll-margin-top: 72px; }
.stage-in { position: relative; perspective: 1500px; perspective-origin: 50% 20%; padding: clamp(18px, 4vw, 40px) clamp(8px, 4%, 36px) clamp(52px, 8vw, 76px); overflow: hidden; }
/* a soft back-light behind the sheet */
.stage-in::before { content: ""; position: absolute; inset: 0 -10% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 45%, rgba(143, 176, 196, .14), transparent 70%); }

.float { transform-style: preserve-3d; animation: float 9s ease-in-out infinite; will-change: transform; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotateY(2.2deg) rotateX(-1deg); }
}
.stage.off .float, .stage.off .ground, .stage.off .sheen i { animation-play-state: paused; }

.ground { position: absolute; left: 14%; right: 6%; bottom: clamp(8px, 2vw, 18px); height: clamp(46px, 9vw, 72px); pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 55%, transparent);
  animation: ground 9s ease-in-out infinite; }
/* warm light the lit rows throw on the desk */
.ground::after { content: ""; position: absolute; inset: -40% 6%; background: radial-gradient(closest-side, rgba(200, 112, 62, .32), transparent); opacity: calc(var(--lit, 0) * 1.1); transition: opacity .6s var(--ease); }
@keyframes ground { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.93, .88); opacity: .78; } }

.sheet {
  --bx: 22deg; --by: -14deg; --bz: 2.4deg; --tx: 0deg; --ty: 0deg;
  position: relative; width: min(100%, 470px); margin: 0 auto; transform-style: preserve-3d;
  transform: rotateX(calc(var(--bx) + var(--tx))) rotateY(calc(var(--by) + var(--ty))) rotateZ(var(--bz));
}
@media (max-width: 959px) { .sheet { --bx: 18deg; --by: -9deg; --bz: 1.8deg; width: min(100%, 440px); } }

/* paper under the top sheet: the stack of rows still for sale. Its depth follows the rows left (log scale). */
.plies { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.plies i { position: absolute; inset: 0; border-radius: 5px; opacity: 0;
  transform: translate3d(calc(var(--p) * 1.6px), calc(var(--p) * 3.2px), calc(var(--p) * -5px)) rotateZ(calc(var(--s, 1) * var(--p) * .32deg));
  background: linear-gradient(172deg, #efe2c4, #cdb98f);
  box-shadow: 0 0 0 1px rgba(92, 64, 30, .32), 0 1px 0 rgba(255, 250, 235, .6) inset;
  transition: opacity .35s var(--ease), transform .5s var(--ease-out); }
.plies i:nth-child(even) { --s: -1; background: linear-gradient(172deg, #e6d6b3, #bea983); }
.plies i.on { opacity: 1; }
.plies i:last-child { box-shadow: 0 0 0 1px rgba(60, 40, 18, .4), 0 30px 50px -16px rgba(0, 0, 0, .9); }
.stage.empty .face { opacity: .35; filter: saturate(.4); }
.stage.empty .face::after { display: none; }

.face {
  position: relative; transform-style: preserve-3d; border-radius: 5px; padding: 16px 18px 14px 12px;
  color: #2b2c28;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255, 252, 240, .75), transparent 55%),
    linear-gradient(174deg, #f4ecd9 0%, #eadfc6 46%, #d8caa9 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 -2px 0 rgba(120, 95, 50, .22) inset, 0 0 0 1px rgba(80, 62, 30, .3), 0 34px 70px -22px rgba(0, 0, 0, .9);
}
/* the paper's own thickness along the near edge */
.face::after { content: ""; position: absolute; left: 1px; right: 1px; top: 100%; height: 6px; transform-origin: top; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #c8b893, #8e7f5f); border-radius: 0 0 3px 3px; }

.sh-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 9px 26px; min-height: 26px;
  font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(43, 44, 40, .62); }
.sh-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sh-mark { flex: none; font: italic 500 15px/1 var(--display); letter-spacing: 0; text-transform: none; color: rgba(43, 44, 40, .42); }

.sh-head, .sh-row { display: grid; grid-template-columns: 24px repeat(4, minmax(0, 1fr)); align-items: center; }
.sh-head { height: 26px; border-top: 2px solid rgba(43, 44, 40, .72); border-bottom: 1px solid rgba(43, 44, 40, .5);
  font: 500 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #2b2c28; }
.sh-rows { transform-style: preserve-3d; }
.sh-row { position: relative; height: 24px; border-bottom: 1px solid rgba(64, 92, 116, .2);
  font: 400 10.5px/1 var(--mono); color: rgba(43, 44, 40, .78);
  transition: transform .55s var(--ease-out), color .3s; transition-delay: calc(var(--k, 0) * 26ms); }
.sh-row > * { position: relative; }
.sh-head .c, .sh-row .c { padding: 0 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; height: 100%; display: flex; align-items: center; border-left: 1px solid rgba(64, 92, 116, .14); }
.sh-head .c:nth-child(2), .sh-row .c:nth-child(2) { border-left: 1px solid rgba(176, 72, 56, .42); } /* the red margin rule */
.rn { font: 400 9px/1 var(--mono); color: rgba(43, 44, 40, .4); text-align: right; padding-right: 6px; }
/* the gold bar a matching row lifts on */
.sh-row::before { content: ""; position: absolute; inset: 4px -3px 3px -2px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, #f0ad7c, #c8703e 55%, #b8602f);
  box-shadow: 0 0 0 1px rgba(140, 62, 20, .35), 0 6px 12px -6px rgba(100, 40, 8, .55);
  transition: opacity .4s var(--ease); transition-delay: calc(var(--k, 0) * 26ms); }
.sh-row.on { transform: translate3d(0, -1px, 16px); color: #2e1404; }
.sh-row.on::before { opacity: 1; }
.sh-row.on .c { border-left-color: rgba(110, 46, 10, .2); }
.sh-row.on .rn { color: rgba(46, 20, 4, .6); }
.sh-row.void { opacity: .5; }
.sheet.blank .sh-head { height: 18px; }
/* rows ink in when the sheet is (re)built */
.sheet.ready .sh-row { animation: ink .6s var(--ease-out) backwards; animation-delay: calc(var(--i) * 32ms); }
@keyframes ink { from { opacity: 0; } }

/* margin strip: where the matches sit in the whole file */
.sh-map { position: absolute; right: 6px; top: 66px; bottom: 44px; width: 4px; display: flex; flex-direction: column; gap: 1px; border-radius: 2px; background: rgba(64, 92, 116, .14); }
.sh-map i { flex: 1; border-radius: 1px; background: #b8602f; opacity: 0; transition: opacity .35s; }

.sh-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 9px 0 0 26px; border-top: 3px double rgba(43, 44, 40, .62);
  font: 500 11px/1.2 var(--mono); color: rgba(43, 44, 40, .75); white-space: nowrap; }
.sh-sum { color: #8a3f17; font-weight: 500; }

/* light sliding across the paper: idles slowly, follows the tilt on desktop */
.sheen { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.sheen i { position: absolute; top: -40%; left: -70%; width: 70%; height: 180%;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .26) 50%, transparent 75%);
  translate: calc(var(--sx, 0) * 40%) 0; animation: sheen 14s ease-in-out infinite alternate; }
@keyframes sheen { from { transform: translate3d(0, 0, 0) rotate(8deg); } to { transform: translate3d(240%, 0, 0) rotate(8deg); } }

/* ---------- the peel ---------- */
.sheet.grab { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.sheet.peeling { cursor: grabbing; }
.face { transition: opacity .4s var(--ease); }
.loose { position: absolute; inset: 0; z-index: 3; margin: 0; pointer-events: none; will-change: transform; transform: translate3d(0, 0, 6px); }
.loose.held { transition: none; }
.loose.back { transition: transform .4s var(--ease-out); }
.loose.fly { transition: transform .6s cubic-bezier(.3, .1, .4, 1), opacity .6s ease-in; }
.loose .curl { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: calc(var(--k, 0) * 1.2);
  background: linear-gradient(105deg, rgba(255, 252, 240, .5), transparent 38%, rgba(60, 30, 10, .18) 100%); }
.loose .stamp { position: absolute; right: 14px; top: 36%; padding: 6px 10px; border: 2px solid #a8502a; border-radius: 4px;
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a8502a; background: rgba(250, 238, 214, .7);
  transform: rotate(-8deg) scale(1.3); opacity: calc(var(--k, 0) * 2.2 - .3); white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; }
.loose.fly .stamp { opacity: 1; transform: rotate(-8deg) scale(1); transition: transform .25s var(--ease-out); }
.sh-row.sold { color: rgba(43, 44, 40, .38); }
.sh-row.sold::after { content: ""; position: absolute; left: 24px; right: 4px; top: 50%; height: 1.5px; background: rgba(168, 80, 42, .75); transform-origin: left; animation: strike .45s var(--ease-out) backwards; }
.sh-row.sold::before { opacity: .28; }
@keyframes strike { from { transform: scaleX(0); } }
.sh-row.next::before { opacity: 1; box-shadow: 0 0 0 1.5px #8a3f17, 0 10px 18px -6px rgba(100, 40, 8, .7), 0 0 26px -2px rgba(200, 112, 62, .7); }
.sh-row.next { transform: translate3d(0, -2px, 24px); }
.sh-row.pop { animation: pop .5s var(--ease-out); }
@keyframes pop { 40% { transform: translate3d(0, -4px, 34px); } }

.peel { margin: -8px auto 10px; max-width: 470px; padding: 0 4px; }
.peel-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; font-size: .74rem; color: var(--gold-2); transition: opacity .5s var(--ease); }
.peel-hint.done { opacity: 0; }
.peel-arrow { width: 26px; height: 2px; background: currentColor; position: relative; border-radius: 2px; animation: nudge 2.4s var(--ease) infinite; }
.peel-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); opacity: .5; } 50% { transform: translateX(4px); opacity: 1; } }
.stage.off .peel-arrow { animation-play-state: paused; }
.peel-board { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(200, 112, 62, .07), rgba(255, 255, 255, .015)); }
.peel-n { margin: 0; display: flex; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: .84rem; }
.peel-n > .num { font: 500 1.5rem/1 var(--mono); color: var(--ink); }
.peel-split { display: flex; gap: 12px; justify-content: flex-end; margin: 0; }
.peel-split div { display: grid; gap: 2px; text-align: right; }
.peel-split dt { white-space: nowrap; font: 500 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.peel-split dd { margin: 0; font-size: .92rem; color: var(--ink); }
.peel-split div:first-child dd { color: var(--gold-2); }
.peel-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.peel-act .btn { flex: 1 1 auto; }
@media (max-width: 380px) { .peel-board { grid-template-columns: 1fr; } .peel-split { justify-content: flex-start; } .peel-split div { text-align: left; } }

.stage-cap { margin: 0 auto; max-width: 46ch; text-align: center; font-size: .74rem; line-height: 1.5; color: var(--ink-3); padding: 0 8px; min-height: 2.3em; }

@media (max-width: 559px) {
  .face { padding: 12px 12px 11px 8px; }
  .sh-head, .sh-row { grid-template-columns: 18px repeat(3, minmax(0, 1fr)); }
  .sh-head .c:nth-child(5), .sh-row .c:nth-child(5) { display: none; }
  .sh-row { height: 21px; font-size: 10px; }
  .sh-top, .sh-foot { padding-left: 20px; }
  .rn { padding-right: 4px; }
  .sh-map { top: 58px; bottom: 40px; right: 3px; width: 3px; }
}

/* ---------- the bench ---------- */
.bench { position: relative; min-width: 0; padding: clamp(16px, 4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%), rgba(19, 32, 57, .78);
  box-shadow: var(--shadow); scroll-margin-top: 72px; }
.step { min-width: 0; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.step-h { display: flex; align-items: baseline; gap: 12px; font: 600 1.02rem/1.2 var(--sans); letter-spacing: 0; margin: 0 0 14px; font-variation-settings: normal; }
.no { font: 500 .72rem/1 var(--mono); color: var(--gold); letter-spacing: .06em; }
.lbl { font: 500 .7rem/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 0; font-weight: 500; color: var(--ink-2); }
.big { font: 500 1.3rem/1 var(--mono); color: var(--ink); }

.drop { position: relative; display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 16px 18px; margin: 0;
  border: 1px dashed rgba(143, 176, 196, .38); border-radius: 14px; background: rgba(143, 176, 196, .04); cursor: pointer; font-weight: 400;
  transition: border-color .2s, background .2s, transform .25s var(--ease-out); }
.drop:hover, .drop.over { border-color: rgba(200, 112, 62, .7); background: var(--gold-soft); transform: translateY(-1px); }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.drop-ic { flex: none; display: grid; gap: 4px; width: 34px; padding: 8px 6px; border-radius: 6px; background: var(--vellum); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); transform: rotate(-4deg); transition: transform .3s var(--ease-out); }
.drop-ic i { display: block; height: 3px; border-radius: 1px; background: rgba(43, 44, 40, .35); }
.drop-ic i:nth-child(2) { background: var(--gold); }
.drop:hover .drop-ic, .drop.over .drop-ic { transform: rotate(0deg) translateY(-2px); }
.drop-tx { display: grid; gap: 4px; min-width: 0; }
.drop-t { font-weight: 600; font-size: 1rem; color: var(--ink); }
.drop-t u { color: var(--gold-2); text-decoration-color: rgba(200, 112, 62, .5); text-underline-offset: 3px; }
.drop-s { font-size: .84rem; color: var(--ink-3); }
.try { margin-top: 14px; }
.try-l { font: 500 .7rem/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }

.filebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fb-n { display: flex; flex-direction: column; min-width: 0; }
.fname { font-weight: 500; overflow-wrap: anywhere; color: var(--ink); }
.rname { font: 600 1.05rem/1.3 var(--display); text-decoration: none; }
.rname:hover { color: var(--gold-2); }
.bench .chips { max-height: 120px; overflow-y: auto; }
.chip { transition: border-color .2s, background .2s; }
.chip:hover { border-color: rgba(200, 112, 62, .4); background: var(--gold-soft); }
.pii { margin: 14px 0 0; }
#file-error { margin-top: 12px; }

.cond { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; min-width: 0; }
.cond[hidden] { display: none; }
.cond-f { min-width: 0; }
.cond .and { margin: 6px 0 0; font-size: .7rem; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 560px) {
  .cond { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .cond .and { grid-column: 1 / -1; }
}
.cond-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cond-actions .linkish { display: inline-flex; align-items: center; min-height: 44px; }
#filter-hint { min-height: 1.4em; transition: opacity .2s; }
.bench.busy #filter-hint, .bench.busy .rc output { opacity: .55; }

.ticks { display: flex; justify-content: space-between; font-size: .66rem; color: var(--ink-3); margin-top: -2px; padding: 0 2px; }
.price-fixed { margin: 0; color: var(--ink-2); }
.price-fixed b { color: var(--gold-2); font-weight: 500; }

/* phones: a small sticky tally keeps the result in sight while the controls are in use */
.tally { display: none; }
@media (max-width: 959px) {
  .tally { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 14px;
    border: 1px solid var(--line-2); border-radius: 12px; background: rgba(14, 24, 48, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .8); font-size: .82rem; }
  .tl-bars { display: grid; gap: 1.5px; width: 22px; flex: none; }
  .tl-bars i { height: 1.5px; border-radius: 1px; background: rgba(226, 216, 196, .2); transition: background .3s, transform .3s var(--ease-out); transform-origin: left; }
  .tl-bars i.on { background: var(--gold); transform: scaleX(1.25); }
  .tl-n { color: var(--ink-2); }
  .tl-t { margin-left: auto; color: var(--gold-2); font-weight: 500; }
}

/* receipt */
.receipt { position: relative; padding: 20px 18px 18px; border-radius: 14px; background: #0b1117; border: 1px solid var(--line); }
.receipt::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200, 112, 62, .55), transparent); }
.rc-h { font: 500 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 8px; font-variation-settings: normal; }
.rc { margin: 0 0 14px; }
.rc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rc dt { color: var(--ink-2); font-size: .9rem; }
.rc dd { margin: 0; font-size: .95rem; text-align: right; overflow-wrap: anywhere; font-family: var(--mono); }
.rc output { transition: opacity .2s; }
.rc .sum { padding: 14px 0; border-bottom-color: var(--line-2); }
.rc .sum dt { font-weight: 600; color: var(--ink); }
.rc .sum dd output { font: 500 clamp(1.6rem, 6vw, 2rem)/1 var(--mono); color: var(--gold-2); letter-spacing: -.02em; }
.rc .split dt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; background: var(--gold); vertical-align: 0; }
.rc .split + .split dt::before { background: var(--slate); }
.cur { font: 500 .76rem/1 var(--mono); color: var(--ink-3); }
.splitbar { height: 5px; border-radius: 3px; background: rgba(143, 176, 196, .55); overflow: hidden; margin: 0 0 16px; }
.splitbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transition: transform .45s var(--ease-out); }
.rc-foot { margin: 0 0 16px; }
#sale-note { margin: 0 0 12px; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 13vw, 150px) 0 0; }
.sec h2 { max-width: 18ch; }
.sec-lede { font-size: 1.05rem; color: var(--ink-2); max-width: 58ch; margin-bottom: 36px; }

/* how it works: two ledger columns, no cards */
.lanes { display: grid; gap: 48px; border-top: 1px solid var(--line-2); padding-top: 32px; }
@media (min-width: 820px) {
  .lanes { grid-template-columns: 1fr 1fr; gap: 0; }
  .lane:first-child { padding-right: clamp(24px, 4vw, 48px); border-right: 1px solid var(--line); }
  .lane:last-child { padding-left: clamp(24px, 4vw, 48px); }
}
.lane h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.lane-k { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lane:last-child .lane-k { color: var(--slate); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 500 .78rem/1.9 var(--mono); color: var(--ink-3); }
.steps b { color: var(--ink); font-weight: 600; }

.code { margin: 56px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #070d18; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.code figcaption { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; background: rgba(255, 255, 255, .015); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(226, 216, 196, .14); }
.reqs { list-style: none; margin: 0; padding: 6px 0; }
.reqs li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 6px 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid rgba(226, 216, 196, .05); transition: background .2s; }
.reqs li:last-child { border-bottom: 0; }
.reqs li:hover { background: rgba(255, 255, 255, .02); }
.reqs .m { font: 500 .68rem/1 var(--mono); letter-spacing: .04em; padding: 5px 0; border-radius: 4px; text-align: center; margin-top: 1px; }
.reqs .get { color: var(--slate); background: var(--slate-soft); }
.reqs .post { color: var(--gold-2); background: var(--gold-soft); }
.reqs li > code { background: none; border: 0; padding: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; line-height: 1.6; }
.reqs .r { grid-column: 2; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; font-family: var(--mono); }
.reqs .r code { background: none; border: 0; padding: 0; color: #c9bfa8; font-size: 1em; }
@media (min-width: 900px) {
  .reqs li { grid-template-columns: 50px minmax(0, .9fr) minmax(0, 1.4fr); }
  .reqs .r { grid-column: 3; }
}

/* catalog: a ledger of real listings */
.cat-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.cat-head h2 { margin: 0; }
.search { flex: 1 1 280px; max-width: 400px; }
.ds-grid { border-top: 1px solid var(--line-2); }
.ds { position: relative; display: grid; gap: 12px; padding: 22px 4px; border-bottom: 1px solid var(--line); min-width: 0; transition: background .25s; }
.ds::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--gold); transition: width .5s var(--ease-out); }
.ds:hover { background: linear-gradient(90deg, rgba(200, 112, 62, .035), transparent 70%); }
.ds:hover::before { width: 100%; }
.ds-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ds h3 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.ds h3 a { color: var(--ink); text-decoration: none; }
.ds h3 a:hover { color: var(--gold-2); }
.ds-price { flex: none; margin: 0; font-size: 1.05rem; font-weight: 500; text-align: right; color: var(--gold-2); }
.ds-price span { display: block; font-size: .66rem; color: var(--ink-3); font-weight: 400; letter-spacing: .04em; }
.ds-desc { margin: 0; color: var(--ink-2); font-size: .94rem; max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--ink-3); }
.ds-acts { display: flex; gap: 18px; align-items: center; }
.ds-acts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.ds-acts .linkish { min-height: 44px; }
@media (min-width: 900px) {
  .ds { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; grid-template-areas: "top chips foot" "desc chips foot"; column-gap: 36px; align-items: start; }
  .ds-top { grid-area: top; } .ds-desc { grid-area: desc; } .ds .chips { grid-area: chips; } .ds-foot { grid-area: foot; flex-direction: column; align-items: flex-end; }
}

#catalog-empty { display: grid; justify-items: center; gap: 4px; padding: 48px 20px 44px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(60% 80% at 50% 0%, rgba(143, 176, 196, .06), transparent 70%), rgba(255, 255, 255, .01); }
#catalog-empty[hidden] { display: none; }
#catalog-empty svg { margin: 0 0 14px; }
#empty-text { margin: 0; font: 500 1.35rem/1.2 var(--display); color: var(--ink); }
.empty-sub { margin: 4px 0 0; }
#catalog-empty .btn { margin-top: 20px; }
.empty-art path[stroke="#c8703e"] { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* stats: one ruled line of real numbers */
.stats-sec { padding-top: clamp(48px, 8vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line-2); }
.stats > div { padding: 18px 14px; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.stats dt { font: 500 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.stats dd { margin: 8px 0 0; font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 500; overflow-wrap: anywhere; color: var(--ink); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { border-bottom: 0; border-right: 1px solid var(--line); padding: 24px 22px; } .stats > div:last-child { border-right: 0; } }

/* fees and limits */
.fee-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 8px; }
.fee-row h2 { margin: 0; }
.fee-big { display: flex; align-items: baseline; gap: 12px; }
.fee-big .num { font: 400 clamp(3.6rem, 12vw, 6.5rem)/.9 var(--display); font-variation-settings: "SOFT" 30, "opsz" 144; color: var(--brass); font-style: italic; letter-spacing: -.03em; }
.fee-l { font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
#limits .sec-lede { margin-top: 20px; }
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: l; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .limits { grid-template-columns: repeat(3, 1fr); } .limits li + li { border-left: 1px solid var(--line); } .limits li { padding: 28px 28px 8px; } .limits li:first-child { padding-left: 0; } }
.limits li { counter-increment: l; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .limits li { border-bottom: 0; } }
.limits li::before { content: counter(l, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 .75rem/1 var(--mono); color: var(--gold); letter-spacing: .08em; }
.limits h3 { font-size: 1.22rem; }
.limits p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.foot { margin-top: clamp(80px, 12vw, 140px); }

/* ---------- reduced motion: a still sheet ---------- */
@media (prefers-reduced-motion: reduce) {
  .float, .ground, .sheen i, .sheet.ready .sh-row, .empty-art path, .peel-arrow, .sh-row.sold::after, .sh-row.pop { animation: none !important; }
  .sh-row, .sh-row::before, .plies i { transition: none !important; }
  .float { will-change: auto; }
}

/* ---------- the cream band: "How it works" printed on aged paper ---------- */
#how { margin-top: clamp(80px, 13vw, 150px); padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 9vw, 110px); color: var(--ink);
  --ink: #17223d; --ink-2: #4a4d55; --ink-3: #6d675b; --line: rgba(23, 34, 61, .14); --line-2: rgba(23, 34, 61, .24);
  --gold: #a4532a; --gold-2: #8f4520; --slate: #34557a; --brass: #8a6a2c;
  background: radial-gradient(120% 70% at 15% 0%, rgba(255, 251, 240, .7), transparent 60%), linear-gradient(178deg, #f2e8d2, #e6d6b4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -1px 0 rgba(120, 90, 40, .3) inset; }
#how .btn.ghost { background: rgba(23, 34, 61, .04); }
#how .btn.ghost:hover { background: #17223d; color: #f2e8d2; }
#how .code { --ink: #f2e8d2; --ink-2: #bdb5a4; --ink-3: #958e82; --line: rgba(226, 216, 196, .09); --gold: #c8703e; --slate: #8fb0c4; }
#how + .sec { padding-top: clamp(64px, 10vw, 120px); }
.peel-split dd, .peel-n .num { font-variant-numeric: tabular-nums; }
