/* balaya.app: the app's "booth" look (app/src/theme/tokens.ts). Warm black, paper prints around
   every photo, one cobalt accent used as fields. Funnel Display for headings, Funnel Sans for text
   (self-hosted, OFL). Logical properties throughout, so a right-to-left language only needs
   _meta.dir = "rtl". Only transform and opacity are animated. */

@font-face {
  /* Wordmark only ("balaya"), Nunito Black, latin subset (OFL, public/fonts/OFL-nunito.txt) */
  font-family: 'Nunito Wordmark';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('/fonts/nunito-black.woff2') format('woff2');
}
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-display.woff2) format('woff2-variations');
  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;
}
/* Latin Extended (pl, tr…): only downloaded when a page uses one of these letters. */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-display-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-sans.woff2) format('woff2-variations');
  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: 'Funnel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/fonts/funnel-sans-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* tokens.ts color */
  --bg: #0F0D0C;
  --bg-raised: #1A1716;
  --bg-elevated: #24201E;
  --bg-sunken: #090807;
  --line: rgba(246, 242, 236, 0.10);
  --line-strong: rgba(246, 242, 236, 0.22);
  --scrim: rgba(9, 8, 7, 0.72);
  --ink: #F6F2EC;
  --ink-muted: #B8AFA6;
  --ink-faint: #8C837B;
  --paper: #F4F0EA;
  --paper-ink: #181412;
  --paper-ink-muted: #5E554E;
  --accent: #3D5BFF;
  --accent-pressed: #2E47D6;
  --accent-ink: #8FA4FF;
  --accent-tint: rgba(61, 91, 255, 0.16);
  --on-accent: #FFFFFF;

  /* CJK falls back to the system's own fonts (Funnel has no CJK glyphs). */
  --display: 'Funnel Display', 'Funnel Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  --text: 'Funnel Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans JP', 'Noto Sans KR', sans-serif;

  --r-print: 22px;
  --r-photo: 14px;
  --r-card: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --badge-h: 48px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (max-width: 400px) { :root { --badge-h: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 10vw, 76px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 700; color: var(--ink); }
code { font-size: 0.92em; background: var(--bg-elevated); padding: 1px 6px; border-radius: 6px; }

/* Long words (de, nl, pl) wrap instead of pushing the page wider; those languages also hyphenate
   (only long words, so English headings never break as "be-fore"). */
h1, h2, h3, .lede, .btn, .tile-name, .print-cap, .faq summary { overflow-wrap: break-word; }
:lang(de) :is(h1, h2, h3, .lede, .btn, .tile-name, .print-cap, summary, p),
:lang(nl) :is(h1, h2, h3, .lede, .btn, .tile-name, .print-cap, summary, p),
:lang(pl) :is(h1, h2, h3, .lede, .btn, .tile-name, .print-cap, summary, p) { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
/* Japanese and Korean: break headings at phrases, never inside a word. */
:lang(ja) :is(h1, h2, h3, .lede, .btn), :lang(ko) :is(h1, h2, h3, .lede, .btn) { line-break: strict; }
:lang(ja) :is(h1, h2, h3, .lede) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2, h3, .lede, p, summary) { word-break: keep-all; }
:lang(ja) h1, :lang(ko) h1 { letter-spacing: 0; line-height: 1.2; }
:lang(ja) :is(h2, h3), :lang(ko) :is(h2, h3) { letter-spacing: 0; line-height: 1.3; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: 56px; }
@media (min-width: 960px) { section { padding-block: 88px; } }
.section-lede { margin-block-start: 14px; max-width: 58ch; font-size: 19px; color: var(--ink-muted); }
.note { margin-block-start: 20px; font-size: 14px; color: var(--ink-faint); }
/* One line for the whole gallery instead of a chip on every card. */
.gallery-note { font-size: 13px; opacity: 0.7; }
.muted { color: var(--ink-muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 999px;
  background: var(--paper); color: var(--paper-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper-ink); }

/* ── header ─────────────────────────────────────────────────────────────────────────────────── */
.site-head { border-block-end: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none;
  font: 900 28px/1 'Nunito Wordmark', var(--display); letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 40px; height: auto; }
.head-actions { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-link {
  display: none; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav-link:hover { background: var(--bg-raised); color: var(--ink); }
@media (min-width: 720px) { .nav-link { display: inline-flex; } }

/* ── buttons and badges ─────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; text-align: center;
  font: 700 17px/1.15 var(--text); letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px rgba(61, 91, 255, 0.32);
  transition: transform 160ms var(--ease-out);
}
.btn:hover { background: var(--accent-pressed); color: var(--on-accent); }
.btn:active { transform: scale(0.97); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }

/* Official badges, written by scripts/build.mjs: same visible height, ¼-height clear space. */
.badges { display: flex; flex-wrap: wrap; align-items: center; margin: calc(var(--badge-h) / -4 + 4px) calc(var(--badge-h) / -4); }
.badge { display: block; margin: calc(var(--badge-h) / 4); border-radius: calc(var(--badge-h) / 5); line-height: 0; }
.badge img { display: block; height: var(--badge-h); width: auto; }
.badge:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* ── prints (paper around every photo) and the AI label ─────────────────────────────────────── */
.print {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--r-print); padding: 8px 8px 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}
.photo { position: relative; border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 2 / 3; background: var(--backdrop, #DDD7CF); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.print-cap { padding: 9px 4px 11px; font: 600 14px/1.3 var(--text); color: var(--paper-ink); }
.ai-chip {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px; border-radius: 999px; background: var(--scrim); color: var(--ink);
  font: 600 11px/1.2 var(--text); letter-spacing: 0.02em; pointer-events: none;
}
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); flex: none; }

/* ── hero ───────────────────────────────────────────────────────────────────────────────────── */
.hero { padding-block: 32px 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding-block: 64px 96px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-ink); font: 600 14px/1.2 var(--text);
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lede { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.45; color: var(--ink-muted); max-width: 34ch; }
.hero .badges { margin-block-start: calc(var(--badge-h) / -4 + 8px); }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); font: 600 14px/1.2 var(--text); color: var(--ink);
}
.trust li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; margin: 0; display: grid; justify-items: center; padding-block-end: 24px; }
.hero-visual::before {
  /* the app's cobalt glow, painted once (no animation) */
  content: ''; position: absolute; inset: 8% 4% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 91, 255, 0.36), rgba(61, 91, 255, 0));
}
.print-after { position: relative; width: min(64vw, 320px); transform: rotate(2.5deg); }
.print-after .photo { aspect-ratio: 2 / 3; }
.print-before {
  position: absolute; z-index: 3; inset-inline-start: max(0px, calc(50% - min(64vw, 320px) / 2 - 18vw)); bottom: 0;
  width: min(30vw, 150px); transform: rotate(-6deg); padding: 6px 6px 0; border-radius: 18px;
}
.print-before .photo { border-radius: 12px; }
.print-before .print-cap { padding: 6px 2px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-ink-muted); }
.print-before .ai-chip { top: 6px; inset-inline-start: 6px; font-size: 10px; padding: 3px 7px 3px 6px; }
@media (min-width: 960px) {
  .print-after { width: 320px; }
  .print-before { inset-inline-start: 0; width: 160px; }
}
.cycle { padding: 0; }
.cycle-item { position: absolute; inset: 0; }
.cycle-item:first-child { position: relative; height: 100%; }
.cycle-item picture { height: 100%; }
.cycle .print-cap {
  /* end side: the tilted "before" print covers the start-side corner */
  position: absolute; inset-inline: auto 10px; bottom: 10px; z-index: 2; width: max-content; max-width: calc(100% - 20px);
  padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); font-size: 14px;
}
.cycle-item:not(:first-child) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cycle-item { animation: cycle 16s linear infinite both; will-change: opacity; }
  .cycle-item:nth-child(1) { animation-delay: -1s; }
  .cycle-item:nth-child(2) { animation-delay: 3s; }
  .cycle-item:nth-child(3) { animation-delay: 7s; }
  .cycle-item:nth-child(4) { animation-delay: 11s; }
}
@keyframes cycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}

/* ── gallery ────────────────────────────────────────────────────────────────────────────────── */
.tiles {
  list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
@media (max-width: 559px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  .tile .photo { border-radius: 12px; }
  .tile .ai-chip { top: 5px; inset-inline-start: 5px; padding: 3px 6px 3px 5px; font-size: 10px; gap: 4px; }
  .tile-name { font-size: 14px; margin-block-start: 7px; }
  .tile-tag { font-size: 12px; }
}
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); gap: 28px 16px; } }
.tile .photo { border-radius: 18px; background: var(--bg-raised); }
.tile-name { margin-block-start: 10px; font: 700 16px/1.25 var(--display); letter-spacing: -0.01em; }
.tile-tag { display: block; margin-block-start: 2px; font: 500 13px/1.3 var(--text); color: var(--ink-faint); letter-spacing: 0; }

/* ── one selfie, many looks ─────────────────────────────────────────────────────────────────── */
.pairs { background: var(--bg-sunken); }
.strip { margin-block-start: 40px; }
.strip h3 { margin-block-end: 14px; font-size: 19px; color: var(--ink-muted); font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.strip-row {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-inline: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.strip-row:focus-visible { outline-offset: -3px; }
.strip-row > li { flex: 0 0 clamp(148px, 40vw, 196px); scroll-snap-align: start; }
.print-small { padding: 6px 6px 0; border-radius: 18px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.print-small .photo { border-radius: 12px; }
.print-small .print-cap { font-size: 13px; padding: 8px 4px 10px; }
.print-small.is-before { background: var(--bg-elevated); }
.print-small.is-before .print-cap { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
@media (min-width: 960px) {
  .strip-row { margin: 0; padding-inline: 0; overflow: visible; }
  .strip-row > li { flex: 0 0 196px; }
  .strip-row > li.is-before { margin-inline-end: 22px; }
}

/* ── how it works ───────────────────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-card);
  background: var(--bg-raised); border: 1px solid var(--line);
}
.step-art { width: 150px; height: auto; margin-block-end: 6px; }
.step-n {
  position: absolute; top: 20px; inset-inline-end: 20px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 19px/1 var(--display);
}
.step p:last-child { color: var(--ink-muted); }

/* ── features ───────────────────────────────────────────────────────────────────────────────── */
.features { padding-block-start: 0; }
.feature-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px 22px 24px; border-radius: 22px; border: 1px solid var(--line-strong); display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink-muted); font-size: 16px; }

/* ── FAQ ────────────────────────────────────────────────────────────────────────────────────── */
.faq-section { padding-block-start: 24px; }
.faq { display: grid; margin-block-start: 24px; }
.doc > .faq { max-width: none; }
.faq details { border-block-start: 1px solid var(--line-strong); }
.faq details:last-child { border-block-end: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding-block: 18px; font: 700 19px/1.35 var(--display); letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--bg-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F2EC' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details > p { padding-block-end: 22px; color: var(--ink-muted); max-width: none; padding-inline-end: 48px; }

/* ── closing call to action: the one cobalt field ───────────────────────────────────────────── */
.cta .wrap {
  display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: 40px 44px;
  background: var(--accent); color: var(--on-accent); border-radius: 36px; max-width: calc(1180px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.cta h2 { color: var(--on-accent); max-width: 16ch; }
.cta p { max-width: 40ch; font-size: 18px; color: rgba(255, 255, 255, 0.9); }
.cta .badges { justify-content: center; margin-block-start: 4px; }
.cta-mascot { width: 168px; height: auto; margin-block-end: -4px; }
.cta a:not(.badge) { color: var(--on-accent); }
.cta .badge:focus-visible { outline-color: var(--on-accent); }

/* ── document pages (support, cancel, legal) ────────────────────────────────────────────────── */
.page-head { padding-block: 48px 12px; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head .wrap > * { max-width: 820px; }
.page-head p { font-size: 20px; color: var(--ink-muted); max-width: 44ch; }
.page-head + section { padding-block-start: 24px; }
.doc > * { max-width: 70ch; }
.doc > * + * { margin-block-start: 14px; }
.doc > .wide { max-width: 1000px; }
.doc h2 { margin-block-start: 52px; font-size: clamp(26px, 3.6vw, 34px); }
.doc h3 { margin-block-start: 28px; font-size: 20px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li + li { margin-block-start: 6px; }
.doc li::marker { color: var(--accent-ink); font-weight: 800; }
.doc p, .doc li { color: var(--ink-muted); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg-raised); border-radius: 18px; overflow: hidden; }
.doc th, .doc td { text-align: start; padding: 12px 14px; vertical-align: top; border-block-end: 1px solid var(--line); }
.doc th { font-weight: 700; color: var(--ink); }
.doc tr:last-child td { border-block-end: 0; }
.updated { font-size: 15px; color: var(--ink-faint); }
.summary { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 22px 24px; }
.summary h2 { margin: 0 0 8px; font-size: 26px; }
.summary ul { margin: 0; }
.faq-section .faq, .doc .faq { margin-block-start: 20px; }

.mail-card { background: var(--accent); color: var(--on-accent); border-radius: var(--r-card); padding: 26px 24px; display: grid; gap: 10px; }
.mail-card p { color: rgba(255, 255, 255, 0.9); }
.mail {
  font: 800 clamp(28px, 7vw, 46px)/1.05 var(--display); letter-spacing: -0.035em; color: var(--on-accent);
  text-decoration: none; overflow-wrap: anywhere; display: inline-flex; min-height: 44px; align-items: center;
}
.mail:hover { color: var(--on-accent); text-decoration: underline; }
.mail-card .mail:focus-visible { outline-color: var(--on-accent); }

.stores-grid { display: grid; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 760px) { .stores-grid { grid-template-columns: repeat(2, 1fr); } }
.store-card { border-radius: var(--r-card); padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--bg-raised); border: 1px solid var(--line); }
.store-card h2 { font-size: 24px; line-height: 1.2; }
.store-card ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.store-card li::marker { color: var(--accent-ink); font-weight: 800; }
.store-card p { color: var(--ink-muted); }

.notfound { padding-block: 64px 24px; }
.notfound .wrap { display: grid; justify-items: start; gap: 18px; }
.notfound-art { width: 200px; height: auto; }

/* ── footer ─────────────────────────────────────────────────────────────────────────────────── */
.site-foot { border-block-start: 1px solid var(--line); margin-block-start: 24px; padding-block: 40px 48px; }
.site-foot .wrap { display: grid; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { font-size: 14px; color: var(--ink-muted); display: grid; gap: 6px; max-width: 62ch; }
.foot-badges { margin-block-end: 8px; }
.tm { font-size: 12px; line-height: 1.45; color: var(--ink-faint); }

/* ── languages (scripts/build.mjs; shown once a second language exists) ─────────────────────── */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  justify-content: center; padding: 0 10px; border-radius: 999px; cursor: pointer; color: var(--ink); font: 700 14px/1 var(--text);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--bg-raised); }
.lang-menu > summary svg { width: 18px; height: 18px; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 8px; list-style: none;
  background: rgba(15, 13, 12, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(9, 8, 7, 0.6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, calc(100vw - 32px)); gap: 2px;
}
.lang-menu a, .foot-langs a { color: var(--ink); text-decoration: none; }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.lang-menu a:hover { background: rgba(246, 242, 236, 0.06); }
.lang-menu a[aria-current] { background: var(--accent-tint); }
.lang-menu a[aria-current], .foot-langs a[aria-current] { color: var(--accent-ink); font-weight: 800; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 0 16px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-langs a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-langs a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 48px; align-items: start; }
  .foot-links { flex-direction: column; gap: 0; }
  .foot-links a { min-height: 36px; }
  .foot-langs ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; }
  .foot-langs a { min-height: 36px; }
  .foot-small { grid-column: 1 / -1; max-width: none; border-block-start: 1px solid var(--line); padding-block-start: 24px; }
}

/* Language chip (assets/lang.js): one other language, offered once. In the top bar from 720px; on
   phones a small chip in the bottom corner, so it never pushes the hero down. */
.lang-chip {
  display: inline-flex; align-items: center; gap: 0; height: 44px; padding-inline: 12px 0;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); color: var(--ink);
  font: 700 13px/1 var(--text); white-space: nowrap;
}
.lang-chip a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; min-height: 44px; }
.lang-chip a:hover { text-decoration: underline; }
.lang-chip svg { width: 14px; height: 14px; flex: none; }
.lang-chip button {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-muted);
  font: 600 18px/1 var(--text); cursor: pointer;
}
.lang-chip button:hover { color: var(--ink); }
@media (max-width: 719px) {
  .lang-chip { position: fixed; z-index: 15; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
}

/* ── analytics consent (assets/analytics.js) ── Allow and Decline look the same: refusing is as easy as agreeing. */
.consent {
  position: fixed; z-index: 20; inset-inline: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  max-width: 440px; margin-inline-start: auto; padding: 16px 16px 12px;
  /* Same surface as the language menu. */
  border: 1px solid var(--line); border-radius: 20px; color: var(--ink);
  background: rgba(15, 13, 12, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(9, 8, 7, 0.6);
  animation: consent-in 360ms var(--ease-out) both;
}
.consent p { margin: 0 0 8px; font: 500 14px/1.45 var(--text); color: var(--ink-muted); }
.consent p a { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button {
  flex: 1; min-height: 44px; padding-inline: 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font: 700 14px/1 var(--text); cursor: pointer;
}
.consent-actions button:hover { background: var(--accent-tint); border-color: var(--accent-ink); }
.consent-actions button:focus-visible, .foot-consent:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
/* No display here, so the hidden attribute keeps working until the script shows it. */
.foot-consent {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 15px/1.2 var(--text); cursor: pointer;
}
.foot-consent:hover { text-decoration: underline; }
