/*
 * QuickSync homepage — the composed direction.
 *
 * This is the page that becomes the WordPress front page, so it is built the
 * way the theme will be: shared.css owns the tokens, fx.css owns any component
 * used on more than one page, and this file owns nothing but the composition
 * of *this* page. Every colour below resolves to a token or a color-mix of
 * one — there are no literals, which is the whole reason the rebuild exists.
 */

body { background: var(--white); }

/* ---------- chrome ---------- */

@media (max-width: 560px) {
.ann__dim { display: none; }
}

.topbar.is-stuck {
  background: color-mix(in srgb, var(--white) 85%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__links a { position: relative; padding: 4px 0; color: var(--body); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: var(--r-full); background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--fx-ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; overflow: clip; padding: var(--s-8) 0 var(--s-7); }
.hero__grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s-8); align-items: center; }
@media (max-width: 980px) {
.hero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* The dark directions carried an aurora; on white the same idea has to be
   almost subliminal or it reads as a stain. Two very low-opacity washes of the
   brand hues, plus the same 1px grid inverted to ink. */
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow::before {
  content: ''; position: absolute;
  width: 900px; height: 640px; top: -320px; left: 50%; margin-left: -140px;
  border-radius: var(--r-full); filter: blur(80px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero__glow::after {
  content: ''; position: absolute;
  width: 780px; height: 560px; top: -260px; left: 50%; margin-left: -760px;
  border-radius: var(--r-full); filter: blur(80px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fx-violet) 18%, transparent), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
.hero__glow::before { animation: drift-a 24s var(--fx-ease) infinite alternate; }
.hero__glow::after { animation: drift-b 28s var(--fx-ease) infinite alternate; }
}

.fx-bg--light::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
}
.fx-bg--light::after { display: none; }

.hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: var(--t-xl); max-width: 26em; }

/* The keyword line sits inside the h1 rather than in a sibling above it, so the
   heading a crawler reads opens with "multichannel inventory sync software"
   while the line a human reads is still the short one. Being inside the h1
   means every inherited type property has to be undone. */
.hero__kicker {
  display: flex; width: fit-content; max-width: 100%;
  align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: 5px var(--s-3) 5px 5px;
  border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow-sm);
  font-size: var(--t-xs); font-weight: 500; color: var(--body);
  letter-spacing: 0; line-height: var(--lh-snug);
}
.hero__kicker b { display: inline-flex; align-items: center; gap: 5px; padding: 3px var(--s-2); border-radius: var(--r-full); background: var(--accent-tint); color: var(--accent); font-size: 11px; font-weight: 700; }

.hero__note { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.hero__note .dot { margin-top: 8px; }

@media (max-width: 720px) {
.hero { padding-top: var(--s-6); }
.hero .lede { font-size: var(--t-lg); }
/* Two equal full-width targets beat two ragged ones stacked. */
.hero .btn-row { display: grid; grid-template-columns: 1fr; }
}

/* fx.css's hairline is a white gradient, which is invisible inside a white
   panel. Same divider, inked, for the light surfaces this page is built on. */
.panel .fx-hair, .panel-card .fx-hair, .hero__panel .fx-hair {
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero__foot {
  display: grid; grid-template-columns: repeat(2, auto) 1fr; gap: var(--s-6);
  align-items: end; margin-top: var(--s-8);
  padding-top: var(--s-6); border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
.hero__foot { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
.hero__stat b { display: block; font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__stat span { font-size: var(--t-sm); color: var(--muted); }

.hero__conveyor { display: grid; gap: var(--s-2); min-width: 0; }
/* Half a row is a lot narrower than the full-bleed strip this replaces, so the
   marks are packed tighter to keep more than three of them in view. */
.hero__conveyor .marquee { gap: var(--s-6); }
.hero__conveyor .marquee__track { gap: var(--s-6); padding-right: var(--s-6); }
/* Beside two hard numbers the marks need to read as a set, not as grey
   smudges, so they keep their brand colour here and nowhere else. */
.hero__conveyor .marquee img { opacity: .85; filter: none; }
@media (max-width: 820px) {
.hero__conveyor { grid-column: 1 / -1; }
/* Full width at 390px is still only ~340px, and a 96px box leaves two marks
     on screen once the mask has eaten both ends. */
.hero__conveyor .marquee, .hero__conveyor .marquee__track { gap: var(--s-5); }
.hero__conveyor .marquee__track { padding-right: var(--s-5); }
.hero__conveyor .marquee img { width: 64px; }
}

/* The demo needs a frame of its own in the hero: it is doing the job a product
   screenshot usually does, and a bare list of rows does not read as software. */
.hero__panel { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero__panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: var(--surface); }
.hero__panel-body { padding: var(--s-4); }
.hero__panel .demo__foot { padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ---------- hub ---------- */

/* The wave expands past the diagram on its way out, which on a phone is wider
   than the viewport. Clip at the section rather than at .hub: the outer ring's
   nodes deliberately overhang their own box. */
.hub-section { overflow: clip; }
.hub { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.hub__core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 136px; height: 136px; border-radius: var(--r-full);
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-lg); z-index: 2;
}
.hub__core b { display: block; font-size: var(--t-sm); font-weight: 700; letter-spacing: -.01em; }
.hub__core span { font-size: 11px; color: var(--on-dark-dim); }
.hub__core i { display: block; font-style: normal; font-family: var(--mono); font-size: var(--t-xl); font-weight: 700; color: var(--accent-on-dark); line-height: 1.2; }
.hub__ring { position: absolute; inset: 0; border: 1px dashed var(--line-strong); border-radius: var(--r-full); }
.hub__ring--in { inset: 22%; }
.hub__node {
  position: absolute; width: 62px; height: 62px; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transform: translate(-50%, -50%);
}
.hub__node img { width: 28px; height: 28px; object-fit: contain; }
.hub__node::after {
  content: ''; position: absolute; right: -3px; bottom: -3px;
  width: 13px; height: 13px; border-radius: var(--r-full);
  background: var(--ok); border: 2px solid var(--white);
}
/* Eight evenly spaced positions on the outer ring, clockwise from top. */
.hub__node--1 { left: 50%; top: 4%; }
.hub__node--2 { left: 82%; top: 18%; }
.hub__node--3 { left: 96%; top: 50%; }
.hub__node--4 { left: 82%; top: 82%; }
.hub__node--5 { left: 50%; top: 96%; }
.hub__node--6 { left: 18%; top: 82%; }
.hub__node--7 { left: 4%; top: 50%; }
.hub__node--8 { left: 18%; top: 18%; }
@media (max-width: 560px) {
.hub { width: 320px; }
.hub__node { width: 46px; height: 46px; }
.hub__node img { width: 21px; height: 21px; }
.hub__core { width: 108px; height: 108px; }
}

/* The wave is the argument the diagram is making: an update leaves the centre
   and reaches the shops. fx.js restarts it on each cycle and lights the nodes
   as it arrives — later for the two marketplaces that really are slower. */
.hub__wave {
  position: absolute; inset: 50% auto auto 50%;
  width: 136px; height: 136px; margin: -68px 0 0 -68px;
  border-radius: var(--r-full);
  border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
/* Nothing left for it to do if the reader has asked for less motion, and an
   element permanently at opacity 0 is exactly what the audit hunts for. */
@media (prefers-reduced-motion: reduce) {
.hub__wave { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
.hub__wave.is-out { animation: hub-wave 1.6s var(--fx-ease-out) forwards; }
@keyframes hub-wave {
    from { transform: scale(1); opacity: .55; }
    to { transform: scale(4.1); opacity: 0; }
  }
}
.hub__core i.is-tick { animation: hub-tick .5s var(--fx-ease); }
@keyframes hub-tick {
  0% { transform: translateY(-6px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.hub__node { transition: border-color .3s var(--fx-ease), box-shadow .3s var(--fx-ease), transform .3s var(--fx-ease-out); }
.hub__node.is-lit { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-tint); transform: translate(-50%, -50%) scale(1.06); }
.hub__node.is-lit::after { background: var(--accent); }

.hub__caption { max-width: 44em; margin-inline: auto; text-align: center; font-size: var(--t-sm); color: var(--muted); }

.hub-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
@media (max-width: 780px) {
.hub-points { grid-template-columns: 1fr; }
}
.hub-point h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.hub-point p { font-size: var(--t-sm); }
.hub-point__n { font-family: var(--mono); font-size: var(--t-xs); font-weight: 700; color: var(--accent); display: block; margin-bottom: var(--s-2); }

/* ---------- the flow ---------- */

.flow { --stage-top: 96px; }
/* The rail doubles as a clock: each step carries the timestamp of the panel it
   describes, so the reader can see the whole thing takes about three seconds. */
.rail__clock { font-family: var(--mono); font-size: var(--t-xs); color: var(--accent); font-weight: 600; }
.stage__step p { font-size: var(--t-sm); }
.stage__step h3 { font-size: var(--t-lg); letter-spacing: -.02em; }

.panel-card__time { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.ledger__t { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 6ch; text-align: right; }

.was-now { display: inline-flex; align-items: center; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.was-now s { color: var(--muted); text-decoration-thickness: 1px; }
.was-now b { color: var(--ink); }

/* ---------- numbers band ---------- */

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 860px) {
.figures { grid-template-columns: repeat(2, 1fr); }
}
/* Same step as the closing CTA heading rather than a sixth display size of
   its own — the page already spends five on clamped headings. */
.figure b { display: block; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; color: var(--white); line-height: 1.02; font-variant-numeric: tabular-nums; }
.figure span { font-size: var(--t-sm); color: var(--on-dark-dim); }

/* ---------- feature deep dives ---------- */

.dive + .dive { margin-top: var(--s-9); }
@media (max-width: 900px) {
.dive + .dive { margin-top: var(--s-8); }
}
/* h3, not h2: each dive is a subsection of "Inventory, listings and orders".
   Sized like a section heading anyway — the outline and the type scale are
   allowed to disagree. */
.dive h3 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.035em; }

.field-map { display: flex; flex-direction: column; gap: 6px; }
.field-map__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: center; padding: 9px var(--s-3); border-radius: var(--r-sm); background: var(--surface); font-size: var(--t-sm); }
.field-map__row span:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.field-map__arrow { font-family: var(--mono); font-size: 11px; color: var(--accent); }

/* A listing preview: what the thing is on the left, the merchant's own words
   and numbers on the right. Deliberately not .field-map — pairing two field
   names is right for the price-rules cell and wrong for a listing, where the
   reader needs to recognise their own product. */
.listing { display: flex; flex-direction: column; gap: 6px; }
/* Banded rather than ruled: the panel is wide enough that an unfilled row lets
   the eye lose the line between the label and the merchant's own content. */
.listing__row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: baseline; padding: 9px var(--s-3); border-radius: var(--r-sm); background: var(--surface); }
.listing__k { font-size: var(--t-sm); color: var(--muted); }
.listing__v { font-size: var(--t-sm); font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.listing__from { font-weight: 400; color: var(--muted); }
/* On a phone the sentence beside a status pill is what should wrap; a
   two-line pill reads as a blob rather than a state. */
.panel__body .row-between .pill { flex: none; }

/* ---------- setup steps ---------- */

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

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--s-4); left: 0;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 700; color: var(--accent);
}

/* ---------- pricing ---------- */

@media (max-width: 900px) {
.price-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
.price-cards { grid-template-columns: 1fr; }
}

/* The "Most chosen" pill is taller than a bare plan name, so without a floor on
   the header the featured card's price and ticks sit a few pixels below its
   neighbours' and the row of cards reads as misaligned. */

/* Plans carry different numbers of ticks; pin the buttons to a common baseline. */

/* Denser than the checklist's default: four of these sit in a 270px column. */

/* ---------- faq ---------- */

/* The answer slides rather than snapping. Animating the wrapper's own opacity
   and offset avoids the height-animation problem entirely: <details> still
   does the showing and hiding, this only softens the arrival. */
@media (prefers-reduced-motion: no-preference) {
.faq details[open] .faq__a { animation: faq-in .32s var(--fx-ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.faq summary::after { transition: transform .25s var(--fx-ease); }
.faq details[open] summary::after { transform: rotate(180deg); }

/* ---------- customer quotes ---------- */

.rev { display: flex; flex-direction: column; gap: var(--s-4); margin: 0; }
.rev__stars { color: var(--accent); font-size: var(--t-sm); letter-spacing: .1em; line-height: 1; }
.rev__q { margin: 0; color: var(--ink); }
/* Pushed to the bottom so the attribution lines up across cards whose quotes
   differ in length — the quotes are verbatim and cannot be trimmed to match. */
.rev__by { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.rev__mark {
  flex: none; width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--accent-tint); color: var(--accent);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em;
}
.rev__who { display: flex; flex-direction: column; line-height: var(--lh-snug); min-width: 0; }
.rev__who strong { color: var(--ink); font-size: var(--t-sm); }
.rev__src { color: var(--muted); }
.rev__src:hover { color: var(--accent); text-decoration: underline; }

/* The one aggregate figure on the page. It is displayed copy with a visible
   citation, not structured data: the head deliberately carries no
   aggregateRating, because Google forbids marking up another site's aggregate.
   Keep the source link next to the number — the citation is the whole reason
   showing a third-party figure here is legitimate. */
.rating { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--t-sm); }
/* min-width:0 so the sentence wraps inside its own column rather than pushing
   the stars off the line — it runs to two lines on a phone. */
.rating__score { min-width: 0; color: var(--body); }
.rating__score b { color: var(--ink); font-size: var(--t-base); }
.rating__src { color: var(--accent); font-weight: 600; }
.rating__src:hover { text-decoration: underline; }

/* ---------- bento tweaks ---------- */

.bento-cell .spark { height: 56px; margin-top: auto; }

/* ---------- motion ----------
   Everything below is polish on top of a page that already reads correctly
   without it, and none of it runs under reduced-motion. */

@media (prefers-reduced-motion: no-preference) {
/* The comparison rows arrive one at a time, which is how you read them. */
.js-reveal .vs.fx-in tbody tr { opacity: 0; transform: translateY(8px); }
.js-reveal .vs.fx-in.is-in tbody tr { opacity: 1; transform: none; transition: opacity .45s var(--fx-ease-out), transform .45s var(--fx-ease-out); }
.js-reveal .vs.fx-in tbody tr:nth-child(2) { transition-delay: .07s }
.js-reveal .vs.fx-in tbody tr:nth-child(3) { transition-delay: .14s }
.js-reveal .vs.fx-in tbody tr:nth-child(4) { transition-delay: .21s }
.js-reveal .vs.fx-in tbody tr:nth-child(5) { transition-delay: .28s }
/* Setup steps count themselves in left to right. */
.js-reveal .steps.fx-in .step { opacity: 0; transform: translateY(10px); }
.js-reveal .steps.fx-in.is-in .step { opacity: 1; transform: none; transition: opacity .5s var(--fx-ease-out), transform .5s var(--fx-ease-out); }
.js-reveal .steps.fx-in .step:nth-child(2) { transition-delay: .1s }
.js-reveal .steps.fx-in .step:nth-child(3) { transition-delay: .2s }
/* Same for the bento and the coverage rail, which are grids of equals. */
.js-reveal .bento.fx-in > * { opacity: 0; transform: translateY(12px); }
.js-reveal .bento.fx-in.is-in > * { opacity: 1; transform: none; transition: opacity .5s var(--fx-ease-out), transform .5s var(--fx-ease-out); }
.js-reveal .bento.fx-in > *:nth-child(2) { transition-delay: .06s }
.js-reveal .bento.fx-in > *:nth-child(3) { transition-delay: .12s }
.js-reveal .bento.fx-in > *:nth-child(4) { transition-delay: .18s }
.js-reveal .bento.fx-in > *:nth-child(5) { transition-delay: .24s }
.js-reveal .bento.fx-in > *:nth-child(n+6) { transition-delay: .3s }
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .18s var(--fx-ease), box-shadow .18s var(--fx-ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--nudge span { display: inline-block; transition: transform .22s var(--fx-ease-out); }
.btn--nudge:hover span { transform: translateY(3px); }
.price-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hub__node:hover { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
}
