/* PocketKit site. Tokens follow the PocketKit design system (C5 final, option B). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-var.3100e775e8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-var.06b16db7a9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --text: #171717;
  --text-2: #737373;
  --on-tint-2: #525252;
  --focus: #2563EB;
  --pat: #D4D4D4;
  --on-accent: #171717;

  --dice: #F0883E; --dice-hover: #D9702A; --dice-line: #9A4A12;
  --dice-tint: #FDE9D8; --dice-ink: #9A4A12; --dice-edge: #EBB78F;
  --park: #3B82F6; --park-hover: #60A5FA; --park-line: #1D4ED8;
  --park-tint: #DBEAFE; --park-ink: #1D4ED8; --park-edge: #9DBFF7;
  --tidy-tiles: #A78BFA; --tidy-tiles-hover: #C4B5FD; --tidy-tiles-line: #6D28D9;
  --tidy-tiles-tint: #EDE9FE; --tidy-tiles-ink: #6D28D9; --tidy-tiles-edge: #C4B5FD;
  --language: #B4EBC8; --language-hover: #CBF2D9; --language-line: #1B6B43;
  --language-tint: #E8F8EE; --language-ink: #1B6B43; --language-edge: #8FD9AE;

  --live-bg: #DCFCE7; --live-fg: #166534;
  --soon-bg: #F5F5F5; --soon-fg: #525252;

  --moon: block; --sun: none;
  --logo-light: block; --logo-dark: none;

  --radius-card: 18px;
  --gutter: 20px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1A1A1A; --surface: #262626; --border: #404040; --border-strong: #525252;
  --text: #FAFAFA; --text-2: #A3A3A3; --on-tint-2: #D4D4D4; --focus: #7FAAF5; --pat: #3A3A3A;
  --dice-tint: #3A2616; --dice-ink: #F29A5A; --dice-edge: #6B4020;
  --park-tint: #172A4A; --park-ink: #7FAAF5; --park-edge: #2E4A7A;
  --tidy-tiles-tint: #261C40; --tidy-tiles-ink: #B9A3FB; --tidy-tiles-edge: #4A3A7A;
  --language-tint: #1A2A21; --language-ink: #8FD9AE; --language-edge: #2F5440;
  --live-bg: #143321; --live-fg: #6EE7A0; --soon-bg: #333333; --soon-fg: #D4D4D4;
  --moon: none; --sun: block;
  --logo-light: none; --logo-dark: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1A1A1A; --surface: #262626; --border: #404040; --border-strong: #525252;
    --text: #FAFAFA; --text-2: #A3A3A3; --on-tint-2: #D4D4D4; --focus: #7FAAF5; --pat: #3A3A3A;
    --dice-tint: #3A2616; --dice-ink: #F29A5A; --dice-edge: #6B4020;
    --park-tint: #172A4A; --park-ink: #7FAAF5; --park-edge: #2E4A7A;
    --tidy-tiles-tint: #261C40; --tidy-tiles-ink: #B9A3FB; --tidy-tiles-edge: #4A3A7A;
    --language-tint: #1A2A21; --language-ink: #8FD9AE; --language-edge: #2F5440;
    --live-bg: #143321; --live-fg: #6EE7A0; --soon-bg: #333333; --soon-fg: #D4D4D4;
    --moon: none; --sun: block;
    --logo-light: none; --logo-dark: block;
  }
}

/* Per-app accent, set on any element with an app class. */
.app-dice { --accent: var(--dice); --accent-hover: var(--dice-hover); --accent-line: var(--dice-line); --tint: var(--dice-tint); --ink: var(--dice-ink); --edge: var(--dice-edge); }
.app-park { --accent: var(--park); --accent-hover: var(--park-hover); --accent-line: var(--park-line); --tint: var(--park-tint); --ink: var(--park-ink); --edge: var(--park-edge); }
.app-tidy-tiles { --accent: var(--tidy-tiles); --accent-hover: var(--tidy-tiles-hover); --accent-line: var(--tidy-tiles-line); --tint: var(--tidy-tiles-tint); --ink: var(--tidy-tiles-ink); --edge: var(--tidy-tiles-edge); }
.app-language { --accent: var(--language); --accent-hover: var(--language-hover); --accent-line: var(--language-line); --tint: var(--language-tint); --ink: var(--language-ink); --edge: var(--language-edge); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Faint pattern of app icons behind everything. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--pat);
  -webkit-mask: url(/assets/img/pattern.0623052c48.svg) 0 0 / 140px 150px repeat;
  mask: url(/assets/img/pattern.0623052c48.svg) 0 0 / 140px 150px repeat;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); }
h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
h3, .h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { flex-shrink: 0; }
img { max-width: 100%; height: auto; }

.muted { color: var(--text-2); font-size: 0.875rem; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-block: 12px;
  padding-right: calc(var(--gutter) - 4px);
}
.site-header__end { display: flex; align-items: center; gap: 4px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.logo__img { height: 36px; width: auto; }
.logo__img--light { display: var(--logo-light); }
.logo__img--dark { display: var(--logo-dark); }

.nav { display: flex; gap: 4px; }
.navlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.navlink:hover, .navlink[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-nav .navlink { font-weight: 500; text-decoration: underline; padding: 0 4px; }

/* Language switcher: a text pill that matches the theme toggle beside it. */
.lang-switch {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--text-2); text-decoration: underline; }

.theme-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--text-2); }
.theme-toggle:active { transform: rotate(-20deg); }
.theme-toggle__moon { display: var(--moon); }
.theme-toggle__sun { display: var(--sun); }

/* ---------- Layout ---------- */

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 36px;
}
.stack { display: flex; flex-direction: column; gap: 24px; }

.panel {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 16px;
}

/* Dashed "stitch" drawn inside tinted shapes. */
.stitched { position: relative; }
.stitched::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--edge, var(--border));
  border-radius: 12px;
  pointer-events: none;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}
.peeks {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: -34px;
}
.peek {
  width: 76px; height: 92px;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 14px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  animation: bob 3.2s ease-in-out infinite;
}
.peek svg { width: 34px; height: 34px; }
.peek-slot:nth-child(1) { transform: rotate(-8deg); }
.peek-slot:nth-child(2) { transform: translateY(-14px); }
.peek-slot:nth-child(3) { transform: rotate(7deg); }
.peek-slot:nth-child(2) .peek { animation-delay: .4s; }
.peek-slot:nth-child(3) .peek { animation-delay: .8s; }
.peeks--single .peek-slot { transform: none; }
.peeks--single .peek { width: 96px; height: 112px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.pocket {
  --pocket-radius: 18px 18px 50% 50% / 18px 18px 34% 34%;
  position: relative;
  z-index: 1;
  width: calc(100% + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 52px 28px 76px;
  background: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: var(--pocket-radius);
  color: var(--on-accent);
  text-align: center;
}
.pocket::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(23, 23, 23, .45);
  border-radius: 12px 12px 50% 50% / 12px 12px 34% 34%;
  pointer-events: none;
}
.pocket h1 {
  color: var(--on-accent);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pocket--page { width: 100%; padding: 56px 28px 72px; }
.pocket--page h1 { font-size: 1.875rem; line-height: 1.2; letter-spacing: 0; }
.pocket__meta { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }

/* ---------- App cards ---------- */

.app-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.app-grid > li { display: flex; }
.card {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--tint);
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--edge);
  border-radius: 12px;
  pointer-events: none;
}
.card:hover { transform: translateY(-3px) rotate(-0.6deg); }
.card:active { transform: none; filter: brightness(.97); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex-grow: 1; }
.card__body p { font-size: 0.875rem; color: var(--on-tint-2); }
.card__body .badge { margin-top: 6px; }

.app-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.app-icon--sm { width: 44px; height: 44px; }
.app-icon--sm svg { width: 22px; height: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.badge--live { background: var(--live-bg); color: var(--live-fg); }
.badge--soon { background: var(--soon-bg); color: var(--soon-fg); }

/* ---------- About block ---------- */

.about {
  --edge: var(--border);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
}
.about__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 40px; }
.prose p { font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.about__cols p + p { margin-top: 0; }

/* ---------- App page ---------- */

.back {
  align-self: flex-start;
  margin-top: 16px;
  padding: 0 16px 0 8px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
}
.app-layout { display: flex; flex-direction: column; gap: 24px; }
.app-layout__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.play {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
}
.play__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.play__small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.play__big { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; }
a.play {
  background: var(--accent);
  border: 1px solid var(--accent-line);
  color: var(--on-accent);
  transition: background-color .16s ease, transform .12s ease;
}
a.play:hover { background: var(--accent-hover); color: var(--on-accent); }
a.play:active { transform: translateY(1px); }
.play--soon { background: var(--surface); border: 1.5px dashed var(--text-2); color: var(--text); }
.play-note { font-size: 0.875rem; color: var(--text-2); text-align: center; margin-top: 8px; }

.features { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
  border-radius: 9999px;
  background: var(--tint);
  color: var(--ink);
}

.video-panel { display: flex; flex-direction: column; gap: 12px; }
.video-panel h2 { margin: 0; }
.video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.video-note { margin: 0; font-size: 0.8125rem; color: var(--text-2); }
.shots-panel { padding: 18px 0 10px; }
.shots-panel h2 { padding: 0 16px; }
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 16px 8px;
  scroll-padding-left: 16px;
  scrollbar-width: thin;
}
.shots > li { flex-shrink: 0; scroll-snap-align: start; }
.shot {
  position: relative;
  width: 168px; height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--tint);
  color: var(--on-tint-2);
  padding: 0 16px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
}
.shot::after { border-radius: 16px; }
.shot-btn { display: block; padding: 0; border: 0; background: none; border-radius: 22px; cursor: zoom-in; font: inherit; color: inherit; }
.shot-btn:focus-visible { outline-offset: 1px; }
.shot--img { display: block; width: auto; height: 340px; aspect-ratio: 1 / 2; padding: 0; object-fit: cover; }

/* Dots under a scrolling strip (hidden by script when nothing scrolls). */
.shots-dots { display: flex; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.shots-dots[hidden] { display: none; }
.shots-dot {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer;
}
.shots-dot span {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong); border: 1px solid var(--text-2);
  transition: transform 0.15s, background-color 0.15s;
}
.shots-dot[aria-current="true"] span { background: var(--accent-line); border-color: var(--accent-line); transform: scale(1.4); }

/* ---------- Lightbox ---------- */

.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0;
  background: transparent; color: var(--text);
  overscroll-behavior: contain;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox__fig { flex: 1 1 0; min-height: 0; width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 22px; background: var(--surface);
}
.lightbox__nav { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.lightbox__count { margin: 0; min-width: 11rem; text-align: center; font-size: 0.875rem; font-weight: 500; color: #FAFAFA; }
.lightbox__btn {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.lightbox__btn:hover { background: var(--bg); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { align-self: flex-end; }
.lightbox :focus-visible { outline-color: #FFFFFF; outline-offset: 2px; }
.lightbox__btn:focus-visible { outline: 3px solid #FFFFFF; box-shadow: 0 0 0 6px #2563EB; }

.note-card {
  --edge: var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
}
.note-card__head { display: flex; align-items: center; gap: 10px; }
.note-card__head svg { color: var(--ink, var(--text)); }
.note-card p { font-size: 0.875rem; color: var(--text-2); }
.note-card .navlink { align-self: flex-start; padding: 0; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 4px; }
.faq h2 { margin: 0 0 8px; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink, var(--text));
  border-bottom: 2px solid var(--ink, var(--text));
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:focus-visible { outline-offset: 0; border-radius: 6px; }
.faq__item p { margin: 0; padding: 0 0 16px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* ---------- Privacy ---------- */

.chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.chips .navlink {
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
}
/* Sections without an app class fall back to neutral colours. */
.policy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--tint, var(--surface));
  border: 1px solid var(--edge, var(--border-strong));
  border-radius: var(--radius-card);
  scroll-margin-top: 16px;
}
.policy__head { display: flex; align-items: center; gap: 12px; }
.policy__head h2 { font-size: 1.25rem; }
.policy .policy__updated { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.policy h3 { font-size: 1rem; margin-top: 6px; }
.policy p, .policy li { font-size: 0.875rem; color: var(--on-tint-2); }
.policy ul { list-style: disc; padding-left: 20px; }
.policy ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }

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

.site-footer-wrap { padding-bottom: 20px; position: relative; z-index: 2; }
.site-footer { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 16px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Phones: room for the language switcher ---------- */

@media (max-width: 419px) {
  .logo__img { height: 28px; }
  .nav { gap: 0; }
  .navlink { padding: 0 3px; font-size: 0.8125rem; }
  .site-header__end { gap: 0; }
  .site-header__inner { gap: 4px; }
  .lang-switch { min-width: 36px; padding: 0 4px; border-color: transparent; background: none; }
  .theme-toggle { width: 40px; height: 40px; }
}

/* ---------- Narrow phones ---------- */

@media (max-width: 374px) {
  :root { --gutter: 12px; }
  .logo__img { height: 28px; }
  .nav { gap: 0; }
  .navlink { padding: 0 4px; }
  .site-header__end { gap: 0; }
  .site-header__inner { gap: 4px; }
  .lang-switch { min-width: 32px; padding: 0 4px; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav li:last-child { display: none; } /* Privacy: the footer has it, and 320px has no room */
  .pocket { width: 100%; padding-inline: 20px; }
  .pocket h1 { font-size: 1.875rem; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  main { gap: 48px; padding-bottom: 40px; }
  .panel { padding: 24px; }
  .hero { padding-top: 40px; }
  .peek { width: 92px; height: 110px; }
  .pocket { width: 760px; max-width: 100%; padding: 72px 64px 104px; }
  .pocket h1 { font-size: 3.5rem; }
  .pocket p { font-size: 1.1875rem; }
  .pocket--page { width: 100%; padding: 72px 48px 96px; }
  .pocket--page h1 { font-size: 2.75rem; }
  .pocket--page p { font-size: 1.125rem; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .app-grid .card { flex-direction: column; align-items: flex-start; }
  .about { padding: 36px 40px; }
  .about__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .app-layout__col:first-child { padding-top: 24px; }
  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; }
  .site-footer-wrap { padding-bottom: 28px; }
  .privacy-main { max-width: calc(760px + 2 * var(--gutter)); }
}

@media (min-width: 1100px) {
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .peek { animation: none; }
  .card, .theme-toggle, a.play, .shots-dot span { transition: none; }
  .card:hover, .theme-toggle:active, a.play:active { transform: none; }
}

/* ---------- Guides ---------- */

.guide-main { max-width: calc(760px + 2 * var(--gutter)); }
.guide.stack { gap: 28px; }
.guide section.stack { gap: 12px; }
.guide .prose p, .guide p { line-height: 1.6; }
.steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
  line-height: 1.6;
  color: var(--text-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
}
.steps strong { color: var(--text); font-weight: 600; }
.guide-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.guide-shots img {
  display: block;
  height: 320px;
  width: auto;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}
.guide-links { display: flex; flex-direction: column; gap: 8px; }
.guide-links a { font-size: 1rem; }
@media (min-width: 1100px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A card with its own button inside: the title link is stretched over the card, the button sits above it. */
.card__link { color: inherit; text-decoration: none; }
.card__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card__body .play--card { position: relative; z-index: 2; width: 100%; min-height: 48px; margin-top: 14px; padding: 6px 16px; }
.play--card .play__big { font-size: 1rem; }
