/* "Interface" section: a coverflow of real screenshots per platform. screens.js turns the plain
   scroll row below into the stage; without the script the row still scrolls and snaps. */

.shots:not(.is-live) :is(.seg, .shots-tabs, .shots-arrows) { display: none; }
/* Short enough that, with the page aligned to this section, the stage clears the status line at the
   bottom of the screen. */
.stage.shots { padding-block: clamp(72px, 10vh, 110px); }
/* minmax(0, 1fr) and min-width: 0 keep the nowrap screen list from stretching the column past the
   screen on a phone, which pushed the heading and the text off the right edge. */
.shots-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.shots-wrap > * { min-width: 0; }
@media (min-width: 1000px) { .shots-wrap { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); } }
.shots-copy { max-width: 440px; position: relative; }
.shots-copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -80px -120px -80px -50vw;
  background: radial-gradient(closest-side, rgba(var(--scrim), 0.82), rgba(var(--scrim), 0.5) 55%, transparent);
}

/* Platform switch: the same glass rail as the language switch. */
.seg {
  position: relative; display: inline-flex; padding: 3px; gap: 2px; margin: 4px 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
}
.seg button {
  position: relative; z-index: 1; appearance: none; background: none; border: 0; border-radius: 999px;
  padding: 8px 16px; color: var(--muted); font: inherit; cursor: pointer; transition: color 0.2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { color: var(--text); }
.seg .thumb, .shots-tabs button[aria-selected="true"] {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 60%, rgba(120, 190, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
}
.seg .thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 999px; width: 0;
  translate: var(--tx, 0px) 0; width: var(--tw, 0px);
  transition: translate 0.55s cubic-bezier(0.3, 1.35, 0.5, 1), width 0.55s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.seg button:focus-visible, .shots-tabs button:focus-visible, .shots-arrows button:focus-visible, .deck:focus-visible {
  outline: 2px solid var(--link); outline-offset: 3px;
}

/* Screen list */
.shots-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.shots-tabs button {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; appearance: none;
  background: none; border: 0; border-radius: 16px; padding: 11px 16px; color: var(--muted); cursor: pointer;
  font-size: 17px; font-weight: 550; letter-spacing: -0.015em; transition: color 0.2s, background 0.3s;
}
.shots-tabs button i { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.1em; color: var(--faint); }
.shots-tabs button:hover { color: var(--text); }
.shots-tabs button[aria-selected="true"] { color: var(--text); }
.shots-tabs button[aria-selected="true"] i { color: var(--c1); }

/* Stage */
.shots { min-width: 0; }
.deck-wrap { position: relative; }
.deck-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 6% 0 2%;
  background:
    radial-gradient(40% 55% at 38% 45%, rgba(88, 103, 255, 0.2), transparent 70%),
    radial-gradient(38% 50% at 64% 58%, rgba(47, 214, 174, 0.14), transparent 70%);
  filter: blur(30px);
}
.deck {
  --ar: 0.462; --h: clamp(380px, 66vh, 620px);
  position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 0 28px; scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.deck[data-platform="android"] { --ar: 0.448; }
.deck[data-platform="macos"] { --ar: 0.922; --h: min(clamp(360px, 64vh, 600px), calc((100vw - 2 * var(--gutter)) / 0.922)); }
.slide { flex: 0 0 auto; margin: 0; scroll-snap-align: center; height: var(--h); }
.dev {
  height: 100%; aspect-ratio: var(--ar); border-radius: calc(var(--h) * 0.07); overflow: hidden;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--rim), 0 0 0 calc(var(--h) * 0.009) var(--bezel), 0 34px 80px rgba(0, 0, 0, 0.42);
}
.dev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck[data-platform="android"] .dev { border-radius: calc(var(--h) * 0.05); }
.deck[data-platform="macos"] .dev { border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.deck[data-platform="macos"] .dev img { object-fit: contain; }
:root { --bezel: #14161d; --rim: rgba(255, 255, 255, 0.2); }
@media (prefers-color-scheme: light) { :root { --bezel: #cfd3df; --rim: rgba(10, 14, 30, 0.2); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Live mode: the row becomes a stack that screens.js moves. */
.shots.is-live .deck {
  display: block; overflow: visible; scroll-snap-type: none; padding: 0; height: var(--h);
  perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
/* The fade at the sides is a mask, and a mask cuts everything outside its own box: the rotated
   neighbours, the bezel ring and the shadow reach past the stage, so the masked box is made taller
   than the stage (and pulled back with a negative margin) instead of sitting right on it. */
.shots.is-live .deck-wrap {
  padding-block: 64px; margin-block: -64px;
  /* That extra box lies over the screen list above it; it must not take its clicks. */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.shots.is-live .deck { pointer-events: auto; }
.shots.is-live .deck.dragging { cursor: grabbing; }
.shots.is-live .slide { position: absolute; left: 50%; top: 0; margin: 0; will-change: transform, opacity; backface-visibility: hidden; }
.shots.is-live .deck[hidden] { display: none; }
.shots.is-live .deck img { -webkit-user-drag: none; pointer-events: none; }
.deck.enter { animation: deck-in 0.5s var(--ease) both; }
@keyframes deck-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* Arrows */
/* The arrows sit at the sides of the stage, level with the middle of the devices, so nothing covers
   the bottom edge of a screenshot. */
.shots-arrows {
  position: absolute; z-index: 40; left: 0; right: 0; top: 50%; translate: 0 -50%;
  display: flex; justify-content: space-between; padding: 0 2px; pointer-events: none;
}
.shots-arrows button { pointer-events: auto; }
.shots-arrows button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(110% 110% at 28% 8%, rgba(255, 255, 255, 0.34), transparent 58%),
    linear-gradient(160deg, rgba(86, 112, 226, 0.78), rgba(36, 150, 140, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.4), 0 0 18px rgba(88, 130, 255, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: scale 0.15s ease-out, opacity 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.shots-arrows button:hover { border-color: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 38px rgba(88, 150, 255, 0.55); }
.shots-arrows button:active { scale: 0.92; }
.shots-arrows button[disabled] { opacity: 0.35; cursor: default; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.shots-arrows svg { width: 18px; height: 18px; stroke-width: 2.2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }

@media (max-width: 699px) { .shots-arrows { display: none; } }
@media (max-width: 999px) {
  /* Wrapped, not scrolled: a fifth screen hidden off to the right is a screen nobody finds. */
  .shots-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 2px; margin: 8px 0 0; padding: 0; }
  .shots-tabs button { width: auto; padding: 9px 14px; font-size: 15px; }
  .shots-tabs button i { display: none; }
  .shots-copy { max-width: none; }
}

@media (prefers-color-scheme: light) {
  .seg .thumb, .shots-tabs button[aria-selected="true"] {
    background:
      radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.8), transparent 60%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16) 60%, rgba(120, 160, 255, 0.14));
    box-shadow: inset 0 0 0 1px rgba(10, 14, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(10, 14, 30, 0.1);
  }
  .dev { box-shadow: 0 0 0 1px var(--rim), 0 0 0 calc(var(--h) * 0.009) var(--bezel), 0 30px 70px rgba(10, 14, 30, 0.22); }
  .shots-arrows button {
    color: #0b1020; border-color: rgba(10, 14, 30, 0.28);
    background:
      radial-gradient(110% 110% at 28% 8%, rgba(255, 255, 255, 0.95), transparent 60%),
      linear-gradient(160deg, rgba(198, 212, 255, 0.92), rgba(176, 238, 220, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 10px 26px rgba(10, 14, 30, 0.22), 0 0 24px rgba(60, 110, 255, 0.22);
  }
  .shots-arrows svg { filter: none; }
  .shots-arrows button:hover { border-color: rgba(10, 14, 30, 0.5); }
}
@media (prefers-reduced-transparency: reduce) {
  .seg .thumb, .shots-tabs button[aria-selected="true"], .shots-arrows button { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .deck.enter { animation: none; } .seg .thumb { transition: none; } }
