/* Follicle Root — component styles (hero, cards, ingredients, steps, buttons).
   Loaded on every page from site/layout.html; site.css adds the page chrome.
   Everything is scoped to fr- classes.
   Palette is taken from the product label: parchment, forest green, gold leaf, root brown. */

/* Self-hosted faces (OFL, assets/fonts/). Replaced Google Fonts 2026-11: faster first paint, no third-party request. */
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/assets/fonts/cinzel-latin-600-normal.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/assets/fonts/lato-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/assets/fonts/lato-latin-700-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --fr-parchment:   #F5EDDC;
  --fr-cream:       #FBF6EC;
  --fr-sand:        #E4D5B7;
  --fr-soil:        #2A2117; /* body text, ~13:1 on parchment */
  --fr-bark:        #5C4C3B; /* muted text, ~6.8:1 on parchment */
  --fr-root:        #7A4A26;
  --fr-forest:      #1F3A26;
  --fr-forest-2:    #2C5034;
  --fr-leaf:        #4E7A3A;
  --fr-gold:        #C99A3B;
  --fr-gold-lt:     #E9C873;
  --fr-gold-dk:     #7A5418; /* gold dark enough for text, ~5.6:1 on parchment */

  --fr-bg:          var(--fr-parchment);
  --fr-surface:     var(--fr-cream);
  --fr-border:      var(--fr-sand);
  --fr-text:        var(--fr-soil);
  --fr-muted:       var(--fr-bark);
  --fr-accent-text: var(--fr-gold-dk);
  --fr-glow:        rgba(201, 154, 59, 0.32);
  --fr-glow-2:      rgba(78, 122, 58, 0.18);
  --fr-shadow:      0 24px 60px -24px rgba(42, 33, 23, 0.45);
  --fr-gold-metal:  linear-gradient(135deg, #B8862B 0%, #E9C873 45%, #C99A3B 60%, #8F661F 100%);

  --fr-font-display: var(--heading-font-font-family, "Cormorant Garamond", Georgia, serif);
  --fr-font-caps:    "Cinzel", var(--fr-font-display);
  --fr-font-body:    "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fr-radius-sm:   0.75rem;
  --fr-radius:      1.25rem;
  --fr-radius-pill: 999px;
  --fr-max:         72rem;
  --fr-ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Forest-green band: same components, inverted tokens. */
.fr-band {
  --fr-bg:          var(--fr-forest);
  --fr-surface:     var(--fr-forest-2);
  --fr-border:      rgba(233, 200, 115, 0.28);
  --fr-text:        #F5EDDC;
  --fr-muted:       #D6CCB4; /* ~9:1 on forest */
  --fr-accent-text: var(--fr-gold-lt);
  --fr-glow:        rgba(233, 200, 115, 0.22);
}

/* ---------- Base ---------- */

.fr {
  color: var(--fr-text);
  font-family: var(--fr-font-body);
  font-size: 1rem;
  line-height: 1.65;
}
/* Resets use :where() (zero specificity) so component classes like .fr-wrap always win. */
:where(.fr) *, :where(.fr) *::before, :where(.fr) *::after { box-sizing: border-box; }
:where(.fr) :where(h1, h2, h3) {
  margin: 0;
  color: var(--fr-text);
  font-family: var(--fr-font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
/* Squarespace colors headings per section theme (e.g. [data-section-theme] h2), which beats
   the zero-specificity reset above and turned band headings dark-on-green. */
.fr.fr :is(h1, h2, h3) { color: var(--fr-text); }
:where(.fr) :where(p, ul, ol, figure, blockquote) { margin: 0; }
:where(.fr) img { display: block; max-width: 100%; height: auto; }

.fr-section {
  position: relative;
  background: var(--fr-bg);
  padding: clamp(3.5rem, 8vw, 6rem) 1rem;
}
.fr-wrap { max-width: var(--fr-max); margin-inline: auto; }
.fr-center { text-align: center; }
:is(.fr-center, .fr-cta) .fr-lede { margin-inline: auto; }

.fr-eyebrow {
  display: block;
  margin-bottom: 0.875rem;
  color: var(--fr-accent-text);
  font-family: var(--fr-font-caps);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fr-h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.fr-lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--fr-muted);
  font-size: 1.125rem;
}

/* Retired 2026-11: gradient text is out (design rule). Kept as a no-op so older markup renders as plain heading text. */
.fr-gradient { color: inherit; }

.fr-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
  color: var(--fr-gold);
}
.fr-divider::before, .fr-divider::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Buttons & pills ---------- */

.fr a.fr-btn, .fr button.fr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--fr-radius-pill);
  font: 600 0.9375rem/1.2 var(--fr-font-caps);
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}
/* Flat gold leaf, like the label's foil, without the metallic gradient and glow. Soil on gold ≈ 6:1. */
.fr a.fr-btn--gold, .fr button.fr-btn--gold {
  background: var(--fr-gold);
  color: var(--fr-soil);
}
.fr a.fr-btn--gold:hover, .fr button.fr-btn--gold:hover { background: var(--fr-gold-lt); }
.fr a.fr-btn--gold:active, .fr button.fr-btn--gold:active { translate: 0 1px; }
.fr a.fr-btn--ghost {
  border-color: currentColor;
  color: var(--fr-text);
  background: transparent;
}
.fr a.fr-btn--ghost:hover { background: rgba(122, 84, 24, 0.08); }
.fr .fr-btn:focus-visible { outline: 3px solid var(--fr-leaf); outline-offset: 3px; }

.fr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-pill);
  background: var(--fr-surface);
  color: var(--fr-muted);
  font-family: var(--fr-font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fr-pill__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--fr-leaf); }

/* ---------- Hero ---------- */

.fr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--fr-cream) 0%, transparent 60%),
    var(--fr-bg);
  padding: clamp(3.5rem, 9vw, 7rem) 1rem clamp(3rem, 7vw, 5.5rem);
}
.fr-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(35% 30% at 72% 38%, var(--fr-glow), transparent 70%),
    radial-gradient(30% 30% at 12% 88%, var(--fr-glow-2), transparent 70%);
}
.fr-hero__glow {
  position: absolute;
  top: 10%;
  right: 5%;
  z-index: -1;
  width: 45vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fr-glow), transparent 62%);
  translate: var(--fr-gx, 0) var(--fr-gy, 0);
  pointer-events: none;
}
.fr-hero__roots {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  z-index: -1;
  width: min(120%, 70rem);
  transform: translateX(-50%);
  color: var(--fr-root);
  opacity: 0.18;
  pointer-events: none;
}
.fr-hero__roots path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.fr-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--fr-max);
  margin-inline: auto;
}
.fr-hero__title {
  margin: 1.5rem 0 1.25rem;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
}
.fr-hero__lede {
  max-width: 34rem;
  color: var(--fr-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}
.fr-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.fr-hero__assure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--fr-muted);
  font-size: 0.875rem;
}
.fr-hero__assure li::before { content: "✓"; margin-right: 0.4rem; color: var(--fr-leaf); font-weight: 700; }

.fr-hero__media { position: relative; display: grid; place-items: center; }
.fr-hero__media img {
  width: min(62%, 15rem);
  filter: drop-shadow(0 28px 40px rgba(42, 33, 23, 0.35));
}
/* Photo variant: framed like the label's gold border instead of a floating cut-out. */
.fr-hero__media img.fr-hero__photo {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--fr-radius);
  box-shadow: 0 0 0 6px var(--fr-cream), 0 0 0 7px var(--fr-gold), var(--fr-shadow);
  filter: none;
}
.fr-hero__ribbon {
  position: absolute;
  bottom: 4%;
  padding: 0.45rem 1.1rem;
  border-radius: var(--fr-radius-pill);
  background: var(--fr-gold-metal);
  color: var(--fr-soil);
  font: 600 0.7rem/1 var(--fr-font-caps);
  letter-spacing: 0.2em;
  white-space: nowrap;
  box-shadow: var(--fr-shadow);
}

@media (min-width: 48rem) {
  .fr-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .fr-hero__media img { width: min(100%, 24rem); }
  .fr-hero__media img.fr-hero__photo { width: min(100%, 30rem); }
}

.fr-fineprint {
  margin-top: 1.75rem;
  color: var(--fr-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* ---------- Legal pages (terms, policies) ---------- */
.fr-legal { max-width: 46rem; }
.fr-legal h2 { margin: 2.25rem 0 0.5rem; font-size: 1.5rem; }
.fr-legal p, .fr-legal ul { margin-top: 0.75rem; }
.fr-legal ul { padding-left: 1.25rem; }
.fr-legal li + li { margin-top: 0.35rem; }
.fr-legal a { color: var(--fr-accent-text); text-decoration: underline; text-underline-offset: 0.15em; }
.fr-legal__date { color: var(--fr-muted); font-size: 0.875rem; }
.fr-legal h3 { margin: 1.5rem 0 0.25rem; font-size: 1.2rem; }
.fr-legal :is(h2, h3)[id] { scroll-margin-top: 6rem; }
.fr-legal__summary,
.fr-legal__toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--fr-surface);
  border: 1px solid var(--fr-border);
  border-radius: 1rem;
}
.fr-legal__summary h2,
.fr-legal__toc h2 { margin-top: 0; font-size: 1.25rem; }
.fr-legal__toc ol { columns: 2 14rem; column-gap: 2rem; }
.fr-legal__toc li { break-inside: avoid; }
.fr-legal__table { margin-top: 1rem; overflow-x: auto; }
.fr-legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fr-legal :is(th, td) { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--fr-border); text-align: left; vertical-align: top; }
.fr-legal th { font-weight: 600; }

/* ---------- Trust strip ---------- */

.fr-trust {
  padding: 1.5rem 1rem;
  background: var(--fr-bg);
  border-block: 1px solid var(--fr-border);
}
.fr-trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  max-width: var(--fr-max);
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.fr-trust__item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.3; }
.fr-trust__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--fr-gold);
  border-radius: 50%;
  color: var(--fr-gold-lt);
  background: var(--fr-forest-2);
}
.fr-trust__icon svg { width: 1.2rem; height: 1.2rem; }
@media (min-width: 48rem) {
  .fr-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Benefit cards ---------- */

.fr-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}
.fr-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  background: var(--fr-surface);
}
.fr-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--fr-forest);
  color: var(--fr-gold-lt);
  box-shadow: 0 0 0 4px var(--fr-surface), 0 0 0 5px var(--fr-gold);
}
.fr-card__icon svg { width: 1.35rem; height: 1.35rem; }
.fr-card h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.fr-card p { color: var(--fr-muted); }
@media (min-width: 40rem) { .fr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .fr-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Ingredient spotlight ---------- */

.fr-split { display: grid; gap: 2.5rem; align-items: center; max-width: var(--fr-max); margin-inline: auto; }
.fr-ingredients { display: grid; gap: 0; margin-top: 2rem; padding: 0; list-style: none; }
.fr-ingredients li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fr-border);
}
.fr-ingredients li:first-child { border-top: 1px solid var(--fr-border); }
.fr-ingredients strong { font-family: var(--fr-font-display); font-size: 1.375rem; font-weight: 600; }
.fr-ingredients span { color: var(--fr-muted); }
.fr-inci {
  margin-top: 1.5rem;
  color: var(--fr-muted);
  font-size: 0.8125rem;
}
.fr-inci summary { color: var(--fr-text); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; list-style: none; }
.fr-inci summary::-webkit-details-marker { display: none; }
/* Squarespace strips the native disclosure triangle, so draw our own. */
.fr-inci summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  inline-size: 1.4em;
  block-size: 1.4em;
  border: 1px solid var(--fr-gold);
  border-radius: 50%;
  color: var(--fr-gold-dk);
  font-weight: 700;
  line-height: 1;
}
.fr-inci[open] summary::before { content: "\2212"; }
.fr-inci p { margin-top: 0.5rem; }

.fr-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--fr-forest-2), var(--fr-forest) 70%);
  box-shadow: 0 0 0 6px var(--fr-bg), 0 0 0 7px var(--fr-gold), var(--fr-shadow);
  color: var(--fr-gold-lt);
  text-align: center;
}
.fr-seal__count { font-family: var(--fr-font-display); font-size: clamp(4rem, 12vw, 6.5rem); font-weight: 600; line-height: 1; }
.fr-seal__label { margin-top: 0.5rem; font-family: var(--fr-font-caps); font-size: 0.8125rem; letter-spacing: 0.2em; }
.fr-seal__ring { position: absolute; inset: 6%; color: var(--fr-gold); opacity: 0.55; }

@media (min-width: 48rem) { .fr-split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }

/* ---------- How to use ---------- */

.fr-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  counter-reset: fr-step;
}
.fr-step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  background: var(--fr-surface);
  counter-increment: fr-step;
}
.fr-step::before {
  content: counter(fr-step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--fr-gold-metal);
  color: var(--fr-soil);
  font: 700 1.125rem/1 var(--fr-font-caps);
}
.fr-step h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.fr-step p { color: var(--fr-muted); }
@media (min-width: 48rem) { .fr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Reviews ---------- */

.fr-reviews { display: grid; gap: 1.25rem; margin-top: 3rem; }
.fr-review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  background: var(--fr-surface);
}
.fr-review__stars { color: var(--fr-gold); font-size: 1.125rem; letter-spacing: 0.15em; }
.fr-review blockquote { font-family: var(--fr-font-display); font-size: 1.375rem; line-height: 1.35; }
.fr-review figcaption { margin-top: auto; color: var(--fr-muted); font-size: 0.875rem; }
@media (min-width: 48rem) { .fr-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- CTA band ---------- */

.fr-cta { text-align: center; }
.fr-cta .fr-hero__ctas { justify-content: center; }

/* ---------- Mobile sticky buy bar ---------- */

.fr-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--fr-sand);
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(10px);
  color: var(--fr-soil);
  transform: translateY(110%);
  visibility: hidden;
}
.fr-sticky.is-shown { transform: none; visibility: visible; }
.fr-sticky__name { font-family: var(--fr-font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.fr-sticky__price { color: var(--fr-bark); font-size: 0.875rem; }
.fr-sticky .fr-btn { min-height: 2.75rem; padding: 0.7rem 1.25rem; }
@media (min-width: 48rem) { .fr-sticky { display: none; } }

/* ---------- Product page add-on (inserted by fr.js under Add to Cart) ---------- */

.fr-buybox-trust {
  display: grid;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(42, 33, 23, 0.15);
  list-style: none;
  font-size: 0.9rem;
}
.fr-buybox-trust li::before { content: "✓"; margin-right: 0.5rem; color: var(--fr-leaf); font-weight: 700; }

/* ---------- Motion (all of it opt-in to users who haven't asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* :where() keeps these at class-level specificity so component hover rules below can win. */
  .fr-js :where([data-fr-reveal]) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--fr-ease) var(--fr-delay, 0ms), transform 0.9s var(--fr-ease) var(--fr-delay, 0ms);
  }
  .fr-js :where([data-fr-reveal].is-in) { opacity: 1; transform: none; }
  [data-fr-reveal="2"] { --fr-delay: 120ms; }
  [data-fr-reveal="3"] { --fr-delay: 240ms; }
  [data-fr-reveal="4"] { --fr-delay: 360ms; }

  .fr-enter { animation: fr-rise 1s var(--fr-ease) both; }
  .fr-enter--2 { animation-delay: 0.12s; }
  .fr-enter--3 { animation-delay: 0.24s; }
  .fr-enter--4 { animation-delay: 0.36s; }
  .fr-enter--5 { animation-delay: 0.5s; }

  /* Hero: one entrance on load (fr-enter). The drifting glow, floating bottle and shimmer were retired 2026-11. */
  .fr-hero__roots path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: fr-grow 3.2s var(--fr-ease) 0.3s forwards;
  }
  .fr-hero__roots path:nth-child(2n) { animation-delay: 0.6s; }
  .fr-hero__roots path:nth-child(3n) { animation-delay: 0.9s; }

  .fr a.fr-btn, .fr button.fr-btn { transition: transform 0.2s var(--fr-ease), background-color 0.15s; }
  .fr a.fr-btn:hover, .fr button.fr-btn:hover { transform: translateY(-2px); }
  .fr-gps { transition: transform 0.2s var(--fr-ease); }
  .fr-gps:hover { transform: translateY(-1px); }
  /* The ingredient root draws once when the ledger scrolls in (fr.js adds .is-in); nodes stay visible at rest. */
  .fr-js .fr-ledger:not(.is-in)::before { transform: scaleY(0); }
  .fr-ledger::before { transform-origin: top; transition: transform 1.4s var(--fr-ease); }

  /* Hover uses `translate`, separate from the reveal's `transform`, so the two never fight. */
  .fr-card, .fr-step, .fr-review {
    transition:
      opacity 0.9s var(--fr-ease) var(--fr-delay, 0ms),
      transform 0.9s var(--fr-ease) var(--fr-delay, 0ms),
      translate 0.35s var(--fr-ease),
      box-shadow 0.35s var(--fr-ease);
  }
  .fr-card:hover, .fr-step:hover, .fr-review:hover { translate: 0 -4px; box-shadow: var(--fr-shadow); }

  .fr-seal__ring { animation: fr-spin 60s linear infinite; }
  .fr-sticky { transition: transform 0.35s var(--fr-ease), visibility 0s linear 0.35s; }
  .fr-sticky.is-shown { transition: transform 0.35s var(--fr-ease); }
}

@keyframes fr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fr-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes fr-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes fr-grow { to { stroke-dashoffset: 0; } }
@keyframes fr-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes fr-spin { to { transform: rotate(360deg); } }

/* Accessibility helper for text that only screen readers need. */
.fr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Redesign 2026-11 (docs/DESIGN.md): product-first hero, ingredient ledger,
   plain how-to, made-here band. Label palette only.
   ========================================================================== */

::selection { background: var(--fr-gold-lt); color: var(--fr-soil); }
:where(.fr) :where(h1, h2, h3) { text-wrap: balance; }
:where(.fr) p { text-wrap: pretty; }

/* Hero: the bottle large on parchment; copy, price fact, actions and the Google badge beside it. */
.fr-hero--product { background: var(--fr-parchment); padding: clamp(1.5rem, 3.2vw, 3.5rem) 1rem clamp(3rem, 6vw, 5rem); }
.fr-hero--product::before { content: none; }
.fr-hero--product .fr-hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; max-width: var(--fr-max); margin-inline: auto; }
.fr-hero--product .fr-hero__title { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.01em; max-width: 14ch; }
.fr-hero--product .fr-hero__lede { max-width: 34rem; margin-top: 1.25rem; color: var(--fr-muted); font-size: 1.125rem; }
.fr-hero__fact { margin-top: 1rem; font-size: 1.0625rem; }
.fr-hero__fact strong { font-family: var(--fr-font-display); font-size: 1.5rem; font-weight: 600; margin-right: 0.15rem; }
.fr-hero--product .fr-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.fr-gps { display: inline-block; margin-top: 1.25rem; border-radius: 8px; line-height: 0; }
.fr-gps img { display: block; }
.fr-hero--product .fr-hero__media { justify-self: center; width: min(100%, 34rem); }
.fr-hero--product .fr-hero__photo { width: 100%; height: auto; border-radius: var(--fr-radius); box-shadow: none; }
@media (min-width: 56rem) {
  .fr-hero--product .fr-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
@media (max-width: 40rem) {
  /* Phones: price, buy and the Google badge stay on the first screen (house rule); the description and photo follow. */
  .fr-hero__copy { display: flex; flex-direction: column; }
  .fr-hero__copy .fr-hero__lede { order: 5; margin-top: 1.5rem; }
  .fr-hero--product .fr-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .fr-hero--product .fr-hero__lede { font-size: 1.0625rem; }
  .fr-hero--product .fr-hero__ctas .fr-btn { flex: 1 1 100%; }
}

/* Ingredient ledger: the label's root as a line through the list, one node per ingredient, in label order. */
.fr-ledger-section { background: var(--fr-cream); }
.fr-ledger__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.fr-ledger { position: relative; margin: 0; padding: 0 0 0 3.25rem; list-style: none; counter-reset: fr-ledger; }
.fr-ledger::before { content: ""; position: absolute; left: 1.05rem; top: 0.9rem; bottom: 0.9rem; width: 2px; background: var(--fr-root); border-radius: 2px; }
.fr-ledger li { position: relative; display: grid; gap: 0.2rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--fr-border); counter-increment: fr-ledger; }
.fr-ledger li:first-child { border-top: 1px solid var(--fr-border); }
.fr-ledger li::before {
  content: counter(fr-ledger);
  position: absolute; left: -3.25rem; top: 1rem;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--fr-forest); color: var(--fr-parchment);
  font: 600 0.9375rem/1 var(--fr-font-caps); font-variant-numeric: tabular-nums;
}
.fr-ledger__name { font-family: var(--fr-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.fr-ledger__inci { color: var(--fr-muted); font-size: 0.875rem; font-style: italic; }
.fr-ledger__does { color: var(--fr-text); }
.fr-ledger__note { margin-top: 1.5rem; color: var(--fr-muted); font-size: 0.9375rem; }
@media (min-width: 56rem) {
  .fr-ledger li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; }
  .fr-ledger__inci { grid-column: 1; grid-row: 2; }
  .fr-ledger__does { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* How to use: a real three-step sequence, numbered because order matters. */
.fr-howto { background: var(--fr-parchment); }
.fr-howto__grid { display: grid; gap: 2rem 4rem; }
.fr-howto__steps { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; counter-reset: fr-step; }
.fr-howto__steps li { position: relative; padding-left: 4rem; counter-increment: fr-step; }
.fr-howto__steps li::before { content: counter(fr-step); position: absolute; left: 0; top: -0.35rem; color: var(--fr-gold-dk); font: 600 3rem/1 var(--fr-font-display); }
.fr-howto__steps h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.fr-howto__steps p { color: var(--fr-muted); max-width: 30rem; }
@media (min-width: 56rem) { .fr-howto__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }

/* Made-here band (forest owns this region). */
.fr-cta { text-align: left; }
.fr-cta__grid { display: grid; gap: 2rem 4rem; align-items: center; }
.fr-cta__price { margin-bottom: 1rem; font-size: 1.0625rem; color: var(--fr-text); }
.fr-cta__price strong { font-family: var(--fr-font-display); font-size: 2rem; font-weight: 600; }
.fr-cta .fr-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-start; }
@media (min-width: 56rem) { .fr-cta__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* House rule: the Google Preferred Sources badge must sit on the first screen at every width.
   Up to 72rem the description follows the actions; on phones the secondary button goes (Ingredients is in the nav). */
@media (max-width: 72rem) {
  .fr-hero__copy { display: flex; flex-direction: column; }
  .fr-hero__copy .fr-hero__lede { order: 5; margin-top: 1.5rem; }
}
@media (max-width: 40rem) {
  .fr-hero--product .fr-hero__title { max-width: none; }
  .fr-hero--product .fr-hero__fact { margin-top: 0.75rem; }
  .fr-hero--product .fr-hero__ctas { margin-top: 1.25rem; }
  .fr-hero--product .fr-hero__ctas .fr-btn--ghost { display: none; }
  .fr-gps { margin-top: 1rem; }
}