/* ============================================================
   Ventorify — sync feature page styles (loads after css/site.css)
   Page-scoped classes only; shared selectors live in site.css.
   ============================================================ */

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

.sync-hero {
  overflow: hidden;
}
.sync-hero h1 {
  max-width: none;
  font-size: clamp(2.3rem, 1.2rem + 3.2vw, 3.4rem);
}
.sync-hero .split {
  align-items: center;
}

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

.sync-product {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem 0;
}
.sync-product .mock-sku {
  display: inline;
}

.sync-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.sync-tile {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  background: #fcfcff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-chip);
  min-width: 0;
}
.sync-tile .chan {
  font-size: 0.8rem;
  gap: 0.4rem;
}
.sync-tile .chan-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.6rem;
}
.sync-qty {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  width: max-content;
  padding-inline: 3px;
  margin-left: -3px;
  border-radius: 6px;
}
.sync-tile-note {
  font-size: var(--text-micro);
  color: var(--slate-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-events {
  padding: 0.35rem 1.1rem 0.9rem;
  min-height: 166px;
}
.sync-events .ev-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-1px);
}
.ev-amazon { background: #232f3e; }
.ev-shopify { background: #4a8a3c; }
.ev-ebay { background: #31509b; }
.ev-ok { background: var(--success); }
.sync-events .ev-done {
  color: var(--success);
  font-weight: 600;
}

/* ---------- Write-order flow ---------- */

.mini-flow {
  padding: 1.5rem;
  max-width: 27rem;
  margin-inline: auto;
}
.write-order {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.write-order::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--border-soft);
}
.write-order li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
}
.wo-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-tint);
  color: var(--indigo);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 0 0 4px var(--surface);
  z-index: 1;
}
.write-order li > div {
  min-width: 0;
}
.write-order b {
  display: block;
  color: var(--ink);
  font-weight: 640;
  font-size: 0.95rem;
  line-height: 1.4;
}
.write-order li > div > span {
  display: block;
  color: var(--slate);
  font-size: var(--text-small);
}
.wo-chans {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  padding-top: 3px;
}
.wo-chans .chan-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.62rem;
}
.wo-a { background: #232f3e; }
.wo-s { background: #4a8a3c; }
.wo-e { background: #31509b; }
.wo-note {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--indigo-tint);
  color: var(--indigo-hover);
  font-size: var(--text-small);
  font-weight: 520;
  border-radius: var(--r-chip);
}

/* ---------- Timing grid ---------- */

.timing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  overflow: hidden;
}
.timing {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
}
.timing-kicker {
  display: block;
  font-size: var(--text-micro);
  font-weight: 620;
  color: var(--slate-light);
}
.timing-value {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.9rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.timing p {
  margin-top: 0.55rem;
  font-size: var(--text-small);
  color: var(--slate);
  max-width: 26ch;
}
.timing-note {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--slate);
  font-size: var(--text-small);
}
.timing-note .ring {
  flex: none;
  color: var(--indigo);
  width: 0.95em;
  height: 0.95em;
}

/* ---------- Reliability bento ---------- */

.rely-bento {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.rely-cell {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  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) {
  .rely-cell:hover {
    transform: translateY(-3px);
    border-color: var(--indigo-soft);
    box-shadow: var(--shadow-card);
  }
}
.rely-cell h3 {
  font-size: 1.25rem;
  font-weight: 660;
  letter-spacing: -0.015em;
}
.rely-cell p {
  margin-top: 0.6rem;
  color: var(--slate);
  font-size: var(--text-small);
  line-height: 1.6;
  max-width: 52ch;
}
.rely-recon {
  grid-row: 1 / 3;
  background:
    radial-gradient(70% 50% at 80% 110%, rgb(43 74 203 / 0.07), transparent 70%),
    var(--surface);
}

.recon-mini {
  width: 100%;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-sm);
}
.recon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.85rem;
  font-size: var(--text-small);
  color: var(--ink);
  font-weight: 560;
}
.recon-row + .recon-row {
  border-top: 1px solid var(--border-soft);
}
.recon-row svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--success);
}
.recon-row.is-fix svg {
  color: var(--indigo);
}
.recon-qty {
  margin-left: auto;
  color: var(--slate-light);
  font-weight: 520;
  white-space: nowrap;
}
.recon-row.is-fix .recon-qty {
  color: var(--indigo-hover);
  font-weight: 640;
}
.recon-note {
  margin-top: 0.8rem;
  font-size: var(--text-micro);
  color: var(--slate-light);
}

/* ---------- Mirror mockup ---------- */

.mirror-mock {
  max-width: 32rem;
  margin-inline: auto;
}
.mirror-meta {
  font-size: var(--text-micro);
  font-weight: 600;
  color: var(--slate-light);
  white-space: nowrap;
}
.mirror-rows {
  display: grid;
  gap: 1rem;
}
.mirror-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}
.mirror-row .chan {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 0.55rem;
  font-size: 0.85rem;
}
.mirror-row .chan .chan-dot {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
}
.mirror-row .chan .chan-note {
  white-space: nowrap;
}
.mirror-bar {
  height: 32px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--indigo-tint) 0 6px,
    #f6f8fe 6px 12px
  );
}
.mirror-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-inline: 0.6rem;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-size: var(--text-micro);
  font-weight: 640;
  min-width: 2.4em;
}
.mirror-fill-truth {
  background: var(--ink);
}
.mirror-note {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  background: #fcfcff;
  border-radius: 0 0 var(--r-card) var(--r-card);
  font-size: var(--text-micro);
  color: var(--slate);
}

/* ---------- Channel status mockup ---------- */

.chan-status-mock {
  max-width: 30rem;
  margin-inline: auto;
}
.chan-status-mock .mock-row {
  justify-content: space-between;
}
.chan-status-mock .mock-row .pill {
  flex: none;
}
.chan-status-mock .mock-row:last-of-type {
  border-bottom: 1px solid var(--border-soft);
}
.status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  background: #fcfcff;
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.legend-label {
  flex-basis: 100%;
  font-size: var(--text-micro);
  color: var(--slate-light);
}
.sync-channels .split-copy > p {
  margin-top: 1.4rem;
}

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

@media (max-width: 1023px) {
  .timing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .sync-mock {
    transform: none;
  }
  .rely-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .rely-recon {
    grid-row: auto;
  }
  .mini-flow,
  .mirror-mock,
  .chan-status-mock {
    margin-inline: 0;
  }
}

@media (max-width: 679px) {
  .timing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .sync-tiles {
    gap: 0.45rem;
    padding: 0.7rem 0.8rem 0.8rem;
  }
  .sync-tile {
    padding: 0.55rem 0.6rem;
  }
  .sync-qty {
    font-size: 1.25rem;
  }
  .sync-tile-note {
    white-space: normal;
  }
  .sync-events {
    min-height: 0;
  }
  .mirror-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .wo-chans {
    display: none;
  }
}
