/* Bring Da Payne Sports Cards. Black, gold, chrome. */
:root {
  --color-bg: #000;
  --color-surface: #0c0c0d;
  --color-surface-2: #151517;
  --color-border: #26262b;
  --color-border-strong: #3a3a41;
  --color-text: #f4f3ef;
  --color-muted: #a3a3ab;
  --color-faint: #74747c;
  --color-primary: #f2d97c;
  --gold: #f2d97c;
  --gold-deep: #c9971f;
  --gold-ink: #1a1300;
  --chrome: linear-gradient(180deg, #fff 0%, #d9d9de 45%, #8d8d96 100%);
  --gold-grad: linear-gradient(180deg, #fff1b0 0%, #f2d97c 40%, #c9971f 100%);
  --hot: #ff5a3c;
  --ok: #7fe0a2;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5.4vw, 5.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --transition-interactive: 160ms ease;
  --wrap: 1280px;
}

html { color-scheme: dark; background: #000; }
body { font-family: var(--font-body); overflow-x: hidden; }
a { color: inherit; }
.wrap { width: min(100% - 2 * var(--space-5), var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 2 * var(--space-8), var(--wrap)); } }

.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: var(--space-4); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 46px; padding: 0 var(--space-5); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.btn-gold { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 0 0 1px rgb(242 217 124 / 0.35), 0 8px 28px -10px rgb(242 217 124 / 0.55); }
.btn-gold:hover { box-shadow: 0 0 0 1px rgb(242 217 124 / 0.6), 0 10px 34px -8px rgb(242 217 124 / 0.8); }
.btn-ghost { border-color: var(--color-border-strong); color: var(--color-text); background: rgb(255 255 255 / 0.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(0 0 0 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.375rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.brand-text b { font-weight: 800; color: var(--gold); }
.brand-text small { display: block; margin-top: 3px; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 0.625rem; letter-spacing: 0.24em; color: var(--color-muted); }
.header-cta { min-height: 40px; padding: 0 var(--space-4); font-size: 0.9375rem; }
@media (max-width: 420px) { .brand-text { font-size: 1.125rem; } .header-cta { padding: 0 var(--space-3); font-size: 0.875rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: var(--space-8) 0 var(--space-10); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 22% 45%, rgb(242 217 124 / 0.13), transparent 70%),
  repeating-linear-gradient(115deg, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 14px); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 30%, var(--gold) 50%, var(--gold-deep) 70%, transparent); opacity: 0.7; }
.hero-inner { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.hero-logo { width: min(62vw, 300px); }
.hero-logo img { width: 100%; height: auto; mix-blend-mode: lighten; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(242 217 124 / 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(242 217 124 / 0); } 100% { box-shadow: 0 0 0 0 rgb(242 217 124 / 0); } }
h1 { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: var(--text-hero); line-height: 0.92; letter-spacing: -0.005em; text-transform: uppercase; }
h1 .chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
h1 .gold { display: block; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero-intro { margin: var(--space-4) auto 0; max-width: 46ch; color: var(--color-muted); font-size: var(--text-lg); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-8); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.hero-stats[hidden], .hero-stats div[hidden] { display: none; }
.hero-stats dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-faint); }
.hero-stats dd { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .hero { padding: var(--space-12) 0 var(--space-16); }
  .hero-inner { grid-template-columns: minmax(300px, 400px) 1fr; gap: var(--space-16); align-items: center; justify-items: start; text-align: left; }
  .hero-logo { width: 100%; }
  .hero-intro { margin-left: 0; }
  .hero-actions, .hero-stats { justify-content: flex-start; }
}

.demo-banner { background: #1c1705; border-block: 1px solid rgb(242 217 124 / 0.35); color: #f6e7a8; font-size: var(--text-sm); padding: var(--space-3) 0; text-align: center; }
.demo-banner[hidden] { display: none; }

/* ---------- shop ---------- */
.shop { padding: var(--space-10) 0 var(--space-16); scroll-margin-top: 64px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
h2 { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: var(--text-2xl); line-height: 1; text-transform: uppercase; }
.result-count { color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

.toolbar { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.toolbar[hidden] { display: none; }
.toolbar-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) { .toolbar-row { grid-template-columns: 1fr 230px; } }
.search { display: flex; align-items: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-4); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-muted); }
.search:focus-within { border-color: var(--gold); color: var(--gold); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--color-text); font-size: 1rem; }
.search input::placeholder { color: var(--color-faint); }
.select select { width: 100%; height: 48px; padding: 0 var(--space-10) 0 var(--space-4); background: var(--color-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2d97c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); font-size: 1rem; font-weight: 500; appearance: none; -webkit-appearance: none; }
.select select:focus-visible { border-color: var(--gold); }

.chip-group { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.chip-group[hidden] { display: none; }
.chip-label { flex: none; width: 52px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-faint); }
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 38px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: transparent; color: var(--color-text); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.chip-count { font-size: var(--text-xs); color: var(--color-faint); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] .chip-count { color: rgb(26 19 0 / 0.65); }
.clear-btn { justify-self: start; color: var(--gold); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.clear-btn[hidden] { display: none; }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.grid[hidden] { display: none; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px -18px rgb(242 217 124 / 0.45); }
a.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-lg); }
.card-media { position: relative; container-type: inline-size; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 50% 0%, #1d1d21, #0a0a0b 70%); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--space-3); transition: transform 320ms ease; }
a.card:hover .card-media img { transform: scale(1.045); }
.card-media.no-image::before { content: ''; position: absolute; inset: 9% 11%; border: 1px solid rgb(242 217 124 / 0.4); border-radius: var(--radius-md); background: linear-gradient(160deg, rgb(242 217 124 / 0.1), transparent 45%), #050505; box-shadow: inset 0 0 0 4px #000, inset 0 0 0 5px rgb(255 255 255 / 0.08); }
.face { position: absolute; inset: 9% 11%; display: flex; flex-direction: column; align-items: center; padding: 14% 6% 7%; text-align: center; overflow: hidden; }
.face-year { flex: none; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.75rem, 20cqw, 3rem); line-height: 0.9; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.face-brand { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: clamp(0.6875rem, 7cqw, 0.9375rem); line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.face-logo { flex: none; width: 44%; aspect-ratio: 1; margin-top: auto; background: url('./assets/logo-360.webp') center / contain no-repeat; mix-blend-mode: lighten; }
.foil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.16) 47%, rgb(242 217 124 / 0.22) 52%, transparent 64%); transform: translateX(-120%); }
a.card:hover .foil { transform: translateX(120%); transition: transform 700ms ease; }
.badges { position: absolute; top: var(--space-2); left: var(--space-2); right: var(--space-2); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.badge { padding: 3px 8px; border-radius: var(--radius-sm); background: rgb(0 0 0 / 0.78); border: 1px solid rgb(255 255 255 / 0.16); color: var(--color-text); font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-new { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.badge-auction { background: var(--hot); border-color: var(--hot); color: #1a0500; }

.card-body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-3); }
@media (min-width: 640px) { .card-body { padding: var(--space-4); } }
.card-title { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; line-height: 1.35; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: initial; min-height: calc(3 * 1.35em); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); margin-top: auto; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.buy-how { font-size: var(--text-xs); color: var(--color-muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); font-size: var(--text-xs); color: var(--color-muted); }
.time { font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }
.time.urgent { color: var(--hot); }
.ship.free { color: var(--ok); }
.card-go { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-2); border-top: 1px solid var(--color-border); font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
a.card:hover .card-go { color: var(--gold); }

.skeleton .card-media, .sk-line { background: linear-gradient(90deg, #111113 25%, #1c1c20 50%, #111113 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.short { width: 60%; }
.sk-line.price { width: 40%; height: 22px; margin-top: var(--space-3); }
@keyframes shimmer { to { background-position: -200% 0; } }

.state { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-16) var(--space-4); text-align: center; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }
.state[hidden] { display: none; }
.state h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); text-transform: uppercase; }
.state p { color: var(--color-muted); }
.more { display: flex; justify-content: center; margin-top: var(--space-8); }
.more[hidden] { display: none; }

/* ---------- how it works ---------- */
section.how { padding: var(--space-16) 0; border-top: 1px solid var(--color-border); background: var(--color-surface); }
.steps { list-style: none; display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }
.steps li { padding-top: var(--space-4); border-top: 2px solid var(--gold); max-width: none; }
.steps span { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.16em; color: var(--gold); }
.steps h3 { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.steps p { margin-top: var(--space-2); color: var(--color-muted); }

/* ---------- footer ---------- */
.site-footer { padding: var(--space-10) 0 var(--space-12); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: var(--text-sm); }
.footer-inner { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; align-items: center; } .footer-notes { text-align: right; justify-self: end; } }
.footer-brand { display: flex; align-items: center; gap: var(--space-4); }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--color-text); }
.footer-brand a { color: var(--gold); }
.footer-notes p { max-width: 52ch; }
.footer-notes p + p { margin-top: var(--space-1); }
.footer-notes p:empty { display: none; }

.to-top { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--color-surface-2); border: 1px solid var(--gold); color: var(--gold); font-size: 1.25rem; line-height: 1; }
.to-top[hidden] { display: none; }
@media (max-width: 720px) { .to-top { width: 40px; height: 40px; right: var(--space-3); bottom: var(--space-3); font-size: 1.125rem; background: rgb(21 21 23 / 0.92); } }

@media (prefers-reduced-motion: reduce) {
  a.card:hover, a.card:focus-visible { transform: none; }
  .foil, .live-dot { display: none; animation: none; }
  a.card:hover .card-media img { transform: none; }
}
