/* Sales page — only what the shared module-page template (style.css) does
   not already have: the hero frame's slides, the twelve tool tiles, and the
   screen + phone pairing. Everything else uses the site's own classes. */

/* Hero frame: same size and look as .md-shot-wide, holding crossfading pictures */
.sx-hero-shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: #EAF1FD; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .12);
}
.sx-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.sx-slide.on { opacity: 1; z-index: 1; }
.sx-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sx-slide figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}
.sx-pips { position: absolute; right: 14px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.sx-pips button { position: relative; width: 18px; height: 5px; border-radius: 3px; border: 0; padding: 0; cursor: pointer; background: rgba(15, 23, 42, .2); overflow: hidden; transition: width .3s; }
.sx-pips button.on { width: 36px; }
.sx-pips button span { position: absolute; inset: 0; width: 0; background: var(--blue); }
.sx-pips button.on span { animation: sx-fill 5.5s linear forwards; }
.sx-hero-shot.paused .sx-pips button.on span { animation-play-state: paused; }
@keyframes sx-fill { to { width: 100%; } }

/* The twelve tool tiles — the app's Sales screen, sticky under the top bar */
.sx-tools-head { padding-bottom: 8px; }
.sx-tabs-wrap {
  position: sticky; top: 58px; z-index: 20;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sx-tabs { display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 10px; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tab {
  flex: 0 0 auto; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 4px 6px; border: 0; background: none; cursor: pointer; position: relative; font: inherit; color: var(--text-secondary);
}
.sx-tab-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a), var(--b)); transition: transform .18s, box-shadow .18s;
}
.sx-tab-ico svg { width: 23px; height: 23px; fill: #fff; }
.sx-tab-lbl { font-size: 12px; font-weight: 600; white-space: nowrap; }
.sx-tab:hover .sx-tab-ico { transform: translateY(-2px); }
.sx-tab.on { color: var(--text); }
.sx-tab.on .sx-tab-ico { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--a); }
.sx-tab.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -10px; height: 3px; border-radius: 3px; background: var(--a); }
.sx-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 10px; }

/* A tool's opening: words left, its screen (and phone) right */
.sx-tool[hidden] { display: none; }
.sx-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.sx-eyebrow-ico { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); }
.sx-eyebrow-ico svg { width: 13px !important; height: 13px !important; fill: #fff !important; }
.sx-h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -1px; font-weight: 850; margin: 0 0 12px; text-wrap: balance; }
.sx-list li::before { background: color-mix(in srgb, var(--a) 14%, white); box-shadow: inset 0 0 0 2px var(--a); }
.sx-more { margin: 18px 0 0; }
.sx-more a { font-weight: 700; color: var(--a); text-decoration: none; }
.sx-more a:hover { text-decoration: underline; }
.sx-media { position: relative; margin: 0; }
.sx-media.has-phone { padding: 0 11% 9% 0; }
.sx-screen { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(15, 23, 42, .10); }
.sx-phone { position: absolute; right: 0; bottom: 0; width: 28%; margin: 0; padding: 6px; border-radius: 26px; }
.sx-phone img { border-radius: 21px; }
.sx-media-art img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--border); }

/* Capability cards use .sales-feat; the icon slot carries the number */
.sx-num { font-size: 13px; font-weight: 800; color: var(--c); letter-spacing: .02em; }

/* Gallery: web screens (16:10, like .sol-art) and phones in their shell */
.sx-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: flex-start; }
.sx-gallery figure { margin: 0; flex: 1 1 340px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.sx-gallery figure > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-alt); display: block; }
.sx-gallery figcaption { font-size: 13.5px; font-weight: 650; color: var(--text-secondary); text-align: center; }
.sx-gallery .sx-gal-phone { flex: 0 0 220px; }
.sx-gal-phone .sales-phone { width: 100%; padding: 7px; border-radius: 30px; }
.sx-gal-phone .sales-phone img { border-radius: 24px; }

.sx-notes { margin-bottom: 18px; }
.sx-rels { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 960px) {
  .sx-intro { grid-template-columns: 1fr; gap: 28px; }
  .sx-tabs { justify-content: flex-start; }
  .sx-tabs-wrap { top: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-slide { transition: none; }
  .sx-pips button.on span { animation: none; width: 100%; }
}
.sx-note { max-width: 860px; margin: 0 auto; }
.sx-note .sales-hero-list { margin: 0; }
.sx-note .sales-hero-list li { font-size: 14.5px; }
/* Text on the right, screens on the left (Items page) */
.sx-intro-flip { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 960px) { .sx-intro-flip { grid-template-columns: 1fr; } .sx-intro-flip > :first-child { order: 2; } }
/* Hardware pages: six spec cards, three across */
.hw-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .hw-specs { grid-template-columns: 1fr; } }
