/* =========================================================================
   TrendHunt design system
   Font: Manrope only. Sizes: Tailwind type scale. Spacing: token table.
   Radius: Tailwind values. Backgrounds: flat. Motion: one base curve.
   ========================================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color */
  --paper: #f6f3ee;
  --surface: #ffffff;
  --sunken: #ede8e0;
  --sunken-2: #e4ddd2;
  --ink: #131209;
  --ink-hover: #313131;
  --ink-2: #3d3a33;
  --muted: #6b655b;
  --line: #ddd6cb;
  --line-strong: #c4bbad;
  --accent: #b4432b;
  --accent-hover: #97361f;
  --accent-soft: #f4e4de;
  --success: #2f6b3f;
  --warn: #8a5a00;
  --warn-soft: #f6ecd6;
  --error: #b42318;
  --error-soft: #fbe9e7;
  /* Dark surfaces (approved dark palette only) */
  --d-bg: #131209;
  --d-surface: #1f1f1f;
  --d-raise: #272727;
  --d-line: #313131;
  --d-text: #f6f3ee;
  --d-muted: #b8b2a7;

  /* Spacing tokens */
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius (Tailwind) */
  --r-sm: 2px;
  --r: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-move: 500ms;
  --t-color: 300ms;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 56px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, dd, label, summary { text-wrap: pretty; }
em, i, cite { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Text styles (SKILL B1) ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.025em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.015em; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.button-xsm { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.accent { color: var(--accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1312px; margin-inline: auto; padding-inline: var(--s-200); }
.section { padding-block: var(--s-700); }
.section--sunken { background: var(--sunken); }
.section--dark { background: var(--d-bg); color: var(--d-text); }
.section-head { display: grid; gap: var(--s-200); margin-bottom: var(--s-500); }
.section-kicker { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--muted); }
.section-kicker .num { color: var(--accent); }
.section--dark .section-kicker { color: var(--d-muted); }
.section-title { max-width: 680px; }
.section-lede { max-width: 560px; color: var(--ink-2); }
.section--dark .section-lede { color: var(--d-muted); }

@media (min-width: 640px) {
  .container { padding-inline: var(--s-300); }
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--s-600); }
  .section { padding-block: var(--s-900); }
  .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-600); margin-bottom: var(--s-600); }
  .section-head .section-kicker { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .section-title.heading-2 { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (max-width: 639px) {
  .section-title.heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
}

/* ---------- Focus, skip link ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: #f0a58f; }
.skip-link {
  position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); text-decoration: none; transform: translateY(-160%);
  transition: transform var(--t-move) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); border: 1px solid transparent;
  font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), border-color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunken); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--sunken); }
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; padding: var(--s-50) var(--s-100); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.section--dark .btn-secondary { background: var(--d-surface); color: var(--d-text); border-color: var(--d-line); }
.section--dark .btn-secondary:hover { background: var(--d-raise); }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-full); display: inline-grid; place-items: center; flex: none;
  color: var(--ink);
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.icon-btn:hover { background: var(--sunken); }
.icon-btn:active { transform: scale(0.98); }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s-50); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  transition: text-decoration-color var(--t-color) var(--ease), color var(--t-color) var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .ic { transition: transform var(--t-move) var(--ease); }
.text-link:hover .ic { transform: translateX(2px); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full); border: 1px solid var(--line-strong);
  background: transparent; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; white-space: nowrap;
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), border-color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.chip:hover { background: var(--surface); border-color: var(--ink); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .ic { width: 16px; height: 16px; }

/* Tags and status pills */
.tag {
  display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-25) var(--s-75);
  border-radius: var(--r); font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface); color: var(--ink);
}
.tag--sample { background: var(--surface); color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: var(--s-50); font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.status .ic { width: 16px; height: 16px; }
.status--unverified { color: var(--muted); }
.status--verified { color: var(--success); }
.status--stale { color: var(--warn); }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-75); }
.field-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.field-hint { font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 1rem; line-height: 1.5rem; font-weight: 400; color: var(--ink);
  transition: border-color var(--t-color) var(--ease), background-color var(--t-color) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #8a8378; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: var(--s-500); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%233d3a33'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: flex; align-items: center; gap: var(--s-50); color: var(--error); font-size: 0.75rem; line-height: 1rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }

/* ---------- Media + skeleton (loading state) ---------- */
.media { position: relative; overflow: hidden; background: var(--sunken); border-radius: var(--r-lg); aspect-ratio: 4 / 5; isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease); }
.js .media::before { content: ""; position: absolute; inset: 0; background: var(--sunken-2); z-index: -1; animation: skeleton 1.4s var(--ease) infinite alternate; }
.js .media img { opacity: 0; }
.js .media.is-loaded img { opacity: 1; }
.js .media.is-loaded::before { animation: none; opacity: 0; }
@keyframes skeleton { from { opacity: 0.2; } to { opacity: 1; } }

/* ---------- Navigation (SKILL B7) ---------- */
.site-nav { position: fixed; top: var(--s-100); left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding-inline: var(--s-200); pointer-events: none; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-75);
  width: 100%; max-width: 1216px; height: var(--nav-h); padding: var(--s-75);
  border-radius: var(--r-2xl); border: 1px solid rgba(19, 18, 9, 0.08);
  background: rgba(246, 243, 238, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: border-color var(--t-color) var(--ease), background-color var(--t-color) var(--ease);
}
.site-nav.is-scrolled .nav-bar { border-color: var(--line); background: rgba(246, 243, 238, 0.92); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-75); border-radius: var(--r-lg); text-decoration: none; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand b { font-weight: 600; color: var(--accent); }
.nav-links { display: none; align-items: center; gap: var(--s-25); margin-left: auto; }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2);
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease);
}
.nav-links a:hover { background: rgba(19, 18, 9, 0.06); color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.nav-search {
  display: inline-flex; align-items: center; gap: var(--s-75); margin-left: auto; height: 40px;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: border-color var(--t-color) var(--ease), color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.nav-search:hover { border-color: var(--ink); color: var(--ink); }
.nav-search:active { transform: scale(0.98); }
.nav-search kbd { font: inherit; font-size: 0.75rem; line-height: 1rem; padding: 0 var(--s-50); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.nav-search .label, .nav-search kbd { display: none; }
.nav-search { width: 40px; padding: 0; justify-content: center; }

.menu-toggle { position: relative; }
.menu-toggle span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-move) var(--ease); }
.menu-toggle span:nth-child(1) { transform: translateY(-3px); }
.menu-toggle span:nth-child(2) { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--nav-h) + var(--s-600)) var(--s-300) var(--s-400);
  background: rgba(246, 243, 238, 0.97); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
  display: flex; flex-direction: column; gap: var(--s-400); overflow-y: auto;
  opacity: 0; transition: opacity var(--t-move) var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: grid; gap: var(--s-50); }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between; padding: var(--s-100) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em;
}
.mobile-menu a.m-link[aria-current="true"] { color: var(--accent); }
.mobile-menu .m-item { opacity: 0; transform: translateY(24px); transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease); }
.mobile-menu.is-open .m-item { opacity: 1; transform: none; }
.mobile-menu .m-foot { display: grid; gap: var(--s-100); margin-top: auto; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-search { margin-left: var(--s-75); }
  .nav-search { width: auto; padding: var(--s-75) var(--s-100); }
  .nav-search .label, .nav-search kbd { display: inline; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + var(--s-100) + var(--s-600)); padding-bottom: var(--s-700); }
.hero-grid { display: grid; gap: var(--s-600); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50);
  border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.eyebrow .dot { display: inline-grid; place-items: center; height: 24px; padding: 0 var(--s-75); border-radius: var(--r-full); background: var(--ink); color: var(--paper); }
.hero-title {
  max-width: 680px; margin-top: var(--s-300); padding-bottom: var(--s-50);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .line { display: block; }
.hero-sub { max-width: 560px; margin-top: var(--s-300); color: var(--ink-2); }

.search-panel {
  position: relative; margin-top: var(--s-500); max-width: 640px;
  padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line);
}
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75); }
.search-field { position: relative; grid-column: 1 / -1; }
.search-field .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: var(--s-500); border-color: transparent; background: var(--paper); min-height: 48px; }
.search-row .select { border-color: transparent; background-color: var(--paper); min-height: 48px; }
.search-row .btn { grid-column: 1 / -1; min-height: 48px; }
.search-hints { margin-top: var(--s-200); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
.search-hints .label { margin-right: var(--s-50); }
.proof { margin-top: var(--s-400); display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: var(--s-75); }
.proof .ic { color: var(--success); width: 16px; height: 16px; }

@media (min-width: 640px) {
  .search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .search-row .btn { grid-column: auto; padding-inline: var(--s-300); }
}

/* Combobox suggestions */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--s-75)); z-index: 30;
  padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(19, 18, 9, 0.12); max-height: 360px; overflow-y: auto;
}
.suggest-static { position: static; box-shadow: none; border: 0; padding: 0; margin-top: var(--s-200); max-height: none; }
.suggest [role="option"] {
  display: flex; align-items: center; gap: var(--s-100); padding: var(--s-75); border-radius: var(--r-lg); cursor: pointer;
  transition: background-color var(--t-color) var(--ease);
}
.suggest [role="option"]:hover, .suggest [role="option"][aria-selected="true"] { background: var(--sunken); }
.suggest .s-thumb { width: 32px; height: 40px; border-radius: var(--r); object-fit: cover; background: var(--sunken); flex: none; }
.suggest .s-icon { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--paper); flex: none; color: var(--ink-2); }
.suggest .s-main { min-width: 0; flex: 1; }
.suggest .s-main b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-kind { color: var(--muted); }
.suggest .s-empty { padding: var(--s-100); color: var(--muted); }

/* Hero collage */
.hero-art { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-100); min-width: 0; }
.hero-art .stack { display: grid; gap: var(--s-100); align-content: start; }
.look { position: relative; display: block; width: 100%; border-radius: var(--r-lg); }
.look .media { border-radius: var(--r-lg); }
.look:hover .media img { transform: scale(1.03); }
.look-cap {
  position: absolute; left: var(--s-75); right: var(--s-75); bottom: var(--s-75);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r); background: rgba(255, 255, 255, 0.94); color: var(--ink);
}
.look-cap .c-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-tag { position: absolute; top: var(--s-75); left: var(--s-75); }
.stack .look-cap { display: none; }

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-100) + var(--s-800)); padding-bottom: var(--s-800); }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-700); }
  .stack .look-cap { display: flex; }
  .stack .look-cap .c-price { display: none; }
}
@media (max-width: 1023px) {
  .hero-title.heading-1 { font-size: 3rem; line-height: 1; }
}
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-100) + var(--s-500)); }
  .hero-title.heading-1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
  .hero-sub.title-2 { font-size: 1rem; line-height: 1.5rem; }
  .search-panel { margin-top: var(--s-400); }
}

/* Markets strip */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: flex; align-items: center; gap: var(--s-200); padding-block: var(--s-200); overflow-x: auto; scrollbar-width: none; }
.strip-inner::-webkit-scrollbar { display: none; }
.strip-label { flex: none; color: var(--muted); }
.strip-list { display: flex; gap: var(--s-75); }
.strip-list .chip { background: var(--surface); border-color: var(--line); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300) var(--s-200); }
.cat-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-100); text-align: left; width: 100%; min-width: 0; }
.cat-card .media { aspect-ratio: 3 / 4; }
.cat-card:hover .media img { transform: scale(1.04); }
.cat-card:active { transform: scale(0.98); }
.cat-card { transition: transform var(--t-move) var(--ease); }
.cat-meta { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-75); }
.cat-meta .ic { transition: transform var(--t-move) var(--ease); }
.cat-card:hover .cat-meta .ic { transform: translateX(4px); }
.cat-card[aria-pressed="true"] .media { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Tagline reveal (SKILL B11) ---------- */
.tagline { padding-block: var(--s-800); }
.tagline-text { max-width: 680px; }
.tagline-text .w { opacity: 0.3; transition: opacity var(--t-move) var(--ease); }
.tagline-text .w.on { opacity: 1; }
.tagline-foot { margin-top: var(--s-400); display: flex; align-items: center; gap: var(--s-100); color: var(--muted); }
.tagline-foot .bar { width: 32px; height: 2px; background: var(--accent); }
@media (min-width: 1024px) { .tagline { padding-block: var(--s-900); } }
@media (max-width: 639px) { .tagline-text.heading-2 { font-size: 2.25rem; line-height: 2.5rem; } }

/* ---------- Budget ---------- */
.budget-grid { display: grid; gap: var(--s-200); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.budget-tile {
  display: flex; flex-direction: column; gap: var(--s-200); min-width: 0; padding: var(--s-200);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-align: left;
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), border-color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.budget-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.budget-tile:active { transform: scale(0.98); }
.budget-tile[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.budget-tile[aria-pressed="true"] .muted { color: var(--d-muted); }
.budget-tile .b-price { display: block; margin-top: var(--s-50); }
.thumbs { display: flex; gap: var(--s-50); margin-top: auto; }
.thumbs img { width: 40px; height: 50px; object-fit: cover; border-radius: var(--r); background: var(--sunken); }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); }
.b-foot .ic { transition: transform var(--t-move) var(--ease); }
.budget-tile:hover .b-foot .ic { transform: translateX(4px); }
@media (min-width: 1024px) {
  .budget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .budget-tile { padding: var(--s-300); min-height: 272px; }
}
@media (max-width: 639px) {
  .budget-tile .b-price.heading-3 { font-size: 1.5rem; line-height: 2rem; }
}
@media (max-width: 419px) {
  .budget-tile .b-price.heading-3 { font-size: 1.25rem; line-height: 1.75rem; }
  .budget-tile .thumbs img:nth-child(3) { display: none; }
}

/* ---------- Discover feed ---------- */
.notice {
  display: flex; gap: var(--s-100); align-items: flex-start; padding: var(--s-100) var(--s-200);
  border-radius: var(--r-xl); background: var(--warn-soft); color: #5c3d00; margin-bottom: var(--s-300);
}
.notice .ic { margin-top: var(--s-25); flex: none; }
.toolbar { display: grid; gap: var(--s-100); padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.toolbar-top { display: flex; gap: var(--s-75); flex-wrap: wrap; }
.toolbar-search { position: relative; flex: 1 1 240px; min-width: 0; }
.toolbar-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.toolbar-search .input { padding-left: var(--s-500); background: var(--paper); border-color: transparent; }
.toolbar .select { background-color: var(--paper); border-color: transparent; width: auto; }
.toolbar .select:hover, .toolbar .input:hover { border-color: var(--line-strong); }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-75); }
.filters .select { width: 100%; }
.filters-toggle .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--s-50); border-radius: var(--r-full); background: var(--ink); color: var(--paper); font-size: 0.75rem; line-height: 1rem; }
.saved-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.saved-toggle[aria-pressed="true"] .ic { color: var(--accent); }
.js .filters.is-collapsed { display: none; }
@media (min-width: 900px) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .js .filters.is-collapsed { display: grid; }
  .filters-toggle { display: none !important; }
}
.feed-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-100); margin-block: var(--s-300); }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.active-filters .chip { background: var(--surface); }
.active-filters .chip .ic { color: var(--muted); }

.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-400) var(--s-200); }
@media (min-width: 900px) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-500) var(--s-300); } }
@media (min-width: 1200px) { .feed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-100); align-content: start; min-width: 0; }
.card .media { cursor: pointer; }
.card .media:hover img { transform: scale(1.04); }
.card-open { position: absolute; inset: 0; z-index: 1; }
.card .tag { position: absolute; top: var(--s-75); left: var(--s-75); z-index: 2; pointer-events: none; }
.save-btn {
  position: absolute; top: var(--s-75); right: var(--s-75); z-index: 2; width: 40px; height: 40px; border-radius: var(--r-full);
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.save-btn:hover { transform: scale(1.06); }
.save-btn:active { transform: scale(0.98); }
.save-btn .ic-on { display: none; }
.save-btn[aria-pressed="true"] { color: var(--accent); }
.save-btn[aria-pressed="true"] .ic-on { display: block; }
.save-btn[aria-pressed="true"] .ic-off { display: none; }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-50); min-width: 0; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-75); }
.card-title { min-width: 0; }
.card-title button { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.card-title button:hover { text-decoration: underline; text-underline-offset: 4px; }
.price { flex: none; }
.seller-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color var(--t-color) var(--ease); }
.seller-link:hover { text-decoration-color: currentColor; }
.card-meta { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-100); margin-top: var(--s-25); }
.card-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) {
  .card-row { flex-direction: column; align-items: stretch; gap: 0; }
}

.feed-more { display: flex; justify-content: center; margin-top: var(--s-600); }
.empty {
  display: grid; justify-items: center; gap: var(--s-200); text-align: center; padding: var(--s-700) var(--s-300);
  border-radius: var(--r-2xl); border: 1px dashed var(--line-strong); background: var(--surface);
}
.empty .e-icon { width: 48px; height: 48px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.empty p { max-width: 420px; color: var(--ink-2); }
.empty .e-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); }

/* ---------- Sellers rail ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: var(--s-200);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-200); scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
.rail-nav { display: flex; gap: var(--s-75); }
.rail-nav .icon-btn { border: 1px solid var(--line-strong); background: var(--surface); }
.rail-nav .icon-btn[disabled] { opacity: 0.4; cursor: default; }
.seller-card {
  scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; min-width: 0;
  border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.seller-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-25); aspect-ratio: 3 / 2; background: var(--sunken); }
.mosaic .media { border-radius: 0; aspect-ratio: auto; }
.mosaic .media:first-child { grid-row: span 2; }
.seller-body { display: grid; gap: var(--s-100); padding: var(--s-200); align-content: start; }
.seller-head { display: flex; align-items: center; gap: var(--s-100); min-width: 0; }
.avatar { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; flex: none; background: var(--ink); color: var(--paper); font-weight: 600; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; line-height: 1.75rem; }
.seller-head > div { min-width: 0; }
.seller-meta { display: grid; gap: var(--s-50); }
.seller-meta p { display: flex; align-items: center; gap: var(--s-75); }
.seller-meta .ic { width: 16px; height: 16px; color: var(--muted); }
.seller-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); padding-top: var(--s-100); border-top: 1px solid var(--line); margin-top: var(--s-50); }

/* ---------- Markets ---------- */
.markets-layout { display: grid; gap: var(--s-400); }
.market-preview { display: none; }
.market-list { border-top: 1px solid var(--line); }
.market-row {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; align-items: center; gap: var(--s-200);
  padding: var(--s-200) 0; border-bottom: 1px solid var(--line); text-align: left;
  transition: background-color var(--t-color) var(--ease);
}
.market-row .m-thumb { width: 56px; height: 70px; border-radius: var(--r-md); overflow: hidden; background: var(--sunken); }
.market-row .m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.market-row .m-num { display: none; color: var(--muted); }
.market-row .m-main { display: grid; gap: var(--s-25); min-width: 0; }
.market-row .m-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-75); }
.market-row .m-stats { color: var(--ink-2); }
.market-row .ic { color: var(--muted); transition: transform var(--t-move) var(--ease), color var(--t-color) var(--ease); }
.market-row:hover .ic, .market-row.is-active .ic { transform: translate(2px, -2px); color: var(--accent); }
.market-row[aria-pressed="true"] .m-name .heading-6 { color: var(--accent); }
@media (min-width: 1024px) {
  .markets-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-700); align-items: start; }
  .market-preview { display: block; position: sticky; top: 104px; }
  .market-preview .media { aspect-ratio: 4 / 5; }
  .market-preview .media img { transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease); }
  .market-preview figcaption { margin-top: var(--s-100); display: flex; justify-content: space-between; gap: var(--s-100); color: var(--muted); }
  .market-row { grid-template-columns: 40px minmax(0, 1fr) auto 24px; padding: var(--s-300) var(--s-100); border-radius: 0; }
  .market-row .m-thumb { display: none; }
  .market-row .m-num { display: block; }
  .market-row:hover, .market-row.is-active { background: var(--surface); }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--s-200); counter-reset: step; }
.step { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s-100); align-content: start; }
.step .s-num { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--accent); }
.standards { margin-top: var(--s-600); display: grid; gap: var(--s-300); padding-top: var(--s-500); border-top: 1px solid var(--line); }
.standard { display: grid; gap: var(--s-75); align-content: start; }
.standard .ic { color: var(--accent); width: 24px; height: 24px; }
.standard p { color: var(--ink-2); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .standards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-400); } }

/* ---------- Join (seller onboarding, dark) ---------- */
.join-grid { display: grid; gap: var(--s-600); }
.benefits { display: grid; gap: var(--s-300); margin-top: var(--s-500); }
.benefit { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-200); align-items: start; }
.benefit .b-ic { width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--d-surface); border: 1px solid var(--d-line); color: #f0a58f; }
.benefit p { color: var(--d-muted); }
.join-steps { margin-top: var(--s-500); display: grid; gap: var(--s-100); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--d-surface); border: 1px solid var(--d-line); }
.join-steps ol { display: grid; gap: var(--s-100); }
.join-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-100); color: var(--d-muted); }
.join-steps li b { color: var(--d-text); font-weight: 600; }
.join-steps .n { color: #f0a58f; font-weight: 600; }
.review-note { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--d-muted); margin-top: var(--s-100); }
.review-note .ic { width: 16px; height: 16px; margin-top: var(--s-25); color: #f0a58f; flex: none; }

.form-card { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--d-surface); border: 1px solid var(--d-line); display: grid; gap: var(--s-300); align-content: start; }
.form-card .form-head { display: grid; gap: var(--s-75); }
.form-card .form-head p { color: var(--d-muted); }
.form-grid { display: grid; gap: var(--s-200); }
.section--dark .field-label { color: var(--d-text); }
.section--dark .field-hint { color: var(--d-muted); }
.section--dark .input, .section--dark .select, .section--dark .textarea { background-color: var(--d-bg); border-color: var(--d-line); color: var(--d-text); }
.section--dark .input::placeholder { color: #8f897f; }
.section--dark .input:hover, .section--dark .select:hover { border-color: #5a564e; }
.section--dark .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23b8b2a7'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); }
.section--dark .select option { background: var(--d-surface); color: var(--d-text); }
.section--dark .field-error { color: #ff9b8a; }
.section--dark [aria-invalid="true"] { border-color: #ff9b8a !important; }
.pill-group { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-check span {
  display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-text); cursor: pointer;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: background-color var(--t-color) var(--ease), border-color var(--t-color) var(--ease), color var(--t-color) var(--ease);
}
.pill-check span:hover { border-color: #5a564e; }
.pill-check input:checked + span { background: var(--d-text); color: var(--d-bg); border-color: var(--d-text); }
.pill-check input:focus-visible + span { outline: 2px solid #f0a58f; outline-offset: 2px; }
.pill-check .ic { width: 16px; height: 16px; display: none; }
.pill-check input:checked + span .ic { display: block; }
.pill-group[aria-invalid="true"] .pill-check span { border-color: #ff9b8a; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-100); align-items: start; color: var(--d-muted); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: #f0a58f; }
.form-status { padding: var(--s-200); border-radius: var(--r-xl); background: var(--d-bg); border: 1px solid var(--d-line); display: grid; gap: var(--s-75); }
.form-status .s-head { display: flex; align-items: center; gap: var(--s-75); }
.form-status .ic { color: #8fd1a1; }
.form-status.is-error .ic { color: #ff9b8a; }
.form-status p { color: var(--d-muted); }
@media (min-width: 1024px) {
  .join-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-800); align-items: start; }
  .form-card { padding: var(--s-400); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--s-400); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-300) 0; font-size: 1.125rem; line-height: 1.75rem; font-weight: 500;
  transition: color var(--t-color) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary .ic { transition: transform var(--t-move) var(--ease); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item .answer { padding-bottom: var(--s-300); max-width: 640px; color: var(--ink-2); }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-700); } }

/* ---------- Final CTA ---------- */
.cta { display: grid; gap: var(--s-400); align-items: center; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.cta-copy { display: grid; gap: var(--s-200); justify-items: start; }
.cta-copy p { color: var(--ink-2); max-width: 480px; }
.cta .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
@media (min-width: 1024px) {
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--s-200) var(--s-200) var(--s-200) var(--s-700); gap: var(--s-700); }
  .cta .media { border-radius: var(--r-lg); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--d-bg); color: var(--d-text); padding-block: var(--s-700) var(--s-400); }
.footer-top { display: grid; gap: var(--s-500); }
.footer-brand { display: grid; gap: var(--s-200); max-width: 400px; align-content: start; }
.footer-brand p { color: var(--d-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-400) var(--s-300); }
.footer-col h2 { color: var(--d-muted); margin-bottom: var(--s-200); }
.footer-col ul { display: grid; gap: var(--s-100); }
.footer-col a, .footer-col button { text-decoration: none; color: var(--d-text); transition: color var(--t-color) var(--ease); font-size: 0.875rem; line-height: 1.25rem; }
.footer-col a:hover, .footer-col button:hover { color: #f0a58f; }
.footer-col .na { color: var(--d-muted); font-size: 0.875rem; line-height: 1.25rem; }
.footer-bottom { margin-top: var(--s-700); padding-top: var(--s-300); border-top: 1px solid var(--d-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); color: var(--d-muted); }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer-bottom a { color: var(--d-text); text-decoration: none; }
.footer-bottom a:hover { color: #f0a58f; }
.site-footer .brand { color: var(--d-text); padding: 0; }
.site-footer .brand b { color: #f0a58f; }
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-700); }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Dialogs ---------- */
dialog.modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--r-2xl); background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
dialog.modal[open] { animation: dlg-in var(--t-move) var(--ease); }
dialog.modal::backdrop { background: rgba(19, 18, 9, 0.56); }
dialog.modal[open]::backdrop { animation: fade-in var(--t-move) var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dlg-close { position: sticky; top: var(--s-100); float: right; margin: var(--s-100) var(--s-100) calc(-40px - var(--s-100)) 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); }
.dlg-close:hover { background: var(--sunken); }
.dlg-narrow { width: min(560px, calc(100% - 32px)); }
.dlg-pad { padding: var(--s-400) var(--s-300) var(--s-300); }
.dlg-product { display: grid; }
.dlg-product .media { border-radius: 0; aspect-ratio: 4 / 5; }
.dlg-info { padding: var(--s-300); display: grid; gap: var(--s-200); align-content: start; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-75) var(--s-200); padding-block: var(--s-200); border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.facts dd { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.seller-mini { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100); border-radius: var(--r-xl); background: var(--paper); }
.seller-mini > div { min-width: 0; flex: 1; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75); }
.dlg-note { color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.info-box { padding: var(--s-200); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); display: grid; gap: var(--s-50); }
.info-box p { color: var(--ink-2); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-200); }
.mini-card { display: grid; gap: var(--s-75); text-align: left; min-width: 0; }
.mini-card:hover .media img { transform: scale(1.04); }
.mini-card .m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-hero { display: grid; gap: var(--s-200); }
.seller-hero-top { display: flex; align-items: center; gap: var(--s-200); }
.radio-list { display: grid; gap: var(--s-75); }
.radio-list label { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100); border-radius: var(--r-lg); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-color) var(--ease), background-color var(--t-color) var(--ease); }
.radio-list label:hover { border-color: var(--line-strong); background: var(--paper); }
.radio-list input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.radio-list label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
@media (min-width: 768px) {
  .dlg-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dlg-product .media { aspect-ratio: auto; height: 100%; min-height: 560px; }
  .dlg-info { padding: var(--s-500) var(--s-400) var(--s-400); }
  .mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dlg-pad { padding: var(--s-500) var(--s-400) var(--s-400); }
}

/* Search dialog */
dialog.search-dlg { margin-top: var(--s-900); width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 128px); }
@media (max-width: 639px) { dialog.search-dlg { margin-top: var(--s-200); max-height: calc(100dvh - 32px); } }
.search-dlg-inner { padding: var(--s-200); }
.search-dlg .search-field { position: relative; }
.search-dlg .search-field .input { min-height: 48px; padding-left: var(--s-500); padding-right: var(--s-700); background: var(--paper); border-color: transparent; }
.search-dlg .search-field .esc { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; line-height: 1rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 0 var(--s-50); }
.search-dlg .quick { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: var(--s-300); z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: var(--s-75); max-width: calc(100% - 32px);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: var(--ink); color: var(--paper);
  transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Simple pages (404, legal) ---------- */
.page-simple { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.page-main { padding-top: calc(var(--nav-h) + var(--s-100) + var(--s-700)); padding-bottom: var(--s-800); }
.prose { max-width: 680px; display: grid; gap: var(--s-200); }
.prose h2 { margin-top: var(--s-300); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: var(--s-75); padding-left: var(--s-300); list-style: disc; }
.draft-flag { display: flex; gap: var(--s-75); align-items: flex-start; padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); background: var(--warn-soft); color: #5c3d00; }
.draft-flag .ic { flex: none; margin-top: var(--s-25); }
.nf { display: grid; gap: var(--s-300); justify-items: start; max-width: 680px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-100); width: 100%; max-width: 440px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 200ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
  .mobile-menu .m-item { transform: none; }
  .btn:hover, .btn:active, .chip:active, .budget-tile:hover, .seller-card:hover, .save-btn:hover, .cat-card:active { transform: none; }
  .media img, .card .media:hover img, .cat-card:hover .media img, .look:hover .media img, .mini-card:hover .media img { transform: none !important; }
  .tagline-text .w { opacity: 1; transition: none !important; }
  .menu-toggle span { transition: none !important; }
}
