/* ==========================================================================
   RootCleanse — Luxury Holistic Apothecary Stylesheet
   Premium botanical wellness brand design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours — from product label (lime + charcoal + white) */
  --lime: #A8C73A;
  --lime-bright: #B8D94A;
  --lime-deep: #8FB02E;
  --leaf: #2F6B32;
  --leaf-dark: #1E4A22;
  --charcoal: #1A1A1A;
  --ink: #222222;
  --muted: #5A5A5A;
  --mist: #F4F8E8;
  --mint: #E5F0C8;
  --stone: #E8E8E4;
  --soft-white: #FFFFFF;
  --cream: #FAFCF3;

  /* Legacy aliases (mapped to new palette so old rules still work) */
  --forest: var(--leaf);
  --moss: var(--leaf-dark);
  --sage: var(--lime);
  --earth: var(--ink);
  --gold: var(--lime);
  --copper: var(--lime-deep);

  /* Semantic aliases */
  --color-bg: var(--soft-white);
  --color-bg-alt: var(--mist);
  --color-bg-dark: var(--charcoal);
  --color-bg-muted: var(--mint);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-on-dark: #FFFFFF;
  --color-heading: var(--charcoal);
  --color-accent: var(--lime);
  --color-accent-warm: var(--lime-deep);
  --color-border: rgba(26, 26, 26, 0.1);
  --color-border-strong: rgba(26, 26, 26, 0.18);
  --color-focus: var(--lime);
  --color-success: var(--leaf);
  --color-error: #c0392b;

  /* Typography — bold modern + friendly display */
  --font-serif: "Outfit", "Manrope", system-ui, sans-serif;
  --font-display: "Outfit", "Manrope", system-ui, sans-serif;
  --font-sans: "DM Sans", "Manrope", system-ui, -apple-system, sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);
  --fs-4xl: clamp(3rem, 2.2rem + 3vw, 4.5rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.65;
  --lh-relaxed: 1.8;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 72rem;
  --container-narrow: 42rem;
  --container-wide: 80rem;
  --header-height: 5rem;
  --header-height-scrolled: 4rem;
  --announce-height: 2.25rem;
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(36, 37, 34, 0.06);
  --shadow: 0 4px 20px rgba(36, 37, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(36, 37, 34, 0.12);
  --shadow-gold: 0 4px 24px rgba(185, 154, 88, 0.18);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.25s;
  --duration-slow: 0.45s;

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile / low-end: kill expensive paint during scroll */
html.rc-perf-lite .fun-strip__track,
html.rc-perf-lite .rc-fun-dot,
html.rc-perf-lite .par-hero__particle {
  animation: none !important;
}
html.rc-perf-lite .site-header,
html.rc-perf-lite .site-chrome {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.rc-perf-lite .product-card,
html.rc-perf-lite .article-card,
html.rc-perf-lite .edu-card {
  will-change: auto !important;
  transform: none !important;
}
/*
 * content-visibility was removed from broad .section rules:
 * wrong contain-intrinsic-size caused scroll-up jumps with the sticky header.
 * Heavy below-fold blocks can still opt in via .rc-cv if needed.
 */
.rc-cv {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (not hidden) so position:sticky still works in modern browsers */
  overflow-x: clip;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: var(--fw-semibold); }

/* Focus states — accessible & visible */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-toast) + 1);
  padding: var(--space-3) var(--space-5);
  background: var(--forest);
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius);
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-9);
}

.section--sm {
  padding-block: var(--space-7);
}

.section--lg {
  padding-block: var(--space-10);
}

.section--cream { background: var(--cream); }
.section--stone { background: var(--stone); }
.section--forest { background: var(--forest); color: var(--color-text-on-dark); }
.section--forest h2,
.section--forest h3,
.section--forest h4 { color: var(--cream); }
.section--white { background: var(--soft-white); }
.section--moss { background: var(--moss); color: var(--color-text-on-dark); }

.section__header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.section--forest .section__lead {
  color: rgba(244, 239, 228, 0.78);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .split--reverse .split__media { order: -1; }
}

/* --------------------------------------------------------------------------
   4. Typography Helpers
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-serif { font-family: var(--font-serif); }
.measure { max-width: 38rem; }
.measure-wide { max-width: 48rem; }

.divider {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: var(--space-5) auto;
  border: none;
}

.divider--left {
  margin-left: 0;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn--primary:hover {
  background: var(--moss);
  border-color: var(--moss);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn--secondary:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn--gold {
  background: var(--gold);
  color: var(--forest);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: #c9a96a;
  border-color: #c9a96a;
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 228, 0.45);
}

.btn--ghost:hover {
  background: rgba(244, 239, 228, 0.1);
  border-color: var(--cream);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--color-border-strong);
}

.btn--ghost-dark:hover {
  border-color: var(--forest);
  background: rgba(24, 55, 43, 0.04);
}

.btn--text {
  padding: 0.5rem 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: var(--fw-medium);
  color: var(--forest);
  border: none;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
}

.btn--text:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
  transform: none;
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1.05rem 2.25rem;
  font-size: var(--fs-sm);
}

.btn--full { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--soft-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--charcoal);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--sage);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 154, 88, 0.2);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   7. Badges & Tags
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: rgba(185, 154, 88, 0.15);
  color: var(--earth);
  border: 1px solid rgba(185, 154, 88, 0.35);
}

.badge--forest {
  background: rgba(24, 55, 43, 0.08);
  color: var(--forest);
  border-color: rgba(24, 55, 43, 0.15);
}

.badge--cream {
  background: rgba(244, 239, 228, 0.2);
  color: var(--cream);
  border-color: rgba(244, 239, 228, 0.3);
}

.badge--stock {
  background: rgba(61, 92, 69, 0.1);
  color: var(--color-success);
  border-color: rgba(61, 92, 69, 0.2);
}

.badge--bundle {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* --------------------------------------------------------------------------
   8. Announcement Bar
   -------------------------------------------------------------------------- */
.announce-bar {
  background: var(--forest);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-align: center;
  height: var(--announce-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.announce-bar__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.announce-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.announce-msg.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announce-msg a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   9. Site Header
   -------------------------------------------------------------------------- */
/* Sticky chrome wraps announce + header (see premium.css for full rules) */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-header {
  position: relative;
  z-index: 2;
  background: rgba(252, 250, 245, 0.97);
  /* Light blur on desktop only — heavy blur = scroll jank on phones */
  border-bottom: 1px solid var(--color-border);
  transition:
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease);
}
@media (min-width: 901px) and (hover: hover) {
  .site-header {
    background: rgba(252, 250, 245, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
  /* Do not animate height — sticky reflow glitches scroll */
  transition: none;
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  z-index: 2;
}

.logo__img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  transition: width var(--duration) var(--ease), height var(--duration) var(--ease);
}

.site-header.is-scrolled .logo__img {
  width: 2.25rem;
  height: 2.25rem;
}

.logo__text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: var(--fw-medium);
  color: var(--forest);
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo__text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

/* Main navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-main__link {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--forest);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav-main__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.nav-main__link:hover,
.nav-main__link[aria-current="page"] {
  color: var(--copper);
}

.nav-main__link:hover::after,
.nav-main__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--forest);
  border-radius: var(--radius);
  position: relative;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.header-icon:hover {
  background: rgba(24, 55, 43, 0.06);
  color: var(--copper);
}

.header-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.basket-count {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding-inline: 0.25rem;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.basket-count:empty,
.basket-count[data-count="0"] {
  display: none;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  z-index: 2;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--forest);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile navigation drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
}

.nav-mobile.is-open {
  pointer-events: auto;
}

.nav-mobile__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 37, 34, 0.45);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease);
}

.nav-mobile.is-open .nav-mobile__backdrop {
  opacity: 1;
}

.nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 88vw);
  height: 100%;
  background: var(--soft-white);
  padding: calc(var(--header-height) + var(--space-4)) var(--space-5) var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.nav-mobile.is-open .nav-mobile__panel {
  transform: translateX(0);
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: var(--space-6);
}

.nav-mobile__link {
  display: block;
  padding: 0.95rem 0.15rem;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--forest);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile__link:hover,
.nav-mobile__link[aria-current="page"] {
  color: var(--copper);
}

.nav-mobile__sub {
  padding-left: var(--space-4);
  display: none;
}

.nav-mobile__sub.is-open {
  display: block;
}

.nav-mobile__sub a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.nav-mobile__cta {
  margin-top: var(--space-4);
}

/* Base collapse — centered header overrides at 1100px in premium.css */
@media (max-width: 1024px) {
  .site-header:not(.site-header--center) .nav-main { display: none; }
  .site-header:not(.site-header--center) .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .logo__text { display: none; }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(24, 55, 43, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  width: min(36rem, 90vw);
}

.search-overlay__form {
  display: flex;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(244, 239, 228, 0.3);
  padding-bottom: var(--space-3);
}

.search-overlay__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  padding: var(--space-2) 0;
}

.search-overlay__input::placeholder {
  color: rgba(244, 239, 228, 0.45);
}

.search-overlay__input:focus {
  outline: none;
}

.search-overlay__close {
  color: var(--cream);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: var(--space-4);
}

.search-overlay__close:hover { opacity: 1; }

/* ========== Basket pop-out (premium drawer) ========== */
html.rc-cart-open,
html.rc-cart-open body.modal-open {
  overflow: hidden !important;
}
.cart-drawer a,
.cart-drawer .btn,
.cart-drawer [data-cart-checkout],
.cart-drawer button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 16, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (min-width: 901px) {
  .cart-drawer__backdrop {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(27.5rem, 100vw);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faf2 100%);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -16px 0 48px rgba(16, 28, 14, 0.22);
  border-left: 0;
  outline: none;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.cart-drawer__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c4e06a, #2f6b32 55%, #1e4a22);
  z-index: 2;
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1.15rem 1.25rem 1rem 1.4rem;
  border-bottom: 1px solid rgba(30, 74, 34, 0.1);
  background: #fff;
}
.cart-drawer__heading { min-width: 0; }
.cart-drawer__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7a55;
}
.cart-drawer__title {
  font-family: var(--font-display, Outfit, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e4a22;
  margin: 0;
}
.cart-drawer__header .header-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #f0f4e8;
  border: 1px solid rgba(30, 74, 34, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e4a22;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-drawer__header .header-icon:hover {
  background: #e4edd4;
  transform: scale(1.04);
}

.cart-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 1.15rem 1rem 1.35rem;
  overscroll-behavior: contain;
}

.cart-drawer__footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom, 0px)) 1.4rem;
  border-top: 1px solid rgba(30, 74, 34, 0.1);
  background: #fff;
  box-shadow: 0 -10px 28px rgba(20, 30, 18, 0.07);
}
.cart-drawer__footer .rc-delivery,
.cart-drawer__footer .delivery-progress {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f0f8dc, #f7faf0);
  border: 1px solid rgba(47, 107, 50, 0.14);
}
.cart-drawer__footer .rc-delivery__msg,
.cart-drawer__footer .delivery-progress__msg {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2f6b32;
  margin: 0 0 0.45rem;
}

.cart-drawer__totals {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: #f6f9f0;
  border: 1px solid rgba(30, 74, 34, 0.08);
}
.cart-drawer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #3a4a34;
}
.cart-drawer__row--discount {
  color: #2f6b32;
  font-weight: 800;
}
.cart-drawer__row--discount[hidden] { display: none !important; }
.cart-drawer__row--total {
  font-weight: 900;
  font-size: 1.12rem;
  color: #1e4a22;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px dashed rgba(30, 74, 34, 0.18);
}
.cart-drawer__checkout {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(47, 107, 50, 0.28) !important;
}
.cart-drawer__footer .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3rem;
  width: 100%;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}
.cart-drawer__footer .btn--secondary {
  background: #fff !important;
  border: 1.5px solid rgba(30, 74, 34, 0.18) !important;
  color: #1e4a22 !important;
}
.cart-drawer__footer .mt-3,
.cart-drawer__footer .mt-4 {
  margin-top: 0.6rem !important;
}

.cart-drawer.is-empty [data-cart-footer-filled],
.cart-drawer.is-empty .cart-drawer__totals,
.cart-drawer.is-empty .delivery-progress,
.cart-drawer.is-empty .rc-delivery {
  display: none !important;
}
.cart-drawer:not(.is-empty) [data-cart-footer-filled],
.cart-drawer:not(.is-empty) .cart-drawer__checkout {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.cart-drawer:not(.is-empty) .cart-drawer__totals {
  display: flex !important;
}

/* Line items as soft cards */
.cart-drawer .rc-mini-cart,
.cart-drawer .woocommerce-mini-cart {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cart-drawer .rc-mini-cart__item,
.cart-drawer .woocommerce-mini-cart-item {
  display: grid !important;
  grid-template-columns: 4.75rem minmax(0, 1fr) 2.15rem !important;
  gap: 0.8rem !important;
  align-items: center !important;
  padding: 0.8rem !important;
  border: 1px solid rgba(30, 74, 34, 0.09) !important;
  border-radius: 1rem !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(20, 30, 18, 0.05);
  list-style: none !important;
  position: relative !important;
}
.cart-drawer .rc-mini-cart__img,
.cart-drawer .rc-mini-cart__img-link {
  display: block !important;
  width: 4.75rem !important;
  height: 4.75rem !important;
  flex-shrink: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: linear-gradient(145deg, #eef5dc, #f7faf0);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(30, 74, 34, 0.06);
}
.cart-drawer .rc-mini-cart__img-link { line-height: 0; }
.cart-drawer .rc-mini-cart__thumb,
.cart-drawer .rc-mini-cart__img img,
.cart-drawer .woocommerce-mini-cart-item img,
.cart-drawer .rc-mini-cart__img-link img {
  display: block !important;
  width: 4.75rem !important;
  height: 4.75rem !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0.85rem !important;
  background: #eef5dc;
  visibility: visible !important;
  opacity: 1 !important;
}
.cart-drawer .rc-mini-cart__thumb--empty {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #e8f0d8, #f4f8e8 50%, #dce8c8);
}
.cart-drawer .rc-mini-cart__info { min-width: 0; }
.cart-drawer .rc-mini-cart__name {
  display: block;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.3;
  color: #1e4a22;
  text-decoration: none;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}
.cart-drawer .rc-mini-cart__name:hover {
  color: #2f6b32;
}
.cart-drawer .rc-mini-cart__qty {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5c6350;
}
.cart-drawer .rc-mini-cart__qty .amount,
.cart-drawer .rc-mini-cart__qty .woocommerce-Price-amount {
  color: #2f6b32;
  font-weight: 800;
}
.cart-drawer .rc-mini-cart-empty {
  text-align: center;
  padding: 2.75rem 1rem 1.5rem;
}
.cart-drawer .rc-mini-cart-empty__icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.cart-drawer .rc-mini-cart-empty p {
  margin: 0 0 1.1rem;
  color: #5c6350;
  font-size: 0.98rem;
}
.cart-drawer .rc-mini-cart__remove,
.cart-drawer .remove_from_cart_button {
  position: static !important;
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef1e8 !important;
  color: var(--charcoal, #1a1a1a) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cart-drawer .rc-mini-cart__remove:hover,
.cart-drawer .remove_from_cart_button:hover {
  background: #e0e8d0 !important;
  transform: scale(1.06);
}

.cart-drawer .rc-mini-cart-empty {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.cart-drawer .rc-mini-cart-empty__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.cart-drawer .rc-mini-cart-empty p {
  margin: 0 0 1rem;
  color: var(--muted, #5c6350);
  font-size: 0.95rem;
}

/* Hide default WC mini-cart footer bits if a plugin injects them */
.cart-drawer .woocommerce-mini-cart__buttons,
.cart-drawer .woocommerce-mini-cart__total {
  display: none !important;
}

@media (max-width: 480px) {
  .cart-drawer__panel {
    width: 100vw;
    border-left: 0;
    border-radius: 0;
  }
  .cart-drawer__header,
  .cart-drawer__body,
  .cart-drawer__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .cart-drawer .rc-mini-cart__item,
  .cart-drawer .woocommerce-mini-cart-item {
    grid-template-columns: 4rem minmax(0, 1fr) 2rem !important;
  }
  .cart-drawer .rc-mini-cart__img,
  .cart-drawer .rc-mini-cart__img-link,
  .cart-drawer .rc-mini-cart__thumb,
  .cart-drawer .rc-mini-cart__img img {
    width: 4rem !important;
    height: 4rem !important;
  }
}

@media (min-width: 900px) {
  .cart-drawer__panel {
    width: min(26.5rem, 92vw);
  }
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(32rem, 85vh, 48rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(24, 55, 43, 0.92) 0%, rgba(24, 55, 43, 0.72) 48%, rgba(24, 55, 43, 0.35) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-9);
  max-width: 38rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--fs-4xl);
  color: var(--cream);
  margin-bottom: var(--space-5);
  font-weight: var(--fw-medium);
}

.hero__text {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(244, 239, 228, 0.85);
  margin-bottom: var(--space-6);
  max-width: 32rem;
}

.hero__trust {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: rgba(244, 239, 228, 0.65);
  letter-spacing: 0.02em;
}

.hero__trust::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: var(--space-3);
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding-block: var(--space-8);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(185, 154, 88, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(41, 74, 58, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.page-hero__title {
  color: var(--cream);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.page-hero__text {
  font-size: var(--fs-md);
  color: rgba(244, 239, 228, 0.78);
  max-width: 36rem;
  line-height: var(--lh-relaxed);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(244, 239, 228, 0.55);
  margin-bottom: var(--space-4);
}

.breadcrumbs a {
  color: rgba(244, 239, 228, 0.7);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs__sep {
  opacity: 0.5;
}

.breadcrumbs--light {
  color: var(--color-text-muted);
}

.breadcrumbs--light a {
  color: var(--color-text-muted);
}

.breadcrumbs--light a:hover {
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   11. Cards — Products, Benefits, Education
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1;
}

.product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--forest);
  line-height: var(--lh-snug);
}

.product-card__title a:hover {
  color: var(--copper);
}

.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  flex: 1;
}

.product-card__price {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--forest);
  margin-top: var(--space-2);
}

.product-card__price s {
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-left: var(--space-2);
}

.product-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* Feature card (3 Rs, benefits) */
.feature-card {
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  position: relative;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: rgba(185, 154, 88, 0.4);
  box-shadow: var(--shadow-sm);
}

.feature-card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(244, 239, 228, 0.12);
  color: var(--cream);
}

.feature-card--dark h3 {
  color: var(--cream);
}

.feature-card__number {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-weight: var(--fw-medium);
}

.feature-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.feature-card--dark .feature-card__text {
  color: rgba(244, 239, 228, 0.7);
}

/* Education cards */
.edu-card {
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  height: 100%;
}

.edu-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-4);
  color: var(--copper);
}

.edu-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
}

.edu-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.edu-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* Ingredient cards */
.ingredient-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease);
}

.ingredient-card:hover {
  border-color: var(--gold);
}

.ingredient-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  color: var(--moss);
}

.ingredient-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.1;
}

.ingredient-card__name {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.ingredient-card__desc {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

/* Article / magazine cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card__media {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  transition: transform var(--duration-slow) var(--ease);
}

.article-card:hover .article-card__media img {
  transform: scale(1.03);
}

.article-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.article-card__cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-card__title {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.article-card__title a:hover {
  color: var(--copper);
}

.article-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.article-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   12. The 3 Rs Timeline
   -------------------------------------------------------------------------- */
.rs-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
}

.rs-timeline::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 0;
}

@media (max-width: 800px) {
  .rs-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .rs-timeline::before { display: none; }
}

.rs-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-6) var(--space-4);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.rs-step__num {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--forest);
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.rs-step__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.rs-step__product {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-3);
}

.rs-step__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* Large 3 Rs editorial blocks */
.rs-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.rs-block:last-child {
  border-bottom: none;
}

.rs-block--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.rs-block--reverse .rs-block__media {
  order: 2;
}

@media (max-width: 900px) {
  .rs-block,
  .rs-block--reverse {
    grid-template-columns: 1fr;
  }
  .rs-block--reverse .rs-block__media { order: -1; }
}

.rs-block__media {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rs-block__media img {
  width: 100%;
  height: 100%;
}

.rs-block__num {
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  color: rgba(185, 154, 88, 0.35);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.rs-block__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.rs-block__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
}

.rs-block__habits {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--cream);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.rs-block__habits h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--forest);
}

.rs-block__habits ul {
  list-style: disc;
  padding-left: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.rs-block__habits li {
  margin-bottom: var(--space-1);
}

/* --------------------------------------------------------------------------
   13. Featured Product Split
   -------------------------------------------------------------------------- */
.featured-product {
  background: var(--cream);
}

.featured-product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 36rem;
  background: var(--stone);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.featured-product__media img {
  width: 100%;
  height: 100%;
}

.featured-product__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.featured-product__content h2 {
  margin-bottom: var(--space-3);
}

.featured-product__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.05em;
}

.featured-product__includes {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.featured-product__includes h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--forest);
}

.featured-product__includes ul {
  display: grid;
  gap: var(--space-2);
}

.featured-product__includes li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.featured-product__includes li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.featured-product__price {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--forest);
  margin-bottom: var(--space-5);
}

/* --------------------------------------------------------------------------
   14. Banner / CTA
   -------------------------------------------------------------------------- */
.banner {
  padding-block: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner--editorial {
  background: var(--moss);
  color: var(--cream);
}

.banner--editorial h2 {
  color: var(--cream);
}

.banner--editorial p {
  color: rgba(244, 239, 228, 0.8);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.banner--forest {
  background: var(--forest);
  color: var(--cream);
}

.banner--forest h2 {
  color: var(--cream);
  margin-bottom: var(--space-5);
}

.banner--cream {
  background: var(--cream);
  border-block: 1px solid var(--color-border);
}

.banner--upsell {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.banner--upsell h3 {
  color: var(--cream);
  margin-bottom: var(--space-2);
}

.banner--upsell p {
  color: rgba(244, 239, 228, 0.75);
  margin: 0;
  font-size: var(--fs-sm);
}

@media (max-width: 700px) {
  .banner--upsell {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   15. Symptoms / Checklist
   -------------------------------------------------------------------------- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 800px) {
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .symptom-grid { grid-template-columns: 1fr; }
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--forest);
}

.symptom-item__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

.note-box {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(185, 154, 88, 0.08);
  border: 1px solid rgba(185, 154, 88, 0.25);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--earth);
  line-height: var(--lh-relaxed);
}

.note-box strong {
  color: var(--forest);
}

.warning-box {
  padding: var(--space-5);
  background: rgba(166, 107, 69, 0.08);
  border: 1px solid rgba(166, 107, 69, 0.3);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--earth);
  line-height: var(--lh-relaxed);
  margin-block: var(--space-5);
}

.warning-box h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--copper);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-box {
  padding: var(--space-5);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
}

.fact-box__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.fact-box p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--forest);
  line-height: var(--lh-snug);
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-6);
  border-left: 2px solid var(--gold);
  margin-block: var(--space-7);
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   16. Why RootCleanse — premium icon cards
   -------------------------------------------------------------------------- */
.why-section {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(168, 199, 58, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(47, 107, 50, 0.06), transparent 50%),
    #fff;
  position: relative;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.3rem 1.45rem;
  background: #fff;
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2f6b32, #a8c73a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 107, 50, 0.22);
  box-shadow: 0 18px 40px rgba(47, 107, 50, 0.1);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.why-card__num {
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(47, 107, 50, 0.45);
}

.why-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: linear-gradient(145deg, #f4f8e8 0%, #e8f0d4 100%);
  color: #2f6b32;
  border: 1px solid rgba(168, 199, 58, 0.35);
  box-shadow: 0 6px 14px rgba(47, 107, 50, 0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.why-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.why-card:hover .why-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(145deg, #2f6b32 0%, #3d8a42 100%);
  color: #fff;
  border-color: #2f6b32;
  box-shadow: 0 10px 20px rgba(47, 107, 50, 0.22);
}

.why-card__title {
  margin: 0;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--charcoal, #1a1a1a);
}

.why-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted, #5c6350);
}

/* Legacy class hooks (if used elsewhere) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-item {
  text-align: left;
  padding: 1.25rem;
}
.benefit-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 var(--space-4);
  color: var(--leaf);
}
.benefit-item__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-item__title {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  margin-bottom: var(--space-2);
}
.benefit-item__text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

/* --------------------------------------------------------------------------
   17. Learning Hub Filters & Grid
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: transparent;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.shop-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.shop-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.shop-search {
  position: relative;
}

.shop-search input {
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--soft-white);
  min-width: 14rem;
  font-size: var(--fs-sm);
}

.shop-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.5;
  pointer-events: none;
}

.shop-sort select {
  padding: 0.65rem 2rem 0.65rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--soft-white);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.product-count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   18. Ebook / Lead Form
   -------------------------------------------------------------------------- */
.ebook-section {
  background: var(--cream);
}

.ebook-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ebook-card__media {
  aspect-ratio: 4 / 5;
  background: var(--forest);
  position: relative;
  min-height: 20rem;
}

.ebook-card__media img {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.ebook-card__media-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  text-align: center;
  color: var(--cream);
  z-index: 1;
}

.ebook-card__media-label span {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.ebook-card__media-label strong {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}

.ebook-card__content {
  padding: var(--space-7) var(--space-7) var(--space-7) 0;
}

@media (max-width: 800px) {
  .ebook-card {
    grid-template-columns: 1fr;
  }
  .ebook-card__media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
  .ebook-card__content {
    padding: var(--space-6);
  }
}

.ebook-form.form-success .ebook-form__fields {
  display: none;
}

.ebook-form__success {
  display: none;
  text-align: center;
  padding: var(--space-6) 0;
}

.ebook-form.form-success .ebook-form__success {
  display: block;
}

.ebook-form__success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   19. Testimonials Slider
   -------------------------------------------------------------------------- */
.testimonials {
  position: relative;
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding-inline: var(--space-2);
}

@media (min-width: 800px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1100px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  color: var(--gold);
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
  font-size: var(--fs-sm);
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--forest);
  line-height: var(--lh-relaxed);
  flex: 1;
  margin-bottom: var(--space-5);
}

.testimonial-card__author {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--forest);
}

.testimonial-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-regular);
  margin-top: var(--space-1);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.slider-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.slider-btn:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.slider-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
}

.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--stone);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.slider-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   20. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--forest);
  line-height: var(--lh-snug);
}

.faq-item__question:hover {
  color: var(--copper);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform var(--duration) var(--ease);
}

.faq-item__icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  display: none;
  padding: 0 0 var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

/* --------------------------------------------------------------------------
   21. Product Page
   -------------------------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-block: var(--space-7);
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  cursor: zoom-in;
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s var(--ease);
}

.product-gallery__main.is-zoomed img {
  transform: scale(1.6);
  cursor: zoom-out;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.product-gallery__thumb {
  aspect-ratio: 1;
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
  padding: 0;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
}

.product-info__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.product-info__price {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--forest);
  margin-bottom: var(--space-3);
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.product-info__summary {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.product-info__stock {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.product-info__stock::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-success);
  border-radius: 50%;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.qty-selector button {
  width: 2.5rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 1.1rem;
  transition: background var(--duration) var(--ease);
}

.qty-selector button:hover {
  background: var(--cream);
}

.qty-selector input {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: var(--fw-medium);
  -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-info__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.product-info__subscription {
  padding: var(--space-4);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}

.product-info__subscription label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  margin-bottom: var(--space-2);
}

.product-info__subscription label:last-child {
  margin-bottom: 0;
}

.product-info__meta {
  display: grid;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.product-info__meta-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.product-info__meta-row svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.secure-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Product tabs / accordion sections */
.product-sections {
  padding-block: var(--space-7);
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.product-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.product-tab:hover,
.product-tab.is-active {
  color: var(--forest);
  border-bottom-color: var(--gold);
}

.product-panel {
  display: none;
}

.product-panel.is-active {
  display: block;
}

.product-panel h3 {
  margin-bottom: var(--space-4);
}

.product-panel p,
.product-panel li {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.product-panel ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.product-panel li {
  margin-bottom: var(--space-2);
}

/* How to use steps */
.routine-steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}

.routine-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.routine-step__num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--forest);
  background: var(--soft-white);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.routine-step__title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  margin-bottom: var(--space-1);
}

.routine-step__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Interactive routine timeline */
.routine-timeline {
  position: relative;
  padding-left: var(--space-6);
}

.routine-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--stone);
}

.routine-timeline__item {
  position: relative;
  padding-bottom: var(--space-6);
  cursor: pointer;
}

.routine-timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-6) + 0.3rem);
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--soft-white);
  border: 2px solid var(--sage);
  border-radius: 50%;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.routine-timeline__item.is-active::before,
.routine-timeline__item:hover::before {
  background: var(--gold);
  border-color: var(--gold);
}

.routine-timeline__time {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.routine-timeline__title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.routine-timeline__body {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease);
}

.routine-timeline__item.is-active .routine-timeline__body {
  max-height: 12rem;
}

/* Sticky mobile buy bar */
.sticky-buy {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--soft-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px rgba(36, 37, 34, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.sticky-buy.is-visible {
  display: flex;
}

.sticky-buy__info {
  min-width: 0;
}

.sticky-buy__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy__price {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (min-width: 901px) {
  .sticky-buy { display: none !important; }
}

/* Reviews */
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-6);
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

@media (max-width: 600px) {
  .reviews-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.reviews-score {
  text-align: center;
}

.reviews-score__num {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  color: var(--forest);
  line-height: 1;
}

.reviews-score__stars {
  color: var(--gold);
  margin: var(--space-2) 0;
}

.reviews-score__count {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.review-bars {
  display: grid;
  gap: var(--space-2);
}

.review-bar {
  display: grid;
  grid-template-columns: 4rem 1fr 2.5rem;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.review-bar__track {
  height: 0.4rem;
  background: var(--stone);
  border-radius: 999px;
  overflow: hidden;
}

.review-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.review-card {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.review-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-card__stars {
  color: var(--gold);
  font-size: var(--fs-sm);
}

.review-card__author {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--forest);
}

.review-card__date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.review-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.review-card__body {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* Ingredient accordion (tincture page) */
.ingredient-accordion .faq-item__question {
  font-size: var(--fs-lg);
}

/* --------------------------------------------------------------------------
   22. Learning Hub Layout
   -------------------------------------------------------------------------- */
.hub-hero {
  background: var(--cream);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.hub-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .hub-featured { grid-template-columns: 1fr; }
}

.hub-featured__main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 22rem;
  background: var(--forest);
}

.hub-featured__main img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.hub-featured__content {
  position: relative;
  z-index: 1;
  padding: var(--space-7);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  background: linear-gradient(to top, rgba(24, 55, 43, 0.9) 0%, transparent 70%);
}

.hub-featured__content h2 {
  color: var(--cream);
  margin-bottom: var(--space-3);
}

.hub-featured__content p {
  color: rgba(244, 239, 228, 0.8);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

.hub-featured__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hub-side-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease);
}

.hub-side-card:hover {
  border-color: var(--gold);
}

.hub-side-card__img {
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hub-side-card__img img {
  width: 100%;
  height: 100%;
}

.hub-side-card__cat {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.hub-side-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  line-height: var(--lh-snug);
  margin-top: var(--space-1);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.category-pill {
  padding: 0.45rem 0.9rem;
  font-size: var(--fs-xs);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--forest);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.category-pill:hover,
.category-pill.is-active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.hub-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.hub-widget {
  padding: var(--space-5);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.hub-widget h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
}

.hub-widget ul {
  display: grid;
  gap: var(--space-2);
}

.hub-widget li a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.hub-widget li a:hover {
  color: var(--forest);
}

.glossary-list dt {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--forest);
  margin-top: var(--space-4);
}

.glossary-list dt:first-child {
  margin-top: 0;
}

.glossary-list dd {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: var(--lh-relaxed);
}

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: var(--space-8);
  padding-block: var(--space-7);
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc { display: none; }
}

.article-header {
  margin-bottom: var(--space-6);
  max-width: 42rem;
}

.article-header__cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.article-header__title {
  margin-bottom: var(--space-4);
}

.article-header__summary {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.article-hero-img {
  aspect-ratio: 21 / 9;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-7);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  scroll-margin-top: 6rem;
}

.article-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  scroll-margin-top: 6rem;
}

.article-body p {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: var(--space-2);
  line-height: var(--lh-relaxed);
}

.article-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  padding: var(--space-5);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.article-toc h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--forest);
}

.article-toc a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  border-left: 2px solid transparent;
  padding-left: var(--space-3);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--forest);
  border-left-color: var(--gold);
}

.article-disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   23. Contact & About
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-details {
  display: grid;
  gap: var(--space-5);
}

.contact-detail h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

.contact-detail p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 700px) {
  .about-values { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   24. Modal (Quick View)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 37, 34, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--soft-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  border-radius: 50%;
  transition: background var(--duration) var(--ease);
  z-index: 2;
}

.modal__close:hover {
  background: var(--cream);
}

.modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.quick-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 700px) {
  .quick-view { grid-template-columns: 1fr; }
}

.quick-view__media {
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quick-view__media img {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   25. Toast notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toast-in 0.35s var(--ease-out);
  max-width: 22rem;
  border-left: 3px solid var(--gold);
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(0.5rem); }
}

/* --------------------------------------------------------------------------
   26. Footer — tidy premium close
   -------------------------------------------------------------------------- */
.site-footer {
  --ft-text: rgba(250, 252, 243, 0.8);
  --ft-muted: rgba(250, 252, 243, 0.58);
  position: relative;
  margin-top: 0;
  color: var(--ft-text);
  background: linear-gradient(180deg, #152019 0%, #0f1612 55%, #0c110e 100%);
  border-top: 3px solid #a8c73a;
}

.footer-main {
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 2.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand__logo {
  display: inline-flex;
  text-decoration: none;
  margin: 0 0 1.15rem;
}

.footer-brand__logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(168, 199, 58, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  line-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-brand__logo:hover .footer-brand__logo-plate {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.footer-brand__logo img,
.footer-brand__logo-plate img {
  display: block !important;
  width: auto !important;
  height: 3.35rem !important;
  max-width: 11rem !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .logo,
.site-footer .custom-logo-link {
  display: inline-flex;
  margin: 0 0 1.15rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(168, 199, 58, 0.45);
}
.site-footer .logo img,
.site-footer .custom-logo {
  height: 3.35rem !important;
  max-width: 11rem !important;
  width: auto !important;
  object-fit: contain !important;
}

.footer-brand__text {
  margin: 0 0 1.25rem;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ft-muted);
}

.footer-brand__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.footer-brand__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #a8c73a;
  text-decoration: none;
}

.footer-brand__link:hover {
  color: #fafcf3;
}

.footer-col h3 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fafcf3;
}

.footer-col ul,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-col a,
.footer-menu a {
  font-size: 0.92rem;
  color: var(--ft-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-menu a:hover {
  color: #a8c73a;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 0 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(250, 252, 243, 0.48);
}

.footer-copy strong {
  color: rgba(250, 252, 243, 0.82);
  font-weight: 700;
}

.footer-copy__sep {
  margin: 0 0.3rem;
  opacity: 0.45;
}

.footer-disclaimer-inline {
  margin: 0;
  max-width: 28rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(250, 252, 243, 0.38);
  text-align: right;
}

@media (max-width: 720px) {
  .footer-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-disclaimer-inline {
    text-align: left;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-page {
  background: #fafcf3;
}

.about-hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(3rem, 7vw, 4.75rem);
  background: linear-gradient(155deg, #0d1610 0%, #1a3a22 48%, #2f6b32 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 20%, rgba(168, 199, 58, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(47, 107, 50, 0.35), transparent 50%);
  pointer-events: none;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-inline: auto;
}

.about-hero .breadcrumbs {
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.about-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.about-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8c73a;
}

.about-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.about-hero__lead {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.about-hero__ghost,
.about-cta__ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.about-hero__ghost:hover,
.about-cta__ghost:hover {
  border-color: #a8c73a !important;
  color: #a8c73a !important;
  background: rgba(168, 199, 58, 0.1) !important;
}

.about-story {
  padding-block: clamp(2.75rem, 6vw, 4.25rem) !important;
  background: #fff;
}

.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .about-story__grid {
    grid-template-columns: 1fr;
  }
  .about-story__media {
    order: -1;
    max-width: 28rem;
    margin-inline: auto;
  }
}

.about-story__title {
  margin: 0 0 1rem;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--charcoal, #1a1a1a);
}

.about-story__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #5c6350;
}

.about-story__body p {
  margin: 0 0 1rem;
}

.about-story__media {
  position: relative;
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e8efe0, #d5e4c8);
  box-shadow: 0 24px 50px rgba(26, 26, 26, 0.1);
}

.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-story__badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.about-story__badge span {
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.about-rs {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) !important;
}

.about-rs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 800px) {
  .about-rs__grid { grid-template-columns: 1fr; }
}

.about-rs-card {
  background: #fff;
  border: 1.5px solid rgba(26, 26, 26, 0.07);
  border-radius: 1.25rem;
  padding: 1.45rem 1.35rem 1.5rem;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-rs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(47, 107, 50, 0.1);
}

.about-rs-card__num {
  display: block;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #a8c73a;
  margin-bottom: 0.65rem;
}

.about-rs-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.about-rs-card__product {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2f6b32;
}

.about-rs-card p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6350;
}

.about-rs__cta {
  text-align: center;
  margin-top: 1.75rem;
}

.about-values-section {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) !important;
  background: #fff;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .about-values { grid-template-columns: 1fr; }
}

.about-value {
  position: relative;
  padding: 1.35rem 1.25rem 1.4rem;
  background: #fafcf3;
  border: 1.5px solid rgba(26, 26, 26, 0.06);
  border-radius: 1.2rem;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.about-value:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 50, 0.2);
  box-shadow: 0 14px 32px rgba(47, 107, 50, 0.08);
}

.about-value__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #eef5dc, #e0ebc8);
  color: #2f6b32;
  border: 1px solid rgba(168, 199, 58, 0.35);
  margin-bottom: 0.85rem;
}

.about-value__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.about-value__num {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(47, 107, 50, 0.35);
}

.about-value h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.about-value p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5c6350;
}

.about-links {
  padding-block: clamp(2rem, 4vw, 3rem) !important;
}

.about-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 800px) {
  .about-links__grid { grid-template-columns: 1fr; }
}

.about-link-card {
  display: block;
  padding: 1.35rem 1.3rem 1.45rem;
  background: #fff;
  border: 1.5px solid rgba(26, 26, 26, 0.07);
  border-radius: 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.04);
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.about-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 50, 0.22);
  box-shadow: 0 16px 36px rgba(47, 107, 50, 0.1);
}

.about-link-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2f6b32;
  margin-bottom: 0.4rem;
}

.about-link-card__title {
  display: block;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.about-link-card__text {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5c6350;
}

.about-cta {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  background: linear-gradient(155deg, #101a12, #2f6b32);
  color: #fff;
  text-align: center;
}

.about-cta__inner {
  max-width: 36rem;
  margin-inline: auto;
}

.about-cta h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
  letter-spacing: -0.02em;
}

.about-cta p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* legacy value-card (if used elsewhere) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.value-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, Outfit, sans-serif);
}
.value-card p {
  margin: 0;
  color: #5c6350;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Easter egg — mucus / gut tunnel + parasites
   -------------------------------------------------------------------------- */

/* Promo strip above the gut */
/* Homepage gut challenge — premium frame */
.rc-gut-section {
  position: relative;
  margin: 0;
  padding: 0 0 0.15rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 107, 50, 0.08), transparent 55%),
    linear-gradient(180deg, #f3f6ee 0%, #ebe6df 100%);
  border-top: 1px solid rgba(47, 107, 50, 0.12);
}
.rc-crawler-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem 1.05rem;
  margin: 0;
  background:
    radial-gradient(ellipse 60% 120% at 10% 50%, rgba(196, 224, 106, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 100% at 90% 40%, rgba(168, 199, 58, 0.2), transparent 50%),
    linear-gradient(105deg, #0f2812 0%, #16351a 22%, #1e4a22 48%, #2f6b32 78%, #3d8a42 100%);
  color: #fafcf3;
  text-align: center;
  border-top: 1px solid rgba(196, 224, 106, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.rc-crawler-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: rc-wet-shine 8s ease-in-out infinite;
  pointer-events: none;
}
.rc-crawler-promo__badge {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  z-index: 1;
  animation: rc-promo-badge 2.8s ease-in-out infinite;
}
@keyframes rc-promo-badge {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.06); }
}
.rc-crawler-promo__text {
  min-width: 0;
  z-index: 1;
}
.rc-crawler-promo__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4e06a;
  opacity: 0.95;
}
.rc-crawler-promo__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f3ffd4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 0 24px rgba(168, 199, 58, 0.25);
}
.rc-crawler-promo__sub {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  opacity: 0.94;
  color: rgba(250, 252, 243, 0.92);
  line-height: 1.45;
  max-width: 38rem;
}
.rc-crawler-promo__howto {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.rc-crawler-promo__howto li {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #16351a;
  background: rgba(232, 245, 200, 0.92);
  border: 1px solid rgba(196, 224, 106, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.rc-crawler-promo__howto li::before {
  content: "\2713\00a0"; /* checkmark + space — encoding-safe */
  color: #2f6b32;
  font-weight: 900;
}
.rc-crawler-promo__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
}
.rc-crawler-promo__play {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16351a;
  background: linear-gradient(180deg, #f8ffe0, #c4e06a 48%, #9fc43a);
  border-radius: 999px;
  padding: 0.62rem 1.25rem;
  box-shadow:
    0 0 0 0 rgba(196, 224, 106, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: rc-play-pulse 2s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rc-crawler-promo__play:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(168, 199, 58, 0.45);
}
@keyframes rc-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 224, 106, 0.5), 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(196, 224, 106, 0), 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
}
.rc-crawler-promo__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.55rem;
  z-index: 1;
}
.rc-crawler-promo__tier {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16351a;
  background: rgba(250, 252, 243, 0.88);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(196, 224, 106, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.rc-crawler-promo__tier em {
  font-style: normal;
  font-weight: 900;
  color: #2f6b32;
  margin-right: 0.2rem;
}
.rc-crawler-promo__tier.is-active {
  background: #c4e06a;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(168, 199, 58, 0.45);
}
.rc-crawler-promo__tier.is-done {
  background: #2f6b32;
  color: #e8f5c8;
  border-color: #1e4a22;
}
.rc-crawler-promo__tier.is-done em {
  color: #c4e06a;
}
.rc-crawler-promo.is-round-2 {
  background:
    radial-gradient(ellipse 60% 120% at 10% 50%, rgba(255, 180, 80, 0.2), transparent 55%),
    linear-gradient(105deg, #1a3a18 0%, #2f5a28 40%, #4a7a30 100%);
}
.rc-crawler-promo.is-round-3 {
  background:
    radial-gradient(ellipse 60% 120% at 80% 50%, rgba(255, 100, 80, 0.22), transparent 55%),
    linear-gradient(105deg, #1a2018 0%, #3a2820 45%, #5a3028 100%);
}
.rc-crawler-promo__code-btn,
.rc-crawler__code-btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #16351a;
  background: linear-gradient(180deg, #f5ffd0, #a8c73a 55%, #8fb02e);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer !important;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rc-code-btn-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.rc-crawler-promo__code-btn:hover,
.rc-crawler__code-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(168, 199, 58, 0.45);
}
.rc-crawler-promo__code-btn[hidden],
.rc-crawler__code-btn[hidden] {
  display: none !important;
}
.rc-crawler-promo.is-rewarded .rc-crawler-promo__pill {
  opacity: 0.55;
}

/* Homepage gut game shell — isolation + contain so paint doesn't thrash the page */
.rc-gut-section {
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}
.rc-crawler {
  --gut-light: #f6d5cc;
  --gut-pink: #e8a898;
  --gut-rose: #d47a72;
  --gut-deep: #b85a55;
  --gut-dark: #8f403c;
  --mucus: rgba(168, 199, 58, 0.28);
  --mucus-bright: rgba(210, 235, 120, 0.45);
  --mucus-deep: rgba(120, 150, 40, 0.22);
  --rc-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%231e4a22' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='5' fill='none' stroke='%23a8c73a' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23a8c73a'/%3E%3Cpath d='M16 2v5M16 25v5M2 16h5M25 16h5' stroke='%231e4a22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16;
  position: relative;
  height: 16.5rem;
  min-height: 16.5rem;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  pointer-events: auto;
  z-index: 40;
  isolation: isolate;
  contain: layout style paint;
  cursor: var(--rc-target), crosshair;
  border-radius: 0 0 1.1rem 1.1rem;
  transition: box-shadow 0.4s ease, filter 0.4s ease, transform 0.12s ease;
  box-shadow:
    inset 0 14px 28px rgba(90, 30, 28, 0.4),
    inset 0 -16px 30px rgba(60, 20, 18, 0.45),
    0 12px 32px rgba(80, 30, 28, 0.18),
    0 0 0 1px rgba(90, 40, 36, 0.12);
  will-change: auto;
}
.rc-crawler__frame {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 210, 0.18),
    inset 0 0 40px rgba(60, 15, 12, 0.25);
}
.rc-crawler__hitflash {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(210, 235, 120, 0.55), transparent 55%);
  mix-blend-mode: screen;
}
.rc-crawler.is-hitflash .rc-crawler__hitflash {
  animation: rc-hitflash 0.32s ease-out forwards;
}
@keyframes rc-hitflash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}
.rc-crawler.is-shake {
  animation: rc-shake 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes rc-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 1px, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, -1px, 0); }
}
.rc-crawler.is-miss {
  animation: rc-miss-flash 0.18s ease-out;
}
@keyframes rc-miss-flash {
  0% { filter: brightness(1.08) saturate(0.9); }
  100% { filter: none; }
}
.rc-crawler__reticle {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  left: var(--mx, -100px);
  top: var(--my, -100px);
  z-index: 22;
  pointer-events: none;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 224, 106, 0.55);
  box-shadow: 0 0 0 1px rgba(30, 74, 34, 0.25), inset 0 0 8px rgba(168, 199, 58, 0.2);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.rc-crawler__reticle::before,
.rc-crawler__reticle::after {
  content: "";
  position: absolute;
  background: rgba(168, 199, 58, 0.75);
}
.rc-crawler__reticle::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  transform: translateX(-50%);
}
.rc-crawler__reticle::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  transform: translateY(-50%);
}
.rc-crawler.is-inview:not(.is-static-mode) .rc-crawler__reticle {
  opacity: 0.85;
}
.rc-crawler__round-banner {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 28;
  pointer-events: none;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fafcf3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(30, 74, 34, 0.88), rgba(22, 53, 26, 0.92));
  border: 2px solid rgba(196, 224, 106, 0.65);
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  opacity: 0;
  white-space: nowrap;
}
.rc-crawler__round-banner.is-show {
  animation: rc-round-banner 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rc-round-banner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(0.95); }
}
/* Freeze CSS animations when scrolled away, tab hidden, or cart open */
.rc-crawler.is-paused,
.rc-crawler.is-paused * {
  animation-play-state: paused !important;
}
html.rc-cart-open .rc-crawler,
html.rc-cart-open .rc-crawler *,
body.modal-open .rc-crawler,
body.modal-open .rc-crawler * {
  animation-play-state: paused !important;
}
/*
 * SAFE + PRETTY game:
 * - Looks rich via CSS (pauses free with animation-play-state)
 * - No canvas / no continuous JS loops
 * - Off-screen + basket-open = fully frozen
 */
.rc-crawler.is-safe,
.rc-crawler.is-pretty {
  height: 15.5rem;
  min-height: 15.5rem;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 248px;
}
.rc-crawler.is-safe .rc-crawler__canvas,
.rc-crawler.is-pretty .rc-crawler__canvas,
.rc-crawler.is-safe .rc-crawler__powers,
.rc-crawler.is-safe .rc-crawler__cinema,
.rc-crawler.is-safe .rc-crawler__reticle,
.rc-crawler.is-safe .rc-crawler__hitflash {
  display: none !important;
}
.rc-crawler.is-safe .rc-crawler__bug {
  /* Soft CSS shadow only — cheaper than SVG feDropShadow */
  filter: drop-shadow(0 3px 5px rgba(30, 40, 20, 0.28));
  will-change: auto;
}
.rc-crawler.is-safe .rc-crawler__bug:hover,
.rc-crawler.is-safe .rc-crawler__bug.is-aimed {
  filter: drop-shadow(0 4px 10px rgba(168, 199, 58, 0.55));
  z-index: 40;
}
.rc-crawler.is-safe .rc-crawler__bug.is-golden {
  filter: drop-shadow(0 0 8px rgba(255, 210, 60, 0.85));
}
.rc-crawler.is-safe .rc-crawler__tissue {
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, #f6d0c4 0%, #e8a898 38%, #d47a72 68%, #9a4540 100%);
}
/* Only animate tissue when in view (not paused) */
.rc-crawler.is-safe:not(.is-paused) .rc-crawler__tissue {
  animation: rc-gut-peristalsis 5.5s ease-in-out infinite;
}
.rc-crawler.is-safe:not(.is-paused) .rc-crawler__slime {
  animation: rc-slime-flow 10s linear infinite;
}
.rc-crawler.is-safe:not(.is-paused) .rc-crawler__glint {
  animation: rc-wet-shine 7s ease-in-out infinite;
}
.rc-crawler.is-safe:not(.is-paused) .rc-crawler__sparkles span {
  animation: rc-sparkle 3.5s ease-in-out infinite;
}
.rc-crawler.is-ui-busy,
.rc-crawler.is-ui-busy * {
  animation-play-state: paused !important;
  pointer-events: none !important;
}
.rc-crawler__canvas {
  pointer-events: none;
  display: none !important;
}
/* Boss banner + sound toggle */
.rc-crawler__boss-warn {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 28;
  pointer-events: none;
  font-size: clamp(0.95rem, 3.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff8f0;
  background: linear-gradient(180deg, rgba(140, 30, 30, 0.92), rgba(80, 15, 15, 0.95));
  border: 2px solid rgba(255, 120, 80, 0.7);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.rc-crawler__boss-warn.is-show {
  animation: rc-boss-warn 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rc-boss-warn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(0.95); }
}
.rc-crawler__toggle {
  pointer-events: auto;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 252, 243, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rc-crawler__bug.is-boss .rc-crawler__svg {
  width: 9rem !important;
}
.rc-crawler__bug.is-boss {
  filter: drop-shadow(0 0 10px rgba(200, 50, 40, 0.55)) !important;
}
.rc-crawler__bug.is-hit {
  transform: scale(1.12) !important;
}
/* Catch juice (DOM only, auto-removed) */
.rc-gut-splash {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(196,224,106,0.7) 40%, transparent 70%);
  animation: rc-splash 0.45s ease-out forwards;
  z-index: 25;
}
.rc-gut-pts {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 900;
  color: #c4e06a;
  text-shadow: 0 2px 0 #1e4a22;
  animation: rc-pts-float 0.7s ease-out forwards;
  pointer-events: none;
  z-index: 26;
  white-space: nowrap;
}
/* Reward modal must sit above cart drawer */
.rc-gut-reward-live {
  z-index: 10060 !important;
}
.rc-gut-reward-live a,
.rc-gut-reward-live button {
  pointer-events: auto !important;
}
@media (max-width: 640px) {
  .rc-crawler.is-safe,
  .rc-crawler.is-pretty {
    height: 16rem;
    min-height: 16rem;
  }
}
.rc-crawler.is-round-2 {
  box-shadow:
    inset 0 14px 28px rgba(120, 50, 20, 0.45),
    inset 0 -16px 30px rgba(90, 30, 15, 0.5),
    0 0 0 2px rgba(255, 160, 60, 0.25),
    0 8px 28px rgba(120, 50, 20, 0.2);
}
.rc-crawler.is-round-3 {
  box-shadow:
    inset 0 14px 32px rgba(80, 20, 30, 0.55),
    inset 0 -16px 32px rgba(50, 10, 20, 0.55),
    0 0 0 2px rgba(255, 80, 80, 0.28),
    0 10px 32px rgba(80, 20, 30, 0.25);
}
.rc-crawler.is-round-2 .rc-crawler__tissue {
  filter: hue-rotate(-12deg) saturate(1.15) brightness(0.98);
}
.rc-crawler.is-round-3 .rc-crawler__tissue {
  filter: hue-rotate(-25deg) saturate(1.25) brightness(0.92);
}
.rc-crawler__ribs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 42px,
    rgba(255, 220, 210, 0.07) 42px,
    rgba(90, 30, 28, 0.08) 46px,
    transparent 50px
  );
  animation: rc-gut-flow 22s linear infinite;
  mix-blend-mode: soft-light;
}
.rc-crawler *,
.rc-crawler__bug,
.rc-crawler__bug * {
  cursor: var(--rc-target), crosshair !important;
}
.rc-crawler__code-btn,
.rc-crawler__code-btn * {
  cursor: pointer !important;
}
.rc-crawler.is-rewarded {
  box-shadow:
    inset 0 14px 28px rgba(90, 30, 28, 0.35),
    inset 0 -16px 30px rgba(60, 20, 18, 0.4),
    0 0 0 2px rgba(168, 199, 58, 0.35),
    0 8px 28px rgba(47, 107, 50, 0.2);
}

.rc-crawler__gut {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rc-crawler__tissue {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255, 200, 185, 0.45), transparent 65%),
    radial-gradient(ellipse 40% 90% at 8% 40%, rgba(255, 220, 210, 0.55), transparent 55%),
    radial-gradient(ellipse 45% 80% at 92% 60%, rgba(140, 50, 48, 0.5), transparent 55%),
    radial-gradient(ellipse 30% 40% at 35% 70%, rgba(200, 90, 80, 0.25), transparent 60%),
    linear-gradient(
      180deg,
      #ffd8cc 0%,
      #f2b0a0 12%,
      #e89080 28%,
      #d07068 45%,
      #b85852 58%,
      #9a403c 72%,
      #7a3030 88%,
      #5c2422 100%
    );
  animation: rc-gut-peristalsis 4.5s ease-in-out infinite;
}
.rc-crawler__veins {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 8% 40% at 20% 30%, rgba(160, 40, 45, 0.45), transparent 70%),
    radial-gradient(ellipse 6% 50% at 70% 55%, rgba(140, 30, 40, 0.4), transparent 70%),
    radial-gradient(ellipse 10% 30% at 45% 65%, rgba(180, 50, 55, 0.3), transparent 70%),
    radial-gradient(ellipse 7% 45% at 85% 25%, rgba(120, 30, 35, 0.35), transparent 70%);
  animation: rc-gut-pulse 6s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.rc-crawler__lumen {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.rc-crawler__lumen--top {
  top: -4%;
  animation: rc-lumen-breathe 4.2s ease-in-out infinite;
}
.rc-crawler__lumen--bot {
  bottom: -6%;
  height: 46%;
  animation: rc-lumen-breathe 4.8s ease-in-out infinite reverse;
}
@keyframes rc-gut-peristalsis {
  0%, 100% { filter: brightness(1) saturate(1.05); transform: scaleY(1); }
  25% { filter: brightness(1.06) saturate(1.12); transform: scaleY(1.02); }
  50% { filter: brightness(0.97) saturate(1.08); transform: scaleY(0.99); }
  75% { filter: brightness(1.04) saturate(1.1); transform: scaleY(1.015); }
}
@keyframes rc-lumen-breathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.08) translateY(2px); }
}
.rc-crawler__villi-layer {
  position: absolute;
  left: 0;
  right: 0;
  height: 38%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.rc-crawler__villi-layer--top { top: 0; }
.rc-crawler__villi-layer--bot { bottom: 0; }
.rc-gut-villus {
  position: absolute;
  border-radius: 50% 50% 40% 40% / 70% 70% 40% 40%;
  background: linear-gradient(180deg, #ffd0c4, #e09080 55%, #c06058);
  box-shadow: inset -2px 0 4px rgba(255, 255, 255, 0.35), 0 0 6px rgba(200, 80, 70, 0.2);
  opacity: 0.7;
  animation: rc-villus-sway ease-in-out infinite;
}
.rc-gut-villus--top {
  top: 0;
  transform-origin: top center;
  background: linear-gradient(0deg, #ffd8cc, #e8a090 50%, #d07068);
}
.rc-gut-villus--bot {
  bottom: 0;
  transform-origin: bottom center;
}
@keyframes rc-villus-sway {
  0%, 100% { transform: scaleY(1) rotate(-4deg); }
  50% { transform: scaleY(1.14) rotate(5deg); }
}
.rc-crawler__bubbles-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.rc-gut-bubble {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(210, 235, 120, 0.25) 45%, rgba(200, 100, 90, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: rc-bubble-rise linear infinite;
  opacity: 0.75;
}

.rc-crawler__folds {
  position: absolute;
  inset: -5% -10%;
  background:
    repeating-radial-gradient(
      ellipse 18% 90% at 0% 50%,
      rgba(255, 230, 220, 0.14) 0,
      rgba(255, 230, 220, 0.14) 8px,
      transparent 8px,
      transparent 36px
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 22px,
      rgba(255, 245, 240, 0.07) 22px,
      rgba(255, 245, 240, 0.07) 26px,
      transparent 26px,
      transparent 48px,
      rgba(90, 30, 28, 0.1) 48px,
      rgba(90, 30, 28, 0.1) 50px
    );
  animation: rc-gut-flow 18s linear infinite;
  opacity: 0.9;
  mix-blend-mode: soft-light;
}

.rc-crawler__wet {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.18) 46%,
      rgba(255, 255, 255, 0.42) 50%,
      rgba(255, 255, 255, 0.14) 54%,
      transparent 62%,
      transparent 100%
    );
  background-size: 220% 100%;
  animation: rc-wet-shine 7s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.rc-crawler__wall {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 48%;
  z-index: 1;
  overflow: visible;
  animation: rc-wall-breathe 4.8s ease-in-out infinite;
}

.rc-crawler__wall--top {
  top: -2%;
  height: 52%;
}

.rc-crawler__wall--bot {
  bottom: -4%;
  height: 52%;
  animation-duration: 5.4s;
  animation-direction: reverse;
}

.rc-crawler__wall-fill {
  fill: url(#none);
  fill: #e8a090;
}

.rc-crawler__wall--top .rc-crawler__wall-fill {
  fill: #f0b8ac;
  filter: drop-shadow(0 4px 6px rgba(120, 40, 35, 0.25));
}

.rc-crawler__wall--bot .rc-crawler__wall-fill {
  fill: #a84f4a;
  filter: drop-shadow(0 -3px 6px rgba(60, 20, 18, 0.3));
}

.rc-crawler__wall-edge {
  stroke: rgba(255, 230, 220, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(232, 245, 200, 0.35));
  animation: rc-edge-glow 3.2s ease-in-out infinite;
}

.rc-crawler__wall--bot .rc-crawler__wall-edge {
  stroke: rgba(180, 90, 80, 0.65);
}

.rc-crawler__membrane {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 42%;
  pointer-events: none;
  z-index: 1;
}

.rc-crawler__membrane--top {
  top: -12%;
  background:
    radial-gradient(ellipse 30% 90% at 20% 100%, rgba(255, 220, 210, 0.75), transparent 70%),
    radial-gradient(ellipse 35% 100% at 55% 100%, rgba(255, 200, 190, 0.55), transparent 65%),
    radial-gradient(ellipse 28% 90% at 85% 100%, rgba(240, 170, 160, 0.6), transparent 70%),
    linear-gradient(180deg, rgba(248, 210, 200, 0.95) 0%, transparent 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  animation: rc-membrane 4.5s ease-in-out infinite;
  filter: blur(0.3px);
}

.rc-crawler__membrane--bot {
  bottom: -14%;
  height: 48%;
  background:
    radial-gradient(ellipse 32% 90% at 25% 0%, rgba(140, 55, 50, 0.7), transparent 70%),
    radial-gradient(ellipse 40% 100% at 60% 0%, rgba(160, 70, 65, 0.55), transparent 65%),
    linear-gradient(0deg, rgba(120, 45, 42, 0.95) 0%, transparent 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  animation: rc-membrane 5.2s ease-in-out infinite reverse;
}

.rc-crawler__slime {
  position: absolute;
  inset: 22% -5% 26%;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      var(--mucus) 12%,
      var(--mucus-bright) 28%,
      rgba(168, 199, 58, 0.2) 45%,
      var(--mucus-bright) 62%,
      var(--mucus) 80%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 35%,
      rgba(47, 107, 50, 0.1) 70%,
      rgba(120, 150, 40, 0.12) 100%
    );
  border-radius: 40% / 100%;
  filter: blur(2px);
  animation: rc-slime-shimmer 3.6s ease-in-out infinite;
  opacity: 0.9;
  mix-blend-mode: soft-light;
}

.rc-crawler__slime--2 {
  inset: 30% 0 18%;
  background:
    radial-gradient(ellipse 40% 80% at 30% 50%, rgba(210, 235, 120, 0.35), transparent 70%),
    radial-gradient(ellipse 35% 70% at 70% 60%, rgba(168, 199, 58, 0.28), transparent 65%),
    linear-gradient(100deg, transparent, rgba(232, 245, 200, 0.2) 40%, transparent 70%);
  filter: blur(4px);
  animation: rc-slime-flow 8s linear infinite;
  opacity: 0.75;
  mix-blend-mode: screen;
}

.rc-crawler__villi,
.rc-crawler__bubbles,
.rc-crawler__goo,
.rc-crawler__strands,
.rc-crawler__flecks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.rc-crawler__villus {
  position: absolute;
  bottom: 0;
  width: 11px;
  height: 26px;
  border-radius: 55% 55% 40% 40% / 70% 70% 40% 40%;
  background:
    linear-gradient(180deg, #f8d0c4 0%, #e8a090 45%, #c47872 100%);
  box-shadow:
    inset -2px 0 4px rgba(255, 255, 255, 0.35),
    inset 2px 0 3px rgba(120, 40, 35, 0.2),
    0 0 6px rgba(232, 160, 140, 0.25);
  opacity: 0.72;
  animation: rc-villus 2.8s ease-in-out infinite;
  transform-origin: bottom center;
}

.rc-crawler__villus--top {
  bottom: auto;
  top: 0;
  transform-origin: top center;
  background: linear-gradient(0deg, #f5c8bc 0%, #e89888 50%, #d47870 100%);
}

.rc-crawler__bubble {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), rgba(232, 245, 200, 0.35) 40%, rgba(168, 199, 58, 0.2) 70%, rgba(196, 120, 114, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.5), 0 0 6px rgba(210, 235, 120, 0.25);
  animation: rc-bubble-rise linear infinite;
  opacity: 0.8;
}

.rc-crawler__blob {
  position: absolute;
  border-radius: 62% 38% 58% 42% / 48% 55% 45% 52%;
  background:
    radial-gradient(circle at 32% 28%, rgba(245, 255, 220, 0.7), rgba(196, 224, 106, 0.35) 45%, rgba(168, 199, 58, 0.18) 70%, transparent);
  filter: blur(0.8px);
  animation: rc-blob-drift ease-in-out infinite;
  opacity: 0.65;
  box-shadow: 0 0 12px rgba(168, 199, 58, 0.2);
}

.rc-crawler__strand {
  position: absolute;
  top: 0;
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(210, 235, 120, 0.7), rgba(168, 199, 58, 0.15) 70%, transparent);
  filter: blur(0.6px);
  opacity: 0.55;
  animation: rc-strand-drip ease-in-out infinite;
  transform-origin: top center;
}

.rc-crawler__fleck {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 240, 230, 0.55);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  animation: rc-fleck-drift linear infinite;
  opacity: 0.5;
}

.rc-crawler__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 50% 50%, transparent 35%, rgba(90, 30, 28, 0.28) 100%),
    linear-gradient(90deg, rgba(70, 25, 22, 0.35) 0%, transparent 12%, transparent 88%, rgba(70, 25, 22, 0.35) 100%);
  mix-blend-mode: multiply;
}

.rc-crawler__glint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 30% 40%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 35% 25% at 70% 55%, rgba(232, 245, 200, 0.12), transparent 55%);
  animation: rc-gut-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.rc-crawler__sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.rc-crawler__sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(232, 245, 200, 0.8) 40%, transparent 70%);
  animation: rc-sparkle 3.5s ease-in-out infinite;
  opacity: 0;
}
.rc-crawler__sparkles span:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s; }
.rc-crawler__sparkles span:nth-child(2) { left: 28%; top: 55%; animation-delay: 0.6s; }
.rc-crawler__sparkles span:nth-child(3) { left: 48%; top: 25%; animation-delay: 1.1s; }
.rc-crawler__sparkles span:nth-child(4) { left: 62%; top: 60%; animation-delay: 1.7s; }
.rc-crawler__sparkles span:nth-child(5) { left: 78%; top: 35%; animation-delay: 2.2s; }
.rc-crawler__sparkles span:nth-child(6) { left: 88%; top: 58%; animation-delay: 2.8s; }

@keyframes rc-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 0.9; transform: scale(1.2); }
  70% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes rc-code-btn-pop {
  0% { opacity: 0; transform: scale(0.7) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.rc-crawler__hud {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 1rem);
  pointer-events: none;
  white-space: nowrap;
}
.rc-crawler__hud .rc-crawler__code-btn {
  pointer-events: auto;
}

.rc-crawler__hint {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 74, 34, 0.85);
  background: rgba(250, 252, 243, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: rc-hint-fade 3.5s ease-in-out infinite;
}

.rc-crawler__progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250, 252, 243, 0.92);
  border: 1.5px solid rgba(168, 199, 58, 0.7);
  border-radius: 999px;
  padding: 0.22rem 0.45rem 0.22rem 0.55rem;
  box-shadow: 0 4px 14px rgba(47, 107, 50, 0.18);
}

.rc-crawler__score {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1e4a22;
  min-width: 2.4rem;
}

.rc-crawler__score.is-complete {
  color: #16351a;
}

.rc-crawler__bar {
  display: block;
  width: 5.25rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(47, 107, 50, 0.12);
  overflow: hidden;
  position: relative;
}
.rc-crawler__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8a42, #a8c73a 55%, #e8f5c8 100%);
  box-shadow: 0 0 10px rgba(168, 199, 58, 0.55);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.rc-crawler__bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: rc-bar-shine 1.8s ease-in-out infinite;
}
@keyframes rc-bar-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.rc-crawler__score.is-pop {
  animation: rc-score-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rc-score-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); color: #2f6b32; }
  100% { transform: scale(1); }
}
.rc-crawler__skill {
  font-size: 0.62rem;
  font-weight: 800;
  color: #1e4a22;
  background: rgba(250, 252, 243, 0.88);
  border: 1px solid rgba(168, 199, 58, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  pointer-events: none;
}
.rc-crawler__skill.is-pop {
  animation: rc-score-pop 0.4s ease;
}

/* Reward popup (class-based, no inline-only) */
.rc-gut-reward-live {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 28, 16, 0.72);
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(3px);
}
.rc-gut-reward-live.is-open {
  opacity: 1;
}
.rc-gut-reward-live__dialog {
  position: relative;
  width: min(24rem, 100%);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(232, 245, 200, 0.65), transparent 55%),
    #fafcf3;
  border: 2px solid #a8c73a;
  border-radius: 1.15rem;
  padding: 1.85rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
}
.rc-gut-reward-live.is-open .rc-gut-reward-live__dialog {
  transform: scale(1) translateY(0);
}
.rc-gut-reward-live__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(168, 199, 58, 0.35), transparent 70%);
  pointer-events: none;
}
.rc-gut-reward-live__emoji {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.rc-gut-reward-live__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d8a42;
}
.rc-gut-reward-live__title {
  margin: 0 0 0.55rem;
  font-size: 1.4rem;
  color: #1e4a22;
}
.rc-gut-reward-live__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #3a3d36;
  line-height: 1.5;
}
.rc-gut-reward-live__code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.rc-gut-reward-live__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1e4a22;
  background: #e8f5c8;
  border: 2px dashed #a8c73a;
  border-radius: 0.7rem;
  padding: 0.5rem 1rem;
}
.rc-gut-reward-live__copy {
  cursor: pointer;
  border: 1.5px solid #2f6b32;
  background: #fff;
  color: #1e4a22;
  border-radius: 0.55rem;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}
.rc-gut-reward-live__copy:hover,
.rc-gut-reward-live__copy.is-copied {
  background: #e8f5c8;
}
.rc-gut-reward-live__shop {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  background: linear-gradient(180deg, #3d8a42, #2f6b32);
  color: #fff !important;
  font-weight: 800;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(47, 107, 50, 0.3);
}
.rc-gut-reward-live__shop:hover {
  filter: brightness(1.06);
}
.rc-gut-reward-live__fine {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: #6a6d64;
}
.rc-gut-reward-live__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #1e4a22;
  opacity: 0.7;
}
.rc-gut-reward-live__close:hover {
  opacity: 1;
}

.rc-crawler__bugs {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

/* Each parasite is always in the HTML — CSS moves them (transform only = reliable) */
.rc-crawler__bug {
  --bug-scale: 1;
  position: absolute;
  left: 0;
  pointer-events: auto;
  border: 0;
  padding: 0.1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
  filter:
    drop-shadow(0 4px 8px rgba(30, 74, 34, 0.4))
    drop-shadow(0 0 6px rgba(168, 199, 58, 0.15));
  transition: filter 0.15s ease, opacity 0.15s ease;
  z-index: 8;
  will-change: transform;
  animation-name: rc-crawl-x;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.rc-crawler__bug .rc-crawler__svg {
  transform: scale(var(--bug-scale, 1));
  transform-origin: center center;
  transition: transform 0.35s ease;
}
.rc-crawler__round {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16351a;
  background: linear-gradient(180deg, #f5ffd0, #c4e06a);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.rc-crawler.is-round-2 .rc-crawler__round {
  background: linear-gradient(180deg, #ffe8b0, #f0a030);
}
.rc-crawler.is-round-3 .rc-crawler__round {
  background: linear-gradient(180deg, #ffc8c0, #e05050);
  color: #fff;
}
.rc-crawler__tier-dots {
  display: flex;
  gap: 0.25rem;
  pointer-events: none;
}
.rc-crawler__tier-dots span {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(250, 252, 243, 0.75);
  color: #3a4a30;
  border: 1px solid rgba(47, 107, 50, 0.2);
}
.rc-crawler__tier-dots span.is-active {
  background: #a8c73a;
  color: #16351a;
}
.rc-crawler__tier-dots span.is-done {
  background: #2f6b32;
  color: #e8f5c8;
}
.rc-gut-reward-live__ladder {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 0.9rem;
}
.rc-gut-reward-live__ladder span {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #eee;
  color: #666;
}
.rc-gut-reward-live__ladder span.is-on {
  background: #c4e06a;
  color: #16351a;
}
.rc-gut-reward-live__dialog--tier10 {
  border-color: #e0a040;
}
.rc-gut-reward-live__dialog--tier15 {
  border-color: #e06050;
}

/* Lanes spread across the full gut height — faster crawl times */
.rc-crawler__bug--lane0 {
  top: 6%;
  z-index: 12;
  animation-duration: 9s;
}
.rc-crawler__bug--lane1 {
  top: 16%;
  z-index: 11;
  animation-duration: 11s;
  animation-direction: reverse;
}
.rc-crawler__bug--lane2 {
  top: 26%;
  z-index: 13;
  animation-duration: 8s;
}
.rc-crawler__bug--lane3 {
  top: 36%;
  z-index: 10;
  animation-duration: 10s;
  animation-direction: reverse;
}
.rc-crawler__bug--lane4 {
  top: 46%;
  z-index: 14;
  animation-duration: 8.5s;
}
.rc-crawler__bug--lane5 {
  top: 56%;
  z-index: 12;
  animation-duration: 9.5s;
  animation-direction: reverse;
}
.rc-crawler__bug--lane6 {
  top: 66%;
  z-index: 11;
  animation-duration: 7.5s;
}
.rc-crawler__bug--lane7 {
  top: 74%;
  z-index: 13;
  animation-duration: 10.5s;
  animation-direction: reverse;
}
.rc-crawler__bug--lane8 {
  top: 82%;
  z-index: 10;
  animation-duration: 8s;
}
.rc-crawler__bug--lane9 {
  top: 90%;
  z-index: 14;
  animation-duration: 9s;
  animation-direction: reverse;
}

.rc-crawler__bug--worm .rc-crawler__svg { width: 7.5rem; }
.rc-crawler__bug--tapeworm .rc-crawler__svg { width: 8.25rem; }
.rc-crawler__bug--hookworm .rc-crawler__svg { width: 6.5rem; }
.rc-crawler__bug--giardia .rc-crawler__svg { width: 3.5rem; }
.rc-crawler__bug--pinworm .rc-crawler__svg { width: 5.5rem; }

.rc-crawler__trail {
  position: absolute;
  left: 12%;
  right: 24%;
  bottom: 8%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 199, 58, 0.2),
    rgba(210, 235, 120, 0.4)
  );
  filter: blur(3px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.rc-crawler__bug:hover,
.rc-crawler__bug.is-aimed {
  filter:
    drop-shadow(0 6px 14px rgba(168, 199, 58, 0.75))
    drop-shadow(0 0 12px rgba(196, 224, 106, 0.55));
  z-index: 40;
  animation-play-state: paused;
}
.rc-crawler__bug.is-aimed .rc-crawler__svg {
  outline: 2px solid rgba(168, 199, 58, 0.85);
  outline-offset: 3px;
  border-radius: 8px;
  transform: scale(calc(var(--bug-scale, 1) * 1.08));
}
.rc-crawler__bug.is-attract .rc-crawler__svg {
  animation: rc-attract 1.1s ease-in-out infinite;
  outline: 2px dashed rgba(196, 224, 106, 0.9);
  outline-offset: 4px;
  border-radius: 10px;
}
@keyframes rc-attract {
  0%, 100% { transform: scale(var(--bug-scale, 1)); }
  50% { transform: scale(calc(var(--bug-scale, 1) * 1.12)); }
}
.rc-crawler__bug.is-popping .rc-crawler__svg {
  animation: rc-bug-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
@keyframes rc-bug-pop {
  0% { transform: scale(1); opacity: 1; filter: brightness(1.2); }
  45% { transform: scale(1.35) rotate(8deg); opacity: 1; filter: brightness(1.5); }
  100% { transform: scale(0.2) rotate(-12deg); opacity: 0; }
}
.rc-crawler__bug.is-golden {
  filter:
    drop-shadow(0 0 10px rgba(255, 210, 60, 0.9))
    drop-shadow(0 4px 8px rgba(180, 120, 0, 0.45)) !important;
}
.rc-crawler__bug.is-golden .rc-crawler__svg {
  animation: rc-golden-pulse 0.7s ease-in-out infinite;
}
.rc-crawler__bug.is-boss {
  transform-origin: center center;
  filter:
    drop-shadow(0 0 12px rgba(180, 40, 40, 0.55))
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)) !important;
}
.rc-crawler__bug.is-boss .rc-crawler__svg {
  width: 9.5rem !important;
}
.rc-crawler__bug.is-hit {
  animation: none !important;
  transform: scale(1.12) !important;
}

@keyframes rc-golden-pulse {
  0%, 100% { filter: brightness(1.05) saturate(1.2); }
  50% { filter: brightness(1.25) saturate(1.4); }
}

/* FX layer */
.rc-crawler__fx {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}
.rc-gut-splash {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(210, 235, 120, 0.75) 35%, rgba(168, 199, 58, 0.25) 55%, transparent 70%);
  animation: rc-splash 0.55s ease-out forwards;
  box-shadow: 0 0 0 0 rgba(196, 224, 106, 0.6);
}
.rc-gut-splash::before,
.rc-gut-splash::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(196, 224, 106, 0.65);
  animation: rc-splash-ring 0.55s ease-out forwards;
}
.rc-gut-splash::after {
  inset: -14px;
  border-color: rgba(168, 199, 58, 0.35);
  animation-delay: 0.05s;
}
@keyframes rc-splash {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes rc-splash-ring {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.rc-gut-namefloat {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e4a22;
  background: rgba(250, 252, 243, 0.95);
  border: 1px solid rgba(168, 199, 58, 0.75);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  animation: rc-namefloat 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  z-index: 21;
}
.rc-gut-namefloat.is-bonus {
  background: linear-gradient(180deg, #fff3a0, #ffe566);
  border-color: #d4a017;
  font-size: 0.85rem;
}
.rc-gut-pts {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
  font-weight: 900;
  color: #c4e06a;
  text-shadow: 0 2px 0 #1e4a22, 0 0 12px rgba(168, 199, 58, 0.7);
  animation: rc-pts-float 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 22;
  pointer-events: none;
  white-space: nowrap;
}
.rc-gut-pts.is-big {
  font-size: 1.2rem;
  color: #ffe566;
}
@keyframes rc-pts-float {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(1); }
}
.rc-crawler__streak {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #16351a;
  background: linear-gradient(180deg, #ffe566, #f0c040);
  border: 1px solid #d4a017;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
  animation: rc-combo-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.rc-crawler__streak.is-hot {
  background: linear-gradient(180deg, #ff9a6b, #ff5a3c);
  border-color: #c04020;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.rc-crawler__combo-meter {
  display: inline-flex;
  gap: 3px;
  pointer-events: none;
}
.rc-crawler__combo-meter i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(47, 107, 50, 0.2);
  border: 1px solid rgba(47, 107, 50, 0.25);
}
.rc-crawler__combo-meter i.is-on {
  background: #a8c73a;
  box-shadow: 0 0 6px rgba(168, 199, 58, 0.7);
}
.rc-crawler__combo-meter i.is-hot {
  background: #ff6b4a;
  box-shadow: 0 0 8px rgba(255, 100, 60, 0.7);
}
@keyframes rc-combo-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes rc-namefloat {
  0% { opacity: 1; transform: translate(-50%, -40%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(1.05); }
}
.rc-gut-confetti {
  position: absolute;
  top: -8px;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  animation: rc-confetti 1.1s ease-out forwards;
}
@keyframes rc-confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--tx, 20px), 140px) rotate(var(--rot, 200deg)); opacity: 0; }
}

.rc-crawler__hud-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rc-crawler__toggles {
  display: flex;
  gap: 0.25rem;
  pointer-events: auto;
}
.rc-crawler__toggle {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(47, 107, 50, 0.35);
  border-radius: 50%;
  background: rgba(250, 252, 243, 0.9);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rc-crawler__streak {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #7a3b00;
  background: linear-gradient(180deg, #ffe9a0, #f0c040);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  animation: rc-code-btn-pop 0.3s ease;
}
.rc-crawler__streak.is-hot {
  box-shadow: 0 0 12px rgba(240, 180, 40, 0.6);
}
.rc-crawler__freeze-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #0d3a4a;
  background: rgba(160, 220, 240, 0.92);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  animation: rc-hint-fade 1.2s ease-in-out infinite;
}
.rc-crawler.is-frozen {
  filter: saturate(0.85) brightness(1.05);
}
.rc-crawler.is-frozen .rc-crawler__bug {
  animation-play-state: paused !important;
}
.rc-crawler.is-miss {
  animation: rc-miss-shake 0.18s ease;
}
@keyframes rc-miss-shake {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-3px); }
  66% { transform: translateX(3px); }
}
.rc-crawler.is-inview .rc-crawler__bugs {
  animation: rc-spawn-in 0.55s ease-out;
}
@keyframes rc-spawn-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.rc-crawler__fact {
  position: absolute;
  left: 0.75rem;
  bottom: 0.6rem;
  z-index: 16;
  max-width: min(18rem, calc(100% - 1.5rem));
  background: rgba(250, 252, 243, 0.96);
  border: 1.5px solid rgba(168, 199, 58, 0.65);
  border-radius: 0.75rem;
  padding: 0.65rem 1.6rem 0.65rem 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  cursor: default !important;
}
.rc-crawler__fact strong {
  display: block;
  font-size: 0.8rem;
  color: #1e4a22;
  margin-bottom: 0.2rem;
}
.rc-crawler__fact p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #3a3d36;
}
.rc-crawler__fact button {
  position: absolute;
  top: 0.25rem;
  right: 0.4rem;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer !important;
  color: #1e4a22;
}
.rc-crawler-promo__meta {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: rgba(232, 245, 200, 0.85);
  min-height: 1em;
}

/* Seasonal skins */
.rc-crawler.season-winter .rc-crawler__tissue {
  filter: hue-rotate(-8deg) brightness(1.05);
}
.rc-crawler.season-summer .rc-crawler__tissue {
  filter: saturate(1.15) brightness(1.04);
}
.rc-crawler.season-autumn .rc-crawler__tissue {
  filter: hue-rotate(12deg) saturate(1.1);
}
.rc-crawler.season-spring .rc-crawler__slime {
  opacity: 1;
}

.rc-gut-reward-live__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0 0 0.9rem;
}
.rc-gut-reward-live__stats span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2f6b32;
  background: #e8f5c8;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}
.rc-gut-reward-live__shop {
  cursor: pointer;
  border: 0;
  width: 100%;
  font: inherit;
}
.rc-gut-reward-live__shop--alt {
  margin-top: 0.45rem;
  background: linear-gradient(180deg, #5aa05e, #3d8a42) !important;
}
.rc-gut-reward-live__shop--ghost {
  margin-top: 0.45rem;
  background: transparent !important;
  color: #2f6b32 !important;
  border: 1.5px solid #2f6b32;
  box-shadow: none !important;
}
.rc-gut-reward-live__shop:disabled {
  opacity: 0.7;
  cursor: wait;
}
.rc-gut-reward-live__share {
  margin-top: 0.65rem;
}
.rc-gut-reward-live__share button {
  border: 0;
  background: transparent;
  color: #3d8a42;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

/* High-contrast score */
.rc-crawler__score,
.rc-crawler__progress {
  color: #0f2414;
  -webkit-font-smoothing: antialiased;
}

/* ===== MAX edition extras ===== */
.rc-crawler__canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.rc-crawler__powers {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}
.rc-gut-power {
  pointer-events: auto;
  position: absolute;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #c4e06a 50%, #2f6b32);
  box-shadow: 0 0 16px rgba(168, 199, 58, 0.7), 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer !important;
  animation: rc-power-bob 0.9s ease-in-out infinite, rc-code-btn-pop 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #16351a;
  z-index: 19;
}
.rc-gut-power--freeze { background: radial-gradient(circle at 30% 30%, #fff, #a0e0f5 55%, #2a7a9a); }
.rc-gut-power--slow { background: radial-gradient(circle at 30% 30%, #fff, #e0d0ff 55%, #6a4a9a); }
.rc-gut-power--x2 { background: radial-gradient(circle at 30% 30%, #fff, #ffe566 55%, #d4a017); }
.rc-gut-power--magnet { background: radial-gradient(circle at 30% 30%, #fff, #ffb0b0 55%, #c04040); }
@keyframes rc-power-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.06); }
}
.rc-crawler__power-tray {
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(250, 252, 243, 0.95);
  border: 1.5px solid #a8c73a;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #1e4a22;
  animation: rc-code-btn-pop 0.3s ease;
}
.rc-crawler__boss-warn {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 25;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 40, 40, 0.9), 0 2px 0 #800;
  background: rgba(120, 20, 20, 0.75);
  border: 2px solid #ff6060;
  border-radius: 0.75rem;
  padding: 0.6rem 1.2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rc-crawler__boss-warn.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: rc-boss-pulse 0.4s ease-in-out infinite alternate;
}
@keyframes rc-boss-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.25); }
}
.rc-crawler__bug.is-round-boss .rc-crawler__svg {
  width: 11rem !important;
  filter: drop-shadow(0 0 16px rgba(255, 60, 40, 0.75));
}
.rc-crawler__cinema {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(47, 107, 50, 0.55), rgba(10, 20, 12, 0.88));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.rc-crawler__cinema.is-show { opacity: 1; }
.rc-crawler__cinema-inner p {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 900;
  color: #e8f5c8;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 24px rgba(168, 199, 58, 0.8);
  animation: rc-cinema-line 0.6s ease;
}
@keyframes rc-cinema-line {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.rc-crawler.is-cinema .rc-crawler__bugs {
  filter: brightness(0.3) blur(2px);
  transition: filter 0.5s ease;
}
.rc-crawler__skill {
  font-size: 0.65rem;
  font-weight: 800;
  color: #1e4a22;
  background: rgba(250, 252, 243, 0.9);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(168, 199, 58, 0.5);
}
.rc-crawler__hint.is-flash {
  background: #c4e06a !important;
  animation: none;
}
.rc-crawler.is-x2 .rc-crawler__skill {
  background: #ffe566;
  box-shadow: 0 0 12px rgba(240, 180, 40, 0.6);
}
.rc-crawler.is-slowmo {
  filter: saturate(0.9) brightness(1.05);
}
.rc-crawler.is-magnet .rc-crawler__bug {
  filter: drop-shadow(0 0 10px rgba(255, 100, 100, 0.6));
}
.rc-crawler.is-vip .rc-crawler__trail {
  background: linear-gradient(90deg, transparent, rgba(255, 215, 80, 0.55), rgba(255, 240, 180, 0.7));
  height: 10px;
  filter: blur(2px);
}
.rc-crawler__fact-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2f6b32;
}
/* Story overlay only when [hidden] is removed (true fallback path) */
.rc-crawler__story {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(250, 240, 235, 0.96);
  text-align: center;
}
.rc-crawler__story:not([hidden]) {
  display: flex;
}
.rc-crawler__story[hidden] {
  display: none !important;
}
.rc-crawler__story-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.rc-story-target {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid #2f6b32;
  border-radius: 50%;
  background: #e8f5c8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.rc-story-target:hover,
.rc-story-target:focus-visible {
  transform: scale(1.08);
  outline: 2px solid #a8c73a;
  outline-offset: 2px;
}
.rc-story-target.is-caught {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* Reduced-motion / static: real parasites in a grid — fully playable, no crawl */
.rc-crawler.is-static-mode {
  height: auto;
  min-height: 14rem;
}
.rc-crawler.is-static-mode .rc-crawler__gut {
  opacity: 0.55;
}
.rc-crawler.is-static-mode .rc-crawler__canvas,
.rc-crawler.is-static-mode .rc-crawler__powers,
.rc-crawler.is-static-mode .rc-crawler__slime,
.rc-crawler.is-static-mode .rc-crawler__sparkles,
.rc-crawler.is-static-mode .rc-crawler__villi-layer,
.rc-crawler.is-static-mode .rc-crawler__bubbles-layer {
  display: none !important;
}
.rc-crawler.is-static-mode .rc-crawler__bugs {
  position: relative !important;
  inset: auto !important;
  z-index: 5;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  min-height: 10rem;
  padding: 2.75rem 0.5rem 0.75rem;
  pointer-events: auto !important;
  overflow: visible;
}
.rc-crawler.is-static-mode .rc-crawler__bug,
.rc-crawler.is-static-mode .rc-crawler__bug[class*="lane"] {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  animation: none !important;
  animation-name: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  padding: 0.35rem;
  will-change: auto;
  filter: drop-shadow(0 2px 4px rgba(30, 74, 34, 0.3));
}
.rc-crawler.is-static-mode .rc-crawler__bug.is-caught,
.rc-crawler.is-static-mode .rc-crawler__bug.is-popping {
  /* brief feedback handled in JS; stay in flow */
}
.rc-crawler.is-static-mode .rc-crawler__bug .rc-crawler__svg {
  width: 4.5rem !important;
  max-width: 18vw;
}
.rc-crawler.is-static-mode .rc-crawler__trail,
.rc-crawler.is-static-mode .rc-crawler__glow {
  display: none !important;
}

@media (max-width: 640px) {
  .rc-crawler {
    height: 17.5rem;
    min-height: 17.5rem;
  }
  .rc-crawler.is-static-mode {
    height: auto;
    min-height: 13rem;
  }
  .rc-crawler-promo__howto {
    display: none;
  }
  .rc-crawler__bug {
    /* larger touch targets */
    padding: 0.45rem;
  }
  .rc-crawler__bug .rc-crawler__svg {
    min-width: 4.5rem;
  }
  .rc-crawler__hud {
    gap: 0.35rem;
  }
}
/* Reduced motion: keep game visible and playable (static JS mode) */
@media (prefers-reduced-motion: reduce) {
  .rc-crawler-promo {
    display: flex !important;
  }
  .rc-crawler {
    display: block !important;
    height: auto !important;
    min-height: 12rem;
  }
  .rc-crawler__bugs {
    display: flex !important;
  }
  /* Override global 0.01ms animation wipe so static layout holds */
  .rc-crawler.is-static-mode .rc-crawler__bug,
  .rc-crawler.is-static-mode .rc-crawler__bug * {
    animation: none !important;
    animation-duration: 0s !important;
    transition-duration: 0.15s !important;
  }
}

.rc-crawler__bug:focus-visible {
  outline: 2px solid #a8c73a;
  outline-offset: 4px;
  border-radius: 10px;
}

.rc-crawler__svg,
.rc-critter-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 7.75rem;
  height: auto;
  overflow: visible;
}
.rc-crawler__bug--worm .rc-crawler__svg { width: 8.25rem; }
.rc-crawler__bug--tapeworm .rc-crawler__svg { width: 9rem; }
.rc-crawler__bug--hookworm .rc-crawler__svg { width: 7rem; }
.rc-crawler__bug--giardia .rc-crawler__svg { width: 4.25rem; }
.rc-crawler__bug--pinworm .rc-crawler__svg { width: 6.25rem; }

.rc-crawler__glow {
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 235, 120, 0.25), transparent 70%);
  filter: blur(4px);
  z-index: 0;
  opacity: 0.6;
  animation: rc-critter-glow 1.4s ease-in-out infinite;
}
@keyframes rc-critter-glow {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

.rc-critter-body {
  transform-origin: 50% 50%;
  animation: rc-critter-wiggle 0.85s ease-in-out infinite;
}
.rc-critter-body .rc-seg {
  transform-box: fill-box;
  transform-origin: center;
  animation: rc-seg-bob 0.85s ease-in-out infinite;
}
.rc-critter-body .rc-seg:nth-child(odd) { animation-delay: 0.08s; }
.rc-critter-body .rc-seg:nth-child(even) { animation-delay: 0.16s; }
.rc-critter-body .rc-feel.L {
  animation: rc-feel 0.75s ease-in-out infinite alternate;
}
.rc-critter-body .rc-feel.R {
  animation: rc-feel 0.75s ease-in-out infinite alternate-reverse;
}
.rc-critter-body .rc-head {
  animation: rc-head-bob 0.85s ease-in-out infinite;
}

@keyframes rc-critter-wiggle {
  0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); }
  25% { transform: translateY(-2px) scaleY(1.06) scaleX(0.97); }
  50% { transform: translateY(2px) scaleY(0.95) scaleX(1.03); }
  75% { transform: translateY(-1px) scaleY(1.04) scaleX(0.98); }
}
@keyframes rc-seg-bob {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes rc-head-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

.rc-crawler__bug:hover .rc-critter-body,
.rc-crawler__bug.is-aimed .rc-critter-body {
  animation-duration: 0.45s;
}
.rc-crawler__bug:hover .rc-crawler__glow {
  opacity: 1;
  background: radial-gradient(circle, rgba(196, 224, 106, 0.45), transparent 70%);
}

/* Crawl across the gut: use vw so they cross the full strip (%% is element-relative) */
@keyframes rc-crawl-x {
  0% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }
  8% {
    transform: translate3d(8vw, -4px, 0) scaleX(1);
  }
  16% {
    transform: translate3d(20vw, 3px, 0) scaleX(1);
  }
  24% {
    transform: translate3d(35vw, -3px, 0) scaleX(1);
  }
  32% {
    transform: translate3d(48vw, 4px, 0) scaleX(1);
  }
  40% {
    transform: translate3d(62vw, -3px, 0) scaleX(1);
  }
  46% {
    transform: translate3d(78vw, 0, 0) scaleX(1);
  }
  50% {
    transform: translate3d(78vw, 0, 0) scaleX(-1);
  }
  58% {
    transform: translate3d(62vw, -4px, 0) scaleX(-1);
  }
  66% {
    transform: translate3d(48vw, 3px, 0) scaleX(-1);
  }
  74% {
    transform: translate3d(35vw, -3px, 0) scaleX(-1);
  }
  82% {
    transform: translate3d(20vw, 4px, 0) scaleX(-1);
  }
  90% {
    transform: translate3d(8vw, -3px, 0) scaleX(-1);
  }
  96% {
    transform: translate3d(-8vw, 0, 0) scaleX(-1);
  }
  100% {
    transform: translate3d(-8vw, 0, 0) scaleX(1);
  }
}

@keyframes rc-gut-pulse {
  0%, 100% { filter: brightness(1) saturate(1.05) hue-rotate(0deg); }
  33% { filter: brightness(1.05) saturate(1.12) hue-rotate(-2deg); }
  66% { filter: brightness(0.98) saturate(1.08) hue-rotate(2deg); }
}

@keyframes rc-gut-flow {
  from { transform: translateX(0) scaleY(1); }
  to { transform: translateX(-48px) scaleY(1.02); }
}

@keyframes rc-wet-shine {
  0% { background-position: 120% 0; opacity: 0.35; }
  40% { opacity: 0.75; }
  100% { background-position: -40% 0; opacity: 0.4; }
}

@keyframes rc-wall-breathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.06) translateY(1px); }
}

@keyframes rc-edge-glow {
  0%, 100% { opacity: 0.55; stroke-width: 2.5; }
  50% { opacity: 0.95; stroke-width: 3.5; }
}

@keyframes rc-membrane {
  0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); }
  50% { transform: scaleY(1.12) scaleX(1.03) translateY(2px); }
}

@keyframes rc-slime-shimmer {
  0%, 100% { opacity: 0.55; transform: translateY(0) scaleY(1); }
  50% { opacity: 0.95; transform: translateY(-3px) scaleY(1.08); }
}

@keyframes rc-slime-flow {
  from { transform: translateX(-8%) scaleX(1); }
  to { transform: translateX(8%) scaleX(1.05); }
}

@keyframes rc-villus {
  0%, 100% { transform: scaleY(1) rotate(-3deg) skewX(0deg); }
  33% { transform: scaleY(1.14) rotate(4deg) skewX(2deg); }
  66% { transform: scaleY(0.96) rotate(-2deg) skewX(-1deg); }
}

@keyframes rc-bubble-rise {
  0% { transform: translateY(120%) translateX(0) scale(0.5); opacity: 0; }
  12% { opacity: 0.85; }
  50% { transform: translateY(20%) translateX(8px) scale(1); }
  100% { transform: translateY(-130%) translateX(-6px) scale(1.15); opacity: 0; }
}

@keyframes rc-blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 62% 38% 58% 42% / 48% 55% 45% 52%; }
  33% { transform: translate(14px, -8px) scale(1.18) rotate(6deg); border-radius: 48% 52% 40% 60% / 55% 42% 58% 45%; }
  66% { transform: translate(-10px, 5px) scale(0.92) rotate(-4deg); border-radius: 55% 45% 60% 40% / 42% 58% 48% 52%; }
}

@keyframes rc-strand-drip {
  0%, 100% { transform: scaleY(0.55) translateY(0); opacity: 0.25; }
  40% { transform: scaleY(1.15) translateY(4px); opacity: 0.7; }
  70% { transform: scaleY(0.9) translateY(10px); opacity: 0.4; }
}

@keyframes rc-fleck-drift {
  0% { transform: translate(0, 10px) scale(0.6); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translate(var(--fx, 20px), -90px) scale(1); opacity: 0; }
}

@keyframes rc-hint-fade {
  0%, 100% { opacity: 0.4; letter-spacing: 0.12em; }
  50% { opacity: 0.95; letter-spacing: 0.16em; }
}

@keyframes rc-trail {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50% { opacity: 0.9; transform: scaleX(1.08); }
}

@keyframes rc-slime-blob {
  0%, 100% { opacity: 0.4; transform: scaleX(0.85) scaleY(0.8); }
  50% { opacity: 0.85; transform: scaleX(1.1) scaleY(1.15); }
}

@keyframes rc-drip {
  0%, 100% { transform: scaleY(0.65); opacity: 0.3; }
  50% { transform: scaleY(1.25); opacity: 0.75; }
}

@keyframes rc-ring-pulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.45; }
}

@keyframes rc-head-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.04); }
}

@keyframes rc-wiggle {
  0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); }
  25% { transform: translateY(-1.5px) scaleY(1.04) scaleX(0.98); }
  50% { transform: translateY(1.5px) scaleY(0.96) scaleX(1.02); }
  75% { transform: translateY(-1px) scaleY(1.03) scaleX(0.99); }
}

@keyframes rc-feel {
  from { transform: rotate(-14deg); }
  to { transform: rotate(16deg); }
}

/* Explode state */
.rc-crawler__bug.is-popping {
  animation: none !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.rc-crawler-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.rc-crawler-burst__dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  animation: rc-crawler-burst 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow: 0 0 12px currentColor;
}

.rc-crawler-burst__star {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #a8c73a;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: rc-crawler-burst 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rc-crawler-burst__goo {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 60% 40% 55% 45%;
  background: radial-gradient(circle at 30% 30%, #e8f5c8, #a8c73a 60%, #2f6b32);
  animation: rc-crawler-burst 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0.9;
}

.rc-crawler-burst__label {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--font-display, Outfit, system-ui, sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #2f6b32;
  background: #fff;
  border: 2px solid #a8c73a;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 8px 24px rgba(47, 107, 50, 0.2);
  animation: rc-crawler-label 1.1s ease forwards;
  white-space: nowrap;
}

@keyframes rc-crawler-burst {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.15) rotate(var(--rot, 180deg));
    opacity: 0;
  }
}

@keyframes rc-crawler-label {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1.05);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -140%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -180%) scale(0.9);
  }
}

/* Reward popup for 5 kills → 10% off */
.rc-gut-reward {
  z-index: 10050 !important;
}
.rc-gut-reward.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.rc-gut-reward__dialog {
  width: min(24rem, 100%);
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border: 2px solid rgba(168, 199, 58, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 245, 200, 0.55), transparent 60%),
    var(--soft-white, #fafcf3);
  box-shadow: 0 20px 60px rgba(30, 74, 34, 0.28);
}

.rc-gut-reward__emoji {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.rc-gut-reward__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss, #3d8a42);
}

.rc-gut-reward__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  color: var(--forest, #1e4a22);
}

.rc-gut-reward__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--charcoal, #3a3d36);
  line-height: 1.5;
}

.rc-gut-reward__code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rc-gut-reward__code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1e4a22;
  background: #e8f5c8;
  border: 2px dashed #a8c73a;
  border-radius: 0.65rem;
  padding: 0.45rem 0.9rem;
}

.rc-gut-reward__shop {
  width: 100%;
  justify-content: center;
}

.rc-gut-reward__fine {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: rgba(58, 61, 54, 0.65);
}

@media (max-width: 640px) {
  .rc-crawler {
    height: 10rem;
    min-height: 10rem;
  }
  .rc-crawler-promo {
    padding: 0.7rem 0.85rem;
    gap: 0.5rem;
  }
  .rc-crawler-promo__sub {
    font-size: 0.72rem;
  }
  .rc-crawler__bug--worm .rc-crawler__svg { width: 5.4rem; }
  .rc-crawler__bug--tapeworm .rc-crawler__svg { width: 6rem; }
  .rc-crawler__bug--hookworm .rc-crawler__svg { width: 4.75rem; }
  .rc-crawler__bug--giardia .rc-crawler__svg { width: 2.7rem; }
  .rc-crawler__bug--pinworm .rc-crawler__svg { width: 4.1rem; }
  .rc-crawler__hint {
    font-size: 0.55rem;
  }
  .rc-crawler__score {
    font-size: 0.62rem;
  }
}

/* Reduced-motion: do NOT hide the gut challenge — static mode handles accessibility */
@media (prefers-reduced-motion: reduce) {
  .rc-crawler,
  .rc-crawler-promo {
    display: block !important;
  }
  .rc-crawler-promo {
    display: flex !important;
  }
}

/* --------------------------------------------------------------------------
   27. Intro benefits list
   -------------------------------------------------------------------------- */
.intro-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
  justify-content: center;
}

.intro-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--forest);
}

.intro-benefit::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B99A58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   28. Related products
   -------------------------------------------------------------------------- */
.related-products {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   29. Legal pages
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: var(--space-8);
}

.legal-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.legal-content h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   30. Animations (subtle, premium)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__content > * {
  animation: hero-fade 0.8s var(--ease-out) both;
}

.hero__eyebrow { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.2s; }
.hero__text { animation-delay: 0.35s; }
.hero .btn-group { animation-delay: 0.5s; }
.hero__trust { animation-delay: 0.65s; }

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   31. Utility helpers
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   32. Print
   -------------------------------------------------------------------------- */
@media print {
  .announce-bar,
  .site-header,
  .site-footer,
  .sticky-buy,
  .nav-mobile,
  .cart-drawer,
  .search-overlay,
  .btn,
  .slider-controls {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a { text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   33. Hub layout fix (hub-layout-fix)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section .split[style*="18rem"] {
    grid-template-columns: 1fr !important;
  }
  .hub-sidebar {
    position: static;
  }
}
/* ==========================================================================
   34. Basket qty, delivery progress, cookie, back-to-top
   ========================================================================== */
.qty-selector--sm {
  margin: var(--space-2) 0;
  border-width: 1px;
}
.qty-selector--sm button {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.9rem;
}
.qty-selector--sm input {
  width: 2rem;
  font-size: var(--fs-xs);
}

.delivery-progress {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.delivery-progress__msg {
  font-size: var(--fs-xs);
  color: var(--forest);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
}
.delivery-progress__track {
  height: 0.35rem;
  background: var(--stone);
  border-radius: 999px;
  overflow: hidden;
}
.delivery-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}
.delivery-progress__hint {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  margin-bottom: 0;
}

.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-sticky);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration) var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--moss);
}
.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
}
@media (max-width: 900px) {
  .back-to-top {
    bottom: calc(var(--space-5) + 4rem);
  }
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-toast) - 1);
  background: var(--soft-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(36, 37, 34, 0.1);
  padding: var(--space-4) var(--space-5);
}
.cookie-notice__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.cookie-notice__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
  min-width: 16rem;
  line-height: var(--lh-normal);
}
.cookie-notice__text a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-notice__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Ebook landing enhancements */
.ebook-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 22rem;
  margin-inline: auto;
  background: var(--forest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(185, 154, 88, 0.35);
  overflow: hidden;
  transform: perspective(800px) rotateY(-4deg);
}
.ebook-cover img {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.ebook-cover__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  text-align: center;
  color: var(--cream);
  background: linear-gradient(160deg, rgba(24,55,43,0.2), rgba(24,55,43,0.85));
}
.ebook-cover__badge {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.ebook-cover__title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
  color: var(--cream);
}
.ebook-cover__sub {
  font-size: var(--fs-sm);
  color: rgba(244,239,228,0.75);
  line-height: var(--lh-relaxed);
}
.chapter-list {
  counter-reset: chapter;
  display: grid;
  gap: var(--space-2);
}
.chapter-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.chapter-list li::before {
  counter-increment: chapter;
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--gold);
}
.privacy-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: var(--lh-relaxed);
}

/* About values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  padding: var(--space-6);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--gold);
}
.value-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
.value-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* Contact support cards + success */
.support-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
@media (max-width: 900px) {
  .support-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .support-cards { grid-template-columns: 1fr; }
}
.support-card {
  padding: var(--space-5);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.support-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}
.support-card p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.contact-success {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--soft-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.contact-success__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
}

/* FAQ page toolbar */
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.faq-search {
  position: relative;
  flex: 1;
  min-width: 14rem;
  max-width: 24rem;
}
.faq-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--soft-white);
  font-size: var(--fs-sm);
}
.faq-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.5;
  pointer-events: none;
}
.faq-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.btn--primary {
  border-color: var(--gold);
}
.btn--secondary::after {
  content: " \2192";
  font-weight: 400;
}

.hero__bg img {
  /* no permanent will-change — was janking scroll on mobile */
  transform: scale(1.03);
}

/* Premium logo mark — sizes for non-center headers only; center uses polish.css */
.site-header:not(.site-header--center) .logo__img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.site-header:not(.site-header--center).is-scrolled .logo__img {
  width: 3rem;
  height: 3rem;
}
.product-card__media img,
.featured-product__media img,
.product-gallery__main img,
.quick-view__media img {
  object-fit: cover;
  background: var(--cream);
}
/* When using SVG product art, contain looks better */
.product-card__media img[src$=".svg"],
.featured-product__media img[src$=".svg"],
.product-gallery__main img[src$=".svg"],
.quick-view__media img[src$=".svg"],
.cart-item__img[src$=".svg"] {
  object-fit: contain;
  padding: 0.5rem;
}
