/* Seeker landing page.
   Colour tokens are theme.py's DARK and LIGHT palettes, verbatim
   (../Seeker/src/seeker/ui/theme.py). tools/contrast.py reads them from
   this file and checks every text pair below against WCAG with the
   app's own contrast function. Dark is the default, as in the app;
   prefers-color-scheme: light swaps in C5's light palette, and the
   app's own theme toggle in the screenshot (#theme) flips either one.
   The block at the end is generated by tools/build_page.py. */

:root {
  color-scheme: dark;
  /* 1 lights the brows, lamps and screen in the dark theme; 0 in the
     light theme turns every glow off. */
  --glow: 1;

  --bg-app: #17191C;
  --bg-sidebar: #101113;
  --bg-surface: #1E2125;
  --bg-surface-2: #282C31;
  --border: #353A40;
  --border-strong: #4C535B;
  --text: #E8EAEC;
  --text-muted: #A0A7AE;
  --accent: #9A7DFF;
  --accent-hover: #AA91FF;
  --accent-pressed: #8A6BF5;
  --on-accent: #120E1F;
  --success: #35D07F;
  --cue: #FFB020;
  --danger: #FF6363;

  /* The app's "panel lettering" (Barlow Semi Condensed) is not a
     system face; these are the installed condensed faces closest to
     it. Avenir Next Condensed ships with every Mac. */
  --font-display: "Avenir Next Condensed", "SF Pro Display Condensed",
    "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui,
    sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  /* theme.py: RADIUS_CONTROL, RADIUS_CARD */
  --radius-control: 4px;
  --radius-card: 6px;
  --gutter: 16px;
  --measure: 62ch;
}

/* Light when the system asks for it, unless flipped; dark when flipped
   from light. The palettes repeat (CSS can't name a block of
   declarations); tools/contrast.py checks every copy against theme.py. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --glow: 0;
    --bg-app: #E8EAEC;
    --bg-sidebar: #DDE0E3;
    --bg-surface: #F9FAFA;
    --bg-surface-2: #F0F2F3;
    --border: #CBD0D5;
    --border-strong: #9BA3AB;
    --text: #15181B;
    --text-muted: #4D555D;
    --accent: #6440E6;
    --accent-hover: #5734D6;
    --accent-pressed: #4A2BBD;
    --on-accent: #FFFFFF;
    --success: #11804A;
    --cue: #AD7400;
    --danger: #C22B2B;
  }
  :root:has(#theme:checked) {
    color-scheme: dark;
    --glow: 1;
    --bg-app: #17191C;
    --bg-sidebar: #101113;
    --bg-surface: #1E2125;
    --bg-surface-2: #282C31;
    --border: #353A40;
    --border-strong: #4C535B;
    --text: #E8EAEC;
    --text-muted: #A0A7AE;
    --accent: #9A7DFF;
    --accent-hover: #AA91FF;
    --accent-pressed: #8A6BF5;
    --on-accent: #120E1F;
    --success: #35D07F;
    --cue: #FFB020;
    --danger: #FF6363;
  }
}
@media not all and (prefers-color-scheme: light) {
  :root:has(#theme:checked) {
    color-scheme: light;
    --glow: 0;
    --bg-app: #E8EAEC;
    --bg-sidebar: #DDE0E3;
    --bg-surface: #F9FAFA;
    --bg-surface-2: #F0F2F3;
    --border: #CBD0D5;
    --border-strong: #9BA3AB;
    --text: #15181B;
    --text-muted: #4D555D;
    --accent: #6440E6;
    --accent-hover: #5734D6;
    --accent-pressed: #4A2BBD;
    --on-accent: #FFFFFF;
    --success: #11804A;
    --cue: #AD7400;
    --danger: #C22B2B;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-control);
  z-index: 1;
}
.skip:focus { top: 12px; color: var(--on-accent); }

/* --- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(32px, 7vw, 88px);
}

.hero h1 {
  position: relative;
  margin: clamp(16px, 2.5vw, 28px) 0 0;
  line-height: 1;
}

/* The wordmark is the page's one loud element: the app's own mark,
   outlined (tools/wordmark.py) and inlined, so it renders the same
   everywhere and takes the page's colours. */
.wordmark {
  display: block;
  width: clamp(240px, 52vw, 600px);
  height: auto;
  overflow: visible;
}
.wordmark-type { fill: var(--text); }
.brows { fill: none; stroke: var(--accent); stroke-width: 76.6; }

/* The brows are the one lit thing: an LED behind a violet lens. */
.brows-glow { stroke-opacity: calc(0.9 * var(--glow)); }
.hero h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 36%;
  top: 15%;
  width: 150%;
  aspect-ratio: 2;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(154 125 255 / calc(0.16 * var(--glow))), rgb(154 125 255 / calc(0.05 * var(--glow))) 55%, transparent);
  pointer-events: none;
}

.pitch {
  max-width: 34ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
}

/* The release: the icon you'll see in your Dock, next to the button
   that gets it. */
.release {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "actions actions" "icon latest";
  align-items: center;
  gap: 20px 14px;
  margin-top: 28px;
}
.release-icon {
  grid-area: icon;
  align-self: start;
  width: 56px;
  margin: -4px -4px -4px 0;
}
@media (min-width: 720px) {
  .release {
    grid-template-areas: "icon actions" "icon latest";
    align-items: start;
    gap: 14px 20px;
  }
  .release-icon { width: 84px; margin: -8px -6px 0 0; }
}

.actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  color: var(--text);
  background: var(--bg-surface-2);
}

/* Accent discipline (theme.py): exactly one primary button per screen. */
.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
}
.button-primary:active {
  border-color: var(--accent-pressed);
  background: var(--accent-pressed);
}

/* Revolut and PayPal (Simple Icons, CC0), in the text colour. */
.logo { width: 1em; height: 1em; flex: none; fill: currentColor; }
.button-support .logos { display: inline-flex; gap: 6px; color: var(--text-muted); }
.button-support:hover .logos { color: var(--text); }

.release-meta { grid-area: latest; }
.latest, .download-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
/* After Download is clicked: the file downloads in place (the link is
   the latest release's Seeker.dmg), and the app isn't notarized, so the
   first launch needs one step in System Settings. */
.download-note {
  max-width: 52ch;
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: var(--bg-surface);
  color: var(--text);
}

/* A control in the screenshot that only works in the real app brings
   the visitor here (the script scrolls), and the button pops; the
   Support links do the same for the two ways to donate. */
#download.pop, #download:target,
.donate .button.pop, #support:target .donate .button {
  animation: pop 0.8s cubic-bezier(.3, .7, .3, 1);
}
@keyframes pop {
  0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  30% { transform: scale(1.16); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 28px 6px rgb(154 125 255 / calc(0.5 * var(--glow))); }
  55% { transform: scale(0.97); }
  75% { transform: scale(1.04); }
  100% { transform: scale(1); box-shadow: 0 0 0 16px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #download.pop, #download:target,
  .donate .button.pop, #support:target .donate .button { animation-name: pop-still; }
  @keyframes pop-still {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    30%, 70% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); }
  }
}

/* --- The deck -------------------------------------------------------- */

.shot { margin: 0; }
.shot-hero { margin-top: clamp(40px, 6vw, 72px); }

.shot figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* The selected playlist as a deck's waveform overview, one segment per
   track, a status lamp under each. Picking a segment reads the track
   out above the strip and finds its row in the screenshot. Until one is
   picked it steps through the set by itself (generated, at the end). */
.deck { margin-bottom: 16px; }

/* What to do next, with a cue lamp blinking as a CDJ's does. */
.cue-line {
  display: flex;
  align-items: center;
  min-height: 1.5em;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.cue-line > span { display: none; align-items: center; gap: 10px; }
.cue-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgb(154 125 255 / calc(0.7 * var(--glow)));
}
.cue-line .moving, .cue-line .narrow { display: none; }
@media (max-width: 799px) {
  .cue-line .wide { display: none; }
  .cue-line .narrow { display: inline; }
}

.readout { display: grid; min-height: 3.2em; margin-bottom: 10px; }
.ro {
  grid-area: 1 / 1;
  display: none;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
}
.ro-n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.ro-n span { color: var(--text-muted); font-weight: 500; }
.ro-t { font-weight: 600; min-width: 0; }
.ro-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
@media (min-width: 720px) {
  .readout { min-height: 1.6em; }
  .ro-s { margin-left: auto; }
}

.strip {
  position: relative;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  min-width: 0;
}
.strip-wave { display: block; width: 100%; height: 56px; }
.wave-have { fill: var(--wave-have, var(--text-muted)); transition: fill 0.2s; }
.wave-dim { fill: var(--wave-dim, var(--border-strong)); transition: fill 0.2s; }
.wave-flat { fill: var(--border-strong); }

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: pointer;
  border-radius: 2px;
}
.seg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
}
.seg:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.strip input:focus-visible + .seg { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The playhead sits at the start of the picked track, like a cue point. */
.playhead {
  position: absolute;
  top: -6px;
  bottom: 6px;
  left: var(--ph);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgb(154 125 255 / calc(0.6 * var(--glow)));
  pointer-events: none;
  transition: left 0.35s cubic-bezier(.3, .7, .2, 1);
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  border: 5px solid transparent;
  border-top: 6px solid var(--accent);
  border-bottom: 0;
}

/* The status lamps, in the app's own vocabulary: SUCCESS is play,
   CUE is cue (solid while working, a ring while waiting on you),
   DANGER is not found. Lamps need only 3:1 (non-text). Lit lamps glow
   in the dark theme, as on hardware. */
.lamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.lamps li { display: flex; align-items: center; gap: 8px; }
.lamps li::before, .ro-s::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px 0 currentColor;
}
.lamp-play::before, .seg.lamp-play::after { background: var(--success); color: rgb(53 208 127 / calc(0.6 * var(--glow))); }
.lamp-cue::before, .seg.lamp-cue::after { background: var(--cue); color: rgb(255 176 32 / calc(0.6 * var(--glow))); }
.lamp-off::before, .seg.lamp-off::after { background: var(--danger); color: rgb(255 99 99 / calc(0.6 * var(--glow))); }
.lamps .lamp-wait::before, .ro-s.lamp-wait::before { box-shadow: inset 0 0 0 2px var(--cue), 0 0 8px 0 rgb(255 176 32 / calc(0.45 * var(--glow))); }
.seg:not(.lamp-wait)::after { box-shadow: 0 0 6px 0 currentColor; }
.seg.lamp-wait::after { box-shadow: inset 0 0 0 1px var(--cue); height: 5px; bottom: -1px; }

/* --- The screenshot -------------------------------------------------- */

.pages { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Every page is painted, stacked in one cell, the picked one on top
   (generated), so a switch loads and decodes nothing. Each theme's
   pages are a layer: the system theme's always shows; the other shows,
   on top, once the visitor flips the theme. Its images load on that
   first flip, and until each arrives the layer beneath shows through. */
.screen {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  /* Screen light: the app lights the surface it sits on. */
  box-shadow: 0 0 0 1px rgb(255 255 255 / calc(0.03 * var(--glow))), 0 30px 80px -30px rgb(154 125 255 / calc(0.28 * var(--glow)));
}
.set { grid-area: 1 / 1; display: grid; isolation: isolate; z-index: 0; }
.scr { grid-area: 1 / 1; width: 100%; }
.set-light { display: none; z-index: 1; }
:root:has(#theme:checked) .set-light { display: grid; }
.to-dark { display: none; }
:root:has(#theme:checked) .to-light { display: none; }
:root:has(#theme:checked) .to-dark { display: inline; }
@media (prefers-color-scheme: light) {
  .set-light { display: grid; z-index: 0; }
  .set-dark { display: none; z-index: 1; }
  :root:has(#theme:checked) .set-dark { display: grid; }
  .to-light { display: none; }
  .to-dark { display: inline; }
  :root:has(#theme:checked) .to-light { display: inline; }
  :root:has(#theme:checked) .to-dark { display: none; }
}
.desc, .cap { display: none; }

/* The picked track's row, outlined in the screenshot (positioned from
   tools/screen-geometry.json). */
.row-hl {
  position: absolute;
  z-index: 2;
  top: var(--row-top, 0);
  height: var(--row-h, 0);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 14px rgb(154 125 255 / calc(0.45 * var(--glow)));
  pointer-events: none;
  transition: top 0.35s cubic-bezier(.3, .7, .2, 1);
}

/* What the picture answers to, laid over it from the app's own
   geometry: the sidebar, the theme toggle and Settings' tabs switch
   pages; the track list's rows pick tracks; every other control points
   at the Download button. */
.hotspots, .rowspots, .dz-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.dz-layer { z-index: 3; }
.hs, .rs, .dz {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 4px;
}
.rs { left: 0; right: 0; border-radius: 3px; }
.hs-theme { border-radius: 50%; }
.hs-tab { display: none; border-radius: 4px 4px 0 0; }
.shot-hero:has([id^="pg-settings"]:checked) .hs-tab { display: block; }
.dzs { display: none; }
.hs:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.rs:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dz:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.shot-hero:has(#theme:focus-visible) :is(.hs-theme, .tab-theme) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The row outline and the rows belong to the Dashboard. Elsewhere the
   strip rests, but still answers: picking a track goes back to the
   Dashboard (the script), so it brightens on hover. */
.shot-hero:not(:has(#pg-dashboard:checked)) :is(.row-hl, .rowspots) { display: none; }
.shot-hero:not(:has(#pg-dashboard:checked)) .deck { opacity: 0.4; transition: opacity 0.2s; }
.shot-hero:not(:has(#pg-dashboard:checked)) .deck:hover { opacity: 0.85; }

/* On a phone the picture's sidebar is too small to tap: a row of page
   names above it does the same job, Settings' tabs included. */
.tabs {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--gutter)) 12px;
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text-muted);
  font-size: 0.9375rem;
  cursor: pointer;
}
.tab-theme { color: var(--text); }
.tab-sub { display: none; font-size: 0.875rem; }
.shot-hero:has([id^="pg-settings"]:checked) .tab-sub { display: block; }
@media (min-width: 800px) {
  .tabs { display: none; }
}
@media (max-width: 799px) {
  .hotspots { display: none; }
}

/* One sequence on load: the brows power on like a deck's lamps, then
   the strip draws in left to right as if the set were being analysed. */
@media (prefers-reduced-motion: no-preference) {
  .brows, .hero h1::before { animation: power-on 1.1s 0.25s both; }
  .strip-wave { animation: analyse 0.9s 0.7s cubic-bezier(.4, 0, .2, 1) both; }
  .playhead { animation: appear 0.3s 1.5s both; }
  @keyframes power-on {
    0% { opacity: 0.08; }
    12% { opacity: 1; }
    20% { opacity: 0.15; }
    34% { opacity: 1; }
    42% { opacity: 0.5; }
    60%, 100% { opacity: 1; }
  }
  @keyframes analyse { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes appear { from { opacity: 0; } }
  @keyframes cue-blink { 50% { opacity: 0.2; } }
}
@media (prefers-reduced-motion: reduce) {
  .playhead, .row-hl { transition: none; }
}

/* --- Sections -------------------------------------------------------- */

.section {
  padding-block: clamp(48px, 8vw, 96px) 0;
}

/* Panel lettering. */
.section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Label | content on wide screens: the title is the row's label. */
@media (min-width: 800px) {
  .row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 3fr;
    gap: 32px;
    align-items: baseline;
  }
  .row h2 { margin: 0; }
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.list li {
  padding-block: 14px;
  border-top: 1px solid var(--border);
}
.list li:last-child { border-bottom: 1px solid var(--border); }

.list strong { font-weight: 600; }

.list .note {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

#support { scroll-margin-top: 24px; }
.support .lead { max-width: var(--measure); margin: 0 0 20px; }
.donate { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.donate .logo { width: 1.1em; height: 1.1em; }
.donate .button:nth-child(2) { animation-delay: 0.08s; }

/* --- Footer ---------------------------------------------------------- */

.footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding-block: 32px 40px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-note {
  max-width: var(--measure);
  margin: 16px 0 0;
}

/* --- 404 ------------------------------------------------------------- */

.missing {
  min-height: 70vh;
  padding-top: clamp(48px, 10vw, 120px);
}

.missing .wordmark { width: clamp(160px, 30vw, 280px); }

.missing h1 {
  margin: 40px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.missing p { max-width: var(--measure); }

.missing .actions { margin-top: 28px; }

/* build_page.py: generated */
/* A picked track: the playhead, the row outline, its readout, its
   waveform brighter. */
.shot-hero:has(#t1:checked) { --ph: 0.00%; --row-top: 31.625%; --row-h: 4.500%; }
.shot-hero:has(#t1:checked) .ro-1 { display: flex; }
.shot-hero:has(#t1:checked) .w1 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t2:checked) { --ph: 12.66%; --row-top: 36.250%; --row-h: 4.625%; }
.shot-hero:has(#t2:checked) .ro-2 { display: flex; }
.shot-hero:has(#t2:checked) .w2 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t3:checked) { --ph: 24.41%; --row-top: 41.000%; --row-h: 4.500%; }
.shot-hero:has(#t3:checked) .ro-3 { display: flex; }
.shot-hero:has(#t3:checked) .w3 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t4:checked) { --ph: 37.98%; --row-top: 45.625%; --row-h: 4.500%; }
.shot-hero:has(#t4:checked) .ro-4 { display: flex; }
.shot-hero:has(#t4:checked) .w4 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t5:checked) { --ph: 50.19%; --row-top: 50.250%; --row-h: 4.500%; }
.shot-hero:has(#t5:checked) .ro-5 { display: flex; }
.shot-hero:has(#t5:checked) .w5 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t6:checked) { --ph: 61.49%; --row-top: 54.875%; --row-h: 4.500%; }
.shot-hero:has(#t6:checked) .ro-6 { display: flex; }
.shot-hero:has(#t6:checked) .w6 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t7:checked) { --ph: 74.60%; --row-top: 59.500%; --row-h: 4.500%; }
.shot-hero:has(#t7:checked) .ro-7 { display: flex; }
.shot-hero:has(#t7:checked) .w7 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
.shot-hero:has(#t8:checked) { --ph: 88.85%; --row-top: 64.125%; --row-h: 4.500%; }
.shot-hero:has(#t8:checked) .ro-8 { display: flex; }
.shot-hero:has(#t8:checked) .w8 { --wave-have: var(--text); --wave-dim: var(--text-muted); }

/* A picked page: its image on top, its description, caption and
   controls; its tab in the phone's row. */
.shot-hero:has(#pg-dashboard:checked) .scr-dashboard { z-index: 1; }
.shot-hero:has(#pg-dashboard:checked) :is(.desc-dashboard, .cap-dashboard, .dzs-dashboard) { display: block; }
.shot-hero:has(#pg-dashboard:checked) .tab-dashboard { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-dashboard:focus-visible) :is(.hs-dashboard, .tab-dashboard) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-library:checked) .scr-library { z-index: 1; }
.shot-hero:has(#pg-library:checked) :is(.desc-library, .cap-library, .dzs-library) { display: block; }
.shot-hero:has(#pg-library:checked) .tab-library { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-library:focus-visible) :is(.hs-library, .tab-library) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-search:checked) .scr-search { z-index: 1; }
.shot-hero:has(#pg-search:checked) :is(.desc-search, .cap-search, .dzs-search) { display: block; }
.shot-hero:has(#pg-search:checked) .tab-search { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-search:focus-visible) :is(.hs-search, .tab-search) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-downloads:checked) .scr-downloads { z-index: 1; }
.shot-hero:has(#pg-downloads:checked) :is(.desc-downloads, .cap-downloads, .dzs-downloads) { display: block; }
.shot-hero:has(#pg-downloads:checked) .tab-downloads { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-downloads:focus-visible) :is(.hs-downloads, .tab-downloads) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-review:checked) .scr-review { z-index: 1; }
.shot-hero:has(#pg-review:checked) :is(.desc-review, .cap-review, .dzs-review) { display: block; }
.shot-hero:has(#pg-review:checked) .tab-review { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-review:focus-visible) :is(.hs-review, .tab-review) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-duplicates:checked) .scr-duplicates { z-index: 1; }
.shot-hero:has(#pg-duplicates:checked) :is(.desc-duplicates, .cap-duplicates, .dzs-duplicates) { display: block; }
.shot-hero:has(#pg-duplicates:checked) .tab-duplicates { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-duplicates:focus-visible) :is(.hs-duplicates, .tab-duplicates) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-sharing:checked) .scr-sharing { z-index: 1; }
.shot-hero:has(#pg-sharing:checked) :is(.desc-sharing, .cap-sharing, .dzs-sharing) { display: block; }
.shot-hero:has(#pg-sharing:checked) .tab-sharing { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-sharing:focus-visible) :is(.hs-sharing, .tab-sharing) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-history:checked) .scr-history { z-index: 1; }
.shot-hero:has(#pg-history:checked) :is(.desc-history, .cap-history, .dzs-history) { display: block; }
.shot-hero:has(#pg-history:checked) .tab-history { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-history:focus-visible) :is(.hs-history, .tab-history) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-help:checked) .scr-help { z-index: 1; }
.shot-hero:has(#pg-help:checked) :is(.desc-help, .cap-help, .dzs-help) { display: block; }
.shot-hero:has(#pg-help:checked) .tab-help { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-help:focus-visible) :is(.hs-help, .tab-help) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-support:checked) .scr-support { z-index: 1; }
.shot-hero:has(#pg-support:checked) :is(.desc-support, .cap-support, .dzs-support) { display: block; }
.shot-hero:has(#pg-support:checked) .tab-support { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-support:focus-visible) :is(.hs-support, .tab-support) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-settings-general:checked) .scr-settings-general { z-index: 1; }
.shot-hero:has(#pg-settings-general:checked) :is(.desc-settings-general, .cap-settings-general, .dzs-settings-general) { display: block; }
.shot-hero:has(#pg-settings-general:checked) .tab-settings-general { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-settings-general:focus-visible) :is(.hs-settings-general, .tab-settings-general) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-settings-library:checked) .scr-settings-library { z-index: 1; }
.shot-hero:has(#pg-settings-library:checked) :is(.desc-settings-library, .cap-settings-library, .dzs-settings-library) { display: block; }
.shot-hero:has(#pg-settings-library:checked) .tab-settings-library { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-settings-library:focus-visible) :is(.hs-settings-library, .tab-settings-library) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-settings-connections:checked) .scr-settings-connections { z-index: 1; }
.shot-hero:has(#pg-settings-connections:checked) :is(.desc-settings-connections, .cap-settings-connections, .dzs-settings-connections) { display: block; }
.shot-hero:has(#pg-settings-connections:checked) .tab-settings-connections { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-settings-connections:focus-visible) :is(.hs-settings-connections, .tab-settings-connections) { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-hero:has(#pg-settings-matching:checked) .scr-settings-matching { z-index: 1; }
.shot-hero:has(#pg-settings-matching:checked) :is(.desc-settings-matching, .cap-settings-matching, .dzs-settings-matching) { display: block; }
.shot-hero:has(#pg-settings-matching:checked) .tab-settings-matching { color: var(--text); border-color: var(--accent); background: var(--bg-surface-2); }
.shot-hero:has(#pg-settings-matching:focus-visible) :is(.hs-settings-matching, .tab-settings-matching) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Attract mode: the strip steps through the set until a track is picked.
   Still, it rests on track 3. */
.shot-hero:not(:has(input[name=track]:checked)) .cue-line .when-attract { display: inline-flex; }
.shot-hero:has(input[name=track]:checked) .cue-line .when-picked { display: inline-flex; }
.shot-hero:not(:has(input[name=track]:checked)) .ro-3 { display: flex; }
.shot-hero:not(:has(input[name=track]:checked)) { --ph: 24.41%; --row-top: 41.000%; --row-h: 4.500%; }
.shot-hero:not(:has(input[name=track]:checked)) .w3 { --wave-have: var(--text); --wave-dim: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .shot-hero:not(:has(input[name=track]:checked)) .cue-line .moving { display: inline; }
  .shot-hero:not(:has(input[name=track]:checked)) .cue-line .still { display: none; }
  .shot-hero:not(:has(input[name=track]:checked)) .cue-dot { animation: cue-blink 1s steps(1) infinite; }
  .shot-hero:not(:has(input[name=track]:checked)) .ro { display: flex; opacity: 0; }
  .shot-hero:not(:has(input[name=track]:checked)) .w3 { --wave-have: initial; --wave-dim: initial; }
  .shot-hero:not(:has(input[name=track]:checked)) :is(.playhead, .row-hl, .ro, .strip-wave g) { animation-duration: 17.6s; animation-delay: 1.9s; animation-iteration-count: infinite; animation-fill-mode: both; }
  .shot-hero:not(:has(input[name=track]:checked)) .playhead { animation-name: attract-ph, appear; animation-duration: 17.6s, 0.3s; animation-iteration-count: infinite, 1; animation-timing-function: ease-in-out; }
  .shot-hero:not(:has(input[name=track]:checked)) .row-hl { animation-name: attract-row; animation-timing-function: ease-in-out; height: 4.516%; }
  .shot-hero:has(.strip:hover, .rowspots:hover) :is(.playhead, .row-hl, .ro, .strip-wave g) { animation-play-state: paused; }
  @keyframes attract-ph {
    0.000% { left: 0.000%; }
    9.943% { left: 0.000%; }
    12.500% { left: 12.661%; }
    22.443% { left: 12.661%; }
    25.000% { left: 24.412%; }
    34.943% { left: 24.412%; }
    37.500% { left: 37.983%; }
    47.443% { left: 37.983%; }
    50.000% { left: 50.189%; }
    59.943% { left: 50.189%; }
    62.500% { left: 61.486%; }
    72.443% { left: 61.486%; }
    75.000% { left: 74.601%; }
    84.943% { left: 74.601%; }
    87.500% { left: 88.855%; }
    97.443% { left: 88.855%; }
    100% { left: 0.000%; }
  }
  @keyframes attract-row {
    0.000% { top: 31.625%; }
    9.943% { top: 31.625%; }
    12.500% { top: 36.250%; }
    22.443% { top: 36.250%; }
    25.000% { top: 41.000%; }
    34.943% { top: 41.000%; }
    37.500% { top: 45.625%; }
    47.443% { top: 45.625%; }
    50.000% { top: 50.250%; }
    59.943% { top: 50.250%; }
    62.500% { top: 54.875%; }
    72.443% { top: 54.875%; }
    75.000% { top: 59.500%; }
    84.943% { top: 59.500%; }
    87.500% { top: 64.125%; }
    97.443% { top: 64.125%; }
    100% { top: 31.625%; }
  }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-1 { animation-name: attract-ro1; animation-timing-function: step-end; }
  @keyframes attract-ro1 { 0% { opacity: 1; } 12.500% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w1 { animation-name: attract-w1; animation-timing-function: step-end; }
  @keyframes attract-w1 { 0% { opacity: 1; } 12.500% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-2 { animation-name: attract-ro2; animation-timing-function: step-end; }
  @keyframes attract-ro2 { 0% { opacity: 0; } 12.500% { opacity: 1; } 25.000% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w2 { animation-name: attract-w2; animation-timing-function: step-end; }
  @keyframes attract-w2 { 0% { opacity: 0.5; } 12.500% { opacity: 1; } 25.000% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-3 { animation-name: attract-ro3; animation-timing-function: step-end; }
  @keyframes attract-ro3 { 0% { opacity: 0; } 25.000% { opacity: 1; } 37.500% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w3 { animation-name: attract-w3; animation-timing-function: step-end; }
  @keyframes attract-w3 { 0% { opacity: 0.5; } 25.000% { opacity: 1; } 37.500% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-4 { animation-name: attract-ro4; animation-timing-function: step-end; }
  @keyframes attract-ro4 { 0% { opacity: 0; } 37.500% { opacity: 1; } 50.000% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w4 { animation-name: attract-w4; animation-timing-function: step-end; }
  @keyframes attract-w4 { 0% { opacity: 0.5; } 37.500% { opacity: 1; } 50.000% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-5 { animation-name: attract-ro5; animation-timing-function: step-end; }
  @keyframes attract-ro5 { 0% { opacity: 0; } 50.000% { opacity: 1; } 62.500% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w5 { animation-name: attract-w5; animation-timing-function: step-end; }
  @keyframes attract-w5 { 0% { opacity: 0.5; } 50.000% { opacity: 1; } 62.500% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-6 { animation-name: attract-ro6; animation-timing-function: step-end; }
  @keyframes attract-ro6 { 0% { opacity: 0; } 62.500% { opacity: 1; } 75.000% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w6 { animation-name: attract-w6; animation-timing-function: step-end; }
  @keyframes attract-w6 { 0% { opacity: 0.5; } 62.500% { opacity: 1; } 75.000% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-7 { animation-name: attract-ro7; animation-timing-function: step-end; }
  @keyframes attract-ro7 { 0% { opacity: 0; } 75.000% { opacity: 1; } 87.500% { opacity: 0; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w7 { animation-name: attract-w7; animation-timing-function: step-end; }
  @keyframes attract-w7 { 0% { opacity: 0.5; } 75.000% { opacity: 1; } 87.500% { opacity: 0.5; } 100% { opacity: 0.5; } }
  .shot-hero:not(:has(input[name=track]:checked)) .ro-8 { animation-name: attract-ro8; animation-timing-function: step-end; }
  @keyframes attract-ro8 { 0% { opacity: 0; } 87.500% { opacity: 1; } 100% { opacity: 0; } }
  .shot-hero:not(:has(input[name=track]:checked)) .strip-wave .w8 { animation-name: attract-w8; animation-timing-function: step-end; }
  @keyframes attract-w8 { 0% { opacity: 0.5; } 87.500% { opacity: 1; } 100% { opacity: 0.5; } }
}
/* /build_page.py: generated */
