/* ============================================================
   PRODUCT SHOTS — real screenshots, framed + animated
   ------------------------------------------------------------
   .bf-shot-phone   floating phone with a slow 3D sway (hero use)
   .bf-shot-phone--still  same frame, no animation (strips/rows)
   .bf-shot-tv      projector/TV frame with a soft stage glow
   .bf-shot-browser desktop screenshot inside browser chrome
   All animation respects prefers-reduced-motion.
   ============================================================ */

/* ---------- Phone frame ---------- */
.bf-shot-phone {
    --phone-w: 270px;
    position: relative;
    width: var(--phone-w);
    border-radius: 38px;
    padding: 10px;
    background: linear-gradient(160deg, #2a2a3e 0%, #15151f 60%, #1f1f2e 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        inset 0 -1px 1px rgba(0, 0, 0, 0.6),
        0 24px 48px rgba(0, 0, 0, 0.55),
        0 0 64px rgba(124, 58, 237, 0.22);
    transform-style: preserve-3d;
}
.bf-shot-phone img {
    display: block;
    width: 100%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
/* notch / speaker pill */
.bf-shot-phone::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 17px;
    border-radius: 12px;
    background: #0b0b14;
    z-index: 2;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}
/* glass glare sweep */
.bf-shot-phone::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 0%, transparent 38%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.015) 55%,
        transparent 62%, transparent 100%);
}

/* The slow back-and-forth sway — the "alive" hero treatment */
.bf-shot-phone--sway {
    animation: bf-phone-sway 9s ease-in-out infinite;
}
@keyframes bf-phone-sway {
    0%   { transform: perspective(1200px) rotateY(-9deg) rotateX(2deg) translateY(0); }
    25%  { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-7px); }
    50%  { transform: perspective(1200px) rotateY(9deg)  rotateX(2deg) translateY(0); }
    75%  { transform: perspective(1200px) rotateY(-3deg) rotateX(3deg) translateY(-7px); }
    100% { transform: perspective(1200px) rotateY(-9deg) rotateX(2deg) translateY(0); }
}

/* ---------- TV / projector frame ---------- */
.bf-shot-tv {
    position: relative;
    border-radius: 14px;
    padding: 10px 10px 14px;
    background: linear-gradient(180deg, #1c1c2a, #101018);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(124, 58, 237, 0.16);
}
.bf-shot-tv img {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* stand base hint */
.bf-shot-tv::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 34%;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #14141f, #0a0a12);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5);
}
/* gentle 3D presentation tilt (hero use) */
.bf-shot-tv--tilt {
    transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bf-shot-tv--tilt:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }

/* ---------- Browser chrome frame ---------- */
.bf-shot-browser {
    border-radius: 12px;
    overflow: hidden;
    background: #15151f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 70px rgba(124, 58, 237, 0.12);
}
.bf-shot-browser .bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: linear-gradient(180deg, #1e1e2c, #181824);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bf-shot-browser .bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.bf-shot-browser .bar span:nth-child(1) { background: #f87171; }
.bf-shot-browser .bar span:nth-child(2) { background: #fbbf24; }
.bf-shot-browser .bar span:nth-child(3) { background: #34d399; }
.bf-shot-browser .bar .url {
    flex: 1;
    margin-left: 8px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 10px;
    width: auto;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
}
.bf-shot-browser img { display: block; width: 100%; }

/* ---------- Layout helpers ---------- */
.bf-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    flex-wrap: wrap;
    margin-top: 3rem;
}
/* Lock the column geometry so carousel slide/caption changes can't reflow
   the row — variable caption length used to resize the columns and
   re-center both shots on every slide change (read as "jerky"). */
.bf-showcase > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.bf-showcase > div:first-child { flex: 0 0 292px; }
.bf-showcase > div:last-child { flex: 1 1 520px; max-width: 760px; }
.bf-showcase .bf-shot-tv { width: 100%; }
.bf-showcase .bf-shot-phone { flex: 0 0 auto; }

.bf-shot-caption {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #8b8b9e);
    /* Constant footprint: two lines reserved, full column width, so a
       longer caption never resizes or re-centers the column. */
    width: 100%;
    min-height: 3.4em;
}
.bf-shot-caption strong { color: var(--text-primary, #fff); font-weight: 600; }
/* Caption text crossfades with the slide instead of snapping. */
.bf-shot-caption [data-bf-cap], .bf-shot-caption span { transition: opacity 0.28s ease; }

/* phone strip (players page) */
.bf-phone-strip {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.25rem, 3.5vw, 3rem);
    flex-wrap: wrap;
    margin-top: 3rem;
}
.bf-phone-strip .item { text-align: center; }
.bf-phone-strip .bf-shot-phone { --phone-w: 225px; margin: 0 auto; }
.bf-phone-strip .item:nth-child(2) .bf-shot-phone { --phone-w: 250px; }
.bf-phone-strip .step {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-muted, #8b8b9e);
}
.bf-phone-strip .step b { color: var(--text-primary, #fff); }

/* ---------- Crossfading shot carousel ---------- */
.bf-carousel-frame {
    position: relative;
}
.bf-carousel-frame .bf-car-slide {
    display: block;
    width: 100%;
    transition: opacity 0.85s ease;
}
.bf-carousel-frame .bf-car-slide:not(:first-child) {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}
.bf-carousel-frame .bf-car-slide:not(.active) {
    opacity: 0;
}
/* TV slides have mixed aspect ratios (1080p shots + the wider bracket):
   fix the frame to 16:9 and letterbox odd sizes against the dark bezel. */
.bf-shot-tv .bf-carousel-frame {
    aspect-ratio: 16 / 9;
    background: #0a0a14;
    border-radius: 8px;
    overflow: hidden;
}
.bf-shot-tv .bf-carousel-frame .bf-car-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

/* floating phone pinned to a hero frame's corner (hosts page) */
.bf-float-phone {
    position: absolute;
    right: -18px;
    bottom: -44px;
    --phone-w: 175px;
    z-index: 3;
}
@media (max-width: 900px) {
    .bf-float-phone { display: none; }
}

@media (max-width: 720px) {
    .bf-shot-phone { --phone-w: 220px; }
    .bf-showcase .bf-shot-tv { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-shot-phone--sway { animation: none; transform: none; }
    .bf-shot-tv--tilt { transform: none; }
}

/* ── Paper sheets: the pen-and-paper table ──────────────────────────── */
.bf-paper-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .bf-paper-strip { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.bf-paper-strip .item { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.bf-shot-paper {
  background: #fdfdfb;
  border-radius: 3px;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.45), 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--paper-tilt, -1.5deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  position: relative;
}
.bf-shot-paper::after {
  /* soft bar-light falloff across the sheet */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0) 55%, rgba(15, 18, 32, 0.08) 100%);
  pointer-events: none;
}
.bf-shot-paper img { display: block; width: 100%; height: auto; }
.bf-shot-paper:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.5); }
.bf-paper-strip .step { font-size: 0.85rem; color: #94a3b8; text-align: center; }
.bf-paper-strip .step b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .bf-shot-paper, .bf-shot-paper:hover { transition: none; transform: none; } }
