/* Chess Case — landing page.
   Light is ivory paper and maple, dark is the walnut case. Brass marks hardware and accents,
   forest green is the action colour, as in the app. Tokens live on :root / .dark. */

:root {
  --bg: #F7F1E6;
  --bg-2: #EFE5D3;
  --surface: #FCF8F1;
  --ink: #24160D;
  --ink-2: #5A4535;
  --ink-3: #8A7462;
  --line: rgba(60, 38, 22, .14);
  --accent: #9A6B1F;          /* aged brass, darkened for text on ivory */
  --accent-ink: #7E5512;
  --accent-soft: rgba(176, 128, 48, .14);
  --brass: #C9A15A;
  --inlay: rgba(154, 107, 31, .38);
  --green: #24463A;           /* forest-green action surface */
  --green-ink: #F3EEDF;
  --walnut: #42261A;
  --walnut-2: #21130B;
  --maple: #CCA378;
  --shadow: 0 1px 2px rgba(36, 22, 13, .06), 0 12px 32px -12px rgba(36, 22, 13, .22);
  --shadow-lg: 0 2px 4px rgba(36, 22, 13, .08), 0 40px 80px -30px rgba(36, 22, 13, .45);
  --radius: 22px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

.dark {
  --bg: #170F0A;
  --bg-2: #1F140D;
  --surface: #2A1B12;
  --ink: #F3E9DA;
  --ink-2: #CDBBA5;
  --ink-3: #9C8773;
  --line: rgba(243, 233, 218, .12);
  --accent: #D9B26A;
  --accent-ink: #E6C384;
  --accent-soft: rgba(217, 178, 106, .14);
  --inlay: rgba(217, 178, 106, .3);
  --green: #3E6B57;
  --green-ink: #F3EEDF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A faint wood grain across the page: long, slightly wavy fibres. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .22;
}
.dark body::before { opacity: .28; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 16px; }
.tiny { font-size: .82rem; }
.muted { color: var(--ink-3); }
.accent { color: var(--accent); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }

/* ---------- Nav ---------- */
#nav-top { position: absolute; top: 0; height: 1px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand img { border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.nav-right { display: flex; align-items: center; gap: .25rem; }
.nav-link { color: var(--ink-2); text-decoration: none; font-size: .93rem; padding: .45rem .7rem; border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: var(--accent-soft); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 860px) { .hide-sm { display: none; } }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: var(--green-ink); box-shadow: var(--shadow); }
.btn-primary:hover { color: var(--green-ink); transform: translateY(-1px); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-ink); }
.btn-secondary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.2rem .6rem 1rem; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none; box-shadow: var(--shadow);
}
.store-badge .ico { width: 1.7rem; height: 1.7rem; }
.store-badge small { display: block; font-size: .7rem; opacity: .75; line-height: 1.1; }
.store-badge b { display: block; font: 600 1.15rem/1.15 var(--sans); }
.store-badge:hover { color: var(--bg); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; font-size: .86rem; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pill .ico { color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* Small uppercase inscription with open tracking, led by a brass inlay line. */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #E7C987, #A5782E); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-icon { width: 72px; height: 72px; border-radius: 16px; }
}
.hero-figure { margin: 0; display: grid; gap: 1rem; }
.hero-figure figcaption, .fig-note { font-size: .88rem; color: var(--ink-3); text-align: center; }

/* ---------- Device frames ---------- */
/* iPhone Duo frame (ShotForge artwork). The screen sits under the frame's opening:
   inner display 2853×2007 at 75,75 of 3003×2157. */
.duo { position: relative; aspect-ratio: 3003 / 2157; filter: drop-shadow(0 30px 40px rgba(20, 10, 4, .35)); }
.duo > .screen {
  position: absolute; left: 2.4975%; top: 3.477%; width: 95.005%; height: 93.046%;
  border-radius: 4.8% / 6.83%; overflow: hidden; background: #21130B;
}
.duo > .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("frame-duo-inner.svg") center / 100% 100% no-repeat;
}

/* A generic iPhone body drawn in CSS for the 1206×2622 screenshots. */
.phone {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 15% / 7%;
  padding: 2.6%;
  background: linear-gradient(145deg, #3a332e, #121010 60%, #2a2522);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.9%; overflow: hidden; background: #21130B; isolation: isolate; }
.phone .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 5; top: 1.6%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; }

/* The fold annotation: the board's two halves meet along the hinge. */
.fold-mark { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 0; border-left: 2px dashed rgba(255, 236, 196, .85); filter: drop-shadow(0 0 4px rgba(0, 0, 0, .5)); pointer-events: none; }
.fold-mark span {
  position: absolute; top: 6%; left: 0; transform: translateX(-50%); white-space: nowrap;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(33, 19, 11, .78); color: #F6E6C8;
  font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.side-tag {
  position: absolute; z-index: 2; bottom: 7%; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(33, 19, 11, .72); color: #F6E6C8; font: 600 .74rem/1 var(--sans); letter-spacing: .04em; pointer-events: none;
}
.side-tag.l { left: 11%; }
.side-tag.r { right: 11%; }
@media (max-width: 520px) { .fold-mark span, .side-tag { font-size: .62rem; padding: .22rem .5rem; } }

/* ---------- Sections ---------- */
section.block { padding: clamp(4rem, 9vw, 7.5rem) 0; }
section.block.tinted { background: var(--bg-2); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.wide-right, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.feature-list { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; }
.feature-list .badge { grid-row: span 2; }
.feature-list h3 { font-size: 1.12rem; }
.feature-list p { color: var(--ink-2); font-size: .98rem; }

.badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.badge .ico { width: 1.35rem; height: 1.35rem; }

/* Cards with an inlaid brass border, like the routed inlay on the lid. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.6rem;
  display: grid; gap: .7rem; align-content: start;
  box-shadow: var(--shadow);
}
.card::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--inlay); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .8; }
.card > * { position: relative; z-index: 1; }
.card p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Case demo (regular iPhone): the lid swings open around its left hinge ---------- */
.case-demo { display: grid; justify-items: center; gap: 1.1rem; }
.case-demo .phone { perspective: 1400px; }
.lid {
  position: absolute; inset: 0; z-index: 3;
  transform-origin: 0 50%;
  transition: transform .76s cubic-bezier(.55, .05, .25, 1), opacity .3s .5s;
  backface-visibility: hidden;
}
.lid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.45)); opacity: 0; transition: opacity .76s; }
.case-demo.open .lid { transform: rotateY(-104deg); opacity: 0; }
.case-demo.open .lid::after { opacity: 1; }
/* The clasp hotspot sits over the brass latch in the screenshot. */
.clasp-hit {
  position: absolute; z-index: 4; right: 1.5%; top: 43%; width: 15%; height: 12%;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.clasp-hit:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.case-demo:not(.open) .clasp-hit { animation: clasp-pulse 2.4s ease-in-out infinite; }
@keyframes clasp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 201, 135, 0); } 50% { box-shadow: 0 0 0 6px rgba(231, 201, 135, .45); } }
.case-demo.open .clasp-hit { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lid { transition: opacity .16s; }
  .case-demo.open .lid { transform: none; }
  .case-demo:not(.open) .clasp-hit { animation: none; box-shadow: 0 0 0 3px rgba(231, 201, 135, .5); }
}
.demo-hint { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-3); }
.demo-hint .ico { color: var(--accent); }
.demo-btn { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Modes ---------- */
.modes { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.mode {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; align-items: start;
  padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.mode .ico { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: .15rem; }
.mode h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }
.mode p { color: var(--ink-2); font-size: .95rem; }
.mode .chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip { font-size: .78rem; padding: .22rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* ---------- Finishes switcher ---------- */
.finish-stage { display: grid; gap: 1.4rem; max-width: 940px; margin-inline: auto; }
.finish-stage .duo > .screen > img { transition: opacity .45s ease; }
.finish-stage .duo > .screen > img.on { z-index: 1; }
.finish-stage .duo > .screen > img:not(.on) { opacity: 0; transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .finish-stage .duo > .screen > img { transition: opacity .16s; } }
.finish-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.2rem; }
.finish-meta b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.finish-meta span { color: var(--ink-2); }
.finish-meta small { color: var(--ink-3); font-size: .88rem; display: block; }
.finish-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: .6rem; }
.finish-btn {
  display: grid; justify-items: center; gap: .45rem; padding: .55rem .2rem .5rem; border: 0; cursor: pointer;
  background: transparent; border-radius: 14px; color: var(--ink-2); font: 600 .74rem/1.15 var(--sans); text-align: center;
}
.finish-btn:hover { background: var(--accent-soft); color: var(--ink); }
.finish-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
/* Each swatch is a 2×2 corner of that board, framed in its rail colour. */
.sq {
  width: 44px; height: 44px; border-radius: 10px; padding: 4px; background: var(--r);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.sq i { display: block; width: 100%; height: 100%; border-radius: 5px;
  background: conic-gradient(var(--d) 0 25%, var(--l) 0 50%, var(--d) 0 75%, var(--l) 0) 0 0 / 100% 100%; }
@media (max-width: 900px) { .finish-picker { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Collections: rendered chessmen standing in a row ---------- */
.collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.collection {
  position: relative; border-radius: var(--radius); padding: 1.5rem 1.6rem 1.6rem; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); display: grid; gap: .6rem; align-content: start;
}
.collection::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--inlay); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .8; }
.collection > * { position: relative; z-index: 1; }
.collection.wide { grid-column: span 2; }
.collection header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.collection p { color: var(--ink-2); font-size: .97rem; }
.lineup {
  display: flex; justify-content: center; align-items: flex-end; margin: .2rem -.6rem .4rem;
  padding: .4rem 0 .2rem; border-radius: 16px;
  background:
    radial-gradient(70% 50% at 50% 100%, rgba(0, 0, 0, .12), transparent 70%),
    linear-gradient(var(--stage-top, transparent), var(--stage-bottom, transparent));
}
.lineup img { width: 16.66%; max-width: 120px; aspect-ratio: 1; object-fit: contain; margin-inline: -1.2%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); }
.lineup.vehicles img { margin-inline: -.3%; }
.subthemes { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  display: inline-block; padding: .22rem .55rem; border-radius: 7px; font: 700 .66rem/1.1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.tag-free { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.dark .tag-free { color: #9ED2B8; background: rgba(62, 107, 87, .35); }
.tag-buy { background: linear-gradient(90deg, #EBD7A6, #CDA867); color: #3A2A14; }
.holiday-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem 1rem; }
.holiday-grid figure { margin: 0; display: grid; gap: .2rem; justify-items: center; text-align: center; }
.holiday-grid .lineup { margin: 0; width: 100%; }
.holiday-grid .lineup img { width: 40%; max-width: none; margin-inline: -5%; }
.holiday-grid figcaption { font: 600 .86rem/1.3 var(--sans); color: var(--ink); }
.holiday-grid figcaption small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }
@media (max-width: 900px) { .collections { grid-template-columns: 1fr; } .collection.wide { grid-column: auto; } .holiday-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Walnut panel (privacy), the same in both themes ---------- */
.walnut-panel {
  position: relative; border-radius: 30px; padding: clamp(2rem, 5vw, 4rem); color: #F6E8D2;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 214, 160, .14), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .06' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") center / cover,
    linear-gradient(160deg, #5A3422, #2E1A10);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.walnut-panel::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(214, 171, 102, .45); border-radius: 20px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.walnut-panel h2 { color: #FFF3E2; }
.walnut-panel .eyebrow { color: #E7C987; }
.walnut-panel p { color: rgba(246, 232, 210, .86); }
.walnut-panel .grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 2.5rem; }
.walnut-panel .grid div { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.walnut-panel .grid .ico { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: #E7C987; margin-top: .15rem; }
.walnut-panel h3 { color: #FFF3E2; font-size: 1.12rem; }
.walnut-panel a { color: #F2D49A; }
@media (max-width: 760px) { .walnut-panel .grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.cta .hero-icon { width: 112px; height: 112px; border-radius: 25px; }
.req { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0 3.5rem; border-top: 1px solid var(--inlay); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 1rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-3); max-width: 60rem; }

/* ---------- Document pages (privacy, support, legal) ---------- */
.doc { width: min(780px, 100% - 32px); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.doc-meta { color: var(--ink-3); margin-bottom: 2.5rem; }
.doc section { margin-top: 2.4rem; }
.doc h2 { font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.doc h2 .ico { color: var(--accent); }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: .8rem; }
.doc ul { padding-left: 1.2rem; margin: .8rem 0 0; display: grid; gap: .45rem; }
.doc strong { color: var(--ink); }
.doc .summary { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.doc .summary::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--inlay); border-radius: 16px; pointer-events: none; }
.doc .summary h2 { margin-top: 0; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.doc dt { color: var(--ink); font-weight: 600; }
.doc dd { margin: 0; color: var(--ink-2); }
.doc details { background: var(--surface); border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow); }
.doc details + details { margin-top: .7rem; }
.doc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.doc details p { margin-top: .7rem; }
.doc .back { margin-top: 3rem; }
@media (max-width: 520px) { .doc dl { grid-template-columns: 1fr; } .doc dd { margin-bottom: .5rem; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- In action: the recorded game on the Duo ---------- */
.game-figure { margin: 0 auto; max-width: 980px; display: grid; gap: 1rem; }
.duo > .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tabletop: the Duo half open, the upper half tilted back ---------- */
.tabletop-figure { margin: 0; display: grid; gap: 1.4rem; justify-items: center; }
.tt { width: min(340px, 78vw); perspective: 1100px; perspective-origin: 50% 120%; margin: -4% 0 -22%; }
.tt-half {
  aspect-ratio: 750 / 533; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #3a332e, #121010 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.tt-half::before {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 13px;
  background: url("img/tabletop.jpg") no-repeat; background-size: 100% 200%;
}
.tt-top { transform-origin: 50% 100%; transform: rotateX(28deg); border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.tt-top::before { background-position: 0 0; }
.tt-bottom { margin-top: -2px; transform-origin: 50% 0; transform: rotateX(46deg) translateY(-2px); border-top-left-radius: 6px; border-top-right-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1), 0 40px 40px -20px rgba(20, 10, 4, .5); }
.tt-bottom::before { background-position: 0 100%; }
.desks { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); }

/* ---------- Pricing ---------- */
.price-pill { display: inline-flex; align-items: baseline; gap: .3rem; padding: .3rem .75rem; border-radius: 999px; font-size: .84rem; color: var(--ink-2); background: var(--accent-soft); white-space: nowrap; }
.price-pill b { color: var(--ink); font-size: .95rem; }
.holiday-grid.legends { grid-template-columns: repeat(2, 1fr); }
.holiday-grid.legends .lineup img { width: 16.66%; margin-inline: -1.4%; }
@media (max-width: 900px) { .holiday-grid.legends { grid-template-columns: 1fr; } }
.pro-tag {
  display: inline-block; vertical-align: .15em; margin-left: .35rem; padding: .18rem .45rem; border-radius: 6px;
  background: linear-gradient(90deg, #EBD7A6, #CDA867); color: #3A2A14;
  font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.mode .pro-tag { font-family: var(--sans); }
.tag-plan { background: var(--accent-soft); color: var(--accent-ink); margin-right: .4rem; vertical-align: .1em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plans-3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.7rem; box-shadow: var(--shadow); }
.plan::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--inlay); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .8; }
.plan > * { position: relative; z-index: 1; }
.plan h3 { margin-bottom: .3rem; }
.plan-price { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.plan-price small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.plan li { position: relative; padding-left: 1.4rem; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .55rem; height: .3rem; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan-pro { background: linear-gradient(160deg, #4A2C1C, #24150D); }
.plan-pro::after { border-color: rgba(231, 201, 135, .45); }
.plan-pro h3, .plan-pro .plan-price { color: #F2D9A0; }
.plan-pro .plan-price small { color: rgba(243, 233, 218, .7); }
.plan-pro li { color: rgba(243, 233, 218, .88); }
.plan-pro li::before { border-color: #E7C987; }
.plans-note { color: var(--ink-3); margin: 1.4rem auto 0; max-width: 52rem; text-align: center; }
@media (max-width: 900px) { .plans-3 { grid-template-columns: 1fr; } }

/* Long German compounds ("Sammlerkollektionen") must not push the page wider on small phones. */
.section-head > * { max-width: 100%; min-width: 0; }
.eyebrow { overflow-wrap: anywhere; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) { .eyebrow { letter-spacing: .12em; } }

/* Pro finishes: a small champagne tag on the swatch and next to the finish name. */
.sq { position: relative; }
.finish-btn.is-pro .sq::after {
  content: "PRO"; position: absolute; right: -9px; top: -7px; padding: .14rem .3rem; border-radius: 5px;
  background: linear-gradient(90deg, #EBD7A6, #CDA867); color: #3A2A14;
  font: 700 .52rem/1 var(--sans); letter-spacing: .1em; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.finish-meta .pro-tag[hidden] { display: none; }
.finish-meta .pro-tag { color: #3A2A14; margin: 0 .5rem 0 .45rem; vertical-align: .3em; }

/* ======================================================================================
   Platforms — one page, two native apps.
   <html data-platform="ios|android"> is set in <head> by platforms.js. Without JavaScript the
   attribute is missing and the page reads as iOS.
   - data-only="…"     whole blocks that exist for one platform only (display: none otherwise)
   - data-variant="…"  alternatives stacked in one grid cell (.platform-stack): the cell keeps
                       the height of the taller one, so switching never moves the layout.
   ====================================================================================== */
html:not([data-platform="android"]) [data-only="android"],
html[data-platform="android"] [data-only="ios"] { display: none !important; }

.platform-stack { display: grid; }
.platform-stack > [data-variant] { grid-area: 1 / 1; transition: opacity .45s ease, visibility 0s linear 0s; }
html:not([data-platform="android"]) [data-variant="android"],
html[data-platform="android"] [data-variant="ios"] {
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.btn-row > .platform-stack { justify-items: start; }

/* The switch: a walnut slider with a brass inlay, like the case's own fittings. */
.platform-switch {
  position: relative; isolation: isolate;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.platform-switch::before {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, #5C3826, #3A2116);
  box-shadow: inset 0 0 0 1px rgba(231, 201, 135, .55), inset 0 1px 0 rgba(255, 236, 196, .22), 0 6px 14px -6px rgba(36, 22, 13, .6);
  transition: transform .5s cubic-bezier(.3, 1.2, .45, 1);
}
html[data-platform="android"] .platform-switch::before { transform: translateX(100%); }
.platform-switch button {
  appearance: none; border: 0; margin: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 7.4rem; padding: .7rem 1.4rem; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; color: var(--ink-2);
  transition: color .3s;
}
.platform-switch button:hover { color: var(--ink); }
html:not([data-platform="android"]) .platform-switch [data-set-platform="ios"],
html[data-platform="android"] .platform-switch [data-set-platform="android"] { color: #F6E6C8; }
.dark .platform-switch::before {
  background: linear-gradient(180deg, #E7C987, #B48536);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 205, .5), 0 6px 14px -6px rgba(0, 0, 0, .7);
}
.dark:not([data-platform="android"]) .platform-switch [data-set-platform="ios"],
.dark[data-platform="android"] .platform-switch [data-set-platform="android"] { color: #21130B; }
.platform-switch button:focus-visible { outline-offset: -3px; border-radius: 999px; }
.platform-pick { display: grid; gap: .6rem; justify-items: inherit; }
.platform-pick > small { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Android device frames (generic, drawn in CSS; no manufacturer artwork) ---------- */
.phone.android { aspect-ratio: 1080 / 1920; border-radius: 11% / 6.2%; padding: 2.4%; }
.phone.android .screen { border-radius: 8.6% / 4.8%; }
.phone.android.cover { aspect-ratio: 750 / 1200; }
.punch { position: absolute; z-index: 5; top: 1.5%; left: 50%; width: 3.4%; aspect-ratio: 1; transform: translateX(-50%); background: #050505; border-radius: 50%; }

/* An unfolded foldable: square inner display with a faint crease down the middle. */
.fold {
  position: relative; width: min(100%, 470px); aspect-ratio: 1; padding: 2.2%;
  border-radius: 6.5%; justify-self: center;
  background: linear-gradient(145deg, #3a332e, #121010 60%, #2a2522);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.fold.wide { width: 100%; aspect-ratio: 4 / 3; border-radius: 5% / 6.6%; }
.fold .screen { position: relative; height: 100%; border-radius: 4.6%; overflow: hidden; background: #21130B; }
.fold.wide .screen { border-radius: 3.4% / 4.5%; }
.fold .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fold::after {
  content: ""; position: absolute; top: 2.2%; bottom: 2.2%; left: 50%; width: 10px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06) 45%, rgba(0, 0, 0, .14) 55%, transparent);
}
.hero-figure .fold { margin-block: auto; }

/* Closed and open: the cover display beside the unfolded inner display. */
.fold-pair { margin: 0; display: grid; grid-template-columns: .4fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.fold-pair .phone { width: 100%; }
.fold-pair .fig-note { grid-column: 1 / -1; }

.pre-tag { display: inline-block; margin-left: .35rem; padding: .12rem .5rem; border-radius: 999px; font: 600 .7rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); vertical-align: .1em; }

/* ---------- Android gallery ("In action") ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); max-width: 940px; margin: 0 auto; padding: 0; list-style: none; }
.gallery figure { margin: 0; display: grid; gap: 1rem; justify-items: center; }
.gallery .phone { width: min(100%, 250px); }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); text-align: center; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1rem; }
  .gallery li { scroll-snap-align: center; }
}

/* ---------- Android finishes ---------- */
.finish-android { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 920px; margin: 0 auto; }
.finish-android .groups { display: grid; gap: 1.6rem; }
.finish-android h3 { font-size: 1.15rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.finish-android .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.finish-android p { color: var(--ink-2); }
@media (max-width: 760px) { .finish-android { grid-template-columns: 1fr; justify-items: center; } .finish-android .groups { justify-items: start; } }

.cta .platform-pick { justify-items: center; }

/* ---------- Document pages: platform and language links ---------- */
.doc .doc-switch { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin: -1.4rem 0 2.4rem; }
.doc .doc-switch ul { list-style: none; margin: 0; padding: 3px; display: inline-flex; gap: 2px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.doc .doc-switch a { display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.doc .doc-switch a:hover { color: var(--ink); background: var(--accent-soft); }
.doc .doc-switch a[aria-current="page"] { background: var(--walnut); color: #F6E6C8; }
.dark .doc .doc-switch a[aria-current="page"] { background: var(--accent); color: #21130B; }
.doc .notice { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  .platform-switch::before, .platform-stack > [data-variant] { transition: none !important; }
}

/* ---------- Print (legal pages first of all) ---------- */
@media print {
  :root, .dark {
    --bg: #fff; --bg-2: #fff; --surface: #fff; --ink: #000; --ink-2: #1a1a1a; --ink-3: #444;
    --accent: #000; --accent-ink: #000; --line: #bbb; --inlay: #bbb; --shadow: none; --shadow-lg: none;
    color-scheme: light;
  }
  body { background: #fff; font-size: 11pt; }
  body::before, .nav, .skip, .back, .icon-btn, .doc-switch, .footer-links, .platform-switch, .platform-pick { display: none !important; }
  .doc { width: auto; padding: 0; }
  .doc .summary { box-shadow: none; border: 1px solid #bbb; }
  .doc .summary::after { display: none; }
  .doc section { break-inside: avoid; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .footer { border: 0; padding-top: 1.5rem; }
}
