:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f4ebdf;
  --text: #2a1d1f;
  --muted: #6e5c5e;
  --line: #e7dacb;
  --accent: #9b2242;
  --accent-ink: #ffffff;
  --accent-soft: #f6dde3;
  --gold: #c7932f;
  --ok-bg: #e6f2e7;
  --ok-ink: #24572b;
  --warn-bg: #fdf0d8;
  --warn-ink: #7a4d07;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(42 29 31 / 6%), 0 6px 20px rgb(42 29 31 / 6%);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1415;
    --surface: #251c1d;
    --surface-2: #2f2425;
    --text: #f5ebe6;
    --muted: #bba9a7;
    --line: #3d3031;
    --accent: #e0607f;
    --accent-ink: #1b1415;
    --accent-soft: #3d2229;
    --gold: #e0b35a;
    --ok-bg: #1f3322;
    --ok-ink: #a8dcae;
    --warn-bg: #3a2c12;
    --warn-ink: #f2cf8a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 40px; }

.demo-bar {
  background: var(--warn-bg);
  color: var(--warn-ink);
  text-align: center;
  font-size: .85rem;
  padding: 8px 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.logo span:last-child { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: 56px 24px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.eyebrow a { text-decoration: none; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art span {
  aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(2.4rem, 6vw, 3.6rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-art span:nth-child(2), .hero-art span:nth-child(3) { background: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 10px 20px; font: 600 .95rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost[aria-disabled="true"] { color: var(--muted); cursor: default; transform: none; }
.btn[hidden] { display: none; }

/* Season banner */
.season { border-radius: var(--radius); padding: 14px 18px; margin-block: 8px 0; }
.season.ok { background: var(--ok-bg); color: var(--ok-ink); }
.season.tight { background: var(--warn-bg); color: var(--warn-ink); }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.step legend { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step legend small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 .9rem var(--font-body); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.chip span i { font-style: normal; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.quiz-nav { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.quiz-progress { color: var(--muted); font-size: .9rem; margin-right: auto; }

/* JS-enhanced quiz: one step at a time */
.quiz.is-stepper .step { display: none; margin-bottom: 20px; }
.quiz.is-stepper .step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Lists */
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.list-card {
  display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.list-card span { font-size: 1.8rem; }
.list-card:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.steps strong { color: var(--text); display: block; }

/* Product grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tag { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .emoji { font-size: 4.2rem; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font: 600 .98rem/1.35 var(--font-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 1.2rem; font-weight: 700; margin: 0; }
.price s { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .84rem; margin: 0; }
.badge { align-self: flex-start; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.fast { background: var(--ok-bg); color: var(--ok-ink); }
.card .btn { margin-top: auto; }
.card-body > .btn, .card-body > .btn-ghost { margin-top: 8px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 28px; color: var(--muted); font-size: .88rem; }
.footer-inner { display: grid; gap: 10px; }
.disclosure { margin: 0; max-width: 80ch; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.copy { margin: 0; }

@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .hero-art span { border-radius: 16px; font-size: 1.9rem; }
  .steps { grid-template-columns: 1fr; }
  .quiz { padding: 20px; border-radius: 20px; }
  .nav { gap: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-media .emoji { font-size: 3rem; }
  .meta { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
