/* Screenshot deck: one stack of real App Store posters per device (iPhone, iPad), Leechy napping on top.
   Without JS each deck is a swipeable snap strip; gallery.js turns it into a paged stack. */
.shot-groups {
  --ink: #2b3a34; --butter: #ffe78d; --leaf: #adbe70; --lilac: #cccce8; --cream: #fefbe8;
  min-width: 0; margin: 18px 0 0; padding: 0; border: 0;
  font-family: Poppins, sans-serif; color: var(--ink);
}
.shot-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Device switcher: a compact lilac tray. */
.shot-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.shot-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border-radius: 99px; background: var(--lilac); color: var(--ink);
  font: 600 .9rem/1.2 Poppins, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.shot-tab:hover { background: #b9b9df; }
.shot-radio:checked + .shot-tab { background: var(--ink); color: var(--cream); }
.shot-radio:focus-visible + .shot-tab { outline: 3px solid #f16f33; outline-offset: 3px; }
/* One device only (the visitor's own iPhone or iPad, or a one-device manifest): no switcher.
   The checked radio stays in the DOM, so the panel selector below still applies. */
.shot-groups.is-single > legend, .shot-groups.is-single .shot-radio,
.shot-groups.is-single .shot-tab { display: none; }

/* Panel: deck + side column. */
.shot-panel {
  display: none; order: 1; flex: 0 0 100%; min-width: 0; margin-top: 18px;
  gap: 22px 40px; align-items: center;
}
.shot-radio:checked + .shot-tab + .shot-panel { display: grid; }

/* The deck: a butter mat with lilac and leaf sheets tucked underneath. */
.shot-deck {
  --shot-h: min(540px, 68svh);
  --fit: 64cqi;
  position: relative; isolation: isolate; container-type: inline-size;
  min-width: 0; margin: 70px 10px 10px 4px; padding: 24px 0;
  border: 2px solid var(--ink); border-radius: 30px; background: var(--butter);
  box-shadow: 6px 7px 0 var(--ink);
}
.shot-deck::before, .shot-deck::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 2px solid var(--ink); border-radius: 30px;
}
.shot-deck::before { background: var(--lilac); transform: rotate(-3.2deg) translate(-6px, 6px); }
.shot-deck::after { background: var(--leaf); transform: rotate(2.4deg) translate(8px, 4px); }
.shot-pet {
  position: absolute; z-index: 4; top: 0; right: 0; width: 150px; height: auto;
  transform: translate(14%, -62%) rotate(4deg); pointer-events: none;
  filter: drop-shadow(0 3px 0 rgb(43 58 52 / .18));
}

/* No-JS strip: big posters snap one at a time, the next one peeking. */
.shot-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; padding: 6px 7cqi 12px; scroll-padding-inline: 7cqi;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.shot-item {
  flex: 0 0 auto; display: block; scroll-snap-align: start;
  border-radius: 18px; overflow: hidden; background: var(--ink); cursor: zoom-in;
  border: 2px solid var(--ink); box-shadow: 0 6px 0 rgb(43 58 52 / .22);
  -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;
}
.shot-item img {
  display: block; max-width: none; width: auto;
  height: min(var(--shot-h), calc(var(--fit) / var(--r)));
  user-select: none; -webkit-user-select: none;
}
.shot-item:focus-visible { outline: 4px solid #f16f33; outline-offset: 4px; }

/* JS deck: every poster shares one grid cell; the active one sits on top, the next peeks out. */
.shot-panel.is-deck .shot-track {
  display: grid; justify-content: center; align-items: center; overflow: visible;
  padding: 4px 30cqi 8px 3cqi; touch-action: pan-y pinch-zoom; scroll-snap-type: none;
}
.shot-panel.is-deck .shot-item {
  grid-area: 1 / 1; justify-self: center;
  visibility: hidden; opacity: 0; transform: translateX(46%) rotate(7deg) scale(.82);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1.15), opacity .3s, visibility 0s .45s;
}
.shot-panel.is-deck .shot-item[data-state="before"] { transform: translateX(-40%) rotate(-9deg) scale(.86); }
.shot-panel.is-deck .shot-item[data-state="next"] {
  z-index: 1; visibility: visible; opacity: 1; cursor: pointer;
  transform: translateX(36%) rotate(5deg) scale(.88);
  filter: saturate(.85) brightness(.96);
  transition-delay: 0s;
}
.shot-panel.is-deck .shot-item[data-state="active"] {
  z-index: 2; visibility: visible; opacity: 1; transform: rotate(-1.5deg);
  box-shadow: 0 10px 0 rgb(43 58 52 / .25); transition-delay: 0s;
}
.shot-panel.is-deck .shot-item[data-state="active"]:hover { transform: rotate(0deg) translateY(-4px); }

/* Side column: count + title + paging, then the feature index. */
.shot-side { min-width: 0; display: grid; gap: 16px; align-content: center; }
.shot-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.shot-bar[hidden] { display: none; }
.shot-caption { margin: 0; min-width: 0; display: grid; gap: 2px; }
.shot-count { font-size: .8rem; font-weight: 600; letter-spacing: .04em; opacity: .7; font-variant-numeric: tabular-nums; }
.shot-title { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.shot-step {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink);
  font: 700 1.2rem/1 Poppins, sans-serif; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background-color .15s;
}
.shot-step:hover { background: var(--butter); }
.shot-step:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.shot-step:disabled { opacity: .35; cursor: default; box-shadow: none; transform: translateY(3px); background: var(--cream); }
.shot-step:focus-visible { outline: 3px solid #f16f33; outline-offset: 3px; }

.shot-topics {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.shot-topics::-webkit-scrollbar { display: none; }
.shot-topic {
  display: flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1.5px solid var(--ink); border-radius: 99px; background: var(--cream);
  color: var(--ink); font-size: .85rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.shot-topic:hover { background: var(--butter); }
.shot-topic[aria-current="true"] { background: var(--leaf); font-weight: 600; }
.shot-topic:focus-visible { outline: 3px solid #f16f33; outline-offset: 2px; }

@media (min-width: 760px) {
  .shot-panel { grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); }
  .shot-deck { --fit: 60cqi; margin-left: 30px; }
  .shot-side { align-content: center; }
  /* Wide screens: the feature index becomes a tidy numbered list beside the deck. */
  .shot-topics { display: grid; gap: 4px; overflow: visible; counter-reset: shot; }
  .shot-topic {
    counter-increment: shot; gap: 12px; min-height: 40px; padding: 6px 14px 6px 6px;
    border-color: transparent; background: transparent; white-space: normal;
  }
  .shot-topic::before {
    content: counter(shot); flex: 0 0 auto; display: grid; place-items: center;
    width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%;
    font-size: .75rem; font-weight: 700; background: var(--cream);
  }
  .shot-topic:hover { background: rgb(255 231 141 / .6); }
  .shot-topic[aria-current="true"] { background: var(--leaf); border-color: var(--ink); }
  .shot-topic[aria-current="true"]::before { background: var(--ink); color: var(--cream); }
}
/* Phones: lift count/title/paging above the deck, keep the feature chips below it. */
.shot-hint-touch { display: none; }
@media (max-width: 759px) {
  .shot-hint-wide { display: none; }
  .shot-hint-touch { display: inline; }
  .shot-panel { gap: 12px; }
  .shot-side { display: contents; }
  .shot-bar { order: -1; gap: 10px; }
  .shot-bar .shot-step { width: 44px; height: 44px; }
  .shot-caption { text-align: center; }
  .shot-title { font-size: 1.05rem; }
  .shot-topics { order: 1; }
  /* Keep napping Leechy clear of the paging row. */
  .shot-deck { margin-top: 56px; }
  .shot-pet { width: 108px; }
}
@media (max-width: 420px) {
  .shot-deck { --fit: 68cqi; margin: 56px 8px 8px 2px; padding: 18px 0; }
  .shot-pet { width: 108px; }
  .shot-panel.is-deck .shot-track { padding-right: 26cqi; }
  .shot-panel.is-deck .shot-item[data-state="next"] { transform: translateX(30%) rotate(5deg) scale(.88); }
  .shot-tabs { gap: 2px; }
  .shot-tab { padding-inline: 10px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-tab, .shot-step, .shot-topic, .shot-panel.is-deck .shot-item { transition: none; }
  .shot-panel.is-deck .shot-item[data-state="active"]:hover { transform: rotate(-1.5deg); }
}
