/* SnapStory page only (docs/snapstory-page.md): kit visuals, the video and the stat. Layout comes from site.css. */

/* Kit visuals: the device alone (or the free-standing visual) with no background of its own, on the product glow.
   Stills keep their alpha, so the shadow follows the real outline; loops are clipped to the device's own corners. */
.kt-ss-visual { position: relative; margin: 0; display: grid; place-items: center; min-width: 0; }
.kt-ss-visual::before { content: ""; position: absolute; inset: -6% -8%; z-index: -1; background: var(--product-glow); opacity: .55; pointer-events: none; }
.kt-ss-visual img,
.kt-ss-visual video { display: block; width: 100%; height: auto; }
.kt-ss-visual img { filter: drop-shadow(0 24px 40px rgba(60, 35, 15, .18)); }
.kt-ss-visual.is-free img { filter: none; }
.kt-ss-visual video { box-shadow: 0 24px 48px rgba(60, 35, 15, .2); }
/* Device corners from the kit: phone 59px on 382×809, window 12px on 960×780. */
.kt-ss-visual.is-phone video { border-radius: 15.45% / 7.29%; }
.kt-ss-visual.is-desk video { border-radius: 1.25% / 1.54%; }
.kt-ss-visual.is-phone img,
.kt-ss-visual.is-phone video { width: auto; max-width: 100%; max-height: 640px; }
.kt-night .kt-ss-visual img { filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45)); }
.kt-hero-demo .kt-ss-visual img { max-height: 600px; width: auto; max-width: 100%; }

/* Feature 1 shopper questions. */
.kt-ss-asks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.kt-ss-asks span { padding: 6px 14px; border-radius: var(--r-pill); background: var(--product-badge-bg); color: var(--product-badge-fg); font-size: 14px; }

/* Brand line band. */
.kt-ss-brandline { padding-block: 56px; }
.kt-ss-brandline .kt-h2 { max-width: 24ch; margin-inline: auto; }

/* Main video. */
.kt-ss-video { margin: 32px auto 0; max-width: 1040px; }
.kt-ss-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }

/* Problem: the market stat beside the line. */
.kt-ss-problem { display: grid; gap: 32px; align-items: center; }
.kt-ss-stat { display: grid; justify-items: center; text-align: center; padding: 32px 24px; border-radius: var(--r-lg); background: var(--kt-snapstory-ink); color: #fff; }
.kt-ss-stat b { font: var(--fw-display) clamp(3.5rem, 2.5rem + 4vw, 5.5rem)/1 var(--font-display); color: var(--kt-snapstory-500); }
.kt-ss-stat > span { font: var(--fw-display) 28px/1.3 var(--font-display); }
.kt-ss-stat p { margin: 8px 0 0; font-size: 17px; }
.kt-ss-stat small { margin-top: 10px; font-size: 12px; opacity: .65; }
@media (min-width: 900px) {
  .kt-ss-problem { grid-template-columns: 4fr 7fr; gap: 64px; }
}

@media (max-width: 899px) {
  .kt-ss-visual.is-phone img,
  .kt-ss-visual.is-phone video { max-height: 520px; }
  .kt-ss-brandline { padding-block: 40px; }
}
