/* Zenovea
   Layout: one phone-first page. A bold ultramarine hero, a search and category bar that
   stays in view, then the product list. Marigold is kept for the buy button. */
:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --ink: #0f1a3d;
  --muted: #4f5977;
  --line: #d8ddec;
  --frame: #e2e6f5;
  --accent: #2a3bd6;
  --on-accent: #ffffff;
  --hero: #2231c4;
  --on-hero: #ffffff;
  --mark: #ffc933;
  --on-mark: #0f1a3d;
  --note: #fff3cc;
  --on-note: #3d2f00;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1226;
    --surface: #151c38;
    --ink: #eef1fb;
    --muted: #a7b0ce;
    --line: #2a3355;
    --frame: #222b4e;
    --accent: #8493ff;
    --on-accent: #0c1226;
    --hero: #1a2590;
    --note: #3a2f0c;
    --on-note: #ffe9a8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1226;
  --surface: #151c38;
  --ink: #eef1fb;
  --muted: #a7b0ce;
  --line: #2a3355;
  --frame: #222b4e;
  --accent: #8493ff;
  --on-accent: #0c1226;
  --hero: #1a2590;
  --note: #3a2f0c;
  --on-note: #ffe9a8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.logo { font: 800 1.375rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }

/* Hero */
.hero { background: var(--hero); color: var(--on-hero); }
.hero-in { display: grid; gap: 10px; padding-block: 22px 24px; }
.hero h1 { font-size: clamp(2.25rem, 10.5vw, 4rem); font-weight: 800; max-width: 16ch; }
.hero mark { background: var(--mark); color: var(--on-mark); padding: 0 0.14em; border-radius: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tagline { font-size: 1.0625rem; line-height: 1.4; }

/* Search and categories */
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); scroll-margin-top: env(safe-area-inset-top, 0px); }
.toolbar-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px 10px; }
.search { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--ink); font: 400 1rem var(--body); padding: 0 6px 0 16px; text-overflow: ellipsis; outline-offset: -3px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { flex: none; width: 50px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter-r) * -1); padding-right: var(--gutter-r); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 8px 14px; border-radius: 21px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.9375rem var(--body); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Sections */
.stack { display: grid; gap: 40px; padding-block: 14px 48px; }
.section { display: grid; gap: 16px; }
.section > h2 { font-size: 1.625rem; font-weight: 700; }
.products { gap: 10px; min-height: 50vh; align-content: start; }
.disclosure { font-size: 0.8125rem; color: var(--muted); }
.status { padding-block: 12px; }

/* Product cards: the whole card opens the product link */
.cards { display: grid; gap: 12px; }
.card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.card:has(a.btn):hover { border-color: var(--accent); }
.thumb { aspect-ratio: 1 / 1; width: 100%; border-radius: 8px; overflow: hidden; background: var(--frame); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.75rem; line-height: 1.25; padding: 6px; align-self: start; }
/* Product photos have white backgrounds, so they keep a white frame in dark mode too */
.thumb:has(img) { padding: 4px; background: #ffffff; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.card-badge { align-self: flex-start; background: var(--note); color: var(--on-note); font-size: 0.75rem; font-weight: 700; line-height: 1.2; padding: 3px 8px; border-radius: 6px; }
.card-name { font: 700 1.0625rem/1.25 var(--body); letter-spacing: 0; }
.card-hook { font-size: 0.9375rem; line-height: 1.4; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; font: 700 0.9375rem/1.2 var(--body); text-decoration: none; }
.btn-buy { background: var(--mark); color: var(--on-mark); min-height: 46px; padding: 8px 10px; margin-top: auto; }
.btn-buy:hover { filter: brightness(1.06); }
.card a.btn::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.is-off { background: var(--frame); color: var(--muted); }
.is-off:hover { filter: none; }

/* How it works */
.steps { display: grid; gap: 16px; list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; }
.step-n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--hero); color: var(--on-hero); display: flex; align-items: center; justify-content: center; font: 800 1.25rem/1 var(--display); }
.steps strong { font-size: 1.125rem; line-height: 1.3; }
.steps span:last-child { color: var(--muted); }

/* Privacy page */
.prose { display: grid; gap: 24px; max-width: 65ch; }
.page-head { display: grid; gap: 8px; }
.page-head h1 { font-size: 2.25rem; font-weight: 800; }
.page-head p { color: var(--muted); }
.block { display: grid; gap: 6px; }
.block h2 { font-size: 1.3125rem; font-weight: 700; }
.block ul { padding-left: 1.2em; display: grid; gap: 4px; }
.ph { background: var(--note); color: var(--on-note); padding: 0 0.25em; border-radius: 4px; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.foot-in { display: grid; gap: 14px; padding-block: 24px 28px; }
.foot-in strong { font-weight: 600; }
.foot-text { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; }
.foot-links a { display: inline-block; padding-block: 8px; color: var(--ink); }

@media (min-width: 720px) {
  .head-row { justify-content: flex-start; }
  .hero-in { padding-block: 44px 48px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1000px) {
  .toolbar-in { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .card { transition: border-color 0.15s ease, filter 0.15s ease; }
}
