/* ============================================================================
   BASE — structural anatomy shared by all three variations.
   Skins own: token values, typography, ornament, motion. Base owns: layout.
   Token contract (every skin must set):
     --bg --ink --muted --line --card-bg --accent --accent-ink
     --radius --font-display --font-body
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.5; font-size: 16px;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
dialog { padding: 0; border: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 0; }
/* Screen-reader-only: keeps semantics (e.g. the hero h1) when a variation
   hides the visual copy (K3 R21b — the video carries the message). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  border: 0; }

.linklike { background: none; border: 0; padding: 0; text-decoration: underline;
  color: inherit; }

/* ---- header --------------------------------------------------------------- */
.ribbon { text-align: center; font-size: .78rem; letter-spacing: .06em;
  padding: .45rem 1rem; }
.brand-word b { font-weight: inherit; }
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1.25rem; min-height: 3.6rem; }
.head-brand { display: flex; align-items: center; gap: .55rem;
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .06em; white-space: nowrap; }
.brand-mark { width: 1.05rem; height: 1.05rem; background: var(--accent);
  display: inline-block; border-radius: var(--radius); }
.head-nav { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none;
  flex: 1; min-width: 0; }
/* Dropdowns need to escape the nav's scroll clipping on wide screens. */
@media (min-width: 701px) { .head-nav { overflow: visible; } }
.head-nav::-webkit-scrollbar { display: none; }
.head-nav a { text-decoration: none; font-size: .92rem; padding: .35rem 0;
  border-bottom: 2px solid transparent; white-space: nowrap; color: var(--muted); }
.head-nav a:hover, .head-nav a.is-active { color: var(--ink);
  border-bottom-color: var(--accent); }
/* World dropdowns (round 18): hover/focus reveal + caret toggle for touch.
   Straight to a brand page from anywhere. */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret { border: 0; background: none; color: var(--muted); padding: .35rem .25rem;
  font-size: .7rem; line-height: 1; cursor: pointer; }
.nav-caret:hover { color: var(--ink); }
.nav-drop { position: absolute; top: 100%; left: 0; z-index: 70; min-width: 14rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: .45rem; box-shadow: 0 16px 38px rgba(0, 0, 0, .14); display: none; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop,
.nav-item.is-open .nav-drop { display: block; }
.nav-drop a { display: flex; align-items: center; gap: .55rem; padding: .42rem .6rem;
  border-radius: 8px; border-bottom: 0; font-size: .88rem; color: var(--ink); }
.nav-drop a:hover { background: var(--card-bg); border-bottom: 0; }
.nav-drop img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.nav-drop .nav-drop-all { color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) { .nav-drop { position: fixed; left: .75rem; right: .75rem;
  top: auto; min-width: 0; } }
.head-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.head-search, .device-chip, .bag-chip { display: flex; align-items: center;
  gap: .4rem; border: 1px solid var(--line); background: var(--card-bg);
  border-radius: var(--radius); padding: .42rem .7rem; font-size: .85rem;
  white-space: nowrap; }
.device-chip.is-locked { border-color: var(--accent); }
.device-chip-dot { width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent); display: inline-block; }
.bag-chip-count { background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; min-width: 1.25rem; height: 1.25rem; display: grid;
  place-items: center; font-size: .75rem; font-weight: 600; padding: 0 .3rem; }

/* ---- shared section scaffolding ------------------------------------------- */
main { display: block; }
#app > section { max-width: 1280px; margin: 0 auto; padding: 3rem 1.25rem; }
.section-h { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; }
.section-head { margin-bottom: 1.5rem; }
.section-sub { color: var(--muted); font-size: .95rem; margin-top: .35rem; }
.crumbs { max-width: 1280px; margin: 0 auto; padding: 1rem 1.25rem 0;
  display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

.btn { display: inline-block; border: 1px solid var(--ink);
  border-radius: var(--radius); padding: .7rem 1.4rem; text-decoration: none;
  font-weight: 600; font-size: .95rem; background: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); }
.btn-ghost { border-color: var(--line); }
.btn:hover { filter: brightness(1.05); }

/* ---- hero ------------------------------------------------------------------ */
/* Full-bleed product-offering imagery behind the router (Cem, 2026-07-27):
   the hero real estate belongs to the range, the finder rides on top. */
.hero.has-bg { position: relative; overflow: hidden; color: #F6F4F1;
  max-width: none !important; padding: 0 !important;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(74vh, 760px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, .34) 0%,
    rgba(10, 10, 14, .48) 55%, rgba(10, 10, 14, .82) 100%); }
.hero.has-bg .hero-inner, .hero.has-bg .hero-callouts {
  position: relative; z-index: 1; }
.hero.has-bg .hero-inner { padding: 3.6rem 1.25rem 0; }
.hero.has-bg .hero-kicker, .hero.has-bg .hero-sub, .hero.has-bg .hero-device,
.hero.has-bg .hero-worlds-label { color: rgba(246, 244, 241, .86); }
.hero.has-bg .world-chip { border-color: rgba(246, 244, 241, .42);
  color: #F6F4F1; }
.hero.has-bg .finder-box { background: rgba(253, 252, 250, .97);
  border-color: transparent; color: #141414;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.hero.has-bg .finder-input { color: #141414; }
.hero.has-bg .finder-input::placeholder { color: #5C5C5C; }
.hero.has-bg .finder-recent { color: #F6F4F1;
  border-color: rgba(246, 244, 241, .42); }
.hero.has-bg .finder-recents-label { color: rgba(246, 244, 241, .75); }
.hero-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  width: 100%; max-width: 1280px; margin: 2.6rem auto 0;
  padding: 0 1.25rem 2.2rem; }
.callout { display: grid; gap: .2rem; align-content: start;
  text-decoration: none; border: 1px solid rgba(246, 244, 241, .30);
  background: rgba(12, 12, 16, .48); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-radius: var(--radius);
  padding: 1rem 1.2rem 1.1rem; color: #F6F4F1; }
.callout:hover { border-color: rgba(246, 244, 241, .68);
  background: rgba(12, 12, 16, .62); }
.callout-kicker { font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; opacity: .78; }
.callout-title { font-size: 1rem; line-height: 1.3; font-weight: 600; }
.callout-cta { font-size: .85rem; font-weight: 700; margin-top: .35rem; }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center;
  padding: 2.5rem 0 1rem; }
.hero-kicker { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02; margin: .8rem 0; }
.hero-sub { color: var(--muted); max-width: 34rem; margin: 0 auto 1.6rem;
  font-size: 1.05rem; }
.hero-secondary { margin-top: .9rem; }
.hero-device { background: none; border: 0; text-decoration: underline;
  color: var(--muted); font-size: .92rem; }
.hero-worlds { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap;
  justify-content: center; align-items: center; }
.hero-worlds-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: .25rem; }
.world-chip { text-decoration: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 500; }
.world-chip:hover { border-color: var(--b-accent, var(--accent));
  box-shadow: inset 0 -2.4em 0 0 var(--b-bg, transparent);
  color: var(--b-ink, inherit); }

/* ---- finder ----------------------------------------------------------------- */
.finder { position: relative; max-width: 34rem; margin: 0 auto; text-align: left; }
.finder-box { display: flex; align-items: center; gap: .6rem;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--card-bg); padding: .85rem 1.1rem; }
.finder-input { border: 0; background: none; flex: 1; font: inherit;
  font-size: 1.05rem; color: var(--ink); outline: none; }
.finder-input::placeholder { color: var(--muted); }
.finder-results { position: absolute; inset-inline: 0; top: calc(100% + .4rem);
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; z-index: 60;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18); }
.finder-item { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0 .8rem;
  padding: .65rem 1rem; text-decoration: none; align-items: baseline; }
.finder-item + .finder-item { border-top: 1px solid var(--line); }
.finder-item:hover, .finder-item.is-active { background: var(--accent);
  color: var(--accent-ink); }
.finder-item:hover .finder-sub, .finder-item.is-active .finder-sub { color: inherit; }
.finder-kind { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .75; grid-row: span 2; align-self: center; }
.finder-label { font-weight: 600; }
.finder-sub { grid-column: 2; font-size: .8rem; color: var(--muted); }
.kind-range .finder-label { opacity: .75; }
.finder-empty { padding: 1rem 1.2rem; }
.finder-empty-sub { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.finder-recents { display: flex; gap: .45rem; align-items: center;
  margin-top: .6rem; flex-wrap: wrap; }
.finder-recents-label { font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.finder-recent { border: 1px solid var(--line); background: none;
  border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; }
.finder-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  z-index: 120; display: grid; place-items: start center; padding: 12vh 1rem 0; }
.finder-overlay-panel { width: min(34rem, 100%); }

/* ---- gates ------------------------------------------------------------------ */
.gates-grid { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 1080px) {
  /* Five worlds is a fixed set — never let one orphan onto a second row. */
  .gates-grid { grid-template-columns: repeat(5, 1fr); }
}
.gate { display: block; text-decoration: none; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--card-bg); }
.gate-art { aspect-ratio: 4 / 3; overflow: hidden; }
.gate-art img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; }
.gate:hover .gate-art img { transform: scale(1.045); }
.gate-info { padding: 1rem 1.1rem 1.2rem; }
.gate-name { font-family: var(--font-display); font-size: 1.25rem; }
.gate-line { color: var(--muted); font-size: .88rem; margin: .3rem 0 .7rem; }
.gate-cta { font-weight: 600; font-size: .9rem; }

/* ---- cards ------------------------------------------------------------------ */
.design-grid { display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.design-card { text-decoration: none; display: block; }
.card-art { position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius); background: var(--card-bg);
  border: 1px solid var(--line); }
.card-art img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease; }
.design-card:hover .card-art img { transform: scale(1.04); }
/* Hover-to-second-render (the Pixel-store pattern): the alternate verified
   shot crossfades over the primary on fine pointers only; it ships src-less
   (data-src) so nothing extra is fetched before first intent. */
.card-art img.card-art-alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card-art img.card-art-alt {
    transition: opacity .35s ease, transform .45s ease; }
  .design-card:hover .card-art-alt.is-ready,
  .design-card:focus-visible .card-art-alt.is-ready { opacity: 1; }
}
.card-badge { position: absolute; top: .7rem; left: .7rem;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: var(--radius); }
.card-badge.m-official { background: var(--card-bg); color: var(--muted);
  border: 1px solid var(--line); }
.card-info { padding: .75rem .2rem 0; }
.card-name { font-weight: 600; }
.card-brand { color: var(--muted); font-size: .86rem; }
.card-cats { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.card-price { font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.card-fit { font-size: .78rem; margin-top: .3rem; }
.card-fit.is-yes { color: var(--ok, #1a7f37); }
.card-fit.is-no { color: var(--muted); }

.brand-grid { display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.brand-card { display: grid; grid-template-columns: 42% 1fr; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); min-height: 10.5rem; }
.brand-card-art { overflow: hidden; }
.brand-card-art img { width: 100%; height: 100%; object-fit: cover; }
.imgbox { overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); aspect-ratio: 1; }
.imgbox img { width: 100%; height: 100%; object-fit: cover;
  border: 0 !important; border-radius: 0 !important; }
.brand-card-info { padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.brand-card-name { font-family: var(--font-display); font-size: 1.15rem;
  display: flex; align-items: center; gap: .5rem; }
.brand-card-logo { width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line); }
.brand-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-card-line { color: var(--muted); font-size: .84rem; margin: .35rem 0 .8rem; }
.brand-card-cta { margin-top: auto; font-weight: 600; font-size: .85rem;
  color: var(--ink); }
.brand-card:hover { border-color: var(--b-accent); }
/* Multi-team licences (round 18): league box on the world page → team
   selector. Tiles without a demo world are honest range entries. */
.league-card { display: flex; align-items: center; gap: 1.1rem;
  padding: 1.2rem 1.4rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card-bg);
  text-decoration: none; color: var(--ink); }
.league-card:hover { border-color: var(--accent); }
.league-card > img { width: 64px; height: 64px; object-fit: contain;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  flex: 0 0 auto; }
.league-card-name { font-family: var(--font-display); font-size: 1.3rem;
  display: block; }
.league-card-line { color: var(--muted); font-size: .85rem; display: block;
  margin-top: .15rem; }
.league-card-cta { margin-left: auto; font-weight: 700; font-size: .85rem;
  white-space: nowrap; }
.league-head { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.league-head img { width: 72px; height: 72px; object-fit: contain;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.team-grid { display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.team-tile { display: flex; flex-direction: column; align-items: center;
  gap: .5rem; padding: 1rem .6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card-bg); text-align: center;
  text-decoration: none; color: var(--ink); }
a.team-tile:hover { border-color: var(--accent); }
.team-tile img { width: 64px; height: 64px; object-fit: contain;
  background: #fff; border-radius: 50%; border: 1px solid var(--line); }
.team-tile-name { font-weight: 700; font-size: .85rem; }
.team-tile-tag { font-size: .68rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 999px; padding: .1rem .5rem; }
.team-tile.is-range { border-style: dashed; }

.range-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.range-chip { border: 1px dashed var(--line); border-radius: 999px;
  padding: .3rem .8rem; font-size: .82rem; color: var(--muted);
  display: inline-flex; gap: .45rem; align-items: baseline; }
.range-chip-tag { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .8; }
.shelf-range { margin-top: 1.2rem; }
.shelf-range-label { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }

/* ---- shop by product type ---------------------------------------------------- */
.type-grid { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.type-card { text-decoration: none; display: block; }
.type-card-art { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card-bg); }
.type-card-art img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease; }
.type-card:hover .type-card-art img { transform: scale(1.05); }
.type-card-name { font-weight: 600; margin-top: .55rem; }
.type-card-count { color: var(--muted); font-size: .8rem; }
.bytype .shelf-range { margin-top: 1.4rem; }
.range-chip.is-live { border-style: solid; color: var(--ink);
  text-decoration: none; }
.range-chip.is-live:hover { border-color: var(--ink); }
.type-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); }
.type-hero { padding-bottom: 0 !important; }

/* ---- set story / trust ------------------------------------------------------ */
.setstory { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem;
  align-items: center; }
.setstory-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.setstory-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.setstory-media img:last-child { transform: translateY(1.6rem); }
.setstory-copy h2 { font-family: var(--font-display); font-size: 1.9rem; }
.setstory-copy > p { color: var(--muted); margin: .6rem 0; }
.setstory-detail { font-size: .95rem; }
.setstory-copy .btn { margin-top: 1rem; }
/* One compact proof strip — not three feature cards. */
.proof { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap;
  gap: .4rem 2.5rem; padding-block: 1.4rem !important; }
.proof p { color: var(--muted); font-size: .88rem; flex: 1 1 240px; }
.proof strong { color: var(--ink); }

/* ---- genre ------------------------------------------------------------------ */
.genre-hero { position: relative; border-radius: var(--radius); overflow: hidden; }
.genre-hero-art { aspect-ratio: 21 / 8; }
.genre-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.genre-hero-copy { position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.2rem 2rem 1.6rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.genre-hero-copy h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); }
.genre-hero-copy p { opacity: .9; }
.atmos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; }
.atmos img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover;
  width: 100%; }

/* ---- brand world -------------------------------------------------------------- */
.brand-hero { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius);
  overflow: hidden; background: var(--b-bg); color: var(--b-ink); }
.brand-hero-copy { padding: 2.6rem 2.4rem; display: flex; flex-direction: column;
  gap: .7rem; justify-content: center; align-items: flex-start; }
.brand-hero-official { font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; opacity: .8; }
.brand-hero-name { font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1; }
.brand-hero-line { opacity: .92; font-size: 1.05rem; }
.brand-hero-licence { font-size: .72rem; opacity: .65; }
.brand-hero .btn-primary { background: var(--b-accent); border-color: var(--b-accent);
  color: var(--b-accent-ink, var(--b-ink)); margin-top: .6rem; }
.brand-hero-art { overflow: hidden; }
.brand-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.brand-set-media img { aspect-ratio: 1; object-fit: cover; }
.brand-set-media.is-single { grid-template-columns: 1fr; }
.setstory-media img { aspect-ratio: 1; object-fit: cover; }
.brand-set { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem;
  align-items: center; }
.brand-set-copy h2 { font-family: var(--font-display); font-size: 1.9rem;
  margin-bottom: .6rem; }
.brand-set-copy p { color: var(--muted); }
.brand-set-copy .btn { margin-top: 1.1rem; }
.brand-set-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.brand-set-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.brand-endorse { border-top: 1px solid var(--line); text-align: center;
  color: var(--muted); font-size: .95rem; }

/* ---- design hub ---------------------------------------------------------------- */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: start; }
.hub-art { position: sticky; top: 5rem; }
.hub-art img { border-radius: var(--radius); border: 1px solid var(--line);
  width: 100%; }
.hub-photonote { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.hub-brand { display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.hub-brand a { font-weight: 600; }
.hub-brand .card-badge { position: static; }
.hub-name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: .3rem 0; line-height: 1.05; }
.hub-line { color: var(--muted); margin-bottom: 1.6rem; }
.hub-step { border-top: 1px solid var(--line); padding: 1.1rem 0 1.3rem; }
.hub-step-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem; display: flex; gap: .55rem;
  align-items: center; }
.hub-step-label span { display: grid; place-items: center; width: 1.5rem;
  height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: .8rem; }
.type-tiles { display: flex; gap: .7rem; flex-wrap: wrap; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-bg); padding: .7rem .9rem; min-width: 7.2rem; }
.type-tile img { border-radius: calc(var(--radius) * .6); }
.type-tile-thumb { display: block; width: 90px; height: 90px; overflow: hidden;
  border-radius: calc(var(--radius) * .6); }
.type-tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.type-tile-name { font-weight: 600; font-size: .85rem; }
.type-tile-price { font-size: .78rem; color: var(--muted); }
.type-tile.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.type-tile.is-unavail { border-style: dashed; opacity: .75; justify-content: center;
  min-height: 7rem; }
/* Type has no renders in the selected design variation (round 16). */
.type-tile.is-styleout { border-style: dashed; opacity: .6; }
.hub-typeblurb { font-size: .88rem; max-width: 34rem; margin-top: .6rem; }
.hub-unavail { margin-top: 1rem; border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .9rem; }
.hub-unavail-head { font-weight: 600; margin-bottom: .5rem; }
.hub-unavail-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: .35rem 0; }
.hub-unavail-row span { color: var(--muted); }
.hub-unavail-note { color: var(--muted); font-size: .8rem; margin-top: .6rem; }
.hub-lockwarn { border: 1px solid var(--accent); border-radius: var(--radius);
  padding: .8rem 1rem; font-size: .88rem; margin-bottom: 1rem; }
.device-group h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: .8rem 0 .45rem; }
.device-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.device-opt { border: 1px solid var(--line); border-radius: 999px;
  background: none; padding: .4rem .95rem; font-size: .88rem; }
.device-opt em { font-style: normal; color: var(--accent); font-size: .78rem; }
.device-opt.is-current { border-color: var(--ink); background: var(--ink);
  color: var(--bg); }
.device-opt[disabled] { opacity: .45; border-style: dashed; cursor: not-allowed; }
.device-dialog-note { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; }
.device-opt.is-current em { color: inherit; }
/* Selection is never colour-alone (Hallmark + both brand skills). */
.device-opt.is-current::before { content: '✓ '; }
.type-tile.is-current .type-tile-name::before { content: '✓ '; }
.confirm-card { border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; background: var(--card-bg); }
.confirm-line { font-size: .95rem; }
.confirm-ok { color: var(--ok, #1a7f37); font-size: .85rem; margin: .4rem 0 .8rem; }
.confirm-row { display: flex; align-items: center; gap: 1.2rem; }
.confirm-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.confirm-sku { color: var(--muted); font-size: .72rem; margin-top: .6rem; }
.hub-fail { color: var(--muted); font-size: .9rem; }

.set-grid { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.set-card { display: grid; grid-template-columns: 5rem 1fr; gap: .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-bg); padding: .9rem; align-items: center; }
.set-card img { border-radius: calc(var(--radius) * .6); }
.set-card-name { font-weight: 600; font-size: .92rem; }
.set-card-meta { color: var(--muted); font-size: .78rem; }
.set-card-reason { font-size: .78rem; margin-top: .3rem; color: var(--ink);
  font-style: italic; }
.set-card .btn { grid-column: 1 / -1; text-align: center; font-size: .85rem;
  padding: .55rem 1rem; }

/* ---- PDP ------------------------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.pdp-art { position: sticky; top: 5rem; }
.pdp-art img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.pdp-name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.1; margin: .3rem 0 .5rem; }
.pdp-type { display: block; font-size: .55em; color: var(--muted); }
.pdp-compat { display: flex; gap: 1rem; align-items: baseline; margin: 1.1rem 0; }
.pdp-thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.pdp-thumb { width: 64px; height: 64px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .6);
  background: var(--card-bg); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-current { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.brand-hero-logo { width: 72px; height: auto; border-radius: 10px;
  background: #fff; padding: 4px; }
.pdp-build { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.2rem; }
.pdp-build h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .6rem; }
.pdp-build li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .92rem;
  color: var(--muted); }
.pdp-build li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.pdp-info .brand-hero-licence { margin-top: 1.4rem; color: var(--muted); opacity: 1; }
.pdp-fail { text-align: center; max-width: 40rem; }
.pdp-fail h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .6rem; }
.pdp-fail .hub-unavail-row { justify-content: center; margin: .6rem 0; }
.pdp-fail .btn { margin-top: 1.4rem; }

/* ---- bag drawer ------------------------------------------------------------------ */
.bag-drawer { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 110; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0;
  width: min(26rem, 92vw); background: var(--bg); color: var(--ink);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.bag-head { display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-family: var(--font-display); font-size: 1.2rem; }
.bag-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; }
.bag-body { padding: 1.1rem 1.3rem; overflow-y: auto; flex: 1; }
.bag-empty { color: var(--muted); }
.bag-line { display: grid; grid-template-columns: 4.5rem 1fr auto auto;
  gap: .8rem; align-items: center; padding: .8rem 0;
  border-bottom: 1px solid var(--line); }
.bag-line img { border-radius: calc(var(--radius) * .6); }
.bag-line-name { font-weight: 600; font-size: .9rem; }
.bag-line-meta { color: var(--muted); font-size: .78rem; }
.bag-line-tag { font-size: .7rem; color: var(--accent); margin-top: .2rem; }
.bag-line-qty { display: flex; align-items: center; gap: .45rem; }
.bag-line-qty button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line);
  border-radius: 50%; background: none; }
.bag-line-price { font-weight: 600; font-size: .9rem; }
.bag-suggest { margin: 1.1rem 0; }
.bag-suggest-heading { font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.bag-suggest-card { display: grid; grid-template-columns: 4rem 1fr auto; gap: .8rem;
  align-items: center; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: .8rem; }
.bag-suggest-card + .bag-suggest-card { margin-top: .5rem; }
.bag-suggest-card img { border-radius: calc(var(--radius) * .6); }
.bag-suggest-name { font-size: .85rem; font-weight: 600; }
.bag-suggest-reason { font-size: .75rem; color: var(--muted); font-style: italic; }
.bag-suggest-add { border: 1px solid var(--ink); background: none;
  border-radius: var(--radius); padding: .45rem .7rem; font-size: .8rem;
  font-weight: 600; white-space: nowrap; }
.bag-total { display: flex; justify-content: space-between; padding: 1rem 0 .6rem;
  font-size: 1.05rem; }
.bag-checkout { width: 100%; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius); padding: .9rem; font-weight: 700;
  font-size: 1rem; }
.bag-handoff { font-size: .75rem; color: var(--muted); margin-top: .7rem; }
.bag-handoff.is-flash { color: var(--ink); }
/* ---- Phase 2 · Checkout (bag extras render only when checkout is on) ---- */
.bag-line.is-unbuyable img { opacity: .55; filter: grayscale(1); }
.bag-line.is-unbuyable .bag-line-price { text-decoration: line-through; color: var(--muted); }
.bag-line-flag { font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.bag-line-discount { font-size: .75rem; color: var(--accent); font-weight: 600; margin-left: .25rem; }
.bag-market { font-size: .8rem; color: var(--muted); margin: .9rem 0 .4rem; }
.bag-market .linklike, .bag-handoff .linklike { background: none; border: 0; padding: 0; font: inherit;
  color: var(--ink); text-decoration: underline; cursor: pointer; }
.bag-discount { display: grid; grid-template-columns: 1fr auto; gap: .4rem .5rem; align-items: center;
  margin: .4rem 0 .2rem; }
.bag-discount label { grid-column: 1 / -1; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); }
.bag-discount input { min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: inherit; text-transform: uppercase; }
.bag-discount-apply { border: 1px solid var(--ink); background: none; color: var(--ink); border-radius: var(--radius);
  padding: .55rem .8rem; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.bag-discount-apply[disabled] { opacity: .6; }
.bag-discount-note { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); min-height: 1em; margin: 0; }
.bag-discount-note[data-state] { color: var(--ink); }
.bag-abandoned { font-size: .78rem; color: var(--ink); margin: .5rem 0; }
.bag-abandoned .linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.bag-checkout[disabled] { opacity: .6; cursor: progress; }
.bag-handoff[data-state] { color: var(--ink); }
.bag-handoff.is-error { border-left: 3px solid var(--accent); padding-left: .6rem; }
.bag-handoff .bag-help { color: inherit; text-decoration: underline; white-space: nowrap; }
.bag-handoff-actions { display: flex; gap: .8rem; margin-top: .4rem; }
.market-chip { display: none; }                          /* shown by checkout.js when on */
.market-chip:not([hidden]) { display: flex; align-items: center; }
@media (max-width: 720px) { .market-chip:not([hidden]) { display: none; } }   /* the bag carries the same line */
.market-dialog .market-form { display: contents; }
.market-dialog .market-opt { display: flex; align-items: center; gap: .6rem; cursor: pointer; text-align: left; }
.market-dialog .market-opt em { font-style: normal; color: var(--muted); font-size: .8rem; }
.market-dialog .market-opt.is-off { opacity: .55; cursor: not-allowed; }
.market-dialog .market-actions { margin-top: 1rem; }
/* §15 D22 · shipping copy (PDP line + bag row) and the EU country select.
   Rendered only when checkout is on AND the manifest is ready — the dark path
   emits no markup at all, so these rules never match on main. */
.pdp-shipping { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.bag-shipping { display: flex; justify-content: space-between; align-items: baseline;
  font-size: .85rem; color: var(--muted); margin: -.35rem 0 .8rem; }
.bag-shipping strong { font-weight: 600; color: var(--ink); }
.market-dialog .market-country { display: grid; gap: .35rem; margin-top: .9rem; }
.market-dialog .market-country label { font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.market-dialog #market-country { padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }
.market-dialog .market-country-note { font-size: .75rem; color: var(--muted); margin: 0; }

/* ---- device dialog ------------------------------------------------------------------ */
.device-dialog { margin: auto; width: min(38rem, 92vw); max-height: 84vh;
  border-radius: var(--radius); background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); }
.device-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.device-dialog-head { padding: 1.4rem 1.6rem .6rem; position: relative; }
.device-dialog-head h2 { font-family: var(--font-display); font-size: 1.4rem; }
.device-dialog-head p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.device-dialog-close { position: absolute; top: 1rem; right: 1.1rem;
  background: none; border: 0; font-size: 1.5rem; }
.device-dialog-body { padding: .4rem 1.6rem 1.6rem; overflow-y: auto;
  max-height: 62vh; }
.device-unlock { margin-top: 1.2rem; background: none; border: 0;
  text-decoration: underline; color: var(--muted); font-size: .85rem; }

/* ---- footer ------------------------------------------------------------------------ */
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 2rem 1.25rem 2.6rem; }
.foot-line { font-size: .95rem; max-width: 44rem; }
.foot-legal { color: var(--muted); font-size: .78rem; margin-top: .7rem; }
.foot-variations { display: flex; gap: 1rem; margin-top: 1.3rem; font-size: .82rem;
  color: var(--muted); flex-wrap: wrap; }
.foot-variations a { color: var(--ink); }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .setstory, .brand-set, .hub, .pdp, .brand-hero { grid-template-columns: 1fr; }
  .hub-art, .pdp-art { position: static; }
  .trust { grid-template-columns: 1fr; gap: 1.2rem; }
  .brand-hero-art { order: -1; }
  .head-search-label { display: none; }
}
@media (max-width: 700px) {
  .head-inner { flex-wrap: wrap; padding-block: .55rem 0; gap: .5rem .8rem; }
  .head-actions { margin-left: auto; }
  .head-nav { order: 3; flex-basis: 100%; padding-bottom: .55rem; }
}

/* Touch interaction floor (Hallmark gate: ≥44px primary controls).
   Narrow viewports count too (audit D4): phones report fine pointers in
   emulation and some hybrids in reality — width is the honest second gate. */
@media (pointer: coarse), (max-width: 640px) {
  .device-opt, .type-tile, .world-chip, .finder-recent, .range-chip.is-live,
  .head-search, .device-chip, .bag-chip, .callout, .btn,
  .bag-suggest-add, .nav-caret, .nav-drop a, .team-tile { min-height: 44px; }
  .device-opt, .world-chip { display: inline-flex; align-items: center; }
  .bag-line-qty button { width: 2.5rem; height: 2.5rem; }
}

/* Motion discipline: honour reduced-motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 560px) {
  #app > section { padding: 2.2rem 1rem; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .gates-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .setstory-media img:last-child { transform: translateY(.8rem); }
  .device-chip { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Phase 1 Instrument: footer privacy links --------------------------- */
.foot-privacy { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; font-size: .82rem; align-items: center; }
.cfg-card.is-unbuyable .cfg-card-delta, .confirm-card.is-unbuyable .confirm-ok { color: var(--muted); }
.pdp-fail[data-state="not-buyable"] .section-sub { color: var(--ink); }
.foot-privacy a { color: inherit; }
.foot-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.foot-dns { display: none; }
html[data-consent-regime="optout"] .foot-dns { display: inline; }
/* Policy page prose */
.policy { max-width: 72ch; margin: 0 auto; padding: 2rem 1.25rem 3rem; line-height: 1.6; }
.policy h1 { font-size: 2rem; line-height: 1.1; margin: 0 0 .35rem; }
.policy .policy-meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.6rem; }
.policy h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.policy h3 { font-size: 1rem; margin: 1.3rem 0 .3rem; }
.policy table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .6rem 0 1rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.policy th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.policy .policy-table-wrap { overflow-x: auto; }
.policy .btn { margin-top: .4rem; }
