/* ============================================================
   Ventorify — homepage styles (loads after css/site.css)
   ============================================================ */

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

.home-hero {
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.hero-copy h1 {
  font-size: var(--text-display);
  font-weight: 720;
  letter-spacing: var(--track-display);
  line-height: 1.01;
  max-width: 14ch;
}
.hero-copy .lead {
  margin-top: 1.4rem;
  max-width: 34rem;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Floating mockup */
.hero-mock {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.stock-mock {
  margin: 0;
  transform: perspective(1600px) rotateX(3deg) rotate(-0.6deg);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .stock-mock {
    transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
  }
  html.js .stock-mock:hover {
    transform: perspective(1600px) rotateX(0deg) rotate(0deg);
  }
}

.mock-chan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fcfcff, #f8f9fe);
}
.mock-chan-row .chan {
  gap: 0.5rem;
}
.mock-chan-row .pill {
  margin-left: 0.2rem;
}

.stock-mock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
}
.stock-mock-grid .mock-table {
  min-width: 0;
}
.mock-side {
  border-left: 1px solid var(--border-soft);
  padding: 0.9rem 1.1rem;
  background: #fcfcff;
  border-radius: 0 0 var(--r-card) 0;
}
.mock-side-title {
  display: block;
  font-size: var(--text-micro);
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.3rem;
}
.stock-mock .mock-feed {
  min-height: 128px;
}

/* ---------- Fact strip section ---------- */

.section-facts {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

/* ---------- Modules ---------- */

.mod-num {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.mod-num::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 2.2rem;
  height: 1px;
  background: var(--indigo-soft);
  margin-left: 0.7rem;
}

.module {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.module .split-copy h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 670;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.module .split-copy p {
  margin-top: 0.9rem;
}
.module .link-arrow {
  margin-top: 1.3rem;
}

.mini-mock {
  padding: 1.5rem;
  max-width: 26rem;
  margin-inline: auto;
}

/* 01 — sync mini timeline */
.mini-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.mini-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.mini-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0 0.55rem 0;
}
.tl-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  z-index: 1;
}
.tl-amazon { background: #232f3e; }
.tl-shopify { background: #4a8a3c; }
.tl-ebay { background: #31509b; }
.tl-text {
  color: var(--slate);
  font-size: 0.92rem;
}
.tl-text b {
  color: var(--ink);
  font-weight: 640;
}
.tl-time {
  margin-left: auto;
  font-size: var(--text-micro);
  color: var(--slate-light);
}

/* 02 — buffer mini */
.buffer-mini {
  display: grid;
  gap: 0.8rem;
}
.buffer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.buffer-label {
  font-size: var(--text-micro);
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.buffer-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.buffer-bar {
  display: flex;
  gap: 3px;
  height: 40px;
  border-radius: var(--r-chip);
  overflow: hidden;
}
.buffer-pushed,
.buffer-held {
  display: flex;
  align-items: center;
  padding-inline: 0.7rem;
  font-size: var(--text-micro);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.buffer-pushed {
  flex: 38;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--r-chip) 3px 3px var(--r-chip);
}
.buffer-held {
  flex: 12;
  background: var(--indigo-tint);
  color: var(--indigo-hover);
  border-radius: 3px var(--r-chip) var(--r-chip) 3px;
  justify-content: center;
}
.buffer-note {
  font-size: var(--text-small);
  color: var(--slate);
  margin: 0;
}

/* 03–05 — bento */
.mod-bento {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.bento-cell {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .bento-cell:hover {
    transform: translateY(-3px);
    border-color: var(--indigo-soft);
    box-shadow: var(--shadow-card);
  }
}
.bento-cell h3 {
  font-size: 1.25rem;
  font-weight: 660;
  letter-spacing: -0.015em;
}
.bento-cell p {
  margin-top: 0.6rem;
  color: var(--slate);
  font-size: var(--text-small);
  line-height: 1.6;
  max-width: 52ch;
}
.bento-cell .link-arrow {
  margin-top: auto;
  padding-top: 1.2rem;
}
.bento-forecast {
  grid-row: 1 / 3;
  background:
    radial-gradient(70% 50% at 80% 110%, rgb(43 74 203 / 0.07), transparent 70%),
    var(--surface);
}
.bento-po {
  background: linear-gradient(160deg, var(--indigo-tint), #f6f8fe 65%);
  border-color: var(--indigo-soft);
}

.forecast-mini {
  width: 100%;
  margin-top: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}
.spark {
  width: 100%;
  height: clamp(84px, 22vh, 180px);
  flex: 1;
}
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] .spark-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.4s var(--ease-out) 0.25s;
  }
  html.js [data-reveal].is-revealed .spark-line {
    stroke-dashoffset: 0;
  }
  html.js [data-reveal] .spark-fill {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out) 1.1s;
  }
  html.js [data-reveal].is-revealed .spark-fill {
    opacity: 1;
  }
}
.forecast-suggest {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: var(--r-chip);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-sm);
}
.forecast-text {
  font-size: var(--text-small);
  color: var(--slate);
}
.forecast-text b {
  color: var(--ink);
  font-weight: 640;
}

.po-mini {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-chip);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-sm);
}
.po-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
.po-doc svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--indigo);
}

.bundle-mini {
  margin-top: 1.2rem;
  width: 100%;
  font-size: var(--text-small);
}
.bundle-parent {
  display: block;
  font-weight: 640;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  background: var(--indigo-tint);
  border-radius: var(--r-chip);
}
.bundle-parent b {
  color: var(--indigo-hover);
  font-weight: 640;
}
.bundle-kids {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.1rem;
}
.bundle-kids li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0;
  color: var(--slate);
  position: relative;
}
.bundle-kids li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0;
  height: 50%;
  width: 0.55rem;
  border-left: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-radius: 0 0 0 6px;
}
.bundle-kids .tnum {
  margin-left: auto;
  font-weight: 620;
  color: var(--ink);
}
.bundle-kids .pill {
  margin-left: 0.4rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 1.3rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-soft);
}
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.2rem;
  height: 2px;
  background: var(--indigo);
}
.step-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;
}
.step h3 {
  font-size: 1.12rem;
  font-weight: 660;
}
.step p {
  margin-top: 0.55rem;
  color: var(--slate);
  font-size: var(--text-small);
  line-height: 1.65;
}

/* ---------- Pricing teaser ---------- */

.plan-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.plan-teaser {
  display: block;
  color: inherit;
}
.plan-teaser:hover {
  color: inherit;
}
.plan-teaser h3 {
  font-size: 1rem;
  font-weight: 660;
}
.plan-price {
  margin-top: 0.6rem;
  font-size: 1.9rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-per {
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--slate-light);
  margin-left: 2px;
}
.plan-orders {
  margin-top: 0.15rem;
  font-size: var(--text-micro);
  font-weight: 620;
  color: var(--indigo);
}
.plan-teaser > p:last-child {
  margin-top: 0.7rem;
}
.plan-teaser.is-highlight {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), 0 12px 28px -12px rgb(43 74 203 / 0.35);
}
.pricing-teaser-note {
  margin-top: 1.6rem;
  color: var(--slate);
  font-size: var(--text-small);
}

/* ---------- Stocky band ---------- */

.stocky-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(150deg, #fffaf2, #fef4e6);
  border: 1px solid #f6e3c6;
  border-radius: calc(var(--r-card) * 1.5);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}
.stocky-copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
  font-weight: 680;
  letter-spacing: -0.02em;
}
.stocky-copy p {
  margin-top: 0.7rem;
  color: var(--slate);
  max-width: 52ch;
}
.stocky-band .btn {
  flex: none;
}

.section-cta {
  padding-top: var(--section);
}

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

@media (max-width: 1023px) {
  .stock-mock-grid {
    grid-template-columns: 1fr;
  }
  .mock-side {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
    border-radius: 0 0 var(--r-card) var(--r-card);
  }
  .plan-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .stock-mock {
    transform: none;
  }
  .mod-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .bento-forecast {
    grid-row: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .stocky-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .mini-mock {
    margin-inline: 0;
  }
}

@media (max-width: 679px) {
  /* Narrow screens: hide the per-channel duplicate columns;
     mirroring is still told by Available + status. */
  .stock-mock .mock-table th:nth-child(3),
  .stock-mock .mock-table td:nth-child(3),
  .stock-mock .mock-table th:nth-child(4),
  .stock-mock .mock-table td:nth-child(4),
  .stock-mock .mock-table th:nth-child(5),
  .stock-mock .mock-table td:nth-child(5) {
    display: none;
  }
  .plan-teaser-grid {
    grid-template-columns: 1fr;
  }
}
