/* =====================================================================
   WorthDex — public site stylesheet (GTM-1 / P2-11b)
   Premium dark SaaS aesthetic. Dark-first, mobile-first, token-driven.
   No framework. Tokens mirror ios/Sources/DesignSystem/Theme.swift.
   ===================================================================== */

:root {
  /* Brand */
  --accent:           #FDB908;   /* electric yellow — used SPARINGLY */
  --accent-press:     #E5A600;
  --on-accent:        #0B1020;   /* text on the accent fill */

  /* Surfaces (dark-first) */
  --bg:               #0B1020;   /* page navy */
  --surface:          #161E33;   /* elevated surface */
  --surface-2:        #1C2540;   /* slightly lighter card */
  --surface-3:        #232E50;   /* hover / inset */

  /* Text */
  --text:             #F2F5F7;
  --text-secondary:   #A9B2C3;
  --text-tertiary:    #788299;

  /* Semantic price direction (never color-ALONE — always pair w/ sign/arrow) */
  --up:               #3FD08B;   /* success green */
  --up-bg:            rgba(63, 208, 139, 0.12);
  --down:             #FF6B6B;   /* danger red */
  --down-bg:          rgba(255, 107, 107, 0.12);

  /* Lines */
  --border:           rgba(255, 255, 255, 0.08);
  --border-strong:    rgba(255, 255, 255, 0.14);

  /* Radii */
  --r-card:           16px;
  --r-btn:            14px;
  --r-pill:           999px;

  /* Shadows + glows */
  --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-lg:        0 24px 64px rgba(0, 0, 0, 0.46);
  --glow-accent:      0 0 0 1px rgba(253, 185, 8, 0.30), 0 8px 32px rgba(253, 185, 8, 0.18);

  /* Type */
  --font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-num:    ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-mono:   ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw:        1120px;
  --maxw-prose:  720px;
  --gutter:      clamp(20px, 5vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle top glow + grid wash — our-own decoration, no card art */
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(253, 185, 8, 0.10), transparent 60%),
    radial-gradient(900px 600px at 6% 0%, rgba(58, 90, 180, 0.16), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------- Focus / a11y ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 0 0 var(--r-btn) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; }
section { scroll-margin-top: 88px; }

/* ===================================================================
   Header / nav
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 16px var(--gutter);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: var(--text-secondary); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-cta {
  color: var(--on-accent); background: var(--accent); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.site-nav .nav-cta:hover { background: var(--accent-press); color: var(--on-accent); }

/* ===================================================================
   Buttons / CTAs
   =================================================================== */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 16px; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cta.primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow-accent); }
.cta.primary:hover { transform: translateY(-1px); background: var(--accent-press); }
.cta.secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.cta.secondary:hover { background: var(--surface-3); transform: translateY(-1px); }

.badge-link { display: inline-flex; transition: transform .16s ease, filter .16s ease; }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
.badge-link img { height: 56px; width: auto; }

/* ===================================================================
   Chips / badges / pills
   =================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge-set {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--text);
}

/* price direction pill (sign + arrow always present, never color alone) */
.delta { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-num); font-weight: 600; font-size: 14px; padding: 3px 9px; border-radius: var(--r-pill); }
.delta.up   { color: var(--up);   background: var(--up-bg); }
.delta.down { color: var(--down); background: var(--down-bg); }
.delta .arrow { font-size: 12px; }

/* ===================================================================
   Cards / surfaces
   =================================================================== */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  margin-top: 96px; padding: 48px var(--gutter) 56px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.site-footer .wrap-inner { max-width: var(--maxw); margin-inline: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.site-footer nav a { color: var(--text-secondary); font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .footer-brand img { height: 24px; }
.site-footer .disclaimer { color: var(--text-tertiary); font-size: 13px; max-width: 640px; }
.site-footer .prices-note { color: var(--text-tertiary); font-size: 13px; margin-top: 8px; max-width: 640px; }
.site-footer .browse-all { margin-top: 18px; }
.site-footer .browse-all a { color: var(--accent); font-weight: 600; font-size: 15px; }

/* ===================================================================
   HERO (landing)
   =================================================================== */
.hero { max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.03; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(253, 185, 8, 0.35);
}
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-secondary); max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.hero-sub { font-size: 15px; }
.hero-sub a { color: var(--accent); font-weight: 600; }
.hero-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

/* Hero visual — our-own scan→value illustration */
.hero-visual { position: relative; }
.scan-illustration { width: 100%; height: auto; filter: drop-shadow(0 30px 70px rgba(0,0,0,0.5)); }

/* ===================================================================
   Trust strip
   =================================================================== */
.trust { max-width: var(--maxw); margin-inline: auto; padding: 8px var(--gutter) 24px; }
.trust ul { list-style: none; margin: 0; padding: 20px clamp(20px,4vw,36px); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.trust li .ico { color: var(--accent); flex: 0 0 auto; }
.trust li strong { color: var(--text); font-family: var(--font-num); }

/* ===================================================================
   Generic section header
   =================================================================== */
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.section-head { max-width: var(--maxw-prose); margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 18px; }

/* ===================================================================
   How it works (3 steps)
   =================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 26px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--accent); font-family: var(--font-num); font-weight: 700; font-size: 18px;
}
.steps li h3 { font-size: 19px; margin-bottom: 8px; }
.steps li p { color: var(--text-secondary); font-size: 15px; }
.steps .step-ico { position: absolute; top: 26px; right: 24px; color: var(--text-tertiary); }

/* ===================================================================
   Features grid
   =================================================================== */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px 28px; transition: border-color .2s ease, transform .2s ease; }
.feature-grid li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-grid .f-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(253,185,8,0.10); color: var(--accent); margin-bottom: 18px; }
.feature-grid h3 { font-size: 20px; margin-bottom: 10px; }
.feature-grid p { color: var(--text-secondary); font-size: 15.5px; }

/* ===================================================================
   Honest-pricing explainer (the wedge)
   =================================================================== */
.wedge { max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.wedge-card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: 22px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.wedge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.wedge h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.wedge p { color: var(--text-secondary); font-size: 17px; }
.wedge p + p { margin-top: 14px; }
.wedge .demo { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.wedge .demo .row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.wedge .demo .row:last-child { border-bottom: 0; }
.wedge .demo .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.wedge .demo .lbl small { display: block; text-transform: none; letter-spacing: 0; color: var(--text-tertiary); font-size: 12px; margin-top: 2px; }
.wedge .demo .val { font-family: var(--font-num); font-weight: 700; font-size: 26px; }
.wedge .demo .val.sold { color: var(--text); }
.wedge .demo .val.ask  { color: var(--text-secondary); }
.wedge .demo .val.spread { color: var(--accent); font-size: 20px; }

/* ===================================================================
   Pricing
   =================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 32px 30px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: rgba(253,185,8,0.4); box-shadow: var(--glow-accent); position: relative; }
.plan-card.featured::after { content: "Most popular"; position: absolute; top: -11px; right: 22px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.plan-card h3 { font-size: 22px; margin-bottom: 6px; }
.plan-card .plan-price { font-family: var(--font-num); margin: 14px 0; }
.plan-card .plan-price .amt { font-size: 38px; font-weight: 800; }
.plan-card .plan-price .per { color: var(--text-secondary); font-size: 16px; }
.plan-card .plan-price .alt { display: block; color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.plan-card .plan-trial { color: var(--accent); font-weight: 600; font-size: 14px; margin: -6px 0 0; }

/* ===================================================================
   Search (hero box, browse-hub box, /cards/search/ page)
   =================================================================== */
.search-box { display: flex; gap: 10px; margin: 8px 0 18px; max-width: 520px; flex-wrap: wrap; }
.search-box .search-input {
  flex: 1 1 200px; min-width: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-btn);
  padding: 13px 16px; font-size: 16px; font-family: var(--font-body);
}
.search-box .search-input::placeholder { color: var(--text-tertiary); }
.search-box .search-input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.search-page .lede { color: var(--text-secondary); font-size: 18px; max-width: 60ch; margin-bottom: 24px; }
.search-page .search-status { color: var(--text-secondary); font-size: 15px; margin: 6px 0 18px; min-height: 1.4em; }
.search-results { margin-top: 8px; }
.plan-card ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.plan-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); font-size: 15px; }
.plan-card ul li .tick { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.plan-card .plan-terms { color: var(--text-tertiary); font-size: 12.5px; line-height: 1.5; margin-top: auto; }
.plan-card .cta { width: 100%; justify-content: center; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq-list { max-width: var(--maxw-prose); margin-inline: auto; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 4px 22px; transition: border-color .2s ease; }
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s ease; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-secondary); font-size: 15.5px; padding: 0 0 20px; max-width: 62ch; }

/* ===================================================================
   Final CTA
   =================================================================== */
.final-cta { max-width: var(--maxw); margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.final-cta .panel { text-align: center; background: linear-gradient(160deg, rgba(253,185,8,0.10), var(--surface)); border: 1px solid rgba(253,185,8,0.28); border-radius: 24px; padding: clamp(40px, 6vw, 72px) var(--gutter); box-shadow: var(--shadow-lg); }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.final-cta p { color: var(--text-secondary); font-size: 18px; max-width: 46ch; margin: 0 auto 28px; }
.final-cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ===================================================================
   CARD PAGE
   =================================================================== */
.card-page { max-width: 920px; margin-inline: auto; padding: 32px var(--gutter) 0; }
.breadcrumb { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--text-tertiary); }
.card-page h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
.set-context { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.set-number { font-family: var(--font-mono); }

/* The hero value block */
.price-honest { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: 22px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-lg); margin-bottom: 36px; }
.price-pair { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: end; }
.price-block { display: flex; flex-direction: column; gap: 6px; }
.price-block .price-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-tertiary); font-weight: 600; }
.price-block .price-value { font-family: var(--font-num); font-weight: 800; letter-spacing: -0.02em; }
.price-block.sold .price-value { font-size: clamp(42px, 7vw, 60px); color: var(--text); line-height: 1; }
.price-block.ask .price-value  { font-size: clamp(26px, 4vw, 34px); color: var(--text-secondary); }
.price-block.spread .price-value { font-size: clamp(22px, 3.4vw, 30px); color: var(--accent); }
.price-block .price-value.none { font-size: 20px; color: var(--text-tertiary); font-weight: 600; }
.price-block .price-note { font-size: 12.5px; color: var(--text-tertiary); }
.source-line { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: 13.5px; line-height: 1.55; }

/* trend chart */
.trend { margin-bottom: 36px; }
.trend h2, .variants h2, .grade-teaser h2 { font-size: 22px; margin-bottom: 16px; }
.spark { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; }
.legend { display: flex; gap: 22px; margin-top: 14px; color: var(--text-secondary); font-size: 13.5px; align-items: center; }
.legend .swatch { display: inline-block; width: 22px; height: 0; border-top: 3px solid; margin-right: 8px; vertical-align: middle; }
.legend .swatch.sold { border-color: var(--accent); }
.legend .swatch.ask  { border-color: var(--text-secondary); border-top-style: dashed; }
.muted { color: var(--text-tertiary); }

/* variants table */
.variants { margin-bottom: 36px; }
.variants table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.variants thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.variants tbody th, .variants tbody td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.variants tbody tr:last-child th, .variants tbody tr:last-child td { border-bottom: 0; }
.variants tbody th { font-weight: 600; text-align: left; }
.variants tbody td { font-family: var(--font-num); color: var(--text); }

/* grade teaser */
.grade-teaser { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-card); padding: 28px; margin-bottom: 36px; }
.grade-teaser p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 18px; max-width: 60ch; }

/* app cta on card page */
.app-cta { text-align: center; background: linear-gradient(160deg, rgba(253,185,8,0.08), var(--surface)); border: 1px solid var(--border-strong); border-radius: 22px; padding: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.app-cta p { font-size: 18px; margin-bottom: 22px; }
.app-cta .badge-link { justify-content: center; }

/* more-from-set related cards */
.related { margin-bottom: 24px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.related-grid a { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color .18s ease, transform .18s ease; }
.related-grid a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.related-grid .r-name { font-weight: 600; font-size: 15px; }
.related-grid .r-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
.related-grid .r-price { font-family: var(--font-num); color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ===================================================================
   BROWSE HUB + lists
   =================================================================== */
.browse-hub, .set-index, .all-page { max-width: var(--maxw); margin-inline: auto; padding: 36px var(--gutter) 0; }
.browse-hub h1, .set-index h1, .all-page h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
.browse-hub .lede, .set-index .lede, .all-page .lede { color: var(--text-secondary); font-size: 18px; max-width: 60ch; margin-bottom: 36px; }
.browse-hub h2 { font-size: 22px; margin: 40px 0 18px; }

.set-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.set-list li { margin: 0; }
.set-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color .18s ease, transform .18s ease; }
.set-list a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.set-list .set-code { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.set-list .count { font-family: var(--font-num); font-size: 13px; color: var(--text-tertiary); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text-secondary); font-size: 14px; transition: border-color .18s ease, color .18s ease; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }

.card-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 8px; }
.card-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; transition: border-color .18s ease; }
.card-list li:hover { border-color: var(--border-strong); }
.card-list li > a { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
.card-list .card-name { font-weight: 600; }
.card-list .card-name:hover { color: var(--accent); }
.card-list .card-id { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.card-list .card-prices { display: flex; gap: 16px; flex: 0 0 auto; font-family: var(--font-num); font-size: 14px; }
.card-list .card-prices .sold { color: var(--text); }
.card-list .card-prices .ask  { color: var(--text-secondary); }
.card-list .card-prices .lbl { color: var(--text-tertiary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }

/* ===================================================================
   LEGAL / prose pages
   =================================================================== */
.legal { max-width: var(--maxw-prose); margin-inline: auto; padding: 48px var(--gutter) 0; }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 16.5px; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0; padding-left: 22px; display: grid; gap: 10px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal .muted { font-size: 14px; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
  .hero .lede { max-width: 46ch; }
  .wedge-grid { grid-template-columns: 1fr; }
  .price-pair { grid-template-columns: 1fr 1fr; }
  .price-block.sold { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav .nav-secondary { display: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .card-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===================================================================
   Motion preferences
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .cta:hover, .badge-link:hover, .feature-grid li:hover, .set-list a:hover, .related-grid a:hover { transform: none; }
}
