/* AR Soil — Mycorrhiza cinematic catalog (isolated) */
:root {
  --cat-bg: #0e1a12;
  --cat-bg-2: #132418;
  --cat-ink: #f3f6f1;
  --cat-muted: #b7c4b4;
  --cat-gold: #c9a227;
  --cat-green: #2e7d32;
  --cat-line: rgba(255,255,255,0.12);
  --cat-radius: 14px;
  --cat-font: "Source Sans 3", system-ui, sans-serif;
  --cat-display: "Fraunces", Georgia, serif;
  --cat-chrome-h: 3.5rem;
  --cat-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body.cat-body {
  margin: 0;
  min-height: 100%;
  background: var(--cat-bg);
  color: var(--cat-ink);
  font-family: var(--cat-font);
  -webkit-font-smoothing: antialiased;
}
.cat-body.js-ready { overflow: hidden; height: 100%; }
.cat-body.js-ready .cat-fallback { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cat-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cat-gold); color: #111; padding: 0.6rem 1rem;
}
.cat-skip:focus { left: 0.75rem; top: 0.75rem; }

.cat-chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--cat-chrome-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 1rem; padding-right: 1rem;
  background: linear-gradient(180deg, rgba(8,14,10,0.92), rgba(8,14,10,0.35) 70%, transparent);
  pointer-events: none;
}
.cat-chrome a, .cat-chrome button, .cat-chrome-right { pointer-events: auto; }
.cat-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--cat-ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.cat-brand img { border-radius: 50%; background: #fff; }
.cat-chrome-right { display: flex; align-items: center; gap: 0.75rem; }
.cat-progress {
  margin: 0; font-variant-numeric: tabular-nums; font-size: 0.85rem;
  color: var(--cat-muted); letter-spacing: 0.04em;
}
.cat-menu-btn {
  appearance: none; border: 1px solid var(--cat-line); background: rgba(255,255,255,0.06);
  color: var(--cat-ink); border-radius: 999px; padding: 0.4rem 0.9rem; font: inherit; cursor: pointer;
}
.cat-menu-btn:focus-visible, .cat-nav-btn:focus-visible, .cat-btn:focus-visible, .cat-menu button:focus-visible {
  outline: 2px solid var(--cat-gold); outline-offset: 2px;
}

.cat-menu {
  position: fixed; z-index: 50; top: var(--cat-chrome-h); right: 0.75rem;
  width: min(18rem, calc(100vw - 1.5rem));
  background: rgba(14,26,18,0.96); border: 1px solid var(--cat-line);
  border-radius: var(--cat-radius); padding: 1rem 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.cat-menu[hidden] { display: none !important; }
.cat-menu-title { margin: 0 0 0.75rem; color: var(--cat-gold); font-size: 0.78rem; letter-spacing: 0.14em; }
.cat-menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; max-height: 60vh; overflow: auto; }
.cat-menu button {
  width: 100%; text-align: left; border: 0; background: transparent; color: var(--cat-ink);
  font: inherit; padding: 0.45rem 0.35rem; cursor: pointer; display: flex; gap: 0.65rem; border-radius: 8px;
}
.cat-menu button:hover { background: rgba(255,255,255,0.06); }
.cat-menu button span { color: var(--cat-gold); font-variant-numeric: tabular-nums; min-width: 1.6rem; }
.cat-menu-home { display: inline-block; margin-top: 0.85rem; color: var(--cat-muted); font-size: 0.9rem; }

.cat-stage {
  position: relative; height: 100dvh; min-height: 100vh; outline: none;
  touch-action: pan-y;
}
.cat-body.js-ready .cat-stage { touch-action: pan-y; overflow: hidden; }
.cat-slides { position: relative; height: 100%; }
.cat-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--cat-chrome-h) + 0.5rem) 1.15rem 4.5rem;
}
.cat-body.js-ready .cat-slide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.cat-body.js-ready .cat-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* Desktop: allow inner scroll if content overflows */
@media (min-width: 1025px) and (pointer: fine) {
  .cat-body.js-ready .cat-slide.is-active {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* No-JS: stacked readable page */
.cat-body:not(.js-ready) {
  overflow: auto;
  height: auto;
}
.cat-body:not(.js-ready) .cat-stage {
  height: auto;
  min-height: 0;
}
.cat-body:not(.js-ready) .cat-slides {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-body:not(.js-ready) .cat-slide {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
  min-height: 100vh;
  padding: 5rem 1.15rem 3rem;
  border-bottom: 1px solid var(--cat-line);
}
.cat-body:not(.js-ready) .cat-nav-controls,
.cat-body:not(.js-ready) .cat-float-cta,
.cat-body:not(.js-ready) .cat-menu-btn,
.cat-body:not(.js-ready) .cat-progress {
  display: none;
}
.cat-body:not(.js-ready) .cat-fallback {
  border-top: 1px solid var(--cat-line);
}
.cat-slide-inner { width: min(68rem, 100%); position: relative; z-index: 2; }
.cat-slide h1, .cat-slide h2 {
  font-family: var(--cat-display); font-weight: 700; line-height: 1.08; margin: 0.2rem 0 0.7rem;
}
.cat-slide h1 { font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: 0.02em; text-transform: uppercase; }
.cat-slide h2 { font-size: clamp(1.7rem, 4.5vw, 2.8rem); }
.cat-slide h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.cat-eyebrow {
  margin: 0 0 0.35rem; color: var(--cat-gold); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.cat-subtitle {
  margin: 0 0 1rem; font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cat-muted);
}
.cat-lead, .cat-slide p { color: var(--cat-muted); line-height: 1.55; max-width: 36rem; }
.cat-hint { font-size: 0.92rem; margin-bottom: 1rem; }

.cat-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.65rem 1.25rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.cat-btn-primary { background: var(--cat-gold); color: #1a1405; }
.cat-btn-whatsapp { background: #1f6b3a; color: #fff; }
.cat-btn-ghost { background: transparent; color: var(--cat-ink); border-color: var(--cat-line); }
.cat-btn + .cat-btn { margin-left: 0.5rem; }

.cat-atmosphere {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(90,55,20,0.35), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(201,162,39,0.08), transparent 40%),
    linear-gradient(180deg, #0a140e, #132418 55%, #1a120c);
}
.cat-atmosphere-soil {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(70,40,18,0.55), transparent 55%),
    url("../mycorrhiza/optimized/soil-atmosphere.webp") center/cover,
    #132418;
  opacity: 0.55;
}
.cat-particles {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 72px 72px; opacity: 0.12; animation: catFloat 18s linear infinite;
}
.cat-faint-roots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
@keyframes catFloat { from { transform: translateY(0); } to { transform: translateY(-36px); } }

.cat-intro { text-align: center; display: grid; justify-items: center; }
.cat-intro .cat-lead { margin-inline: auto; margin-bottom: 1.5rem; }

.cat-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.4rem; align-items: center;
}
.cat-hero-visual {
  position: relative; display: grid; place-items: center; min-height: 52vh;
  isolation: isolate;
}
.cat-hero-copy {
  position: relative;
  z-index: 2;
}
.cat-granules-inset {
  position: absolute; right: 4%; bottom: 6%; width: min(11rem, 42%);
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 30px rgba(0,0,0,0.45); z-index: 2;
  pointer-events: none;
}
.cat-granules-inset img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.cat-mini { font-size: 0.95rem; color: var(--cat-muted); margin: 0.75rem 0 1rem; max-width: 32rem; }
.cat-caption { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--cat-gold); letter-spacing: 0.04em; }
.cat-compact-list { margin: 0.6rem 0 1rem; padding-left: 1.1rem; color: var(--cat-muted); }
.cat-compact-list li { margin-bottom: 0.25rem; }
.cat-science {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.25rem; align-items: start;
}
.cat-science-visual img, .cat-side-photo img {
  width: 100%; border-radius: 16px; display: block; aspect-ratio: 16/10; object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.cat-benefits-grid, .cat-apply-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: center;
}
.cat-apply-grid { grid-template-columns: 0.95fr 1.05fr; }
.cat-app-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1rem; }
.cat-app-pills span {
  border: 1px solid var(--cat-line); border-radius: 999px; padding: 0.28rem 0.7rem;
  font-size: 0.82rem; color: var(--cat-ink); background: rgba(255,255,255,0.04);
}
.cat-steps-compact { margin-top: 0.75rem; }
.cat-steps-compact .cat-step { padding: 0.65rem 0.8rem; }
.cat-steps-compact .cat-step p { font-size: 0.88rem; }

.cat-reveal {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: center;
}
.cat-product-stage {
  position: relative; display: grid; place-items: center; min-height: 52vh;
  perspective: 900px;
}
.cat-glow {
  position: absolute; width: min(22rem, 70%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 68%);
  filter: blur(8px);
}
.cat-soil-platform {
  position: absolute; bottom: 8%; width: min(18rem, 70%); height: 2.2rem;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(4px);
}
.cat-product-bag {
  position: relative; z-index: 1; width: min(20rem, 72vw); height: auto;
  object-fit: contain; filter: drop-shadow(0 28px 40px rgba(0,0,0,0.55));
  transform: translateZ(0); border-radius: 12px;
}
.cat-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cat-chips li {
  border: 1px solid var(--cat-line); border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.86rem; color: var(--cat-ink); background: rgba(255,255,255,0.04);
}

.cat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: center; }
.cat-copy ul { padding-left: 1.1rem; color: var(--cat-muted); }
.cat-copy li { margin-bottom: 0.4rem; }
.cat-root-svg { width: min(100%, 22rem); height: auto; display: block; margin-inline: auto; }
.root-main, .root-branch { stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.net-node { opacity: 0; }

.cat-rootzone { min-height: 60vh; }
.cat-copy-overlay { position: relative; z-index: 3; max-width: 28rem; }
.cat-depth {
  position: absolute; inset: 10% 5% 8%; perspective: 1000px; transform-style: preserve-3d;
}
.depth-layer {
  position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d;
}
.depth-sky {
  background: linear-gradient(180deg, #1c3324, #243a2c 40%, transparent);
  transform: translateZ(-120px) scale(1.15); opacity: 0.7;
}
.depth-canopy {
  background: radial-gradient(ellipse at 50% 0%, rgba(60,120,55,0.35), transparent 55%);
  transform: translateZ(-40px);
}
.depth-soil {
  background: linear-gradient(180deg, transparent 10%, rgba(60,35,18,0.55) 45%, #2a180f 100%);
  overflow: hidden;
}
.depth-roots { width: 100%; height: 100%; opacity: 0.85; }
.depth-network {
  background:
    radial-gradient(circle at 30% 60%, rgba(201,162,39,0.18), transparent 25%),
    radial-gradient(circle at 70% 70%, rgba(143,191,122,0.15), transparent 28%);
  transform: translateZ(40px);
}

.cat-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cat-step {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
  padding: 0.9rem 1rem; border: 1px solid var(--cat-line); border-radius: 12px;
  background: rgba(255,255,255,0.03); opacity: 0.35; transform: translateY(12px);
}
.cat-step.is-on { opacity: 1; transform: none; }
.cat-step-num { color: var(--cat-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-step p { margin: 0; font-size: 0.95rem; }

.cat-benefits { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: start; }
.cat-benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.cat-benefit {
  padding: 0.85rem 1rem; border-left: 3px solid var(--cat-gold);
  background: linear-gradient(90deg, rgba(201,162,39,0.12), transparent);
  border-radius: 0 10px 10px 0; color: var(--cat-ink); opacity: 0; transform: translateX(16px);
}
.cat-benefit.is-on { opacity: 1; transform: none; }

/* Simple square card listings — slides 4 & 5 */
.cat-list-slide {
  width: min(56rem, 100%);
}
.cat-list-slide h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
}
.cat-sq-grid {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}
.cat-sq-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cat-sq-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cat-sq-card {
  margin: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--cat-line);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.cat-sq-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  max-height: 7.5rem;
}
.cat-sq-grid-3 .cat-sq-card img {
  max-height: 8.5rem;
}
.cat-sq-card h3 {
  margin: 0;
  padding: 0.45rem 0.4rem 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}
.cat-sq-card p {
  margin: 0;
  padding: 0 0.45rem 0.55rem;
  font-size: 0.72rem;
  color: var(--cat-muted);
  line-height: 1.3;
  max-width: none;
}
.cat-spec-chips {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cat-spec-chips li {
  border: 1px solid var(--cat-line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  color: var(--cat-muted);
  background: rgba(255,255,255,0.04);
}
.cat-spec-chips strong { color: var(--cat-gold); font-weight: 600; }

/* legacy crop/app styles kept but unused by slides 4-5 */
.cat-crop-rail { display: none; }
.cat-slide-fit { overflow: visible; max-height: none; }

.cat-cta-large { gap: 1.75rem; }
.cat-cta-bag-lg img {
  width: min(20rem, 52vw);
  filter: drop-shadow(0 28px 42px rgba(0,0,0,0.55));
}

.cat-pack-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}
.cat-pack-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.cat-pack-pair figure { margin: 0; text-align: center; }
.cat-pack-pair img {
  width: min(100%, 16rem);
  margin-inline: auto;
}
.cat-pack-pair figcaption {
  margin-top: 0.4rem;
  color: var(--cat-gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-crop-card {
  scroll-snap-align: start; background: rgba(255,255,255,0.04);
  border: 1px solid var(--cat-line); border-radius: 14px; overflow: hidden;
}
.cat-crop-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cat-crop-card h3, .cat-crop-card p { margin: 0; padding: 0.65rem 0.85rem 0; }
.cat-crop-card p { padding-bottom: 0.9rem; font-size: 0.9rem; }

.cat-app-flow {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0.75rem 0 1.25rem;
  color: var(--cat-gold); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.cat-app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.cat-app-grid > div {
  border: 1px solid var(--cat-line); border-radius: 12px; padding: 1rem;
  background: rgba(255,255,255,0.03);
}
.cat-app-grid ul { margin: 0; padding-left: 1.1rem; color: var(--cat-muted); }
.cat-stat { font-family: var(--cat-display); font-size: 1.8rem; color: var(--cat-ink); margin: 0.2rem 0 0; }
.cat-note { margin-top: 1rem; font-size: 0.92rem; }

.cat-table-wrap { overflow-x: auto; border: 1px solid var(--cat-line); border-radius: 12px; margin-top: 1rem; }
.cat-specs { width: 100%; border-collapse: collapse; min-width: 28rem; }
.cat-specs th, .cat-specs td {
  text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--cat-line); vertical-align: top;
}
.cat-specs th { width: 34%; color: var(--cat-gold); font-weight: 600; background: rgba(255,255,255,0.03); }
.cat-specs td { color: var(--cat-muted); }
.cat-specs tr:last-child th, .cat-specs tr:last-child td { border-bottom: 0; }

.cat-cta {
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 1.5rem; align-items: center;
}
.cat-cta-bag img {
  width: min(14rem, 45vw); height: auto; object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.cat-cta-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.1rem 0 0.85rem; }
.cat-cta-actions .cat-btn { margin: 0; }
.cat-cta-secondary { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.cat-cta-secondary a, .cat-cta-secondary button {
  background: none; border: 0; color: var(--cat-gold); font: inherit; cursor: pointer; padding: 0; text-decoration: underline;
}
.cat-copy-toast { margin: 0.5rem 0 0; color: #9fdf9f; font-size: 0.9rem; }

.cat-nav-controls {
  position: fixed; z-index: 30; right: 1rem; bottom: 1.1rem;
  display: flex; gap: 0.45rem;
}
.cat-nav-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--cat-line); background: rgba(14,26,18,0.85);
  color: var(--cat-ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cat-float-cta {
  position: fixed; z-index: 30; left: 1rem; bottom: 1.15rem;
  display: none; align-items: center; justify-content: center;
  min-height: 2.6rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: #1f6b3a; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem;
}

.cat-fallback { padding: 2rem 1.15rem 3rem; background: var(--cat-bg-2); }
.cat-fallback-inner { width: min(42rem, 100%); margin: 0 auto; }
.cat-fallback img { width: min(18rem, 100%); height: auto; border-radius: 12px; margin: 1rem 0; }
.cat-fallback h2 { font-family: var(--cat-display); }
.cat-fallback a.cat-btn { margin: 0.35rem 0.35rem 0 0; }

@media (max-width: 1024px) {
  :root { --cat-chrome-h: 3rem; }
  .cat-body.js-ready .cat-stage {
    touch-action: pan-y;
  }
  /* Scroll within slide; chrome + nav stay fixed */
  .cat-body.js-ready .cat-slide.is-active {
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding:
      calc(var(--cat-chrome-h) + env(safe-area-inset-top, 0px) + 0.35rem)
      0.75rem
      calc(4.4rem + env(safe-area-inset-bottom, 0px));
  }
  .cat-slide-inner {
    width: 100%;
    margin-inline: auto;
    max-height: none;
    overflow: visible;
  }

  .cat-slide[data-slide="crops"] .cat-slide-inner,
  .cat-slide[data-slide="apply"] .cat-slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
  }
  .cat-slide[data-slide="crops"] .cat-eyebrow,
  .cat-slide[data-slide="apply"] .cat-eyebrow {
    margin: 0;
    font-size: 0.72rem;
  }
  .cat-slide[data-slide="crops"] h2,
  .cat-slide[data-slide="apply"] h2 {
    margin: 0.1rem 0 0.15rem;
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }
  /* Readable cards — scroll for the rest */
  .cat-slide[data-slide="crops"] .cat-sq-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .cat-slide[data-slide="apply"] .cat-sq-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .cat-slide[data-slide="crops"] .cat-sq-card,
  .cat-slide[data-slide="apply"] .cat-sq-card {
    border-radius: 12px;
  }
  .cat-slide[data-slide="crops"] .cat-sq-card img,
  .cat-slide[data-slide="apply"] .cat-sq-card img {
    max-height: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
  }
  .cat-slide[data-slide="crops"] .cat-sq-card h3 {
    font-size: 0.82rem;
    padding: 0.4rem 0.35rem 0.45rem;
    line-height: 1.2;
  }
  .cat-slide[data-slide="apply"] .cat-sq-card h3 {
    font-size: 0.9rem;
    padding: 0.4rem 0.4rem 0.2rem;
  }
  .cat-slide[data-slide="apply"] .cat-sq-card p {
    display: block;
    font-size: 0.72rem;
    padding: 0 0.4rem 0.45rem;
    color: var(--cat-muted);
  }
  .cat-slide[data-slide="apply"] .cat-spec-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.35rem;
    max-height: none;
    overflow: visible;
  }
  .cat-slide[data-slide="apply"] .cat-spec-chips li {
    font-size: 0.78rem;
    line-height: 1.35;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    white-space: normal;
  }

  .cat-swipe-hint {
    position: fixed;
    left: 50%;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 28;
    margin: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(8,14,10,0.72);
    border: 1px solid var(--cat-line);
    color: var(--cat-muted);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    pointer-events: none;
  }
  .cat-hero-grid,
  .cat-science,
  .cat-benefits-grid,
  .cat-cta,
  .cat-pack-front-only {
    gap: 0.85rem;
    align-items: start;
  }
  .cat-product-stage,
  .cat-hero-visual {
    min-height: 0;
    width: 100%;
    max-width: 16rem;
    margin-inline: auto;
    padding-bottom: 0.35rem;
    overflow: visible;
  }
  .cat-slide[data-slide="intro"] .cat-hero-visual,
  .cat-slide[data-slide="pack"] .cat-hero-visual {
    /* Reserve space so absolute granules inset never covers text below */
    padding-bottom: 1.75rem;
  }
  .cat-product-bag {
    width: min(11.5rem, 48vw);
    max-height: min(42vh, 16rem);
    object-fit: contain;
    display: block;
    margin-inline: auto;
  }
  .cat-hero-copy {
    z-index: 3;
    position: relative;
    margin-top: 0.15rem;
    padding-top: 0.15rem;
  }
  .cat-cta-bag-lg img {
    width: min(12rem, 52vw);
    max-height: min(40vh, 15rem);
    object-fit: contain;
  }
  .cat-granules-inset {
    width: min(5.5rem, 34%);
    right: 6%;
    bottom: 0.15rem;
    z-index: 2;
  }
  .cat-slide h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
    margin-bottom: 0.35rem;
  }
  .cat-slide h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin-bottom: 0.4rem;
  }
  .cat-lead, .cat-mini { font-size: 0.9rem; margin-bottom: 0.5rem; }
  .cat-nav-controls {
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
  .cat-float-cta {
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    min-height: 2.35rem;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }
}

@media (max-width: 860px) {
  .cat-reveal, .cat-split, .cat-benefits, .cat-cta, .cat-app-grid,
  .cat-hero-grid, .cat-science, .cat-benefits-grid, .cat-apply-grid,
  .cat-pack-grid, .cat-pack-front-only { grid-template-columns: 1fr; }
  .cat-slide[data-slide="crops"] .cat-sq-grid-4,
  .cat-slide[data-slide="apply"] .cat-sq-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-pack-pair { grid-template-columns: 1fr 1fr; }
  .cat-product-stage, .cat-hero-visual { order: -1; }
  .cat-slide[data-slide="intro"] .cat-hero-grid,
  .cat-slide[data-slide="pack"] .cat-pack-front-only,
  .cat-slide[data-slide="pack"] .cat-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .cat-slide[data-slide="intro"] .cat-hero-visual,
  .cat-slide[data-slide="pack"] .cat-hero-visual {
    order: -1;
    flex: 0 0 auto;
  }
  .cat-slide[data-slide="intro"] .cat-hero-copy,
  .cat-slide[data-slide="pack"] .cat-hero-copy {
    order: 1;
    flex: 0 0 auto;
  }
  /* Slide 2: show root image first so it is never clipped */
  .cat-science-visual { order: -1; }
  .cat-cta-bag, .cat-cta-bag-lg { text-align: center; }
  .cat-cta-bag-lg img { width: min(13rem, 62vw); }
  .cat-float-cta { display: inline-flex; }
  .cat-depth { position: relative; inset: auto; min-height: 9rem; margin-top: 0.35rem; }
  .cat-science-visual img,
  .cat-side-photo img {
    aspect-ratio: 16 / 10;
    max-height: min(42vw, 14rem);
    width: 100%;
    object-fit: cover;
  }
  .cat-science-copy .cat-compact-list { margin: 0.45rem 0 0.65rem; }
  .cat-steps-compact { margin-top: 0.5rem; }
  .cat-steps-compact .cat-step { padding: 0.55rem 0.7rem; }
  .cat-list-slide h2 { margin-bottom: 0.35rem; }
  .cat-slide[data-slide="apply"] .cat-spec-chips {
    max-height: none;
    overflow: visible;
  }
  .cat-hero-copy .cat-mini,
  .cat-cta-copy p { max-width: none; }
  .cat-chips { margin-top: 0.45rem; }
  .cat-chips li { font-size: 0.78rem; padding: 0.28rem 0.6rem; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .cat-sq-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-body.js-ready .cat-slide.is-active {
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  :root { --cat-chrome-h: 2.85rem; }
  .cat-body.js-ready .cat-slide.is-active {
    padding:
      calc(var(--cat-chrome-h) + env(safe-area-inset-top, 0px) + 0.25rem)
      0.65rem
      calc(4.2rem + env(safe-area-inset-bottom, 0px));
  }
  .cat-slide[data-slide="crops"] .cat-sq-grid-4,
  .cat-slide[data-slide="apply"] .cat-sq-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .cat-slide[data-slide="crops"] .cat-sq-card h3 {
    font-size: 0.78rem;
    padding: 0.35rem 0.3rem 0.4rem;
  }
  .cat-slide[data-slide="apply"] .cat-sq-card h3 {
    font-size: 0.85rem;
  }
  .cat-slide[data-slide="apply"] .cat-spec-chips li {
    font-size: 0.74rem;
    padding: 0.4rem 0.55rem;
  }
  .cat-science-visual img {
    max-height: min(48vw, 12.5rem);
  }
  .cat-brand span { display: none; }
  .cat-btn + .cat-btn { margin-left: 0; }
  .cat-cta-actions { flex-direction: column; align-items: stretch; }
  .cat-product-bag { width: min(10.5rem, 52vw); max-height: min(38vh, 14rem); }
  .cat-cta-bag-lg img { width: min(11rem, 56vw); }
  .cat-chrome { padding-left: 0.65rem; padding-right: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-particles { animation: none; }
  .cat-slide, .cat-step, .cat-benefit, .cat-product-bag { transition: none !important; }
  .root-main, .root-branch { stroke-dasharray: none; stroke-dashoffset: 0; }
  .net-node { opacity: 1; }
}
