/* insPAWction — stylesheet
   Direction per brief: Apple-minimal. White, soft blue, rounded, generous space.
   The one place we spend boldness: the score receipt. Everything else stays quiet. */

:root {
  --white:  #FFFFFF;
  --paper:  #F5F7FB;
  --line:   #E4E9F1;
  --ink:    #131922;
  --muted:  #5D6774;
  --faint:  #8D96A3;
  --accent: #2F6FE4;
  --accent-soft: #EAF1FE;

  --green:  #1E9E57;
  --lgreen: #62B96B;
  --yellow: #DFAA2C;
  --orange: #E27B34;
  --red:    #CE4436;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(19,25,34,.04), 0 8px 24px rgba(19,25,34,.06);
  --shadow-lg: 0 2px 4px rgba(19,25,34,.05), 0 20px 50px rgba(19,25,34,.10);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .paw { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    margin-left: 0; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; width: 100%; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
  max-width: 560px; margin: 0 auto 36px;
}

/* ------------------------------------------------------------------ search */
.searchbar { max-width: 560px; margin: 0 auto; position: relative; }
.searchbar form { display: flex; gap: 10px; }
.searchbar input[type="search"] {
  flex: 1; font-family: var(--font-body); font-size: 16px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s;
}
.searchbar input[type="search"]:focus {
  outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.searchbar input::placeholder { color: var(--faint); }
.btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; transition: transform .12s, opacity .15s;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn:hover { opacity: .9; text-decoration: none; color: #fff; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

.suggest {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; z-index: 40; display: none;
}
.suggest.open { display: block; }
.suggest a {
  display: flex; gap: 12px; align-items: center; padding: 11px 16px;
  color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px;
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.sel { background: var(--paper); text-decoration: none; }
.suggest .kind {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--faint); margin-left: auto; white-space: nowrap;
}

.quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.quick span { font-size: 13px; color: var(--faint); align-self: center; }
.chip {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------------ layout */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-head h2 {
  font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; font-weight: 700;
}
.section-head a { font-size: 14px; font-weight: 500; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- product card */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-visual {
  height: 132px; display: grid; place-items: center; position: relative;
  background: var(--paper);
}
.card-visual .bottle { width: 46px; height: 78px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.card-name { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card-cat { font-size: 12px; color: var(--faint); }

.pill {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  padding: 3px 9px; border-radius: 8px; letter-spacing: -.02em;
}
.band-excellent { background: rgba(30,158,87,.12);  color: var(--green); }
.band-good      { background: rgba(98,185,107,.14); color: #3D8F4A; }
.band-mixed     { background: rgba(223,170,44,.16); color: #9A7212; }
.band-poor      { background: rgba(226,123,52,.14); color: var(--orange); }
.band-verypoor  { background: rgba(206,68,54,.12);  color: var(--red); }

/* --------------------------------------------------------------- cat tiles */
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s;
}
.cat-tile:hover { text-decoration: none; background: var(--white); border-color: var(--accent); }
.cat-tile .ico { font-size: 20px; }
.cat-tile .n { font-size: 12px; color: var(--faint); margin-left: auto; font-weight: 500; }

/* ------------------------------------------------------------ product page */
.product-head { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 48px 0 32px; align-items: start; }
@media (max-width: 800px) { .product-head { grid-template-columns: 1fr; gap: 24px; } }

.product-visual {
  border-radius: var(--radius); background: var(--paper);
  aspect-ratio: 1; display: grid; place-items: center;
}
.product-visual .bottle { width: 92px; height: 156px; }

.product-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 6px 0 10px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.product-desc { color: var(--muted); font-size: 16px; max-width: 56ch; }

/* --------------------------------------------------- SIGNATURE: the receipt */
.score-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 40px;
}
.score-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 28px 28px 24px; align-items: center; }
@media (max-width: 640px) { .score-top { grid-template-columns: 1fr; gap: 18px; text-align: center; } }

.dial { position: relative; width: 128px; height: 128px; flex: none; margin: 0 auto; }
.dial svg { transform: rotate(-90deg); display: block; }
.dial .track { stroke: var(--line); }
.dial .fill { stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) { .dial .fill { transition: none; } }
.dial .num {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center;
  font-family: var(--font-mono); font-weight: 700; letter-spacing: -.04em;
}
.dial .num b { font-size: 38px; line-height: 1; }
.dial .num s { font-size: 11px; color: var(--faint); text-decoration: none; letter-spacing: .06em; margin-top: 3px; }

.score-verdict h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.score-verdict p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.score-verdict .not { margin-top: 12px; font-size: 12.5px; color: var(--faint); border-left: 2px solid var(--line); padding-left: 10px; }

.receipt { border-top: 1px solid var(--line); background: var(--paper); }
.receipt-head {
  padding: 14px 28px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; align-items: center;
}
.receipt-head .expand-all { font-family: var(--font-body); font-size: 11px; letter-spacing: .06em; background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 700; text-transform: uppercase; }

.line { border-top: 1px solid var(--line); background: var(--white); }
.line summary {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 14px 28px; cursor: pointer; list-style: none; transition: background .12s;
}
.line summary::-webkit-details-marker { display: none; }
.line summary:hover { background: var(--paper); }
.line .lbl { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.line .wt { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.line .val { font-family: var(--font-mono); font-size: 14px; font-weight: 700; min-width: 44px; text-align: right; }
.line .caret { color: var(--faint); font-size: 11px; transition: transform .18s; }
.line[open] .caret { transform: rotate(90deg); }

.meter { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; width: 84px; }
.meter i { display: block; height: 100%; border-radius: 3px; }
@media (max-width: 620px) { .meter { display: none; } .line summary { padding: 14px 20px; } .score-top, .receipt-head { padding-left: 20px; padding-right: 20px; } }

.line-body { padding: 2px 28px 20px; }
.line-body .blurb { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; font-style: italic; }
.line-body ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.line-body li {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; color: var(--ink);
  padding-left: 16px; position: relative;
}
.line-body li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 620px) { .line-body { padding-left: 20px; padding-right: 20px; } }

.receipt-total {
  border-top: 2px solid var(--ink); background: var(--white);
  display: flex; justify-content: space-between; align-items: center; padding: 16px 28px;
  font-family: var(--font-mono); font-size: 13px;
}
.receipt-total .t { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.receipt-total .v { font-weight: 700; font-size: 18px; }
@media (max-width: 620px) { .receipt-total { padding-left: 20px; padding-right: 20px; } }

/* ------------------------------------------------------------- ingredients */
.ing-list { display: flex; flex-direction: column; gap: 10px; }
.ing-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.ing-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.ing-row .pos { font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding-top: 2px; }
.ing-row .nm { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ing-row .nm a { color: var(--ink); }
.ing-row .pp { font-size: 13px; color: var(--muted); }
.ing-row .cc { font-size: 13px; color: var(--ink); margin-top: 6px; padding: 8px 11px; background: var(--paper); border-radius: 8px; border-left: 2px solid var(--line); }
.ing-row.is-restricted .cc { border-left-color: var(--red); }
.ing-row.is-caution .cc { border-left-color: var(--yellow); }

.rt { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; letter-spacing: .02em; }
.r-beneficial { background: rgba(30,158,87,.12); color: var(--green); }
.r-neutral    { background: var(--paper); color: var(--muted); }
.r-caution    { background: rgba(223,170,44,.16); color: #9A7212; }
.r-restricted { background: rgba(206,68,54,.12); color: var(--red); }

.ev { font-size: 11px; color: var(--faint); font-family: var(--font-mono); margin-top: 4px; }

/* ------------------------------------------------------------ pros / cons */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.pc-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pc-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; color: var(--faint); }
.pc-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-col li { font-size: 14px; padding-left: 22px; position: relative; line-height: 1.55; }
.pc-col.pros li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-family: var(--font-mono); }
.pc-col.cons li::before { content: '−'; position: absolute; left: 0; color: var(--orange); font-weight: 700; font-family: var(--font-mono); }
.pc-col .none { font-size: 14px; color: var(--faint); font-style: italic; }

/* ------------------------------------------------------------- disclaimer */
.disclaimer {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: 22px 24px; margin: 40px 0;
}
.disclaimer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.disclaimer p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 68ch; }
.disclaimer p + p { margin-top: 8px; }

.wall {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--paper); border-radius: var(--radius); padding: 28px 30px; margin: 32px 0;
}
.wall h2 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; letter-spacing: -.02em; }
.wall p { color: var(--muted); font-size: 15px; max-width: 60ch; }
.wall p + p { margin-top: 10px; }

/* ---------------------------------------------------------------- compare */
.cmp { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp > div { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmp .rowlabel { background: var(--paper); font-weight: 600; font-size: 13px; color: var(--muted); }
.cmp .hd { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.cmp > div:nth-last-child(-n+3) { border-bottom: 0; }
.cmp .win { position: relative; }
.cmp .win::after { content: 'higher'; position: absolute; top: 14px; right: 14px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
@media (max-width: 720px) { .cmp { grid-template-columns: 92px 1fr 1fr; } .cmp > div { padding: 12px 10px; font-size: 13px; } .cmp .win::after { display: none; } }

.cmp-pick { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 28px; }
@media (max-width: 640px) { .cmp-pick { grid-template-columns: 1fr; } }
.cmp-pick label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
select {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* --------------------------------------------------------------- results */
.results-head { padding: 40px 0 8px; }
.results-head h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; margin-bottom: 6px; }
.results-head p { color: var(--muted); font-size: 15px; }

.empty { text-align: center; padding: 72px 24px; }
.empty .big { font-size: 42px; margin-bottom: 14px; }
.empty h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }
.empty p { color: var(--muted); font-size: 15px; max-width: 44ch; margin: 0 auto 20px; }

.ing-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .ing-index { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 48px 0 40px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-grid h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--muted); font-size: 14px; }
.foot-grid a:hover { color: var(--ink); }
.foot-note { font-size: 13px; color: var(--faint); line-height: 1.7; max-width: 46ch; }
.foot-bar { border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.crumb { font-size: 13px; color: var(--faint); padding-top: 28px; }
.crumb a { color: var(--muted); }

.prose h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; margin: 36px 0 12px; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; max-width: 68ch; }
.prose ul { margin: 0 0 16px 20px; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
