/* VitaminSweep — styles.css
   Palette: deep plum + warm coral on cream. */

:root {
  --ink: #2a1723;
  --ink-soft: #6d5766;
  --ink-faint: #a08d99;
  --paper: #fffaf5;
  --card: #ffffff;
  --line: #f1e3dd;
  --plum: #7b2358;
  --plum-dark: #5d1741;
  --plum-wash: #fbeef4;
  --coral: #f2542d;
  --coral-dark: #cf3d18;
  --coral-wash: #fff1ec;
  --amber: #a8620f;
  --amber-wash: #fff5e3;
  --amber-line: #f4ddb4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42, 23, 35, .05), 0 14px 34px -18px rgba(42, 23, 35, .3);
  --shadow-lift: 0 2px 4px rgba(42, 23, 35, .06), 0 22px 48px -20px rgba(123, 35, 88, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* `hidden` must beat component display rules (.notice/.grid/.card set display) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--plum); }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 245, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(10px);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--plum); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 34px;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(242, 84, 45, .16) 0%, rgba(242, 84, 45, 0) 62%),
    radial-gradient(55% 120% at 96% 6%, rgba(123, 35, 88, .16) 0%, rgba(123, 35, 88, 0) 60%),
    linear-gradient(180deg, #fff6ef 0%, var(--paper) 100%);
}
.hero.detail { padding: 60px 0 20px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--plum);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.lede { font-size: clamp(1.05rem, 2.1vw, 1.22rem); color: var(--ink-soft); margin-top: 18px; max-width: 36em; }
.hero .lede { margin-left: auto; margin-right: auto; }
/* ---------- finder ---------- */
.finder {
  margin-top: 42px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.finder-label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 1.05rem; }
textarea {
  width: 100%; min-height: 118px; resize: vertical; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font: inherit; color: var(--ink);
}
textarea::placeholder { color: #b7a3ae; }
textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--plum); outline-offset: 2px;
}
.hint { font-size: .86rem; color: var(--ink-faint); margin-top: 8px; }
.chips-field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .89rem; cursor: pointer;
  font-weight: 400;
}
.chip:hover { border-color: var(--coral); color: var(--coral); }
/* Selection is shown by WEIGHT only.
   It used to be a gradient fill with white text, but `.filters .chip` sets
   `background: var(--card)` later in this file at equal specificity (0,2,0), so it won that
   background while the white text still applied — leaving white text on a white chip for every
   category button. Setting no colour here means there is nothing left to collide with. */
.chip[aria-pressed="true"] { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 14px 28px; color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  box-shadow: 0 10px 22px -12px rgba(242, 84, 45, .9);
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); box-shadow: none; }
.btn-quiet:hover { background: var(--paper); color: var(--plum); border-color: var(--plum); filter: none; }

/* ---------- results ---------- */
.results { margin-top: 48px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.answer { color: var(--ink-soft); margin-bottom: 22px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-wash); border: 1px solid var(--amber-line); color: #7a4a0c;
  border-radius: var(--radius-sm); padding: 15px 17px; font-size: .94rem; margin-bottom: 22px;
}
.notice-icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; color: var(--amber); }

/* ---------- product grid + cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.thumb {
  position: relative; display: grid; place-items: center; padding: 18px;
  background: linear-gradient(160deg, #fff1ea 0%, #f7eef6 100%);
  border-bottom: 1px solid var(--line); min-height: 208px;
}
.thumb img { max-width: 100%; max-height: 176px; width: auto; height: auto; object-fit: contain; display: block; }
.thumb .glyph {
  width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--plum);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
}
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--plum); background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}

.card-body { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-name { font-size: 1.12rem; }
.card-meta { font-size: .82rem; color: var(--ink-faint); margin-top: 3px; }
.card-summary { color: var(--ink-soft); font-size: .95rem; }
.card-why {
  background: var(--plum-wash); border-left: 3px solid var(--coral);
  border-radius: 0 10px 10px 0; padding: 11px 15px; font-size: .93rem; color: var(--plum-dark);
}
.card-why-label {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 3px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .74rem; color: var(--ink-faint); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 20px; margin-top: 4px;
}
.price { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.price-note { display: block; font-family: var(--sans); font-size: .74rem; color: var(--ink-faint); font-weight: 400; }
.card-also { font-size: .78rem; color: var(--ink-faint); }
.buy {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius-sm);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .94rem; white-space: nowrap;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
}
.buy:hover { filter: brightness(1.07); }
.variant-box { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-row .buy { padding: 9px 14px; font-size: .86rem; }

/* ---------- category filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 26px; }
.filters .chip { background: var(--card); }
.count-line { color: var(--ink-faint); font-size: .9rem; margin-bottom: 18px; }

/* ---------- sections ---------- */
section.band { padding: 72px 0; }
.band-alt { background: linear-gradient(180deg, #fdf3f6 0%, #fff7f1 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.step-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--plum) 0%, var(--coral) 140%);
}
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

.fineprint { font-size: .87rem; color: var(--ink-soft); line-height: 1.7; }
.fineprint p + p { margin-top: 12px; }
.fineprint strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fdf3f6; padding: 46px 0 42px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--plum); }
.foot-disc { margin-top: 26px; max-width: 62em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 22px; }
  .finder { padding: 20px; }
  .site-nav { gap: 14px; font-size: .9rem; }
  .brand-name { font-size: 1.12rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .buy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
