/* Layout: one quiet column, max 1120px; type and whitespace do the work, product images are the only colour. */
:root {
  --bg: #fbfbfa;
  --surface: #f1f2ef;
  --ink: #151715;
  --muted: #5d635e;
  --line: #e2e4df;
  --accent: #1e5b47;
  --on-accent: #ffffff;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.5rem; --step-3: 2.25rem; --step-4: clamp(2.4rem, 6vw, 4rem);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312; --surface: #1a1d1b; --ink: #edefec; --muted: #9ba39d; --line: #2a2e2b; --accent: #82c7a9; --on-accent: #0d1f18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111312; --surface: #1a1d1b; --ink: #edefec; --muted: #9ba39d; --line: #2a2e2b; --accent: #82c7a9; --on-accent: #0d1f18;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 22px; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Home */
.hero { padding-block: clamp(56px, 10vw, 112px) clamp(36px, 6vw, 64px); display: grid; gap: 20px; }
.hero h1 { font-size: var(--step-4); max-width: 14ch; }
.hero h1 { max-width: 16ch; }
.hero p { color: var(--muted); font-size: var(--step-1); max-width: 48ch; }
.shop-head { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 80px); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--muted); padding-top: 4px; }
.trust span::before { content: "✓"; color: var(--accent); margin-right: 6px; }

.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.shop-head h2 { font-size: var(--step-2); }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { font: inherit; font-size: 0.925rem; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.track-note { color: var(--muted); font-size: 0.925rem; padding-bottom: 20px; margin-top: -8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; padding-bottom: 96px; }
.card { display: grid; gap: 14px; text-decoration: none; min-width: 0; }
.card .img { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
a.card:hover .img img { transform: scale(1.03); }
.placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; padding: 24px; gap: 6px; }
.placeholder b { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.placeholder small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.card .price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.soon { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Product */
.back { display: inline-block; padding-block: 28px 8px; color: var(--muted); text-decoration: none; font-size: 0.925rem; }
.back:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 16px 96px; align-items: start; }
.gallery { display: grid; gap: 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.gallery .main { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); aspect-ratio: 4 / 3; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info { display: grid; gap: 28px; min-width: 0; }
.info .eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.info h1 { font-size: var(--step-3); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.buy .price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.btn { font: inherit; font-weight: 600; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer; text-decoration: none; display: inline-block; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.block { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.block h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.games { columns: 2 220px; column-gap: 28px; padding: 0; margin: 0; list-style: none; font-size: 0.95rem; }
.games li { padding: 6px 0; break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.games li span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding-block: 12px; }
details summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-top: 8px; max-width: 60ch; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; max-width: calc(100% - 32px); z-index: 20; }

.mobile-buy { display: none; }
@media (max-width: 760px) {
  nav { gap: 16px; }
  .product { grid-template-columns: 1fr; padding-bottom: 120px; }
  .gallery { position: static; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .mobile-buy .price { font-weight: 600; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Site additions */
html { scroll-behavior: smooth; }
body { margin: 0; }
.title-stack { display: grid; gap: 12px; }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); cursor: default; transform: none; }
.block.faq { gap: 0; }
.prose { max-width: 680px; padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 20px; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; padding-top: 16px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.prose .note { font-size: 0.875rem; border-top: 1px solid var(--line); padding-top: 16px; }
.contact { font-weight: 600; color: var(--ink); user-select: all; }
.notfound { padding-block: 120px; display: grid; gap: 20px; justify-items: start; }
.notfound h1 { font-size: var(--step-3); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }
.card .img { position: relative; }
.card .img .soon { position: absolute; top: 12px; left: 12px; background: var(--bg); }
.card .price.muted { color: var(--muted); font-weight: 500; }
