/* 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;
  --todo: #2A9D8F; --todo-hover: #3FB5A6; --todo-line: #1B6B61;
  --todo-tint: #D4EFEB; --todo-ink: #1B6B61; --todo-edge: #8FCFC6;

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

  --moon: block; --sun: 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;
  --todo-tint: #12302C; --todo-ink: #4CC2B2; --todo-edge: #245A52;
  --live-bg: #143321; --live-fg: #6EE7A0; --soon-bg: #333333; --soon-fg: #D4D4D4;
  --moon: none; --sun: 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;
    --todo-tint: #12302C; --todo-ink: #4CC2B2; --todo-edge: #245A52;
    --live-bg: #143321; --live-fg: #6EE7A0; --soon-bg: #333333; --soon-fg: #D4D4D4;
    --moon: none; --sun: 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-todo { --accent: var(--todo); --accent-hover: var(--todo-hover); --accent-line: var(--todo-line); --tint: var(--todo-tint); --ink: var(--todo-ink); --edge: var(--todo-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; gap: 10px; min-height: 44px; text-decoration: none; }
.logo__mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}
.logo__word { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.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; }

.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);
}

.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);
  font-size: 0.75rem;
  font-weight: 500;
}
.shot::after { border-radius: 16px; }

.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; }

/* ---------- 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 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; }

/* ---------- 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; }

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

@media (max-width: 374px) {
  :root { --gutter: 12px; }
  .logo { gap: 8px; }
  .logo__word { font-size: 1.0625rem; }
  .nav { gap: 0; }
  .navlink { padding: 0 4px; }
  .site-header__end { gap: 2px; }
  .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(3, 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)); }
}

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

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