/* Vampcheck's own pieces: the brand, the cheque desk, coin cards (vamps are paper, originals are dark with a seal),
   the ledger, the receipts. Reads tokens only. */

/* ---------- type ---------- */
h1, h2, .display { font-weight: 800; }
.accent { color: var(--accent); }
.kicker { color: var(--ink-2); }
.kicker-dot { border-radius: 0; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg) scale(0.8); }
.lede b { color: var(--ink); font-weight: 600; }
.section-note { margin-top: 10px; max-width: 46em; }
.label { color: var(--muted); }

/* ---------- brand ---------- */
.brand { gap: 11px; color: var(--ink); }
.brand-mark { display: inline-flex; width: auto; height: auto; border: 0; border-radius: 0; }
.brand-mark svg { display: block; }
.brand-word { display: inline-flex; align-items: center; height: 22px; font: 800 21px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.brand-word svg { height: 100%; width: auto; }
.brand-word.big { height: 30px; font-size: 28px; }

/* ---------- header ---------- */
#top { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.demo-strip { background: var(--bg-2); border-bottom: var(--border); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.nav a { border-radius: var(--r-sm); white-space: nowrap; }
.top-bar { gap: 22px; }
.ca.small { white-space: nowrap; }
@media (max-width: 1120px) { .top-actions .ca.small { display: none; } }
.btn { border-radius: var(--r-pill); font-weight: 600; letter-spacing: -0.005em; }
.btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn.primary:active { transform: translateY(1px); }
.chip { border-radius: var(--r-sm); }
.ca { border-style: dashed; border-color: var(--line-3); border-radius: var(--r); }

/* ---------- the desk (home hero) ---------- */
.hero { display: block; padding-top: clamp(40px, 6vw, 84px); }
.hero-title { font-size: clamp(48px, 8.4vw, 124px); line-height: 0.92; letter-spacing: -0.045em; max-width: 13ch; }
.hero-title span { display: block; }
.desk { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(26px, 3.4vw, 44px); padding-top: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line-2); }
.desk-copy { display: grid; justify-items: start; align-content: start; }
.desk-copy .lede { margin-top: 0; }
.ctas { margin-top: 22px; }
.try { width: 100%; margin-top: 28px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 10px; }
.try .input { font-family: var(--font-mono); font-size: 17px; height: 50px; }
.try-out { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; min-height: 2.9em; }
.try-out.is-vamp { color: var(--ink); }
.try-out.is-vamp .bite { color: var(--accent); flex: none; margin-top: 1px; }
.try-out.is-original { color: var(--good); }
.try-out a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hero-stats { margin-top: 24px; }
.hero-stats .stat-value { font-size: 26px; }
.live-cheque { margin: 0; display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 24px); }
.live-cheque figcaption { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.live-cheque figcaption b { color: var(--ink); font-weight: 600; }
.live-cheque .live-dot { display: inline-block; vertical-align: middle; }
.fig-count { font-size: 12px; }
.cheque-link { display: block; transition: transform var(--t) var(--ease); }
.cheque-link:hover { transform: translateY(-2px); }

/* ---------- the cheque ---------- */
.cheque-box { width: 100%; }
.cheque-box svg.cheque { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.55)); }
.cheque-box svg.cheque.big { transform: rotate(-1.4deg); }
/* the punch: the cheque writes in, then the bite lands. The page's one motion moment. */
svg.cheque.punch text { animation: write-in 380ms var(--ease) both; }
svg.cheque.punch .bite-ink { transform-box: fill-box; transform-origin: center; animation: punch-ink 220ms cubic-bezier(.2, .9, .3, 1) 520ms both; }
svg.cheque.punch .bite-holes { animation: punch-holes 140ms linear 560ms both; }
@keyframes write-in { from { opacity: 0; } }
@keyframes punch-ink { from { opacity: 0; transform: scale(1.12); } }
@keyframes punch-holes { from { opacity: 0; } }

/* ---------- steps ---------- */
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.steps.four .step { border: 0; border-radius: 0; background: transparent; border-right: 1px solid var(--line-2); padding: 22px; gap: 10px; }
.steps.four .step:last-child { border-right: 0; }
.step-n { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.step h3 { font-size: 18px; }
.step-pic { height: 118px; display: grid; place-items: center; margin: -22px -22px 6px; padding: 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mini-field { display: grid; gap: 6px; width: min(190px, 100%); }
.mini-input { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--bg); font-size: 16px; }
.mini-input .caret { width: 1.5px; height: 18px; background: var(--ink); margin-left: 1px; }
.mini-match { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.mini-match .bite { color: var(--accent); }
.mini-why { flex-basis: 100%; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.mini-split { display: grid; gap: 8px; width: 100%; font-size: 11.5px; }
.mini-split .split { margin: 0; height: 30px; }
.mini-rows { display: grid; gap: 6px; width: 100%; font-size: 12.5px; }
.mini-rows > div { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.mini-rows .bite { color: var(--accent); }

/* ---------- the ledger ---------- */
.ledger { border-top: 1px solid var(--line-3); }
.ledger-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 150px 170px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
a.ledger-row:hover { background: var(--surface); }
.ledger-head { padding-block: 10px; }
.ledger-n { color: var(--muted); }
.ledger-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ledger-coin > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-coin b { font-weight: 600; }
.ledger-vamps { display: flex; align-items: center; gap: 10px; }
.slivers { display: inline-flex; }
.slivers i { width: 9px; height: 18px; margin-right: -3px; border-radius: 1px; background: var(--paper); box-shadow: -1px 0 0 var(--bg); transform: rotate(-6deg); }
.ledger-paid { text-align: right; font-size: 15px; }

/* ---------- coin cards ---------- */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.card-slot { position: relative; display: grid; }
.coin-card { position: relative; z-index: 1; border-radius: var(--r-lg); gap: 12px; padding: 16px 16px 14px; }
.coin-card-head { gap: 12px; }
.coin-card-head .bite, .coin-card-head .seal-art { margin-left: auto; flex: none; }
.coin-art { border-radius: var(--r-sm); }
.coin-art.drawn { border-radius: var(--r-sm); font-family: var(--font-mono); }
.owes { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-block: 1px dashed var(--line-2); font-size: 14px; }
.owes-to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owes-amt { font-size: 14px; }
.coin-card-nums { grid-template-columns: 1fr 1fr auto; align-items: end; }
.coin-card-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 3px; border-radius: 0; }

/* an original: dark, with its seal; the cheques its vamps wrote it sit behind it */
.coin-card.original { background: var(--surface); border: 1px solid var(--line-2); }
.coin-card.original .owes-amt { color: var(--accent); }
.seal-art { color: var(--ink); opacity: 0.9; }
.stack { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sliver { position: absolute; left: 10px; right: 10px; top: 8px; bottom: -7px; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.sliver.s1 { transform: rotate(-1.6deg) translateY(2px); }
.sliver.s2 { transform: rotate(1.4deg) translateY(5px); background: #e2d8c8; }
.sliver.s3 { transform: rotate(-0.6deg) translateY(9px); background: #d6cbba; }

/* a vamp: a paper slip, made out to its original, the bite punched in its corner */
.coin-card.vamp { background: var(--paper); color: var(--paper-ink); border: 0; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.9); }
.coin-card.vamp::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--paper-line); border-radius: 5px; pointer-events: none; }
.coin-card.vamp .label, .coin-card.vamp .coin-sym, .coin-card.vamp .coin-card-last { color: var(--paper-2); }
.coin-card.vamp .owes { border-color: var(--paper-line); }
.coin-card.vamp .owes-amt { color: #b4222f; font-weight: 500; }
.coin-card.vamp .bite { color: var(--accent); }
.coin-card.vamp .bite .hole { fill: var(--bg); }
.coin-card.vamp .chip { background: transparent; border-color: var(--paper-line); color: var(--paper-ink); }
.coin-card.vamp .chip.done { color: #2f7a4f; }
.coin-card.vamp .up { color: #2f7a4f; }
.coin-card.vamp .down { color: #a5502a; }
.coin-card.vamp .bar { background: rgba(42, 28, 30, 0.1); }
.coin-card.vamp .bar span { background: var(--paper-ink); }
a.coin-card.vamp:hover { border-color: transparent; }
.bite { display: inline-flex; color: var(--accent); }
/* on the dark ground the bite is a stamp with solid ink holes; on paper the holes are punched through (see below) */
.bite .hole { fill: currentColor; }
.coin-card.preview { pointer-events: none; }
.skeleton { background: var(--surface); border: 1px solid var(--line); }

/* ---------- receipts ---------- */
.feed { border-top: 1px solid var(--line-3); }
.feed-row { grid-template-columns: 26px 92px minmax(0, 1fr) auto 72px; gap: 12px; padding: 11px 4px; }
.feed-row.is-cheque .feed-text { color: var(--ink); }
.feed-mark { display: inline-grid; place-items: center; }
.feed-dot { width: 6px; height: 6px; background: var(--line-3); transform: rotate(45deg); }
.feed-sym { color: var(--ink-2); }
.feed-sym:hover { color: var(--ink); }
.feed-text { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.foot-brand .row { gap: 12px; }
.foot-brand p { max-width: 30em; }
.foot-links { display: flex; gap: clamp(28px, 5vw, 64px); align-items: start; }
.foot-col { display: grid; gap: 9px; align-content: start; font-size: 14.5px; }
.foot-col .label { margin-bottom: 2px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot-links { flex-wrap: wrap; gap: 24px 40px; } }

/* ---------- band ---------- */
.band { justify-items: start; padding-bottom: 20px; }
.band h2 { font-size: clamp(40px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.045em; }
.band h2 span { display: block; }
.band .lede { max-width: 40em; }

/* ---------- forms and launch ---------- */
.input { border-radius: var(--r-sm); }
.step-title .step-n { border-radius: var(--r-sm); font-family: var(--font-mono); }
.step-title .step-n.ok { background: var(--good); color: var(--bg); border-color: transparent; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 8px; }
.verdict-head { display: flex; align-items: center; gap: 10px; font: 800 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.verdict.is-original .verdict-head { color: var(--good); }
.verdict.is-vamp { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.verdict.is-vamp .verdict-head { color: var(--accent); }
.verdict p { color: var(--ink-2); font-size: 14.5px; }
.matches { display: grid; gap: 6px; margin-top: 2px; }
.match { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.match .mono { color: var(--ink-2); }
.match-why { margin-left: auto; font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.accept input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.split { border-radius: var(--r-sm); }
.split span { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--ink); }
.split span.mine { background: color-mix(in srgb, var(--good) 22%, transparent); }
.split span.platform { background: var(--surface-2); color: var(--ink-2); }
.preview-box .coin-card { width: 100%; }

/* ---------- coin page ---------- */
.coin-head .coin-art { border-radius: var(--r); }
.verdict-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip.vamp { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip.original { color: var(--ink); border-color: var(--line-3); }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cheque-panel .cheque-box { max-width: 720px; }
.cheque-panel p { color: var(--ink-2); margin-top: 16px; }
.cheque-panel .paid-line { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.vamp-list { display: grid; gap: 8px; margin-top: 10px; }
.vamp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--paper); color: var(--paper-ink); }
.vamp-row .muted { color: var(--paper-2); }
.vamp-row .bite .hole, .fate.vamp .bite .hole { fill: var(--bg); }
.vamp-row b.mono { color: #b4222f; }
.facts dd { overflow-wrap: anywhere; }
.chart-rule { stroke: var(--line); stroke-width: 1; }
.chart-line { stroke: var(--ink); stroke-width: 1.6; }
.chart-area { fill: rgba(241, 232, 220, 0.05); }

/* ---------- how ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin-top: 22px; }
.rule { padding: 20px; border-right: 1px solid var(--line-2); display: grid; gap: 8px; align-content: start; }
.rule:last-child { border-right: 0; }
.rule .mono.big { font-size: 22px; }
.fates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.fate { padding: 22px; border-radius: var(--r-lg); display: grid; gap: 12px; align-content: start; }
.fate.original { background: var(--surface); border: 1px solid var(--line-2); }
.fate.vamp { background: var(--paper); color: var(--paper-ink); }
.fate.vamp .muted { color: var(--paper-2); }
.fate h3 { font: 800 26px/1 var(--font-display); letter-spacing: -0.02em; }
.fate .split span { color: inherit; }
.risks { display: grid; gap: 10px; margin-top: 18px; max-width: 820px; }
.risks li { display: flex; gap: 10px; color: var(--ink-2); }
.risks li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--warn); transform: rotate(45deg); }

/* ---------- 404, wallet ---------- */
.nowhere { display: grid; justify-items: center; gap: 18px; text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.nowhere .cheque-box { max-width: 560px; }
.nowhere h1 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.four .step:nth-child(2) { border-right: 0; }
  .steps.four .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 980px) {
  .desk { grid-template-columns: 1fr; }
  .live-cheque { position: static; order: -1; }
  .fates { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rule { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .rule:last-child { border-bottom: 0; }
}
@media (max-width: 860px) {
  .tabbar { border-radius: var(--r-lg); }
  .tabbar a { border-radius: var(--r-sm); }
  .ledger-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .ledger-row .ledger-vamps { display: none; }
  .feed-row { grid-template-columns: 22px 74px minmax(0, 1fr) 56px; }
  main { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .steps.four { grid-template-columns: 1fr; }
  .steps.four .step { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .steps.four .step:last-child { border-bottom: 0; }
  .cheque-box svg.cheque.big { transform: none; }
  .brand-word { height: 19px; font-size: 18px; }
  .top-bar { gap: 12px; }
  .hero-title { font-size: clamp(46px, 14vw, 64px); }
  .hero-stats { gap: 10px 22px; }
  .vamp-row { grid-template-columns: auto minmax(0, 1fr); }
  .vamp-row b.mono { grid-column: 2; }
}
