/* CROSSFADE: the parts it shares with jbtecwiz.com, and the Apple-style extras (2026-10-25).
   Loaded after apple.css. jb-shared.css (generated) styles the main site's footer, notices, Facebook button and help
   bot; light.css (generated) turns everything light on a light-mode device. This file places those parts on these
   pages and adds the feature grid, the screenshot carousel and the scroll moments. */

/* ── The bar: the way back to JbTecWiz ── */
.crumb-jb { display: inline-flex; align-items: center; gap: 6px; }
.crumb-jb img { width: 18px; height: 18px; border-radius: 5px; }
.menu-jb { display: none; }
/* The phone menu gets a way home; a computer has the JbTecWiz link in the bar. */
@media (max-width: 920px) { .menu-jb { display: list-item; } }
/* Medium windows (921–1080px) have no room for "by JbTecWiz · Software Store", so the bar keeps just the
   JbTecWiz logo and name (site.css hides the whole line below 1081px). */
@media (min-width: 921px) and (max-width: 1080px) {
  .crumb { display: inline-flex !important; align-items: center; font-size: 0; }
  .crumb > a:not(.crumb-jb) { display: none; }
  .crumb .crumb-jb { font-size: 12px; gap: 6px; }
}
.menu-jb a { display: flex !important; align-items: center; gap: 8px; }
.menu-jb img { width: 18px; height: 18px; border-radius: 5px; }

/* ── Notices from JbTecWiz: under the capsule, like on the main site ── */
.topbar .site-notices { pointer-events: auto; position: relative; margin-top: 8px !important; }
@media (max-width: 920px) { .topbar .site-notices { position: absolute; left: 0; right: 0; top: 100%; } }

/* ── The footer: jbtecwiz.com's, with CROSSFADE's own links on top ── */
.cf-foot-product { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 12px; }
.cf-foot-product b { display: inline-flex; align-items: center; gap: 8px; color: #1d1d1f; font-weight: 600; letter-spacing: .06em; margin-right: 6px; }
.cf-foot-product b img { width: 26px; height: 16px; }
.cf-foot-product a { color: #424245; }
.cf-foot-product a:hover { color: #1d1d1f; text-decoration: underline; }
.cf-foot-tm { flex-basis: 100%; margin: 0; color: #6e6e73; font-size: 11px; }
@media (prefers-color-scheme: dark) {
  .cf-foot-product { border-bottom-color: rgba(255, 255, 255, .12); }
  .cf-foot-product b { color: #f5f5f7; }
  .cf-foot-product a { color: #d2d2d7; }
  .cf-foot-product a:hover { color: #fff; }
  .cf-foot-tm { color: #a1a1a6; }
}
/* CROSSFADE sizes every h3 as a page heading; the footer's column titles are small labels. */
footer.jb-footer h3 { font-size: 12px !important; letter-spacing: 0 !important; line-height: 1.4 !important; margin: 0 !important; }

/* The manual's back-to-top button sits above the help bot's button, not on top of it. */
.to-top { bottom: 96px !important; }

/* ── At a glance: the mouse light on the panel (site.js lights it) ── */
.facts { position: relative; background-image: var(--cf-light), linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)); }
.facts b { font-variant-numeric: tabular-nums; }

/* ── "The details": a bento grid of glass tiles, each with its icon ── */
.cf-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cf-bento .card { display: flex; flex-direction: column; padding: 30px 30px 28px; }
.cf-bento .cf-tile--hero { grid-column: span 2; grid-row: span 2; justify-content: space-between; padding: 40px; }
.cf-bento .cf-tile--hero h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 22px 0 12px; }
.cf-bento .cf-tile--hero p { font-size: 19px; max-width: 520px; }
.cf-bento .cf-tile--hero .cf-stat { margin-top: 28px; font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(90deg, #5fe1ff, #2e7bff 45%, #a879ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-bento .cf-tile--hero .cf-stat small { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--dim); -webkit-text-fill-color: var(--dim); }
.cf-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; flex: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 92%, #fff), var(--tc)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px -6px color-mix(in srgb, var(--tc) 70%, transparent); }
.cf-tile--hero .cf-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0; }
.cf-ico .jb-glyph { width: 24px; height: 24px; }
.cf-tile--hero .cf-ico .jb-glyph { width: 32px; height: 32px; }
@media (max-width: 960px) {
  .cf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-bento .cf-tile--hero { grid-row: auto; }
}
@media (max-width: 640px) {
  .cf-bento { grid-template-columns: minmax(0, 1fr); }
  .cf-bento .cf-tile--hero { grid-column: auto; padding: 30px; }
}

/* ── "A closer look": a row you swipe through, as on Apple's pages, instead of three rows of nine ── */
.cf-carousel { position: relative; }
.cf-carousel .gallery {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(620px, 82%);
  gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px max(24px, calc((100vw - 1068px) / 2)) 30px; margin: 0 calc(50% - 50vw);
  scrollbar-width: none;
}
.cf-carousel .gallery::-webkit-scrollbar { display: none; }
.cf-carousel .gallery figure { scroll-snap-align: center; animation: none !important; }
.cf-carousel .gallery:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: -2px; }
.cf-carousel-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.cf-carousel-nav button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--cf-sheen), rgba(255, 255, 255, .08); color: var(--text); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--dg-rim), 0 6px 18px rgba(0, 0, 0, .35); backdrop-filter: saturate(190%) blur(8px); -webkit-backdrop-filter: saturate(190%) blur(8px);
  transition: background-color .2s, transform .3s var(--cf-spring), opacity .2s;
}
.cf-carousel-nav button:hover:not(:disabled) { transform: scale(1.06); }
.cf-carousel-nav button:disabled { opacity: .35; cursor: default; }
.cf-carousel-nav svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: light) {
  .cf-carousel-nav button { background: var(--cf-sheen), rgba(255, 255, 255, .8); color: #1d1d1f; border-color: rgba(255, 255, 255, .95); box-shadow: var(--dg-rim), 0 4px 14px rgba(30, 40, 90, .12); }
}

/* ── Scroll moments (scroll-driven, so nothing moves unless you scroll; off for reduced motion) ──
   !important because the site's motion budget (mobile-motion.css) switches off animation names. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* The big screenshot starts tipped back and settles upright as it comes up the screen. */
    @keyframes cf-tilt { from { transform: perspective(1800px) rotateX(24deg) scale(.88); opacity: .55; } to { transform: none; opacity: 1; } }
    .hero-shot img {
      transform-origin: 50% 0;
      animation: cf-tilt linear both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% cover 42% !important;
    }
    /* Section headings rise into place. */
    @keyframes cf-head { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
    .section-head {
      animation: cf-head linear both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% entry 40% !important;
    }
  }
}

/* "by JbTecWiz · Software Store": the logo sits on the line with the words. */
@media (min-width: 1081px) { .crumb { display: inline-flex; align-items: center; gap: 5px; } }

/* The SHA-256 row: the Copy button sits in its own <dd> (a button can't be a direct child of a <dl> row). */
.release dd.release-copy:last-child { grid-column: auto; overflow: visible; }

/* Phones: the open menu is a solid sheet (glass over the hero's big type was hard to read), and the notices pill
   steps aside while it's open. */
@media (max-width: 920px) {
  .menu.open { background: #161618 !important; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
  .topbar:has(.menu.open) .site-notices { display: none; }
}
@media (max-width: 920px) and (prefers-color-scheme: light) {
  .menu.open { background: #fafafc !important; box-shadow: 0 20px 40px rgba(30, 40, 90, .15); }
}

/* No sideways scrolling: the screenshot row reaches the window's edges with 100vw, which on Windows includes the
   vertical scroll bar, so it stuck out and the page grew a left-to-right scroll bar. clip keeps sticky working. */
html { overflow-x: clip; }
#gallery { overflow-x: clip; }

/* ── FAQ: one glass card per question, the same as jbtecwiz.com (Downloads is the house FAQ) ──
   `html body` so these beat light.css, which is generated, loads later and re-colours `.faq details`. */
html body .faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; border: 0; }
html body .faq details {
  overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .145);
  background: rgba(36, 36, 40, .68); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 16px rgba(0, 0, 0, .12);
}
@media (min-width: 768px) {
  html body .faq details { backdrop-filter: saturate(1.9) blur(18px) brightness(1.03); -webkit-backdrop-filter: saturate(1.9) blur(18px) brightness(1.03); }
}
html body .faq summary {
  padding: 18px 54px 18px 22px; font-size: 1.06rem; font-weight: 600; line-height: 1.47; letter-spacing: normal;
  color: #f5f5f7; transition: background-color .2s ease;
}
html body .faq summary:hover { color: #f5f5f7; background: rgba(0, 212, 255, .05); }
html body .faq summary::after {
  content: ''; right: 22px; width: 18px; height: 18px; margin-top: -9px; transform: none; background: #a1a1a6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
html body .faq details[open] summary::after { content: ''; transform: rotate(180deg); }
html body .faq details > div { padding: 0 22px 20px; max-width: none; font-size: .95rem; line-height: 1.75; color: #d1d1d6; }
@media (prefers-color-scheme: light) {
  html body .faq details {
    border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .6);
    box-shadow: inset 0 1px 0 #fff, 0 4px 16px rgba(0, 0, 0, .06);
  }
  html body .faq summary, html body .faq summary:hover { color: #1d1d1f; }
  html body .faq summary::after { background: #6e6e73; }
  html body .faq details > div { color: #424245; }
}
