/* ═══════════════════════════════════════════════════════════════════════
   /scrape/ebay — "The price is still moving."
   A live marketplace: a hero auction that ticks (bid climbs, clock falls, JSON
   tracks it), the sold price as truth, the full item record, search shapes.
   Distinct from the other scrape pages (map/table/gallery): time-based motion.
   BG rhythm dark -> teal -> dark -> purple -> dark -> teal. Real DS CTA variants;
   warm-dark text on teal. Chrome via _shared.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.eb-main { position: relative; overflow-x: clip; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(0.22,1,0.36,1), transform 640ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 1 — live auction (dark, copy left / ticking card right)
   ═══════════════════════════════════════════════════════════════════════ */
.eb-hero { padding: clamp(112px, 15vh, 180px) clamp(20px, 5vw, 80px) clamp(60px, 9vh, 110px); }
.eb-hero-grid { max-width: 1320px; margin-inline: auto; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.eb-hero-copy { max-width: 500px; }
.eb-hero-copy .eyebrow { margin-bottom: 16px; }
.eb-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero-xl); line-height: 0.98; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; }
.eb-hero-h1 .l2 { display: block; }
.eb-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 22px 0 0; max-width: 42ch; }
.eb-hero-cta { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.eb-hero-cta .link-cta { align-self: center; padding-top: 6px; }

/* the auction card */
.eb-auction { border: 1px solid var(--border-subtle); border-radius: var(--radius-default, 16px); overflow: hidden; max-width: 520px; }
.eb-auction-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.eb-auction-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-live { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-code); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.55); border-radius: 999px; padding: 5px 11px; }
.eb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ADAE6; animation: ebPulse 1.2s ease-in-out infinite; }
@keyframes ebPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .eb-live::before { animation: none; } }
.eb-auction-body { padding: 20px 22px 22px; }
.eb-auction-title { font-family: var(--font-base); font-size: 15px; color: var(--text-secondary); margin: 0 0 14px; }
.eb-bid-row { display: flex; align-items: baseline; gap: 12px; }
.eb-bid { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.eb-bid.is-bump { animation: ebBump 420ms cubic-bezier(0.22,1,0.36,1); }
@keyframes ebBump { 0% { transform: scale(1); color: #7ADAE6; } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.eb-bid-label { font-family: var(--font-code); font-size: 12px; color: var(--text-quaternary); }
.eb-meta-row { display: flex; gap: 18px; margin-top: 12px; font-family: var(--font-code); font-size: 13px; color: var(--text-tertiary); }
.eb-meta-row [data-eb-time] { color: #7ADAE6; }
.eb-json { margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--border-subtle) 60%, transparent); font-family: var(--font-code); font-size: 12px; line-height: 1.7; color: var(--text-secondary); white-space: pre; overflow-x: auto; }
.eb-json .k { color: #7ADAE6; } .eb-json .v { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — the bid ladder (dark, a climbing list of bids)
   ═══════════════════════════════════════════════════════════════════════ */
.eb-ladder { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 920px; margin-inline: auto; }
.eb-ladder-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; max-width: 16ch; }
.eb-ladder-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 52ch; }
.eb-ladder-list { margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--border-subtle); }
.eb-brow { display: grid; grid-template-columns: 1fr auto 96px; align-items: baseline; gap: 20px; padding: clamp(13px, 1.8vh, 18px) 0; border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent); }
.eb-bwho { font-family: var(--font-code); font-size: 14px; color: var(--text-secondary); }
.eb-bamt { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.eb-btime { font-family: var(--font-code); font-size: 12.5px; color: var(--text-quaternary); text-align: right; }
.eb-brow.top .eb-bwho { color: var(--text-primary); }
.eb-brow.top .eb-bamt { color: #7ADAE6; }
.eb-brow.top .eb-btime { color: #7ADAE6; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 3 — sold comps over time (SOLID purple band, scatter chart)
   ═══════════════════════════════════════════════════════════════════════ */
.eb-comps { --rise: 0; position: relative; overflow: hidden; clip-path: circle(calc(var(--rise) * 155%) at 20% 0%); will-change: clip-path; background: #7C4FE8; padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); }
@media (prefers-reduced-motion: reduce) { .eb-comps { clip-path: none; } }
.eb-comps-inner { max-width: 1120px; margin-inline: auto; }
.eb-comps-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.03; letter-spacing: -0.024em; color: #fff; margin: 0; max-width: 16ch; }
.eb-comps-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: #F3ECFF; margin: 20px 0 0; max-width: 54ch; }
.eb-chart { margin-top: clamp(40px, 6vh, 64px); }
.eb-chart svg { width: 100%; height: auto; max-height: 340px; display: block; overflow: visible; }
.eb-chart .median { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 7 6; }
/* Dots pop in left-to-right on scroll, like sales landing over time. */
.eb-chart .dot { fill: rgba(255,255,255,0.62); r: 0; opacity: 0; transition: r 480ms cubic-bezier(0.34,1.56,0.64,1), opacity 260ms ease; transition-delay: calc(var(--i, 0) * 45ms); }
.eb-chart.is-revealed .dot { r: 6; opacity: 1; }
.eb-chart .dot.hot { fill: #fff; }
.eb-chart.is-revealed .dot.hot { r: 8; }
@media (prefers-reduced-motion: reduce) { .eb-chart .dot { r: 6; opacity: 1; transition: none; } .eb-chart .dot.hot { r: 8; } }
.eb-chart .axis { stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.eb-comps-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; font-family: var(--font-code); font-size: 13px; color: #F3ECFF; }
.eb-comps-legend b { color: #fff; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 4 — annotated listing (dark, a mock item with numbered field callouts)
   ═══════════════════════════════════════════════════════════════════════ */
.eb-anno { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1160px; margin-inline: auto; }
.eb-anno-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; max-width: 16ch; }
.eb-anno-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 52ch; }
.eb-anno-grid { margin-top: clamp(40px, 6vh, 68px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.eb-anno-card { border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.eb-anno-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.eb-anno-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-anno-body { padding: 18px 20px 22px; position: relative; }
.eb-anno-field { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.eb-anno-field .t { font-family: var(--font-base); color: var(--text-primary); font-size: 15px; }
.eb-anno-field .t.small { color: var(--text-tertiary); font-size: 13.5px; }
.eb-num { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #7C4FE8; color: #fff; font-family: var(--font-code); font-size: 11px; display: inline-grid; place-items: center; transform: translateY(-1px); }
.eb-anno-legend { align-self: center; }
.eb-anno-lrow { display: grid; grid-template-columns: 20px auto 1fr; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent); }
.eb-anno-lrow .lk { font-family: var(--font-code); font-size: 13px; color: #9B7BF0; }
.eb-anno-lrow .lv { font-family: var(--font-code); font-size: 13px; color: var(--text-secondary); text-align: right; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 5 — the wall, as a log (dark terminal: blocked vs Fetch, search shapes)
   ═══════════════════════════════════════════════════════════════════════ */
.eb-term { padding: clamp(100px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1040px; margin-inline: auto; }
.eb-term-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; max-width: 16ch; }
.eb-term-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 54ch; }
.eb-term-box { margin-top: clamp(40px, 6vh, 64px); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.eb-term-bar { display: flex; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); }
.eb-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--border-subtle) 90%, #fff 10%); }
.eb-term-body { padding: clamp(16px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.eb-tline { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-family: var(--font-code); font-size: clamp(12px, 1vw, 14.5px); }
.eb-tcmd { color: var(--text-secondary); word-break: break-all; }
.eb-tcmd .p { color: var(--text-quaternary); }
.eb-tres { flex: 0 0 auto; white-space: nowrap; }
.eb-tres.bad { color: #F0524B; }
.eb-tres.ok { color: #7ADAE6; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 6 — closer (SOLID teal band). CTA = --purple variant (reads on teal).
   ═══════════════════════════════════════════════════════════════════════ */
.eb-closer { --rise: 0; position: relative; overflow: hidden; clip-path: circle(calc(var(--rise) * 155%) at 80% 0%); will-change: clip-path; background: #7ADAE6; padding: clamp(110px, 20vh, 240px) clamp(20px, 5vw, 80px); }
@media (prefers-reduced-motion: reduce) { .eb-closer { clip-path: none; } }
.eb-closer-inner { max-width: 1100px; margin-inline: auto; }
.eb-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero); line-height: 0.96; letter-spacing: -0.03em; color: #1D1612; margin: 0; }
.eb-closer-sub { font-family: var(--font-base); font-size: var(--mkt-lead); line-height: 1.5; color: rgba(29,22,18,0.82); margin: 26px 0 0; max-width: 48ch; }
.eb-closer-cta { margin-top: 38px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.eb-closer-tagline { font-family: var(--font-code); font-size: 13px; letter-spacing: 0.04em; color: rgba(29,22,18,0.62); }
.eb-uses { margin: clamp(40px, 6vh, 64px) 0 0; padding-top: clamp(24px, 3vh, 36px); border-top: 1px solid rgba(29,22,18,0.24); }
.eb-uses-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(29,22,18,0.62); margin: 0 0 14px; }
.eb-uses-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.eb-use { font-family: var(--font-base); font-size: 14px; color: #1D1612; border: 1px solid rgba(29,22,18,0.24); border-radius: 999px; padding: 8px 15px; }

/* is-on-* topbar inversion (floating topbar). Teal (light) band -> whole bar
   dark; purple (dark) band -> white chrome, CTA flips. */

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .eb-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .eb-auction { max-width: none; }
  .eb-brow { grid-template-columns: 1fr auto 74px; gap: 12px; }
  .eb-anno-grid { grid-template-columns: 1fr; gap: 32px; }
  .eb-comps, .eb-closer { clip-path: none !important; }
}
