/* ============================================================
   Ventorify — eBay integration page styles
   (loads after css/site.css; page-scoped classes only)
   ============================================================ */

/* ---------- Hero ---------- */

.ebay-hero {
  overflow: hidden;
}
.ebay-hero h1 {
  max-width: none;
  font-size: clamp(2.15rem, 1.25rem + 3.6vw, 3.2rem);
}
.ebay-hero .lead {
  max-width: 30rem;
}

/* Floating stopwatch mockup */
.ebay-mock {
  margin: 0;
  transform: perspective(1600px) rotateX(2.5deg) rotate(0.5deg);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .ebay-mock {
    transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
  }
  html.js .ebay-mock:hover {
    transform: perspective(1600px) rotateX(0deg) rotate(0deg);
  }
}

/* Stopwatch strip */
.timer-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.timer {
  background: linear-gradient(180deg, #fcfcff, #f8f9fe);
  padding: 0.9rem 1.1rem 1rem;
  display: grid;
  gap: 0.2rem;
  align-content: start;
}
.timer-label {
  font-size: var(--text-micro);
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.timer-value {
  font-size: 1.9rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  border-radius: 6px;
  justify-self: start;
  padding-inline: 0.15rem;
  margin-inline: -0.15rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.timer.is-running .timer-value {
  color: var(--indigo);
}
.timer:not(.is-running):not(.is-settled) .timer-value {
  color: var(--slate-light);
}
.timer-note {
  font-size: var(--text-micro);
  color: var(--slate-light);
}

/* Event feed */
.ebay-mock-body {
  padding: 0.4rem 1.1rem;
}
.ebay-mock .mock-feed {
  min-height: 112px;
}

/* Product row at the mockup foot */
.ebay-stockrow {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  background: #fcfcff;
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.stockrow-product {
  min-width: 0;
  margin-right: auto;
}
.stockrow-qty {
  display: grid;
  justify-items: end;
  gap: 1px;
  flex: none;
}
.stockrow-label {
  font-size: var(--text-micro);
  color: var(--slate-light);
  font-weight: 480;
  white-space: nowrap;
}
.stockrow-qty b {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  padding-inline: 0.3rem;
  margin-inline: -0.3rem;
  border-radius: 6px;
}

/* ---------- Fact strip spacing ---------- */

.ebay-facts {
  margin-top: 0;
}

/* ---------- Speed section: detection stack ---------- */

.ebay-stack {
  padding: 1.5rem;
  max-width: 26rem;
  margin-inline: auto;
  display: grid;
  gap: 0.7rem;
}
.stack-layer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-chip);
  padding: 0.75rem 0.95rem;
  background: #fff;
}
.stack-1 {
  background: var(--indigo-tint);
  border-color: var(--indigo-soft);
}
.stack-2 {
  margin-left: 1.1rem;
}
.stack-3 {
  margin-left: 2.2rem;
}
.stack-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-light);
}
.stack-1 .stack-dot {
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgb(43 74 203 / 0.15);
}
.stack-3 .stack-dot {
  opacity: 0.6;
}
.stack-text {
  display: grid;
  min-width: 0;
}
.stack-text b {
  font-size: 0.92rem;
  font-weight: 640;
  color: var(--ink);
}
.stack-text span {
  font-size: var(--text-micro);
  color: var(--slate-light);
}
.stack-foot {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-top: 0.3rem;
  font-size: var(--text-small);
  color: var(--slate);
}
.stack-foot .check {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--success);
  transform: translateY(2px);
}

/* ---------- Marketplace band ---------- */

.market-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--indigo-soft);
  border-radius: calc(var(--r-card) * 1.5);
  background:
    radial-gradient(60% 90% at 50% 120%, rgb(43 74 203 / 0.1), transparent 70%),
    linear-gradient(180deg, #fdfdff, var(--indigo-tint));
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
}
.market-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #31509b;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px -8px rgb(49 80 155 / 0.55);
}
.market-band h2 {
  font-size: var(--text-h2);
  font-weight: 680;
  letter-spacing: var(--track-h2);
  line-height: 1.1;
}
.market-band p {
  margin: 1rem auto 0;
  color: var(--slate);
  max-width: 48ch;
}

/* ---------- Mirror section ---------- */

.mirror-mock {
  padding: 1.5rem;
  max-width: 26rem;
  margin-inline: auto;
}
.mirror-src {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.mirror-qty {
  font-size: 1.5rem;
  font-weight: 700;
}
.mirror-note {
  margin-top: 0.8rem;
  font-size: var(--text-micro);
  color: var(--slate-light);
}
.mirror-states {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.mirror-state {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-chip);
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  background: #fff;
}
.mirror-state p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--slate);
}
.mirror-state b {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.mirror-state.is-paused {
  background: #fafbfd;
  border-style: dashed;
}
.mirror-state.is-paused b {
  color: var(--slate-light);
}

/* ---------- Onboarding steps ---------- */

.onboard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.onboard-step {
  position: relative;
  padding-top: 1.3rem;
}
.onboard-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-soft);
}
.onboard-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.2rem;
  height: 2px;
  background: var(--indigo);
}
.onboard-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--indigo-tint);
  color: var(--indigo);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.onboard-step h3 {
  font-size: 1.12rem;
  font-weight: 660;
}
.onboard-step p {
  margin-top: 0.55rem;
  color: var(--slate);
  font-size: var(--text-small);
  line-height: 1.65;
}
.onboard-note {
  margin-top: 2.6rem;
  color: var(--slate);
  font-size: var(--text-small);
}
.onboard-note .link-arrow {
  margin-left: 0.4rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .ebay-mock {
    transform: none;
  }
  .ebay-hero .split-visual {
    margin-top: 1rem;
  }
  .ebay-stack,
  .mirror-mock {
    margin-inline: 0;
  }
  .onboard-steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 479px) {
  .timer-value {
    font-size: 1.55rem;
  }
  .ebay-stockrow {
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
  }
  .stockrow-product {
    flex-basis: 100%;
  }
  .stockrow-qty {
    justify-items: start;
  }
  .stack-2 {
    margin-left: 0.7rem;
  }
  .stack-3 {
    margin-left: 1.4rem;
  }
  .mirror-states {
    grid-template-columns: 1fr;
  }
}
