/* Product showcase components: real screenshots, interactive module tour, full module index.
   Uses the site tokens from styles.css (crimson, ink, mist, paper, rule). Works LTR and RTL. */

/* ---------- screenshot frame ---------- */
.pshot { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(23,20,21,.04), 0 24px 48px -20px rgba(23,20,21,.28); }
.pshot__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding-inline: 14px;
  background: var(--paper); border-bottom: 1px solid var(--rule); font: 500 12px/1 var(--body); color: var(--steel); }
.pshot__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); flex: none; }
.pshot img { display: block; width: 100%; height: auto; }
.pshot figcaption { padding: 10px 14px; font-size: .85rem; color: var(--steel); border-top: 1px solid var(--rule); background: var(--paper); }

/* ---------- product hero: screenshot runs past the content edge ---------- */
.has-shot { overflow-x: clip; }
.hero-shot { position: relative; align-self: center; }
@media (min-width: 1000px) {
  .hero-shot .pshot { width: 132%; max-width: none; }
}
.hero-shot .note { margin-top: 10px; font-size: .8rem; color: var(--steel-light); }

/* ---------- module tour (the one bold element) ---------- */
.tour-band { background: var(--ink); color: #C9C4C4; padding-block: clamp(64px, 9vw, 112px); }
.tour-band h2 { color: #fff; max-width: 22ch; }
.tour-band .lede { color: #B9B3B3; max-width: 60ch; }
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.tour__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: sticky; top: 96px; }
.tour__tab { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 14px 18px;
  border-inline-start: 3px solid transparent; border-radius: 0 10px 10px 0; color: #B9B3B3; transition: background-color .15s, color .15s; }
html[dir="rtl"] .tour__tab { border-radius: 10px 0 0 10px; }
.tour__tab strong { display: block; font: 700 1.02rem/1.3 var(--display); color: #fff; }
.tour__tab span { display: block; font-size: .88rem; line-height: 1.45; margin-top: 3px; }
.tour__tab:hover { background: rgba(255,255,255,.04); }
.tour__tab[aria-selected="true"] { background: rgba(255,255,255,.07); border-inline-start-color: var(--crimson-bright); }
.tour__tab:focus-visible { outline: 2px solid var(--crimson-bright); outline-offset: 2px; }
.tour__panel[hidden] { display: none; }
.tour__panel .pshot { border-color: #2E2A2A; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.tour__panel .pshot__bar { background: #221E1F; border-color: #2E2A2A; color: #9A9C9F; }
.tour__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 26px 0 0; padding: 0; list-style: none; }
.tour__points li { padding-inline-start: 18px; position: relative; line-height: 1.55; }
.tour__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 2px; background: var(--crimson-bright); }
.tour__points b { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour__list { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .tour__tab { flex: none; width: auto; border-inline-start: 0; border-bottom: 2px solid transparent; border-radius: 8px; padding: 10px 14px; }
  .tour__tab span { display: none; }
  .tour__tab[aria-selected="true"] { border-bottom-color: var(--crimson-bright); }
  .tour__points { grid-template-columns: 1fr; }
}

/* ---------- full module index ---------- */
.mindex__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 36px; }
.mindex__count { text-align: end; }
.mindex__count b { display: block; font: 800 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--crimson); }
.mindex__count span { font-size: .9rem; color: var(--steel); }
.mindex { columns: 4 220px; column-gap: 40px; }
.mindex__group { break-inside: avoid; margin: 0 0 30px; }
.mindex__group h3 { font: 700 1rem/1.3 var(--display); color: var(--ink); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--crimson); }
.mindex__group ul { list-style: none; margin: 0; padding: 0; }
.mindex__group li { font-size: .93rem; line-height: 1.4; padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.mindex__note { margin-top: 8px; font-size: .85rem; color: var(--steel); }
@media (max-width: 700px) { .mindex__head { grid-template-columns: 1fr; } .mindex__count { text-align: start; } }

/* ---------- side-by-side feature row ---------- */
.frow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.frow--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.frow--flip > :first-child { order: 2; }
@media (max-width: 900px) { .frow, .frow--flip { grid-template-columns: 1fr; } .frow--flip > :first-child { order: 0; } }

@media (prefers-reduced-motion: reduce) { .tour__tab { transition: none; } }

/* place the screenshot in the hero grid's graphic column (same specificity as futuristic.css) */
#main > .section--tight:first-child .wrap.hero-split .hero-shot { grid-column: 2 / 3; grid-row: 1 / 3; }
@media (max-width: 900px) {
  #main > .section--tight:first-child .wrap.hero-split .hero-shot { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }
}
/* let grid children shrink below their content width (the chip row scrolls instead of widening the page) */
.tour > *, .tour__panels, .frow > * { min-width: 0; }
/* compact list: show the one-line description only on the selected module */
.tour__tab { padding: 11px 18px; }
.tour__tab span { display: none; }
.tour__tab[aria-selected="true"] span { display: block; }
