/* =========================================================
   RepelTheBugs.com — Concept C (National Park / WPA Trail)
   Design system + components
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink:           #1F1A14;
  --ink-soft:      #3B3327;
  --ink-muted:     #5A5040;
  --page:          #FBF7EE;
  --cream:         #F2EAD3;
  --cream-soft:    #F7F0DC;
  --sand:          #E8DDC7;
  --forest:        #3B5E3F;
  --forest-deep:   #284430;
  --forest-darker: #1B2E1F;
  --moss:          #6E8E5E;
  --moss-soft:     #9DB694;
  --signpost:      #5D3A1F;
  --signpost-deep: #3F2614;
  --gold:          #E2A52E;
  --gold-deep:     #B8821B;
  --gold-soft:     #F2C770;
  --clay:          #C46A3D;
  --sky:           #A6C5D1;
  --sky-deep:      #6E97A4;
  --line:          #D8CFB6;
  --line-soft:     #E6DFCA;

  /* type */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Trebuchet MS", "Lucida Sans Unicode", sans-serif;

  /* spacing scale (4px) */
  --s-1:   0.25rem;
  --s-2:   0.5rem;
  --s-3:   0.75rem;
  --s-4:   1rem;
  --s-5:   1.25rem;
  --s-6:   1.5rem;
  --s-8:   2rem;
  --s-10:  2.5rem;
  --s-12:  3rem;
  --s-16:  4rem;
  --s-20:  5rem;
  --s-24:  6rem;

  /* radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* shadows */
  --sh-card:        0 1px 2px rgba(31,26,20,.05), 0 6px 18px rgba(31,26,20,.08);
  --sh-card-hover:  0 2px 4px rgba(31,26,20,.06), 0 12px 28px rgba(31,26,20,.12);
  --sh-cta:         0 3px 0 var(--gold-deep), 0 6px 14px rgba(184,130,27,.35);
  --sh-cta-hover:   0 2px 0 var(--gold-deep), 0 4px 10px rgba(184,130,27,.4);
  --sh-nav:         0 1px 0 rgba(31,26,20,.06), 0 4px 10px rgba(31,26,20,.05);

  /* layout */
  --container: 1200px;
  /* Narrow container matches main container so page content lines up with the header. */
  --container-narrow: var(--container);

  /* motion */
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--forest-deep); text-decoration-color: var(--moss-soft); text-underline-offset: 3px; }
a:hover { color: var(--forest-darker); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: var(--s-8) 0; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-variation-settings: "opsz" 96, "SOFT" 60; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 var(--s-2); color: var(--forest-deep); }
p  { margin: 0 0 var(--s-4); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
  margin: 0 0 var(--s-3);
}

.kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--signpost);
  padding: .35rem .65rem;
  border-radius: var(--r-xs);
  display: inline-block;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: clamp(var(--s-12), 3vw + 2rem, var(--s-20)) 0; }
.section.tight { padding: var(--s-10) 0; }
.section.no-top { padding-top: 0; }

/* "ridge divider" - subtle SVG ridge line between bands */
.ridge-divider {
  display: block;
  width: 100%;
  height: 24px;
  background: url("/assets/img/patterns/ridge-divider.svg") center bottom / 100% 24px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--signpost-deep);
  box-shadow: var(--sh-cta);
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--signpost-deep);
  transform: translateY(1px);
  box-shadow: var(--sh-cta-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn-secondary:hover { background: rgba(247,240,220,.12); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn .arrow { width: 14px; height: 14px; transition: transform .2s var(--ease); flex-shrink: 0; }
.btn:hover .arrow { transform: translateX(3px); }

/* Re-assert button display + colors when nested under header/footer
   selectors that would otherwise win on specificity. */
.nav-list a.btn,
.site-footer a.btn {
  display: inline-flex;
}
.nav-list a.btn-primary,
.nav-list a.btn-primary:hover,
.nav-list a.btn-primary.active,
.site-footer a.btn-primary,
.site-footer a.btn-primary:hover {
  color: var(--signpost-deep);
}
.nav-list a.btn-primary:hover,
.site-footer a.btn-primary:hover {
  background: var(--gold-soft);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--sh-nav);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--forest-deep);
}
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
  line-height: 1;
  font-variation-settings: "opsz" 24, "SOFT" 30;
}
.brand .tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-list a:hover { background: var(--cream); color: var(--forest-deep); }
.nav-list a.active { background: var(--cream); color: var(--forest-deep); }

/* dropdown */
.has-menu { position: relative; }
.has-menu > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 320px;
  background: var(--page);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--forest);
  border-radius: var(--r-md);
  box-shadow: var(--sh-card-hover);
  padding: var(--s-3);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s var(--ease), visibility .15s var(--ease), transform .15s var(--ease);
}
.has-menu:hover > .menu,
.has-menu:focus-within > .menu,
.has-menu.is-open > .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu li a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  border-radius: var(--r-xs);
  line-height: 1.3;
}
.menu li a:hover { background: var(--cream); color: var(--forest-deep); }
.menu li a small { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.menu .menu-sep { height: 1px; background: var(--line-soft); margin: 6px 0; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--forest-deep);
  border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle svg { margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  position: relative;
  padding-top: clamp(var(--s-16), 5vw + 4rem, 6rem);
  padding-bottom: clamp(var(--s-16), 5vw + 4rem, 7rem);
  display: grid;
  gap: var(--s-12);
  align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(40,68,48,.92) 0%, rgba(40,68,48,.78) 60%, rgba(40,68,48,.55) 100%),
    url("/assets/img/patterns/topo-lines.svg") center / 540px;
  opacity: .98;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/backdrops/trail.jpg");
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: -1;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--cream); margin-bottom: var(--s-5); }
.hero .lede { color: #E7DFC8; max-width: 560px; }
.hero .ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-6);
}
.hero .hero-art {
  position: relative;
  height: 100%;
  min-height: 360px;
}
.hero .hero-art-frame {
  position: relative;
  background: var(--cream);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-image: url("/assets/img/backdrops/trail.jpg");
  background-size: cover;
  background-position: center;
  border: 6px solid var(--cream);
}
.hero .hero-art-frame img {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  height: 78%;
  width: auto;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.32));
}
.hero .hero-art-frame .stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-xs);
}

/* ---------- Choose your adventure tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.tile {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-6);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card);
  border-color: var(--forest);
  color: var(--ink);
}
.tile .icon {
  width: 42px; height: 42px;
  color: var(--forest);
  margin-bottom: var(--s-4);
}
.tile h3 { color: var(--forest-deep); margin-bottom: var(--s-2); font-size: 1.2rem; }
.tile p { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: var(--s-3); }
.tile .more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signpost);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tile .more:has(.arrow) {
  white-space: nowrap;
}
.tile .more .arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tile:hover .more { color: var(--forest-deep); }

/* ---------- Trust strip / badges ---------- */
.trust-strip {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.trust-strip .badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
  list-style: none;
  margin: 0; padding: 0;
}
.trust-strip .badge {
  text-align: center;
  padding: var(--s-3);
}
.trust-strip .badge .icon {
  width: 36px; height: 36px;
  color: var(--forest);
  margin: 0 auto var(--s-2);
}
.trust-strip .badge .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signpost);
  font-weight: 700;
}

/* ---------- Product card grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-6);
}
/* Homepage featured row: only ever shows 3 picks, so collapse any empty
   tracks and center the row instead of left-aligning. */
#featured .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
}
.product-card {
  position: relative;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--forest);
  color: var(--ink);
}
.product-card .card-link {
  color: inherit;
  text-decoration: none;
}
.product-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card .card-link:focus-visible {
  outline: none;
}
.product-card:focus-within {
  box-shadow: var(--sh-card-hover);
  border-color: var(--forest);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.product-card .img-wrap img {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  height: 86%;
  width: auto;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.22));
}
.product-card .body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.product-card .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
}
.product-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--forest-deep);
  margin: 0;
}
.product-card .shop-cue {
  position: relative;
  z-index: 2;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signpost-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.product-card .shop-cue svg {
  width: 14px; height: 14px;
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.product-card:hover .shop-cue svg,
.product-card .shop-cue:hover svg { transform: translateX(3px); }
.product-card .shop-cue:hover,
.product-card .shop-cue:focus-visible {
  color: var(--gold-deep);
  border-bottom-color: var(--gold-deep);
  outline: none;
}
.product-card .meta-row {
  display: flex;
  gap: var(--s-3);
  font-size: 12.5px;
  color: var(--ink-muted);
  align-items: center;
}
.product-card .stars { color: var(--gold-deep); }
.product-card .star-num { color: var(--ink); font-weight: 600; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--ink);
}
.product-price del {
  color: var(--ink-muted);
  text-decoration-thickness: 1.5px;
}
.product-price strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--forest-deep);
}
.pdp .product-price {
  margin: var(--s-2) 0 var(--s-1);
}
.pdp .product-price strong {
  font-size: clamp(1.55rem, 2vw, 2rem);
}
.compare-table .product-price {
  white-space: nowrap;
}

/* "filter" anchor bar on /products.html */
.filter-bar {
  background: var(--signpost);
  color: var(--cream);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-bottom: var(--s-8);
}
.filter-bar a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  background: rgba(0,0,0,.18);
  transition: background .15s var(--ease);
}
.filter-bar a:hover { background: var(--gold); color: var(--signpost-deep); }

/* category band heading on /products.html */
.cat-band {
  margin-top: var(--s-12);
  margin-bottom: var(--s-5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--s-3);
}
.cat-band h2 { margin: 0; }
.cat-band .count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Comparison table ---------- */
.compare-table-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.compare-table tbody tr:hover { background: var(--cream); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .product-cell {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}
.compare-table .product-cell img {
  width: 88px; height: 88px;
  object-fit: contain;
}
.compare-table .product-cell .name {
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.25;
}
.compare-table .stars { color: var(--gold-deep); }
.compare-table .rev-count { color: var(--ink-muted); font-size: 12.5px; }
.compare-card-list {
  display: none;
}
.compare-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--sh-card);
}
.compare-card-head {
  display: flex;
  align-items: center;
  margin-bottom: var(--s-4);
}
.compare-card-product {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.compare-card-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.compare-card-name {
  display: block;
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}
.compare-card-tag {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.compare-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
}
.compare-card-details div {
  min-width: 0;
}
.compare-card-details dt {
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}
.compare-card-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.compare-card .stars { color: var(--gold-deep); }
.compare-card .rev-count { color: var(--ink-muted); font-size: 12.5px; }

@media (max-width: 900px) {
  .compare-table-wrap { display: none; }
  .compare-card-list {
    display: grid;
    gap: var(--s-4);
  }
}

/* ---------- Expert quote band ---------- */
.expert-band {
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
}
.expert-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/patterns/topo-lines.svg") center / 540px;
  opacity: .15;
  pointer-events: none;
}
.expert-band .quote {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.expert-band .quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem);
  line-height: 1.4;
  color: var(--cream);
}
.expert-band cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- FAQ accordion (homepage button-driven) ---------- */
.faq { display: grid; gap: 0; }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest-deep);
  font-weight: 600;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  cursor: pointer;
}
.faq-q .chev {
  width: 18px; height: 18px;
  flex: none;
  transition: transform .2s var(--ease);
  color: var(--moss);
}
.faq-item[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--forest); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
}
.faq-item[aria-expanded="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
  padding: 0 var(--s-6);
}
.faq-item[aria-expanded="true"] .faq-a > div { padding: 0 var(--s-6) var(--s-5); }
.faq-a p { color: var(--ink-soft); margin: 0 0 var(--s-3); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- About Tracy block ---------- */
/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-darker);
  color: #d6cfb8;
  padding: var(--s-16) 0 var(--s-4);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  background: url("/assets/img/patterns/pine-silhouette.svg") repeat-x center bottom / 240px 28px;
  opacity: .35;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-8);
  position: relative;
}
.site-footer h4 {
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: #d6cfb8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand-block .name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  font-weight: 700;
}
.site-footer .brand-block p { color: #b6ac90; max-width: 320px; }
.site-footer .footer-fineprint {
  grid-column: 1 / -1;
  margin-top: var(--s-12);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(247,240,220,.1);
  font-size: 11.5px;
  line-height: 1.55;
  color: #8d8470;
  font-weight: 400;
  margin-bottom: 0;
}

/* ---------- Product detail page (PDP) ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-12);
  margin-top: var(--s-8);
}
.pdp .hero-art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--sh-card-hover);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pdp .hero-art:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20, 30, 25, .25);
  border-color: var(--gold-soft);
}
.pdp .hero-art:focus-visible {
  outline: none;
  border-color: var(--signpost-deep);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 24px 48px rgba(20, 30, 25, .25);
}
.pdp .hero-art img {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  height: 78%;
  width: auto;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.28));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.pdp .hero-art:hover img {
  transform: translateX(-50%) scale(1.04);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.32));
}
.pdp .hero-art .stamp {
  position: absolute; top: 18px; left: 18px;
  background: var(--forest); color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-xs);
  z-index: 2;
}
.pdp .hero-art .hero-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, calc(100% + 24px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--signpost-deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  white-space: nowrap;
  opacity: 0;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
  z-index: 3;
  pointer-events: none;
}
.pdp .hero-art .hero-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.pdp .hero-art:hover .hero-cta,
.pdp .hero-art:focus-visible .hero-cta {
  transform: translate(-50%, 0);
  opacity: 1;
}
.pdp .info { display: flex; flex-direction: column; gap: var(--s-4); }
.pdp .crumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signpost);
}
.pdp .crumb a { color: var(--signpost); text-decoration: none; }
.pdp .crumb a:hover { color: var(--forest-deep); }
.pdp h1 { margin-bottom: var(--s-2); }
.pdp .rating {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: 14px; color: var(--ink-muted);
}
.pdp .rating .stars { color: var(--gold-deep); font-weight: 700; }
.pdp .summary { color: var(--ink-soft); }
.avon-shipping-note {
  max-width: 520px;
  margin-top: var(--s-3);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.pdp .features {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 var(--s-4);
}
.pdp .features li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: 15px;
}
.pdp .features li .ic {
  width: 24px; height: 24px; flex: none;
  color: var(--forest);
  margin-top: 1px;
}
.pdp .info .btn { align-self: flex-start; }
.section-h2 {
  border-top: 1px solid var(--line);
  padding-top: var(--s-8);
  margin-top: var(--s-12);
}
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.spec-grid .row .lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss);
  display: block;
  margin-bottom: 4px;
}
.spec-grid .row .val {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--forest-deep); font-weight: 600;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

/* ---------- Utility ---------- */
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }

/* hide visually but keep accessible */
.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;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .hero-art { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .badges { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: var(--s-8); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header nav { display: none; }
  .site-header.is-open nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--page);
    padding: var(--s-3);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--sh-card);
  }
  .site-header.is-open .nav-list { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .site-header.is-open .nav-list a { padding: 14px; }
  .site-header.is-open .menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 1px solid var(--line-soft);
    margin-top: var(--s-1);
  }
  .has-menu > a::after { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .trust-strip .badges { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* =========================================================
   Article (Learn cluster) - hub, pillar, disease pages
   ========================================================= */

/* Article hero */
.article-hero {
  position: relative;
  background-color: var(--forest-deep);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  padding: clamp(var(--s-12), 5vw + 4rem, 6.5rem) 0 clamp(var(--s-12), 4vw + 3rem, 5.5rem);
  isolation: isolate;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,30,25,.85) 0%, rgba(20,30,25,.7) 60%, rgba(20,30,25,.5) 100%);
  z-index: -1;
}
.article-hero h1 { color: var(--cream); margin-bottom: var(--s-4); }
.article-hero .article-deck {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem);
  color: #E7DFC8;
  line-height: 1.45;
  margin-bottom: var(--s-6);
}
.article-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(0,0,0,.35);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  border: 1px solid rgba(242,199,112,.35);
}
.article-crumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s-5);
}
.article-crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.article-crumb li {
  display: inline-flex;
  align-items: center;
}
.article-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  opacity: .55;
}
.article-crumb a { color: var(--gold-soft); text-decoration: none; opacity: .85; }
.article-crumb a:hover { color: var(--cream); opacity: 1; }
.article-crumb [aria-current="page"] { color: var(--cream); opacity: 1; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}
.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta .meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Disclosure band */
.article-notice {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-4) 0;
}
.article-notice p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}
.article-notice strong { color: var(--ink-soft); }

/* Fine-print variant placed at the very bottom of an article (after the
   sources section). Lighter, smaller, top-bordered to separate it from the
   preceding section instead of the following one. */
.article-notice.fine-print {
  background: transparent;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  padding: var(--s-6) 0 var(--s-8);
}
.article-notice.fine-print p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #8d8470;
  letter-spacing: .005em;
}
.article-notice.fine-print strong {
  color: var(--ink-muted);
  font-weight: 600;
}

/* Article body (prose) */
.article-body { padding: var(--s-12) 0 var(--s-10); }
.article-body .prose { color: var(--ink); font-size: 17.5px; line-height: 1.7; }
.article-recommended {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-6);
  padding: var(--s-4);
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.article-recommended-label {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
}
.article-body .prose .article-recommended-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-body .prose .article-recommended-links li { margin: 0; }
.article-body .prose .article-recommended-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--moss-soft);
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--forest-deep);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.article-body .prose .article-recommended-links a:hover,
.article-body .prose .article-recommended-links a:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--forest-deep);
  outline: none;
}
.article-body .prose .prose-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, .95rem + .55vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line-soft);
}
.article-body .prose h2 {
  margin-top: var(--s-10);
  margin-bottom: var(--s-4);
  scroll-margin-top: var(--s-12);
}
.article-body .prose h2:first-child { margin-top: 0; }
.article-body .prose h3 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  font-size: 1.25rem;
  color: var(--forest-deep);
  scroll-margin-top: var(--s-12);
}
.article-body .prose p { margin-bottom: var(--s-4); }
.article-body .prose ul,
.article-body .prose ol {
  margin: 0 0 var(--s-5);
  padding-left: 1.4em;
}
.article-body .prose li { margin-bottom: var(--s-2); }
.article-body .prose strong { color: var(--ink); }
.article-body .prose a {
  color: var(--forest-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--moss-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.article-body .prose a:hover {
  color: var(--gold-deep);
  text-decoration-color: var(--gold);
}

/* Article sections (picks / FAQ / related / sources) */
.article-section {
  padding: clamp(var(--s-10), 4vw + 2rem, var(--s-16)) 0;
  border-top: 1px solid var(--line-soft);
}
.article-section .eyebrow { color: var(--moss); }
.article-section h2 { margin-bottom: var(--s-3); }
.article-section .lede { margin-bottom: var(--s-6); max-width: 640px; }
.article-picks-section { background: var(--cream-soft); }
.article-pick-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.faq-item[open] {
  border-color: var(--forest);
  background: var(--cream);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-deep);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q-icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--signpost);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.faq-item[open] .q-icon { transform: rotate(45deg); color: var(--forest-deep); }
.faq-item .faq-answer {
  padding: 0 var(--s-6) var(--s-5);
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq-item .faq-answer p { margin: 0; }

/* Related cards */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-5);
}
.related-card {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--forest);
}
.related-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.related-thumb {
  height: 130px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line-soft);
}
.related-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.related-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 700;
}
.related-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--forest-deep);
  margin: 0;
}
.related-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 var(--s-2);
}
.related-cue {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signpost-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.related-cue svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.related-card:hover .related-cue { color: var(--gold-deep); }
.related-card:hover .related-cue svg { transform: translateX(3px); }

/* Source citations */
.article-sources-section {
  padding: var(--s-5) 0 var(--s-6);
}
.article-sources-section h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.cite-list li {
  padding: var(--s-3) var(--s-4);
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 14.5px;
}
.cite-list a {
  color: var(--forest-deep);
  text-decoration: underline;
  text-decoration-color: var(--moss-soft);
  text-underline-offset: 3px;
}
.cite-list a:hover { color: var(--gold-deep); text-decoration-color: var(--gold); }
.article-sources-section .cite-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
.article-sources-section .cite-list li {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.article-sources-section .cite-list a {
  color: var(--ink-muted);
  text-decoration-color: var(--line);
}

/* Article responsive tweaks */
@media (max-width: 720px) {
  .article-pick-grid { grid-template-columns: 1fr; }
  .article-meta { font-size: 11px; }
  .faq-item summary { font-size: 1rem; padding: var(--s-4); }
  .faq-item .faq-answer { padding: 0 var(--s-4) var(--s-4); }
  .faq-q { font-size: 1rem; padding: var(--s-4); }
  .faq-a > div { padding: 0 var(--s-4); }
  .faq-item[aria-expanded="true"] .faq-a > div { padding: 0 var(--s-4) var(--s-4); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .product-card:hover, .tile:hover, .btn:hover, .related-card:hover { transform: none; }
}
