/* Perfect Toy Finder — three directions
 *
 * A) atelier  — warm off-white paper, deep forest green accent (safe, editorial)
 * B) coral    — cream paper, premium coral accent (mid)
 * C) midnight — near-black canvas, alabaster cards, blue accent (bold)
 */

:root {
  /* shared system */
  --serif: "Newsreader", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* density tokens (rewritten by JS) */
  --pad-card: 18px;
  --gap-grid: 28px;
  --img-ratio: 4 / 5;
  --pad-page: 56px;
}

/* ───── A · Atelier (default) ───── */
[data-theme="atelier"] {
  --bg:        #f6f3ec;
  --bg-2:      #efebe2;
  --paper:     #fbf9f4;
  --ink:       #1f1d18;
  --ink-2:     #4a4740;
  --ink-3:     #807c72;
  --rule:      rgba(31,29,24,0.10);
  --rule-2:    rgba(31,29,24,0.06);
  --accent:    #2f5a3f;     /* deep calming forest */
  --accent-ink:#ffffff;
  --accent-soft: rgba(47,90,63,0.08);
  --chip:      rgba(31,29,24,0.06);
  --chip-on:   #1f1d18;
  --chip-on-ink:#fbf9f4;
  --shadow-card: 0 1px 0 rgba(31,29,24,0.04);
  --shadow-panel: 0 24px 80px rgba(31,29,24,0.16), 0 2px 8px rgba(31,29,24,0.06);
  --kicker-color: #807c72;
}

/* ───── B · Coral ───── */
[data-theme="coral"] {
  --bg:        #fbf6f1;
  --bg-2:      #f5ece2;
  --paper:     #ffffff;
  --ink:       #1a1614;
  --ink-2:     #5a514a;
  --ink-3:     #9a8f86;
  --rule:      rgba(26,22,20,0.10);
  --rule-2:    rgba(26,22,20,0.05);
  --accent:    #d8624c;     /* premium coral */
  --accent-ink:#ffffff;
  --accent-soft: rgba(216,98,76,0.10);
  --chip:      rgba(26,22,20,0.05);
  --chip-on:   #1a1614;
  --chip-on-ink:#ffffff;
  --shadow-card: 0 1px 0 rgba(26,22,20,0.04);
  --shadow-panel: 0 24px 80px rgba(26,22,20,0.18), 0 2px 8px rgba(26,22,20,0.05);
  --kicker-color: #b8654f;
}

/* ───── C · Midnight ───── */
[data-theme="midnight"] {
  --bg:        #0e1118;
  --bg-2:      #161a23;
  --paper:     #1a1f2a;
  --ink:       #f4f1e8;
  --ink-2:     #b8b3a4;
  --ink-3:     #797568;
  --rule:      rgba(244,241,232,0.10);
  --rule-2:    rgba(244,241,232,0.05);
  --accent:    #6fa6ff;     /* refined blue */
  --accent-ink:#0e1118;
  --accent-soft: rgba(111,166,255,0.12);
  --chip:      rgba(244,241,232,0.07);
  --chip-on:   #f4f1e8;
  --chip-on-ink:#0e1118;
  --shadow-card: 0 1px 0 rgba(244,241,232,0.04);
  --shadow-panel: 0 24px 80px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
  --kicker-color: #6fa6ff;
}

/* density */
[data-density="airy"]    { --pad-card: 22px; --gap-grid: 36px; --img-ratio: 4 / 5; --pad-page: 64px; }
[data-density="regular"] { --pad-card: 16px; --gap-grid: 24px; --img-ratio: 4 / 5; --pad-page: 48px; }
[data-density="compact"] { --pad-card: 12px; --gap-grid: 16px; --img-ratio: 1 / 1; --pad-page: 36px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

/* ───── App shell ───── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ───── Sticky head (single backdrop surface for topbar + agebar) ───── */
.stickyhead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.stickyhead.has-agebar.agebar-shown,
.stickyhead:not(.has-agebar) {
  border-bottom-color: var(--rule-2);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-page);
}

.brand {
  white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  user-select: none;
  padding: 4px 6px 4px 0;
  margin: -4px 0 -4px -6px;
  border-radius: 8px;
  transition: opacity .2s ease, transform .25s cubic-bezier(.4,1.4,.5,1);
}
.brand:hover { opacity: 1; }
.brand:active { transform: scale(0.97); }
.brand-name {
  display: inline-flex;
  font-family: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  /* optical alignment with the star */
  transform: translateY(0.04em);
}
.brand-letter {
  display: inline-block;
  /* tiny per-letter rotations for the hand-drawn feel */
  transition: transform .35s cubic-bezier(.4,1.6,.4,1), color .25s ease;
}
.brand-letter:nth-child(odd)  { transform: translateY(-0.5px) rotate(-1.2deg); }
.brand-letter:nth-child(even) { transform: translateY(0.5px) rotate(1.2deg); }
.brand-letter:nth-child(3n)   { transform: translateY(-1px) rotate(2deg); }
.brand-letter:nth-child(5n)   { transform: translateY(0.8px) rotate(-2deg); }
.brand-letter--0 { color: #d8624c; }   /* coral */
.brand-letter--1 { color: #e0a94c; }   /* gold */
.brand-letter--2 { color: #3f6b54; }   /* sage */
.brand-letter--3 { color: #6280a3; }   /* slate blue */
[data-theme="midnight"] .brand-letter--0 { color: #e57460; }
[data-theme="midnight"] .brand-letter--1 { color: #f0bf5e; }
[data-theme="midnight"] .brand-letter--2 { color: #58a17a; }
[data-theme="midnight"] .brand-letter--3 { color: #7fa1cc; }
.brand:hover .brand-letter:nth-child(odd)  { transform: translateY(-1.5px) rotate(-2.4deg); }
.brand:hover .brand-letter:nth-child(even) { transform: translateY(1.5px) rotate(2.4deg); }
.brand:hover .brand-letter:nth-child(3n)   { transform: translateY(-2.5px) rotate(4deg); }
.brand:hover .brand-letter:nth-child(5n)   { transform: translateY(2.5px) rotate(-4deg); }

/* ── Brand mark: hand-drawn star + sparkles ── */
.brand-mark {
  position: relative;
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .5s cubic-bezier(.5,1.6,.4,1);
}
.brand-mark-svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.brand-mark .brand-star {
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, opacity;
}
.brand-star--big    { fill: #e0a94c; stroke: #1f1d18; stroke-width: 1.4; stroke-linejoin: round; }
.brand-star--small1 { fill: #d8624c; }
.brand-star--small2 { fill: #6280a3; }
.brand-star--dot    { fill: #3f6b54; }

[data-theme="midnight"] .brand-star--big    { fill: #f0bf5e; stroke: #f4f1e8; }
[data-theme="midnight"] .brand-star--small1 { fill: #e57460; }
[data-theme="midnight"] .brand-star--small2 { fill: #7fa1cc; }
[data-theme="midnight"] .brand-star--dot    { fill: #58a17a; }

/* one-shot intro: each shape pops in with stagger */
@keyframes brand-star-pop {
  0%   { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  60%  { opacity: 1; transform: scale(1.18) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.brand-mark .brand-star {
  animation: brand-star-pop .7s cubic-bezier(.4,1.6,.4,1) both;
}
.brand-star--big    { animation-delay: .05s; }
.brand-star--small1 { animation-delay: .25s; }
.brand-star--small2 { animation-delay: .35s; }
.brand-star--dot    { animation-delay: .45s; }

/* loading state — gentle twinkle */
@keyframes brand-star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0); }
  50%      { opacity: 0.4; transform: scale(0.78) rotate(-6deg); }
}
.brand.is-loading .brand-mark .brand-star {
  animation: brand-star-twinkle .85s ease-in-out infinite;
}
.brand.is-loading .brand-star--big    { animation-delay: 0s; }
.brand.is-loading .brand-star--small1 { animation-delay: .15s; }
.brand.is-loading .brand-star--small2 { animation-delay: .3s; }
.brand.is-loading .brand-star--dot    { animation-delay: .45s; }

/* hover — wand-flick with warm glow */
.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.08);
  filter: drop-shadow(0 0 10px color-mix(in srgb, #e0a94c 40%, transparent));
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .brand, .brand-mark .brand-star, .brand-letter { transition: none !important; animation: none !important; }
}

.topnav {
  display: flex; align-items: center; gap: 22px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ───── Age bar (appears on scroll, lives inside stickyhead) ───── */
.agebar {
  padding: 12px var(--pad-page);
  display: flex; align-items: center; gap: 18px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.agebar.is-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.agebar-lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
  flex-shrink: 0;
}
.agebar-current {
  font-family: var(--serif); font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap; flex-shrink: 0;
  padding-right: 18px;
  margin-right: 4px;
  border-right: 1px solid var(--rule);
}
.agebar-pills {
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
  scroll-behavior: smooth;
}
.agebar-pills::-webkit-scrollbar { display: none; }
.agebar-pill {
  appearance: none; border: 1px solid var(--rule); background: transparent;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12.5px; font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.agebar-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.agebar-pill.is-current {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.agebar-count {
  font-size: 12px; color: var(--ink-3);
  white-space: nowrap; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1080px) {
  .topnav { gap: 16px; font-size: 12.5px; }
}
@media (max-width: 720px) {
  .topnav a:nth-child(n+3) { display: none; }
}
.topnav a { cursor: pointer; }
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { color: var(--ink); font-weight: 500; }

.topright { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  appearance: none; border: 1px solid var(--rule); background: transparent;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s cubic-bezier(.4,1.4,.4,1), box-shadow .25s ease;
  position: relative;
}
.iconbtn:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--paper);
  transform: translateY(-1px);
}
.iconbtn:active { transform: translateY(0) scale(0.96); }
.iconbtn .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: var(--accent-ink);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 100px;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  font-variant-numeric: tabular-nums;
  animation: badge-pop .35s cubic-bezier(.4,1.6,.4,1) both;
}
@keyframes badge-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* Per-collection icon hover tints (heart/star/check carry the brand colors). */
.iconbtn--loved:hover {
  color: #cf5d4a;
  border-color: color-mix(in srgb, #cf5d4a 50%, transparent);
  background: color-mix(in srgb, #cf5d4a 8%, var(--paper));
  box-shadow: 0 0 24px color-mix(in srgb, #cf5d4a 20%, transparent);
}
.iconbtn--loved .badge { background: #cf5d4a; }
.iconbtn--wishlist:hover {
  color: #d4a25c;
  border-color: color-mix(in srgb, #d4a25c 55%, transparent);
  background: color-mix(in srgb, #d4a25c 10%, var(--paper));
  box-shadow: 0 0 24px color-mix(in srgb, #d4a25c 22%, transparent);
}
.iconbtn--wishlist .badge { background: #b88339; color: #fff; }
.iconbtn--owned:hover {
  color: #3f6b54;
  border-color: color-mix(in srgb, #3f6b54 50%, transparent);
  background: color-mix(in srgb, #3f6b54 9%, var(--paper));
  box-shadow: 0 0 24px color-mix(in srgb, #3f6b54 20%, transparent);
}
.iconbtn--owned .badge { background: #3f6b54; }

/* Tooltips — gentle fade-in, no JS. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.4,1.3,.4,1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.08);
  z-index: 60;
}
[data-tip]::before {
  content: '';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  border: 6px solid transparent;
  border-bottom-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.4,1.3,.4,1);
  z-index: 60;
}
[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .iconbtn { transition: none !important; }
  [data-tip]::after, [data-tip]::before { transition: opacity .15s ease !important; }
}

/* ───── Hero ───── */
.hero {
  padding: 36px var(--pad-page) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  position: relative;
}
/* Ambient drifting blocks behind the hero — quietly magical. */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  filter: blur(2.5px);
}
.hero::before {
  top: 50px; left: calc(50% - 480px);
  width: 60px; height: 60px;
  background: #e0a94c;
  transform: rotate(-10deg);
  animation: hero-orb-a 14s ease-in-out infinite;
}
.hero::after {
  top: 90px; right: calc(50% - 500px);
  width: 80px; height: 80px;
  background: #6280a3;
  transform: rotate(8deg);
  animation: hero-orb-b 18s ease-in-out infinite -3s;
  opacity: 0.32;
}
@keyframes hero-orb-a {
  0%, 100% { transform: rotate(-10deg) translate(0, 0); }
  50%      { transform: rotate(2deg) translate(12px, -10px); }
}
@keyframes hero-orb-b {
  0%, 100% { transform: rotate(8deg) translate(0, 0); }
  50%      { transform: rotate(-4deg) translate(-14px, 14px); }
}
.hero > * { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .hero::before, .hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none !important; }
}
.hero-intro {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--kicker-color); font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

/* ── Hero row: age selector + (parent-only) CTA, side by side ── */
.hero-row {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 4px;
}
.hero.has-side .hero-row {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) {
  .hero.has-side .hero-row { grid-template-columns: 1fr; }
}

/* ───── Hero selector (universal frame) ───── */
.hero-selector {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  width: 100%;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.hsel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.hsel-head-lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.hsel-head-val {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em;
  white-space: nowrap;
}

/* SLIDER style */
.hsel-slider {
  position: relative;
  margin: 8px 4px 0;
  padding-bottom: 4px;
}
.hsel-track {
  position: relative;
  height: 44px;
  display: flex; align-items: center;
}
.hsel-rail {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 2px; background: var(--rule); border-radius: 1px;
}
.hsel-rail-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 1px;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.hsel-tick {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rule);
  transition: all .25s ease;
  cursor: pointer;
}
.hsel-tick.is-passed { background: var(--accent); }
.hsel-tick.is-current {
  width: 16px; height: 16px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 0 1px var(--accent);
}
.hsel-tick:hover:not(.is-current) { background: var(--ink-2); transform: translate(-50%, -50%) scale(1.4); }
.hsel-axislbl {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 14px;
}

/* PILLS style */
.hsel-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
  justify-content: flex-start;
}
.hsel-pill {
  appearance: none; border: 1px solid var(--rule); background: transparent;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px; font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.hsel-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.hsel-pill.is-current {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
[data-theme="midnight"] .hsel-pill.is-current { background: var(--ink); color: var(--bg); }

/* DIAL style */
.hsel-dial {
  position: relative;
  height: 130px;
  overflow: hidden;
  margin: 12px 0 0;
  -webkit-mask: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.hsel-dial-strip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hsel-dial-item {
  width: 88px;
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: all .35s ease;
  cursor: pointer;
  height: 100px;
}
.hsel-dial-item.is-current {
  color: var(--ink);
  font-size: 32px;
}
.hsel-dial-item.is-near { color: var(--ink-2); font-size: 24px; }
.hsel-dial-needle {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
}
.hsel-dial-needle::before, .hsel-dial-needle::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.hsel-dial-needle::before { top: -4px; }
.hsel-dial-needle::after  { bottom: -4px; }

/* ───── Section header ───── */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  padding: 0 var(--pad-page);
  margin: 36px 0 24px;
}
.section-head-l {}
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--kicker-color);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-meta { font-size: 13px; color: var(--ink-3); }

/* ───── Layout: filters + grid ───── */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 0 var(--pad-page) 96px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--stickyhead-h, 128px) + 16px);
  max-height: calc(100vh - var(--stickyhead-h, 128px) - 32px);
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.filters::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.filter-group { margin-bottom: 28px; }
.filter-lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  border: none; background: transparent;
  text-align: left;
  font-family: inherit;
  transition: color .15s ease;
}
.filter-item:hover { color: var(--ink); }
.filter-item.is-active { color: var(--ink); font-weight: 500; }
.filter-item .check {
  width: 14px; height: 14px;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  transition: all .15s ease;
}
.filter-item.is-active .check {
  background: var(--ink); border-color: var(--ink);
}
.filter-item.is-active .check::after {
  content: ""; position: absolute; left: 3px; top: 0px;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(45deg);
}
.filter-item .count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag {
  appearance: none; background: var(--chip); border: none;
  padding: 6px 12px; border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.filter-tag:hover { color: var(--ink); }
.filter-tag.is-active { background: var(--chip-on); color: var(--chip-on-ink); }

/* price slider */
.price-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.price-track {
  position: relative; height: 24px; display: flex; align-items: center;
}
.price-rail { position: absolute; left: 0; right: 0; height: 2px; background: var(--rule); border-radius: 1px; }
.price-rail-fill { position: absolute; height: 2px; background: var(--accent); border-radius: 1px; }
.price-handle {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
  transform: translateX(-50%);
  cursor: pointer;
}

.filter-clear {
  background: transparent; border: none; padding: 0;
  font-size: 12px; color: var(--ink-3); cursor: pointer; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.filter-clear:hover { color: var(--ink); }

/* ───── Grid ───── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}
[data-density="compact"] .grid { grid-template-columns: repeat(4, 1fr); }
[data-density="airy"] .grid { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-2px); }

.card-img {
  position: relative;
  aspect-ratio: var(--img-ratio);
  background: var(--bg-2);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-img img { transform: scale(1.04); }
.card-save {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .2s ease;
  opacity: 0;
}
.card:hover .card-save { opacity: 1; }
.card-save.is-saved { opacity: 1; color: var(--accent); }
.card-save:hover { color: var(--ink); }
.card-tag {
  position: absolute; bottom: 12px; left: 12px;
  max-width: calc(100% - 24px);
  background: var(--paper);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(31,29,24,0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body { padding: 0 2px; }
[data-density="airy"] .card-body { padding: 0 4px; }
.card-brand {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.card-name { font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0 0 6px; }
[data-density="compact"] .card-name { font-size: 13.5px; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.card-age { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.card-price { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; }

/* empty state */
.empty {
  text-align: center; padding: 80px 20px;
  color: var(--ink-3);
}
.empty-title { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.02em; }

/* ───── Detail panel ───── */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 18, 14, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.detail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(560px, 92vw);
  background: var(--paper);
  box-shadow: var(--shadow-panel);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.detail.is-open { transform: translateX(0); }
.detail-topnav {
  position: absolute; top: 14px; left: 16px; right: 16px;
  z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.detail-topnav > * { pointer-events: auto; }
.detail-close {
  position: relative;
  appearance: none; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--rule-2);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2);
  transition: all .15s ease;
}
.detail-close:hover { color: var(--ink); background: var(--paper); }
.detail-pager {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--rule-2);
  border-radius: 100px;
  padding: 4px 8px;
}
.detail-pager-btn {
  appearance: none; border: none; background: transparent;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer;
  transition: all .15s ease;
}
.detail-pager-btn:not(:disabled):hover { background: var(--bg-2); color: var(--ink); }
.detail-pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.detail-pager-count {
  font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding: 0 4px;
}

.detail-quickactions {
  display: flex; gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  flex-wrap: wrap;
  position: relative;
}
.detail-quick {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 8px 14px 8px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,1.3,.4,1);
}
.detail-quick:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.detail-quick svg { transition: all .2s ease; }
.detail-quick.is-on {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.detail-quick--loved.is-on    { background: #cf5d4a; color: #fff; border-color: #cf5d4a; box-shadow: 0 0 24px color-mix(in srgb, #cf5d4a 30%, transparent); }
.detail-quick--wishlist.is-on { background: #b88339; color: #fff; border-color: #b88339; box-shadow: 0 0 24px color-mix(in srgb, #d4a25c 35%, transparent); }
.detail-quick--owned.is-on    { background: #3f6b54; color: #fff; border-color: #3f6b54; box-shadow: 0 0 24px color-mix(in srgb, #3f6b54 30%, transparent); }
.detail-quick-listwrap { position: relative; }

/* List picker popover (inside detail panel) */
.list-picker-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  z-index: 5;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
  padding: 8px;
  animation: locator-pop-in .18s cubic-bezier(.4,1.3,.4,1) both;
}
.list-picker-h {
  padding: 8px 12px 10px;
  font-family: var(--serif); font-size: 14px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 4px;
  color: var(--ink);
}
.list-picker-empty {
  padding: 14px 12px;
  font-size: 12.5px; color: var(--ink-3);
  text-align: center;
}
.list-picker-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.list-picker-item {
  appearance: none;
  background: transparent; border: none;
  width: 100%;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: background .12s ease, color .12s ease;
}
.list-picker-item:hover { background: var(--bg-2); color: var(--ink); }
.list-picker-name { font-weight: 500; }
.list-picker-meta { font-size: 11px; color: var(--ink-3); }
.list-picker-check { color: var(--accent); display: inline-flex; }
.list-picker-item.is-on { color: var(--accent); }
.list-picker-create {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  appearance: none;
  background: var(--bg-2);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: all .15s ease;
}
.list-picker-create:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.list-picker-create .plus { font-family: var(--serif); font-size: 18px; line-height: 1; font-weight: 300; }

.detail-keyhint {
  margin-top: 22px;
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.02em;
  text-align: center;
}
.detail-scroll { flex: 1; overflow-y: auto; }
.detail-gallery {
  position: relative;
  background: var(--bg-2);
  aspect-ratio: 4/5;
  display: flex;
  overflow: hidden;
}
.detail-gallery img {
  width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.detail-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.detail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none; padding: 0;
}
.detail-dot.is-active { background: #fff; width: 18px; border-radius: 3px; }

.detail-body { padding: 36px 40px 40px; }
.detail-brand {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--kicker-color); margin-bottom: 10px;
}
.detail-name {
  font-family: var(--serif);
  font-size: 36px; line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 400;
}
.detail-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--ink-2);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.detail-meta .price { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.detail-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.detail-section { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.detail-section:last-child { border-bottom: none; }
.detail-h {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.detail-why { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail-pill {
  background: var(--chip); padding: 6px 12px; border-radius: 100px;
  font-size: 12px; color: var(--ink-2);
}

.detail-actions { padding: 24px 40px 32px; display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border-top: 1px solid var(--rule); }
.btn {
  appearance: none; border: none; background: var(--ink); color: var(--paper);
  padding: 16px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer;
  transition: all .15s ease;
  width: 100%;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--chip); color: var(--ink); border-color: transparent; }
.btn .arrow { font-size: 18px; opacity: 0.6; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); opacity: 1; }
.btn-row { display: flex; align-items: center; gap: 10px; }
.btn-logo {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--ink);
}

/* saved bar */
.saved-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 100px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: all .3s ease;
  z-index: 80;
  box-shadow: var(--shadow-panel);
}
.saved-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ───── Welcome / onboarding modal ───── */
@keyframes welcome-rise {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% + 24px)) scale(0.97); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes welcome-scrim-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes welcome-orb-drift-1 {
  0%   { transform: translate(0, 0) rotate(-8deg) scale(1); }
  50%  { transform: translate(20px, -16px) rotate(4deg) scale(1.04); }
  100% { transform: translate(0, 0) rotate(-8deg) scale(1); }
}
@keyframes welcome-orb-drift-2 {
  0%   { transform: translate(0, 0) rotate(12deg) scale(1); }
  50%  { transform: translate(-18px, 22px) rotate(-6deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(12deg) scale(1); }
}
@keyframes welcome-orb-drift-3 {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(12px, 18px) rotate(8deg); }
}

.welcome-scrim {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(ellipse 80% 60% at 75% 25%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 55% at 20% 80%, color-mix(in srgb, #cf5d4a 18%, transparent), transparent 65%),
    color-mix(in srgb, var(--bg) 60%, #000 40%);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  animation: welcome-scrim-in .55s ease both;
  overflow: hidden;
}
.welcome-orb {
  position: absolute;
  display: block;
  border-radius: 14px;
  opacity: 0.7;
  filter: blur(2px);
  pointer-events: none;
}
.welcome-orb--1 { top: 8%;  left: 10%; width: 96px;  height: 96px; background: #e0a94c; animation: welcome-orb-drift-1 14s ease-in-out infinite; transform: rotate(-8deg); }
.welcome-orb--2 { top: 70%; left: 6%;  width: 70px;  height: 70px; background: #cf5d4a; animation: welcome-orb-drift-2 18s ease-in-out infinite; transform: rotate(12deg); }
.welcome-orb--3 { top: 12%; right: 8%; width: 110px; height: 110px;background: #3f6b54; animation: welcome-orb-drift-3 16s ease-in-out infinite -2s; transform: rotate(-3deg); opacity: 0.55; }
.welcome-orb--4 { top: 75%; right: 12%; width: 80px; height: 80px; background: #6280a3; animation: welcome-orb-drift-1 20s ease-in-out infinite -5s; transform: rotate(15deg); opacity: 0.6; }
.welcome-orb--5 { top: 38%; right: 4%; width: 50px; height: 50px;  background: #d4a25c; animation: welcome-orb-drift-2 11s ease-in-out infinite -1s; opacity: 0.55; filter: blur(1px); }

.welcome-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 201;
  width: min(92vw, 540px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-panel);
  padding: 36px 40px 32px;
  animation: welcome-rise .55s cubic-bezier(.4, 1.3, .4, 1) both;
}
.welcome-modal--hero {
  width: min(94vw, 660px);
  padding: 48px 56px 40px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--paper);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--rule));
  text-align: center;
}
@media (max-width: 600px) {
  .welcome-modal--hero { padding: 36px 28px 28px; }
}
.welcome-mark {
  width: 36px; height: 36px;
  margin-bottom: 22px;
}
.welcome-mark--big {
  width: 60px; height: 60px;
  margin: 0 auto 28px;
}

.welcome-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--kicker-color); font-weight: 500;
  margin-bottom: 14px;
}
.welcome-modal--hero .welcome-eyebrow { letter-spacing: 0.26em; }
.welcome-h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 14px;
  text-wrap: balance;
}
.welcome-h--xl {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.welcome-h em { font-style: italic; color: var(--accent); }
.welcome-sub {
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 26px;
  text-wrap: pretty;
}
.welcome-sub--big {
  font-size: 16px; line-height: 1.55;
  max-width: 46ch;
  margin: 0 auto 32px;
}
.welcome-modal--hero .welcome-pills { justify-content: center; }
.welcome-modal--hero .welcome-cta-row { justify-content: center; gap: 14px; }
.welcome-modal--hero .welcome-skip { margin-top: 14px; }
.welcome-modal--hero .welcome-choices { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .welcome-orb { animation: none !important; }
  .welcome-mark--big .brand-block { animation: none !important; }
}
.welcome-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.welcome-choice {
  appearance: none; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px 18px;
  display: flex; align-items: center; gap: 16px;
  text-align: left; font-family: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  width: 100%;
}
.welcome-choice:hover { border-color: var(--ink); background: var(--paper); transform: translateY(-1px); }
.welcome-choice-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.welcome-choice-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.welcome-choice-body strong {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; letter-spacing: -0.015em;
  color: var(--ink);
}
.welcome-choice-body em {
  font-style: normal;
  font-size: 12px; letter-spacing: 0;
  color: var(--ink-3);
}
.welcome-choice-foot {
  font-size: 13px; color: var(--ink-2);
  margin-top: 6px; line-height: 1.4;
}
.welcome-choice-arrow {
  font-size: 22px; color: var(--ink-3);
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.welcome-choice:hover .welcome-choice-arrow { color: var(--ink); transform: translateX(3px); }
.welcome-skip {
  appearance: none; background: transparent; border: none; padding: 8px 0;
  font-size: 13px; color: var(--ink-3); font-family: inherit;
  cursor: pointer; transition: color .15s ease;
  display: block; margin: 6px auto 0;
}
.welcome-skip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.welcome-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0 26px;
}
.welcome-pill {
  appearance: none; background: var(--bg); border: 1px solid var(--rule);
  padding: 10px 16px; border-radius: 100px;
  font-size: 14px; color: var(--ink-2); font-family: inherit;
  cursor: pointer; transition: all .15s ease;
}
.welcome-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.welcome-pill.is-selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.welcome-cta-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 20px;
}

/* ───── Create-list kind selector ───── */
.list-kind-stack {
  display: flex; flex-direction: column; gap: 8px;
}
.list-kind-opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.list-kind-opt:hover { border-color: var(--ink-3); }
.list-kind-opt.is-selected {
  border-color: var(--ink);
  background: var(--accent-soft);
}
.list-kind-opt input[type="radio"] {
  margin: 4px 0 0 0;
  accent-color: var(--ink);
}
.list-kind-opt > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.list-kind-opt strong {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.list-kind-opt em {
  font-style: normal;
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.4;
}

/* ───── Hero-side CTA (parent audience, sits next to age selector) ───── */
.hero-cta {
  position: relative;
  background: linear-gradient(155deg, var(--accent-soft), color-mix(in srgb, var(--paper) 85%, var(--accent) 5%));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--rule));
  border-radius: var(--r-xl);
  padding: 22px 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.hero-cta::after {
  content: '';
  position: absolute; right: -38px; top: -38px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-cta-mark {
  width: 28px; height: 28px;
  margin-bottom: 4px;
}
.hero-cta-eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--kicker-color); font-weight: 500;
}
.hero-cta-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  line-height: 1.18;
  text-wrap: balance;
}
.hero-cta-sub {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.hero-cta-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}
.hero-cta-link {
  appearance: none; background: transparent; border: none;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0;
  transition: color .15s ease, gap .2s ease;
}
.hero-cta-link:hover { color: var(--ink); gap: 9px; }
.hero-cta-link .arrow { font-size: 16px; opacity: 0.7; }

/* ───── Sticky agebar CTA (visible when scrolled past hero) ───── */
.agebar-cta {
  appearance: none;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 100px;
  padding: 7px 14px 7px 9px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.agebar-cta:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.agebar-cta .arrow { font-size: 15px; opacity: 0.65; }
.agebar-cta:hover .arrow { opacity: 1; }
.agebar-cta-mark {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
/* Star sits on the dark pill — switch the outline to the pill's text colour. */
.agebar-cta-mark .brand-star--big { stroke: var(--bg); stroke-width: 1.6; }
.agebar-cta:hover .agebar-cta-mark .brand-star--big { stroke: var(--accent-ink); }
@media (max-width: 1080px) {
  .agebar-cta { padding: 6px 12px 6px 8px; font-size: 12px; }
  .agebar-cta-mark { width: 14px; height: 14px; }
}
@media (max-width: 820px) {
  .agebar-lbl, .agebar-count { display: none; }
}
@media (max-width: 640px) {
  .agebar-cta span:not(.arrow):not(.agebar-cta-mark) { display: none; }
}

/* ───── Registry product claim button + claimed tag ───── */
.registry-product { position: relative; display: flex; flex-direction: column; }
.registry-product.is-claimed > .card { opacity: 0.65; }
.registry-claim-btn {
  appearance: none;
  margin-top: 10px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px; font-family: inherit; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.registry-claim-btn:hover { background: var(--accent); color: var(--accent-ink); }
.registry-claim-btn .arrow { font-size: 16px; opacity: 0.6; }
.registry-claim-btn:hover .arrow { opacity: 1; }
.registry-claimed-tag {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}

/* ───── Registry claims list (owner view) ───── */
.registry-claims {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 36px;
}
.registry-claims-head { margin-bottom: 16px; }
.registry-claims-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.registry-claim {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--rule-2);
}
.registry-claim:first-child { border-top: none; padding-top: 0; }
.registry-claim img {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.registry-claim-body { flex: 1; min-width: 0; }
.registry-claim-name { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.registry-claim-buyer { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.registry-claim-note {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--ink-2);
  margin: 0; line-height: 1.45;
}

/* extra little kind badge variant on list cards (uses .list-trending base) */
.list-kind-badge {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

/* utility */
.hide { display: none !important; }

/* ───── Location & currency pill (topbar) ───── */
.locator-wrap { position: relative; }
.locator {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 6px 12px 6px 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s ease;
  height: 38px;
}
.locator:hover {
  background: var(--paper);
  color: var(--ink); border-color: var(--ink-3);
  transform: translateY(-1px);
}
.locator-flag {
  font-size: 18px;
  line-height: 1;
}
.locator-cur {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .locator-cur { display: none; }
  .locator { padding: 6px 8px; }
}

.locator-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: 280px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
  padding: 8px;
  animation: locator-pop-in .2s cubic-bezier(.4,1.3,.4,1) both;
}
@keyframes locator-pop-in {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.locator-pop-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 4px;
  font-family: var(--serif); font-size: 14px; letter-spacing: -0.01em;
  color: var(--ink);
}
.locator-pop-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.locator-pop-list {
  list-style: none; margin: 0; padding: 0;
}
.locator-pop-item {
  appearance: none;
  background: transparent; border: none;
  width: 100%;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: background .12s ease, color .12s ease;
}
.locator-pop-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.locator-pop-item.is-current {
  background: var(--accent-soft);
  color: var(--ink);
}
.locator-pop-flag { font-size: 18px; line-height: 1; }
.locator-pop-country { font-weight: 500; }
.locator-pop-cur {
  font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.locator-pop-item.is-current .locator-pop-cur { color: var(--accent); }
.locator-pop-check {
  display: inline-flex; color: var(--accent);
}

/* ───── Welcome modal — locale picker row ───── */
.welcome-locale-wrap {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin: 8px auto 18px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 100px;
  width: max-content;
  max-width: 100%;
}
.welcome-locale-lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.welcome-locale-trigger-wrap { position: relative; }
.welcome-locale-trigger {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.welcome-locale-trigger:hover {
  border-color: var(--ink-3);
  background: var(--bg);
}
.welcome-locale-flag { font-size: 16px; line-height: 1; }
.welcome-locale-country { color: var(--ink); }
.welcome-locale-cur {
  color: var(--ink-3); font-size: 11.5px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.welcome-locale-chev {
  font-size: 11px; color: var(--ink-3);
  margin-left: 2px;
}
.welcome-locale-trigger-wrap .locator-pop {
  right: auto; left: 0;
  width: 280px;
  top: calc(100% + 8px);
}

/* ───── Playful pass — bring the new logo's vibe into the rest of the UI ───── */

/* Eyebrows + section labels switch to chunky display for more character. */
.page-eyebrow,
.section-eyebrow,
.welcome-eyebrow,
.hero-eyebrow,
.hero-cta-eyebrow,
.registry-cta-eyebrow,
.essentials-stagepill-sub,
.essentials-section-count,
.collections-stat .lbl,
.essentials-tally-stat .lbl,
.share-stat .lbl,
.kids-meta {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* Badges and on-image tags pick up the chunky display family too. */
.essentials-badge,
.essentials-chip,
.list-trending,
.list-kind-badge,
.iconbtn .badge,
.collections-tab .count,
.lists-tab .count,
.essentials-stagepill-h {
  font-family: var(--display);
}

/* Big numbers (stats / tallies / counts) get the chunky display weight. */
.collections-stat .num,
.collections-stat .num em,
.essentials-tally-stat .num,
.essentials-tally-stat .num em,
.share-stat .num,
.share-stat .num em {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Stat numbers carry their tab's brand color for a more colorful read. */
.collections-stat--loved .num    { color: #cf5d4a; }
.collections-stat--wishlist .num { color: #b88339; }
.collections-stat--owned .num    { color: #3f6b54; }
.collections-stat--lists .num    { color: #6280a3; }
.collections-stat .num em { color: color-mix(in srgb, currentColor 55%, transparent); }

/* Tally bar gradient mirrors the brand palette so the progress feels celebratory. */
.essentials-tally-bar-fill {
  background: linear-gradient(90deg, #e0a94c, #cf5d4a 50%, #6280a3);
}

/* Must-have badge gets a warm gold treatment (not flat ink). */
.essentials-badge-must {
  background: linear-gradient(135deg, #e0a94c 0%, #cf8a3d 100%);
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.essentials-badge-nice {
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Trending pill leans gold instead of inky black. */
.list-trending {
  background: linear-gradient(135deg, #e0a94c, #cf8a3d) !important;
  color: #fff !important;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Subtle hand-drawn wobble on product cards — same energy as the wordmark. */
.card { transition: transform .35s cubic-bezier(.4,1.4,.4,1), border-color .15s ease; }
.card:hover { transform: translateY(-3px) rotate(-0.4deg); }
.card:nth-child(2n):hover { transform: translateY(-3px) rotate(0.4deg); }
.card:nth-child(3n):hover { transform: translateY(-4px) rotate(0.6deg); }
.card:nth-child(5n):hover { transform: translateY(-4px) rotate(-0.7deg); }
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none !important; }
}

/* Iconbtn icons get a touch more presence — slightly heavier strokes. */
.iconbtn svg { stroke-width: 1.8; }

/* Toast adds a tiny sparkle ✦ at the start when something saves. */
.saved-toast {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.saved-toast::before {
  content: '✦';
  margin-right: 6px;
  color: #e0a94c;
  font-size: 14px;
  display: inline-block;
  animation: saved-toast-twinkle 1.4s ease-in-out infinite;
}
@keyframes saved-toast-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(1.18) rotate(20deg); opacity: 0.85; }
}

/* Empty-state titles + page-titles em accents pull the gold/coral hint
   so headlines feel a little more alive. */
.empty-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }

/* Filter / age pills round a touch more pillowy on hover. */
.agebar-pill,
.lists-chip,
.welcome-pill,
.essentials-stagepill,
.kids-interest-pick,
.kids-interest-chip {
  transition: all .2s cubic-bezier(.4,1.4,.4,1);
}
.agebar-pill:hover,
.lists-chip:hover,
.welcome-pill:hover {
  transform: translateY(-1px);
}

/* The "+" in 'Add an essential' / 'Add a kid' / 'Add to list' cards uses
   the chunky display so the plus reads as friendly. */
.essentials-addcard-plus,
.kids-add-btn .plus,
.list-picker-create .plus {
  font-family: var(--display);
  font-weight: 500;
}

/* Big page titles: keep serif as the headline font but warm up the italic accent. */
.page-title em,
.hero-title em,
.welcome-h em,
.hero-cta-title em,
.registry-cta-title em,
.essential-item-title em,
.essentials-pagehead-l .page-title em,
.collections-pagehead-l .page-title em {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #cf5d4a));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Detail-panel pager uses the display font for a polished count. */
.detail-pager-count { font-family: var(--display); font-weight: 500; letter-spacing: 0.05em; }
