/* RSync Pro product site — page-specific components.
   The design system itself lives in style.css (synced from the repo root). */

/* header: app icon next to the product wordmark */
.product-mark { display: inline-flex; align-items: center; gap: 10px; }
.product-mark-icon { inline-size: 28px; block-size: 28px; border-radius: 22.5%; }
/* narrow phones: icon-only wordmark so the nav never collides */
@media (max-width: 519px) {
  .product-mark-name { display: none; }
}

/* language menu — current code highlighted like selected text (a tight
   light-gray rectangle behind it, in the site's neutral palette); click
   stacks the other codes below, text starts aligned. Pure <details>, no JS. */
.lang-menu { position: relative; display: inline-block; }
.lang-chip {
  display: inline-block;
  background: var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 2px 6px; border-radius: 3px;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.lang-menu summary {
  list-style: none; cursor: pointer; padding-block: 8px;
  display: inline-block;   /* shrink-wrap so the chip starts on the menu's edge */
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover .lang-chip { background: var(--ink); color: var(--accent-ink); }
/* open list: stacked, each chip's text start aligned with the summary's */
.lang-menu ul {
  position: absolute; inset-inline-start: 0; inset-block-start: 100%;
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 60;
}
.lang-menu ul a.lang-chip { text-decoration: none; color: var(--ink); }
.lang-menu ul a.lang-chip:hover { background: var(--ink); color: var(--accent-ink); }

/* hero: large app icon above the overline */
.product-hero-icon {
  inline-size: clamp(72px, 10vw, 96px); block-size: auto;
  border-radius: 22.5%; margin-block-end: 24px;
  outline: 1px solid rgba(29, 29, 31, 0.1); outline-offset: -1px;
}

/* official Mac App Store badge with a coming-soon chip */
.store-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.store-badge img { block-size: 52px; inline-size: auto; display: block; }

/* features: six caps sit better on three columns */
@media (min-width: 1080px) {
  .cap-grid--three { grid-template-columns: repeat(3, 1fr); }
}

/* showcase + screenshots: one large stage + a thumbnail carousel to switch.
   Pure CSS (radio + sibling combinator), no JS. Videos are silent so a
   hidden clip that keeps playing is invisible. */
.vid-radio, .shot-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* video stage: 16:9; screenshot stage: fixed-height viewer (shots are ~square) */
.vid-stage, .shot-stage {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.vid-stage { aspect-ratio: 16 / 9; }
.shot-stage { block-size: clamp(380px, 62vh, 600px); }
.vid-main, .shot-main {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  display: none; object-fit: contain; background: var(--surface);
}
.shot-main { padding: 20px; }
#vid-basic:checked     ~ .vid-stage video[data-vid="vid-basic"],
#vid-remote:checked    ~ .vid-stage video[data-vid="vid-remote"],
#vid-schedules:checked ~ .vid-stage video[data-vid="vid-schedules"],
#shot-1:checked ~ .shot-stage img[data-shot="shot-1"],
#shot-2:checked ~ .shot-stage img[data-shot="shot-2"],
#shot-3:checked ~ .shot-stage img[data-shot="shot-3"],
#shot-4:checked ~ .shot-stage img[data-shot="shot-4"] { display: block; }

/* carousel of thumbnails (shared) */
.vid-track, .shot-track {
  display: flex; gap: 12px; margin-block-start: 16px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-block-end: 4px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.vid-thumb, .shot-thumb {
  flex: 0 0 auto; inline-size: clamp(150px, 24vw, 220px);
  scroll-snap-align: start; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
}
.vid-thumb img, .shot-thumb img {
  inline-size: 100%; block-size: auto; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: 8px; opacity: 0.55;
  transition: opacity 0.15s ease-out, border-color 0.15s ease-out, transform 0.18s ease-out;
}
.vid-thumb img { aspect-ratio: 16 / 9; }   /* landscape clips */
.shot-thumb img { aspect-ratio: 1 / 1; }   /* near-square screenshots */
.vid-thumb:hover img, .shot-thumb:hover img { opacity: 0.85; transform: translateY(-2px); }
.vid-thumb-label, .shot-thumb-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
  transition: color 0.15s ease-out;
}
/* active item — full opacity, ink hairline, ink label */
#vid-basic:checked     ~ .vid-track label[for="vid-basic"]     img,
#vid-remote:checked    ~ .vid-track label[for="vid-remote"]    img,
#vid-schedules:checked ~ .vid-track label[for="vid-schedules"] img,
#shot-1:checked ~ .shot-track label[for="shot-1"] img,
#shot-2:checked ~ .shot-track label[for="shot-2"] img,
#shot-3:checked ~ .shot-track label[for="shot-3"] img,
#shot-4:checked ~ .shot-track label[for="shot-4"] img { opacity: 1; border-color: var(--ink); }
#vid-basic:checked     ~ .vid-track label[for="vid-basic"]     .vid-thumb-label,
#vid-remote:checked    ~ .vid-track label[for="vid-remote"]    .vid-thumb-label,
#vid-schedules:checked ~ .vid-track label[for="vid-schedules"] .vid-thumb-label,
#shot-1:checked ~ .shot-track label[for="shot-1"] .shot-thumb-label,
#shot-2:checked ~ .shot-track label[for="shot-2"] .shot-thumb-label,
#shot-3:checked ~ .shot-track label[for="shot-3"] .shot-thumb-label,
#shot-4:checked ~ .shot-track label[for="shot-4"] .shot-thumb-label { color: var(--ink); }
/* keyboard focus on the (hidden) radio → ring on its thumb */
#vid-basic:focus-visible     ~ .vid-track label[for="vid-basic"]     img,
#vid-remote:focus-visible    ~ .vid-track label[for="vid-remote"]    img,
#vid-schedules:focus-visible ~ .vid-track label[for="vid-schedules"] img,
#shot-1:focus-visible ~ .shot-track label[for="shot-1"] img,
#shot-2:focus-visible ~ .shot-track label[for="shot-2"] img,
#shot-3:focus-visible ~ .shot-track label[for="shot-3"] img,
#shot-4:focus-visible ~ .shot-track label[for="shot-4"] img { outline: 2px solid var(--accent); outline-offset: 2px; }

/* getting started: numbered editorial steps */
.steps { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
  gap: clamp(14px, 3vw, 28px); padding-block: clamp(18px, 3vw, 26px);
  border-block-end: 1px solid var(--line);
}
.step-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); padding-block-start: 4px; }
.step h3 { margin-block-end: 6px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; max-inline-size: 64ch; }
