/* ==========================================================================
   Hidayah Agro Utama · design tokens
   Colours come from the Agro Catalyst guide book: forest green + lime.
   ========================================================================== */
:root{
  --forest: #1f3d28;
  --forest-2: #2f5638;
  --leaf: #3d9a3f;
  --leaf-2: #57b947;
  --lime: #dcf98a;
  --lime-2: #c6ef5a;
  --cream: #f6f8ee;
  --sand: #eef2df;
  --ink: #17251b;
  --muted: #5b6b5f;
  --line: #dfe6d3;
  --white: #ffffff;
  --wa: #1fae5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(23, 50, 30, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body{ margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img{ max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4{ line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2{ font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3{ font-size: 1.2rem; font-weight: 700; }
p{ margin: 0 0 1em; }
a{ color: inherit; }
button,input,select,textarea{ font: inherit; color: inherit; }
.wrap{ width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link{ position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--forest); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus{ top: 12px; }
:focus-visible{ outline: 3px solid var(--leaf-2); outline-offset: 3px; }
.muted{ color: var(--muted); opacity: .6; }

/* ---------- buttons ---------- */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-primary{ background: var(--forest); color: var(--white); }
.btn-primary:hover{ background: var(--forest-2); box-shadow: var(--shadow); }
.btn-lime{ background: var(--lime); color: var(--forest); }
.btn-lime:hover{ background: var(--lime-2); }
.btn-ghost{ border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover{ border-color: var(--lime); color: var(--lime); }
.btn-outline{ border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover{ background: var(--forest); color: var(--white); }
.btn-wa{ background: var(--wa); color: var(--white); }
.btn-wa:hover{ background: #189a4f; }
.btn-small{ padding: .6em 1.1em; font-size: .9rem; }
.btn-block{ width: 100%; }
.link-btn{ background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }

.eyebrow{ text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--leaf); margin-bottom: .8em; }
.eyebrow--lime{ color: var(--lime); }

/* ---------- header ---------- */
.site-header{ position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.header-inner{ display: flex; align-items: center; gap: 18px; height: 76px; }
.brand{ display: block; flex: none; position: relative; width: 132px; height: 54px; }
.brand-logo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s; }
.brand-logo--dark{ opacity: 0; }
.site-header.is-scrolled{ background: rgba(255,255,255,.94); box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.site-header.is-scrolled .brand-logo--light{ opacity: 0; }
.site-header.is-scrolled .brand-logo--dark{ opacity: 1; }
.main-nav{ margin-left: auto; }
.main-nav > ul{ list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-top, .nav-dd-btn{ display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 0; background: none; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--white); cursor: pointer; transition: background-color .2s, color .2s; }
.nav-top:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn{ background: rgba(255,255,255,.12); }
.nav-top.is-current, .nav-dd.is-current .nav-dd-btn{ box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.nav-dd-btn svg{ transition: transform .2s; }
.nav-dd.is-open .nav-dd-btn svg{ transform: rotate(180deg); }
.site-header.is-scrolled .nav-top, .site-header.is-scrolled .nav-dd-btn{ color: var(--ink); }
.site-header.is-scrolled .nav-top:hover, .site-header.is-scrolled .nav-dd-btn:hover, .site-header.is-scrolled .nav-dd.is-open .nav-dd-btn{ background: var(--sand); }
.site-header.is-scrolled .nav-top.is-current, .site-header.is-scrolled .nav-dd.is-current .nav-dd-btn{ box-shadow: inset 0 -2px 0 var(--leaf); }
.nav-dd{ position: relative; }
.nav-dd-menu{ position: absolute; top: calc(100% + 8px); left: 50%; min-width: 250px; padding: 8px; background: var(--white); border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(10,30,15,.45); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav-dd-menu::before{ content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-dd.is-open .nav-dd-menu{ opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 921px){
  .nav-dd:hover .nav-dd-menu{ opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav-dd-menu a{ display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-dd-menu a:hover, .nav-dd-menu a[aria-current]{ background: var(--sand); }
.nav-dd-menu b{ display: block; font-weight: 700; font-size: .93rem; }
.nav-dd-menu small{ display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }

.lang-toggle{ display: flex; border-radius: 999px; padding: 3px; background: rgba(255,255,255,.14); }
.site-header.is-scrolled .lang-toggle{ background: var(--sand); }
.lang-btn{ border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--white); }
.site-header.is-scrolled .lang-btn{ color: var(--ink); }
.lang-btn[aria-pressed="true"]{ background: var(--lime); color: var(--forest) !important; }

.cart-btn{ position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); color: var(--forest); cursor: pointer; flex: none; }
.cart-btn.bump{ animation: bump .5s var(--ease); }
@keyframes bump{ 30%{ transform: scale(1.18); } 60%{ transform: scale(.94); } }
.cart-count{ position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--forest); color: var(--white); font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--white); }
.cart-count.is-empty{ display: none; }

.nav-toggle{ display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after{ position: absolute; left: 11px; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, background-color .3s; content: ""; }
.nav-toggle-bar{ top: 21px; }
.nav-toggle-bar::before{ top: -7px; left: 0; }
.nav-toggle-bar::after{ top: 7px; left: 0; }
.site-header.is-scrolled .nav-toggle-bar, .site-header.is-scrolled .nav-toggle-bar::before, .site-header.is-scrolled .nav-toggle-bar::after{ background: var(--ink); }
.nav-open .nav-toggle-bar{ background: transparent !important; }
.nav-open .nav-toggle-bar::before{ transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after{ transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{ position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); background: var(--forest); overflow: hidden; padding: 110px 0 70px; }
.hero-bg{ position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,42,27,.96) 0%, rgba(20,42,27,.86) 42%, rgba(20,42,27,.35) 100%), url("../assets/img/soil-seedlings.jpg") center 30% / cover no-repeat; }
.hero-bg::after{ content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--forest)); opacity: .6; }
.hero-inner{ position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1{ font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: .45em; }
.hero-lead{ font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 36em; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-stats{ display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 0; justify-content: start; }
.hero-stats div{ border-left: 2px solid var(--lime); padding-left: 14px; }
.hero-stats dt{ font-size: .8rem; color: rgba(255,255,255,.7); }
.hero-stats dd{ margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--lime); }
.hero-product{ position: relative; display: block; justify-self: center; width: min(400px, 100%); text-decoration: none; transform: rotate(3deg); transition: transform .5s var(--ease); }
.hero-product:hover{ transform: rotate(0) translateY(-6px); }
.hero-product img{ position: relative; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.hero-glow{ position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198,239,90,.45), transparent); filter: blur(10px); }
.hero-price{ position: absolute; left: -18px; bottom: 28px; background: var(--lime); color: var(--forest); padding: 10px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero-price b{ font-size: 1.4rem; }
.hero-price small{ font-weight: 600; font-size: .8rem; }

/* entrance */
.js .rise{ opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise{ to{ opacity: 1; transform: none; } }
.js .hero-product.rise{ animation-name: riseTilt; }
@keyframes riseTilt{ to{ opacity: 1; transform: rotate(3deg); } }
.js .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in{ opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section{ padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head{ max-width: 760px; margin-bottom: 40px; }
.section-lead{ color: var(--muted); font-size: 1.08rem; }

/* problem */
.problem{ background: #3a2a1d url("../assets/img/cracked-field.jpg") center / cover; color: var(--white); }
.problem::before{ content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,33,20,.92), rgba(48,33,20,.82)); }
.problem-grid{ position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.problem .eyebrow{ color: #e9d98e; }
.problem-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(-2deg); }
.problem-photo img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.x-list{ list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 14px; }
.x-list li{ position: relative; padding-left: 38px; color: rgba(255,255,255,.88); }
.x-list li::before{ content: "!"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #e9d98e; color: #3a2a1d; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }

/* shop */
.shop{ background: var(--cream); }
.product{ display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); background: var(--white); border-radius: 28px; padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); align-items: start; }
.product-media{ position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 42%, #f4fbdc 0%, #e3edc4 55%, #cfe0a6 100%); padding: 6% 10% 8%; }
.product-media::after{ content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 18px; border-radius: 50%; background: rgba(31,61,40,.22); filter: blur(10px); }
.product-media img{ position: relative; z-index: 1; width: 100%; aspect-ratio: 798/978; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(31,61,40,.28)); }
.badge{ position: absolute; top: 16px; right: 16px; background: var(--forest); color: var(--lime); font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.product-name{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .2em; }
.product-tag{ color: var(--leaf); font-weight: 600; }
.product-price{ display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.product-price b{ font-size: 2rem; font-weight: 800; color: var(--forest); }
.product-price span{ color: var(--muted); font-weight: 600; background: var(--sand); padding: 3px 10px; border-radius: 999px; font-size: .88rem; }
.check-list{ list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li{ position: relative; padding-left: 30px; }
.check-list li::before{ content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check-list--light li::before{ background-color: var(--lime-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231f3d28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.product-suits{ font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.buy-row{ display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.qty-field label{ display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.stepper{ display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.stepper button{ width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--forest); }
.stepper button:hover{ background: var(--sand); }
.stepper input{ width: 64px; height: 44px; border: 0; text-align: center; font-weight: 800; font-size: 1.05rem; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.stepper--sm button{ width: 34px; height: 34px; font-size: 1.1rem; }
.stepper--sm input{ width: 46px; height: 34px; font-size: .95rem; }
.buy-subtotal{ margin: 0; color: var(--muted); }
.buy-subtotal b{ display: block; color: var(--ink); font-size: 1.35rem; }
.buy-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.buy-actions .btn{ flex: 1 1 200px; }

.shop-extra{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; margin-top: 28px; }
.calc, .others{ background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.calc p, .others p{ color: var(--muted); }
.calc-fields{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.calc-fields label span{ display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.calc select, .calc input, .field input, .field textarea{ width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s; }
.calc select:focus, .calc input:focus, .field input:focus, .field textarea:focus{ border-color: var(--leaf); outline: none; }
.calc-result{ background: var(--sand); padding: 12px 16px; border-radius: var(--radius-sm); color: var(--ink) !important; }
.calc-result b{ color: var(--forest); }
.others-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.others-list li{ display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.others-list li:last-child{ border-bottom: 0; }
.others-list b{ flex: 1; }
.others-list b small{ display: block; font-weight: 500; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.dot{ width: 14px; height: 14px; border-radius: 4px; flex: none; }

/* benefits */
.benefits{ background: #111a13; color: var(--white); overflow: hidden; }
.benefits-grid{ display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.benefits-photo{ border-radius: 28px; overflow: hidden; align-self: stretch; max-height: 760px; }
.benefits-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.fn-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 30px; }
.fn{ background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 16px; color: var(--lime); }
.fn p{ color: rgba(255,255,255,.88); margin: 10px 0 0; font-size: .9rem; line-height: 1.45; }
.fn:last-child{ background: var(--lime); color: var(--forest); }
.fn:last-child p{ color: var(--forest); font-weight: 700; }
.benefit-cols{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit-card{ background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 22px; border: 1px solid rgba(255,255,255,.08); }
.benefit-card h3{ color: var(--lime); }
.benefit-card li{ color: rgba(255,255,255,.85); font-size: .95rem; }

/* how */
.how{ background: var(--white); }
.how-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.how-grid p{ color: var(--muted); }
.how-figure{ position: relative; margin: 0 0 40px; }
.how-figure > img{ border-radius: 28px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.how-figure figcaption{ position: absolute; right: -10px; bottom: -36px; width: 46%; background: var(--forest); color: var(--white); padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; }
.how-figure figcaption img{ border-radius: 10px; margin-bottom: 8px; }
.steps{ list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step-card{ background: var(--cream); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step-no{ display: inline-block; font-weight: 800; color: var(--leaf); font-size: .9rem; margin-bottom: 8px; }
.step-card p{ color: var(--muted); margin: 0; }

/* guide */
.guide{ background: var(--sand); }
.crop-tabs{ display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: thin; }
.crop-tabs button{ flex: none; border: 2px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--forest); transition: background-color .2s, color .2s, border-color .2s; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crop-tabs button[aria-selected="true"]{ background: var(--forest); color: var(--white); border-color: var(--forest); }
.usage-panel{ background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.usage-table{ width: 100%; border-collapse: collapse; }
.usage-table th{ background: var(--leaf); color: var(--white); text-align: left; padding: 14px 18px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.usage-table td{ padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.usage-table tr:nth-child(even) td{ background: #fafcf5; }
.usage-table td:first-child{ font-weight: 700; color: var(--forest); width: 30%; }
.sawit{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; margin-top: 64px; align-items: start; }
.sawit-text h3{ font-size: 1.4rem; margin-top: 1.2em; }
.sawit-text h3:first-child{ margin-top: 0; }
.alpha-list{ padding-left: 1.4em; display: grid; gap: 8px; list-style: lower-alpha; }
.alpha-list li::marker{ font-weight: 800; color: var(--leaf); }
.note{ background: var(--forest); color: var(--white); border-radius: var(--radius); padding: 20px 22px; margin-top: 20px; }
.note h4{ color: var(--lime); margin-bottom: .6em; }
.note ul{ margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.sawit-photos{ display: grid; grid-template-columns: .75fr 1.25fr; grid-template-rows: auto auto; gap: 14px; }
.sawit-photos figure{ margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--forest); }
.sawit-photos .ph-tall{ grid-row: span 2; }
.sawit-photos img{ width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.sawit-photos figcaption{ position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .78rem; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* cost */
.cost{ color: var(--white); background: var(--forest); overflow: hidden; }
.cost-bg{ position: absolute; inset: 0; background: url("../assets/img/palm-fruit.jpg") right center / auto 100% no-repeat; opacity: .22; }
.cost .wrap{ position: relative; }
.cost .section-lead{ color: rgba(255,255,255,.78); }
.cost-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cost-card{ background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.cost-card--hi{ background: rgba(220,249,138,.12); border-color: var(--lime); }
.cost-card h3{ color: var(--lime); }
.cost-card ul{ list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: .9rem; }
.cost-card li{ display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.82); }
.cost-card li b{ white-space: nowrap; font-weight: 600; }
.cost-total, .cost-year{ display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.18); }
.cost-total b{ color: var(--lime); font-size: 1.15rem; }
.cost-year b{ color: var(--lime); }
.cost-note{ margin: auto 0 0; padding-top: 12px; font-size: .85rem; color: var(--lime); font-weight: 600; }

/* about */
.about{ background: var(--cream); }
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photos{ position: relative; padding-right: 22%; padding-bottom: 12%; }
.about-main{ border-radius: 28px; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about-side{ position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; border-radius: 22px; border: 6px solid var(--cream); box-shadow: var(--shadow); }
.about-grid p{ color: var(--muted); }
.vm{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.vm div{ background: var(--white); border-radius: var(--radius-sm); padding: 16px; border-left: 4px solid var(--leaf); }
.vm dt{ font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--leaf); font-weight: 700; }
.vm dd{ margin: 4px 0 0; font-weight: 700; }
.quote{ margin: 0 0 20px; font-size: 1.1rem; font-weight: 600; font-style: italic; color: var(--forest); border-left: 3px solid var(--lime-2); padding-left: 16px; }
.licences{ background: var(--white); border-radius: var(--radius-sm); padding: 4px 18px; border: 1px solid var(--line); }
.licences summary{ cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--forest); }
.licences ul{ margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }

/* contact */
.contact{ background: var(--forest); color: var(--white); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-grid > div > p{ color: rgba(255,255,255,.8); }
.contact-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 34px; }
.offices-title{ color: var(--lime); }
.offices{ list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.offices li{ color: rgba(255,255,255,.8); font-size: .95rem; }
.offices strong{ display: block; color: var(--white); }
.map-card{ background: var(--white); border-radius: var(--radius); overflow: hidden; padding: 10px; display: grid; gap: 10px; }
.map-card iframe{ width: 100%; height: 360px; border: 0; border-radius: 12px; background: var(--sand); }
.map-card .btn{ justify-self: start; }

/* footer */
.site-footer{ background: #142a1b; color: rgba(255,255,255,.7); padding: 48px 0 90px; text-align: center; }
.footer-logo{ width: 150px; height: auto; margin: 0 auto 14px; }
.footer-small{ font-size: .82rem; }

/* floating WhatsApp */
.wa-float{ position: fixed; right: 18px; bottom: 76px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transition: transform .2s var(--ease); }
.wa-float:hover{ transform: scale(1.07); }
.drawer-open .wa-float{ display: none; }

/* toast */
.toast{ position: fixed; left: 50%; bottom: 76px; z-index: 90; transform: translate(-50%, 140%); background: var(--forest); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: transform .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast::before{ content: "✓ "; color: var(--lime); }
.toast.show{ transform: translate(-50%, 0); }
.toast:empty{ display: none; }

/* ---------- drawer ---------- */
.drawer-backdrop{ position: fixed; inset: 0; z-index: 70; background: rgba(10,22,13,.55); opacity: 0; transition: opacity .25s; }
.drawer{ position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(460px, 100%); background: var(--white); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); }
.drawer-open .drawer{ transform: none; }
.drawer-open .drawer-backdrop{ opacity: 1; }
.drawer[hidden], .drawer-backdrop[hidden]{ display: none; }
.drawer-head{ display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2{ font-size: 1.25rem; margin: 0; flex: 1; }
.drawer-back{ display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--sand); border-radius: 999px; padding: 6px 12px 6px 8px; font-weight: 600; font-size: .85rem; cursor: pointer; }
.drawer-back[hidden]{ display: none; }
.drawer-back + h2{ text-align: center; }
.drawer-close{ border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.drawer-close:hover{ background: var(--sand); }
.drawer-view{ flex: 1; display: flex; flex-direction: column; min-height: 0; margin: 0; }
.drawer-view[hidden]{ display: none; }
.drawer-body{ flex: 1; overflow-y: auto; padding: 18px; }
/* bottom room: Netlify shows a "Powered by Netlify" badge bottom-right */
.drawer-foot{ padding: 16px 18px 68px; border-top: 1px solid var(--line); background: var(--cream); }
.drawer-foot[hidden]{ display: none; }
.cart-items{ list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cart-item{ display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img{ border-radius: 10px; width: 64px; height: 70px; object-fit: cover; }
.ci-body b{ display: block; font-size: .95rem; line-height: 1.3; }
.ci-body span{ display: block; color: var(--muted); font-size: .82rem; margin: 2px 0 8px; }
.ci-side{ text-align: right; display: grid; gap: 6px; justify-items: end; }
.cart-empty{ text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty[hidden]{ display: none; }
.total-row{ display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-weight: 600; }
.total-row b{ font-size: 1.3rem; color: var(--forest); }
.small-note{ font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
fieldset{ border: 0; padding: 0; margin: 0 0 22px; }
legend{ font-weight: 800; font-size: 1rem; margin-bottom: 10px; color: var(--forest); }
.field{ display: block; margin-bottom: 12px; }
.field > span{ display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.field textarea{ resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"]{ border-color: #c63d2f; }
.err{ display: block; color: #c63d2f; font-size: .8rem; font-style: normal; min-height: 0; margin-top: 4px; }
.err:empty{ display: none; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--short{ max-width: 160px; }
.summary{ list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; font-size: .9rem; }
.summary li{ display: flex; justify-content: space-between; gap: 12px; }
.summary b{ white-space: nowrap; }
.done{ text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.done .btn{ margin-top: 10px; min-width: 240px; }
.done-icon{ width: 78px; height: 78px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; margin-bottom: 12px; }
.done h3{ font-size: 1.5rem; }
.done p{ color: var(--muted); max-width: 32ch; }
.done b{ color: var(--forest); }
body.drawer-open{ overflow: hidden; }

/* ---------- page hero (sub pages) ---------- */
.page-hero{ position: relative; color: var(--white); padding: 150px 0 70px; background: linear-gradient(100deg, rgba(20,42,27,.97), rgba(20,42,27,.82)), url("../assets/img/soil-seedlings.jpg") center 35% / cover no-repeat; }
.page-hero--guide{ background-image: linear-gradient(100deg, rgba(17,26,19,.96), rgba(17,26,19,.72)), url("../assets/img/hands-seedling.jpg"); background-position: center, right 20%; background-size: cover, cover; }
.page-hero--b2b{ background-image: linear-gradient(100deg, rgba(20,42,27,.97), rgba(20,42,27,.78)), url("../assets/img/palm-fruit.jpg"); background-position: center, right center; background-size: cover, cover; }
.page-hero h1{ font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; max-width: 18em; }
.page-lead{ font-size: 1.1rem; color: rgba(255,255,255,.84); max-width: 38em; margin: 0; }
.subnav{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.subnav a{ padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
.subnav a:hover{ background: var(--lime); border-color: var(--lime); color: var(--forest); }

/* ---------- home: featured product + learn cards ---------- */
.feature{ background: var(--cream); }
.feature-card{ display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--white); border-radius: 28px; padding: clamp(18px, 3vw, 40px); box-shadow: var(--shadow); }
.feature-media{ border-radius: 22px; background: radial-gradient(circle at 50% 42%, #f4fbdc 0%, #e3edc4 55%, #cfe0a6 100%); padding: 6% 12%; }
.feature-media img{ filter: drop-shadow(0 18px 22px rgba(31,61,40,.28)); }
.feature-body h2{ margin-bottom: .3em; }
.learn{ background: var(--sand); }
.learn-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.learn-card{ display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.learn-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf-2); }
.learn-card svg{ color: var(--leaf); margin-bottom: 14px; }
.learn-card p{ color: var(--muted); font-size: .93rem; }
.learn-more{ margin-top: auto; font-weight: 700; color: var(--forest); font-size: .9rem; }

/* ---------- B2C limit / B2B notices ---------- */
.b2b-notice{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff6dc; border: 1px solid #f0d68a; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.b2b-notice p{ margin: 0; flex: 1 1 220px; font-size: .9rem; font-weight: 600; color: #6b4f05; }
.b2b-notice[hidden]{ display: none; }
.calc-over{ color: #8a5a00; font-weight: 700; font-size: .92rem; }
.btn:disabled{ opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.pay-chips{ margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.pay-chips::before{ content: "🔒 "; }
.b2b-banner{ display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--forest); color: var(--white); text-decoration: none; }
.b2b-banner b{ display: block; font-size: 1.2rem; }
.b2b-banner span span{ color: rgba(255,255,255,.75); }
.cost-cta{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- B2B page ---------- */
.b2b{ background: var(--cream); }
.b2b-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.why-list{ list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.why-list li{ display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.why-list h3{ margin-bottom: .25em; font-size: 1.05rem; }
.why-list p{ margin: 0; color: var(--muted); font-size: .93rem; }
.why-no{ flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--forest); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.b2b-photo{ margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b2b-photo img{ border-radius: var(--radius); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.b2b-form{ background: var(--white); border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.b2b-form > p{ color: var(--muted); }
.b2b-form select, .field select{ width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.b2b-form .btn-block{ margin-top: 8px; }

/* footer links */
.footer-links{ display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin: 4px 0 16px; }
.footer-links a{ color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-links a:hover{ color: var(--lime); }

/* payment states */
.pay-error{ background: #fdecea; color: #a12c1f; border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 600; margin: 0 0 10px; }
.pay-error[hidden]{ display: none; }
#orderWa{ margin-top: 8px; }
#orderWa[hidden]{ display: none; }
.is-pending .done-icon{ background: #fff0c2; color: #8a5a00; }
.toast--warn{ background: #6b4f05; }
.toast--warn::before{ content: "! "; color: #ffd76a; }

/* ==========================================================================
   MOTION (driven by js/motion.js)
   ========================================================================== */

/* page-to-page transition (Chrome / Edge; other browsers just navigate) */
@view-transition{ navigation: auto; }
.site-header{ view-transition-name: site-header; }
::view-transition-old(root){ animation: vtOut .3s var(--ease) both; }
::view-transition-new(root){ animation: vtIn .55s var(--ease) both; }
@keyframes vtOut{ to{ opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn{ from{ opacity: 0; transform: translateY(18px); } }

/* scroll progress (inside the fixed header) */
.scroll-progress{ position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.scroll-progress span{ display: block; height: 100%; background: linear-gradient(90deg, var(--leaf-2), var(--lime)); transform-origin: left; transform: scaleX(0); }

/* pollen particles */
.pollen{ position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-inner, .page-hero > .wrap{ position: relative; z-index: 1; }
.page-hero{ overflow: hidden; }
.hero-bg{ transform: scale(1.08); will-change: transform; }
.cost-bg{ inset: -12% 0; will-change: transform; }

/* headline: words slide up one by one */
.hero h1 .w, .page-hero h1 .w{ display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .w > span, .page-hero h1 .w > span{ display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + .05s); }
.split-static .w > span{ animation: none !important; transform: none !important; }
@keyframes wordUp{ to{ transform: none; } }

/* hero product: floats, tilts toward the pointer, glow breathes */
.hero-product img{ transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.3,1); animation: bob 5s ease-in-out infinite; }
@keyframes bob{ 50%{ translate: 0 -14px; } }
.hero-glow{ animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe{ 50%{ opacity: .6; transform: scale(1.08); } }

/* reveal directions + staggered groups */
.js .reveal[data-reveal="left"]{ transform: translateX(-44px); }
.js .reveal[data-reveal="right"]{ transform: translateX(44px); }
.js .reveal[data-reveal="zoom"]{ transform: scale(.92); }
.js .reveal.is-in[data-reveal]{ transform: none; }
.js .stagger:not(.st-in) > *{ opacity: 0; }
.js .stagger.st-in > *{ animation: stIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms); }
@keyframes stIn{ from{ opacity: 0; translate: 0 18px; } to{ opacity: 1; translate: 0 0; } }
.stagger > :nth-child(2){ --i: 1; } .stagger > :nth-child(3){ --i: 2; } .stagger > :nth-child(4){ --i: 3; }
.stagger > :nth-child(5){ --i: 4; } .stagger > :nth-child(6){ --i: 5; } .stagger > :nth-child(7){ --i: 6; }
.stagger > :nth-child(8){ --i: 7; } .stagger > :nth-child(n+9){ --i: 8; }

/* button shine */
.btn-primary, .btn-lime, .btn-wa{ position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-lime::after, .btn-wa::after{ content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after, .btn-lime:hover::after, .btn-wa:hover::after{ left: 130%; }

/* small hover delights */
.learn-card:hover svg{ animation: wiggle .7s var(--ease); }
@keyframes wiggle{ 25%{ transform: rotate(-12deg) scale(1.12); } 60%{ transform: rotate(8deg) scale(1.05); } }
.fn{ transition: transform .3s var(--ease), background-color .3s; }
.fn:hover{ transform: translateY(-4px); background: rgba(255,255,255,.1); }
.fn:last-child:hover{ background: var(--lime-2); }
.cost-card{ transition: transform .3s var(--ease), border-color .3s; }
.cost-card:hover{ transform: translateY(-6px); border-color: var(--lime); }
.wa-float::before{ content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 3s ease-out infinite; }
@keyframes ring{ 0%{ transform: scale(1); opacity: .8; } 70%, 100%{ transform: scale(1.7); opacity: 0; } }
.fly-bag{ position: fixed; z-index: 95; width: 70px; height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }

/* keyword marquee */
.marquee{ overflow: hidden; background: var(--lime); color: var(--forest); padding: 15px 0; border-block: 2px solid var(--forest); }
.marquee-track{ display: flex; width: max-content; align-items: center; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee span{ font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.35rem); white-space: nowrap; padding: 0 22px; letter-spacing: -.01em; }
.marquee i{ flex: none; width: 16px; height: 16px; background: var(--forest); border-radius: 0 100% 0 100%; transform: rotate(-20deg); }
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* before / after soil slider */
.compare{ --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); user-select: none; }
.compare img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before{ position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before img{ filter: sepia(.45) saturate(.85) contrast(1.05); }
.compare-line{ position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 14px rgba(0,0,0,.45); pointer-events: none; }
.compare-knob{ position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.compare:hover .compare-knob{ transform: scale(1.1); }
.compare-range{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within{ outline: 3px solid var(--lime); outline-offset: 4px; }
.compare-tag{ position: absolute; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; pointer-events: none; max-width: 46%; line-height: 1.3; }
.compare-tag--before{ top: 14px; left: 14px; background: rgba(40,26,14,.75); color: #f3e3b5; }
.compare-tag--after{ bottom: 14px; right: 14px; background: var(--lime); color: var(--forest); }

/* soil diagram */
.soil-figure{ margin: 0; background: var(--white); border-radius: 24px; padding: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.soil-svg{ display: block; width: 100%; height: auto; border-radius: 16px; }
.soil-cap{ display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding: 10px 6px 2px; }
.soil-replay{ font-weight: 700; color: var(--forest); }
.soil-svg .sky{ fill: #e9f1d3; transition: fill 1.2s; }
.soil-svg .sun{ fill: #ffd76a; opacity: .5; transition: opacity 1s; }
.soil-svg .sun-glow{ opacity: 0; transition: opacity 1s; }
.soil-svg .layer-top{ fill: #6a4a33; transition: fill 1.2s; }
.soil-svg .layer-hard{ fill: #8b6b4c; transition: fill 1.2s; }
.soil-svg .layer-deep{ fill: #ad8a60; }
.soil-svg .hatch{ transition: opacity 1.2s; }
.soil-svg .soil-label{ fill: rgba(255,255,255,.9); font: 700 13px var(--font); }
.soil-svg .pores circle{ fill: rgba(205,235,255,.75); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease); }
.soil-svg .pores circle:nth-child(odd){ transition-delay: .15s; }
.soil-svg .pores circle:nth-child(3n){ transition-delay: .3s; }
.soil-svg .drops circle{ fill: #6fbfee; opacity: 0; }
.soil-svg .roots path{ fill: none; stroke: #ecdcb8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .7; transition: stroke-dashoffset 1.6s var(--ease); }
.soil-svg .roots path:first-child{ stroke-width: 4; }
.soil-svg .nut circle{ fill: #e8bf45; transform-box: fill-box; transform-origin: center; transition: fill .6s; }
.soil-svg .nut text{ font: 800 10px var(--font); fill: #4a3000; text-anchor: middle; }
.soil-svg .lock{ fill: none; stroke: #24180f; stroke-width: 2.2; transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease), opacity .6s; }
.soil-svg .flow circle{ fill: #dcf98a; opacity: 0; filter: drop-shadow(0 0 4px rgba(220,249,138,.9)); }
.soil-svg .plant{ transform-box: view-box; transform-origin: 330px 113px; transform: scale(.72) rotate(-7deg); transition: transform 1.4s var(--ease); }
.soil-svg .stem{ fill: none; stroke: #8f8a3c; stroke-width: 5; stroke-linecap: round; transition: stroke 1s; }
.soil-svg .leaf{ fill: #bdb24c; transition: fill 1s; }
.soil-svg .n-air{ font: 800 13px var(--font); fill: #3f7aa3; opacity: 0; }
/* stage 1+: soil opens, roots reach down, air & water get in */
.soil-svg:not([data-stage="0"]) .layer-top{ fill: #4e3424; }
.soil-svg:not([data-stage="0"]) .hatch{ opacity: .4; }
.soil-svg:not([data-stage="0"]) .pores circle{ transform: scale(1); }
.soil-svg:not([data-stage="0"]) .roots path{ stroke-dashoffset: 0; }
.soil-svg:not([data-stage="0"]) .plant{ transform: scale(.8) rotate(-4deg); }
.soil-svg:not([data-stage="0"]) .drops circle{ animation: drip 1.8s ease-in infinite; }
.soil-svg .drops circle:nth-child(2){ animation-delay: .45s !important; } .soil-svg .drops circle:nth-child(3){ animation-delay: .9s !important; } .soil-svg .drops circle:nth-child(4){ animation-delay: 1.3s !important; }
.soil-svg:not([data-stage="0"]) .n-air{ animation: airIn 2.6s ease-in-out infinite; }
@keyframes drip{ 0%{ opacity: 0; transform: translateY(0); } 15%{ opacity: 1; } 100%{ opacity: 0; transform: translateY(120px); } }
@keyframes airIn{ 0%{ opacity: 0; transform: translateY(0); } 30%{ opacity: .95; } 100%{ opacity: 0; transform: translateY(70px); } }
/* stage 2+: phosphate is unlocked */
.soil-svg[data-stage="2"] .hatch, .soil-svg[data-stage="3"] .hatch{ opacity: .12; }
.soil-svg[data-stage="2"] .layer-hard, .soil-svg[data-stage="3"] .layer-hard{ fill: #7a5a3e; }
.soil-svg[data-stage="2"] .lock, .soil-svg[data-stage="3"] .lock{ opacity: 0; transform: scale(1.8) rotate(25deg); }
.soil-svg[data-stage="2"] .nut circle, .soil-svg[data-stage="3"] .nut circle{ fill: #ffe27a; animation: glow 1.4s ease-in-out infinite; }
.soil-svg[data-stage="2"] .leaf{ fill: #9cb84a; }
@keyframes glow{ 50%{ transform: scale(1.25); } }
/* stage 3: nutrients flow up the roots, plant is lush */
.soil-svg[data-stage="3"] .flow circle{ animation: flowUp 2.2s linear infinite; animation-delay: var(--d); }
@keyframes flowUp{ 0%{ offset-distance: 0%; opacity: 0; } 12%{ opacity: 1; } 85%{ opacity: 1; } 100%{ offset-distance: 100%; opacity: 0; } }
.soil-svg[data-stage="3"] .plant{ transform: none; }
.soil-svg[data-stage="3"] .stem{ stroke: #3d9a3f; }
.soil-svg[data-stage="3"] .leaf{ fill: #57b947; }
.soil-svg[data-stage="3"] .sky{ fill: #e2f4bf; }
.soil-svg[data-stage="3"] .sun{ opacity: 1; }
.soil-svg[data-stage="3"] .sun-glow{ opacity: 1; animation: breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* the three steps are buttons that drive the diagram */
.steps{ position: relative; }
.steps::before{ content: ""; position: absolute; top: 38px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--leaf) 0 8px, transparent 8px 16px); opacity: .35; }
.step-card{ padding: 0; position: relative; overflow: hidden; transition: background-color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.step-btn{ display: block; width: 100%; height: 100%; text-align: left; padding: 24px; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.step-t{ display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; transition: color .35s; }
.step-d{ display: block; color: var(--muted); transition: color .35s; }
.step-card:hover{ border-color: var(--leaf-2); }
.step-card.is-active{ background: var(--forest); border-color: var(--forest); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card.is-active .step-t, .step-card.is-active .step-no{ color: var(--lime); }
.step-card.is-active .step-d{ color: rgba(255,255,255,.82); }
.step-card.is-active::after{ content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform-origin: left; animation: stepBar 2.6s linear both; }
@keyframes stepBar{ from{ transform: scaleX(0); } }

/* ==========================================================================
   STORY · WHY NOT · TSP DEMO · ENERGY (home)
   ========================================================================== */

/* story timeline with a soil column that follows along */
.story{ background: var(--white); }
.story{ padding-bottom: 0; }
.story-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* pinned scrolly-telling: --story-units must match STORY_UNITS in motion.js */
.js .story-pin:not(.no-pin){ --story-units: 6.8; position: relative; height: calc(var(--story-units) * 55vh + 100vh); }
.js .story-pin:not(.no-pin) .story-stage{ position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); display: flex; align-items: center; overflow: hidden; }
.story-stage .story-grid{ width: min(1180px, 100% - 32px); }
.story-visual{ min-width: 0; }
.story-card{ background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.story-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; margin-bottom: 8px; }
.story-year{ font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--forest); letter-spacing: -.02em; }
.story-chip{ padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: #f6d5d0; color: #a12c1f; animation: chipIn .4s var(--ease); }
.story-chip.is-hope{ background: var(--lime); color: var(--forest); }
@keyframes chipIn{ from{ transform: scale(.6); opacity: 0; } }
.story-svg{ display: block; width: 100%; height: auto; max-height: 420px; }
.st-sky{ fill: #e9f1d3; }
.st-soil{ fill: #6a4a33; transition: fill 1s; }
.st-residue{ transform-box: fill-box; transform-origin: top; transform: scaleY(.06); transition: transform 1.1s var(--ease), opacity 1s; opacity: .95; }
.st-cracks path{ fill: none; stroke: #2b1d14; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .8s; }
.st-nuts{ transition: transform 1.2s var(--ease); }
.st-nuts circle{ fill: #f2c94c; transition: fill .8s; }
.st-glow{ fill: var(--lime); opacity: 0; transition: opacity 1s; }
.st-plant{ transform-box: view-box; transform-origin: 150px 88px; transition: transform 1.2s var(--ease); }
.st-stem{ fill: none; stroke: #3d9a3f; stroke-width: 5; stroke-linecap: round; transition: stroke 1s; }
.st-leaf{ fill: #57b947; transition: fill 1s; }
.story-svg[data-stage="1"] .st-plant{ transform: scale(.96); }
.story-svg[data-stage="2"] .st-plant{ transform: scale(.88) rotate(-4deg); }
.story-svg[data-stage="2"] .st-leaf{ fill: #8fb748; }
.story-svg[data-stage="3"] .st-plant{ transform: scale(.78) rotate(-9deg); }
.story-svg[data-stage="3"] .st-leaf{ fill: #b9b04a; }
.story-svg[data-stage="3"] .st-stem, .story-svg[data-stage="4"] .st-stem{ stroke: #8f8a3c; }
.story-svg[data-stage="3"] .st-soil{ fill: #5d4a3c; }
.story-svg[data-stage="4"] .st-plant{ transform: scale(.62) rotate(-16deg); }
.story-svg[data-stage="4"] .st-leaf{ fill: #a08655; }
.story-svg[data-stage="4"] .st-soil{ fill: #57524c; }
.story-svg[data-stage="3"] .st-cracks path, .story-svg[data-stage="4"] .st-cracks path{ opacity: .75; }
.story-svg[data-stage="4"] .st-nuts circle{ fill: #b9a25a; }
.story-svg[data-stage="5"] .st-soil{ fill: #4b3324; }
.story-svg[data-stage="5"] .st-residue{ opacity: .35; }
.story-svg[data-stage="5"] .st-nuts circle{ fill: #ffe27a; }
.story-svg[data-stage="5"] .st-glow{ opacity: .12; animation: breathe 2.6s ease-in-out infinite; }
.story-meters{ display: grid; gap: 10px; margin-top: 12px; }
.meter{ display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.meter i{ height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.meter b{ display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #b9a25a, #8a5a3c); transition: width 1s var(--ease); }
.story-meters:not(.on) .meter b{ width: 0 !important; }
.story-text{ min-width: 0; }
.story-progress{ display: flex; gap: 6px; margin-bottom: 26px; }
.story-seg{ flex: 1; height: 22px; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.story-seg i{ display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.story-seg i::after{ content: ""; position: absolute; inset: 0; background: var(--leaf); transform-origin: left; transform: scaleX(var(--f, 0)); }
.story-seg:last-child i::after{ background: var(--lime-2); }
.story-seg:hover i{ background: #cfd8bf; }
.story-steps{ list-style: none; margin: 0; padding: 0; position: relative; }
.story-y{ font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.story-step h3{ font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 6px 0 10px; }
.story-step p{ color: var(--muted); margin: 0; max-width: 34em; font-size: 1.08rem; }
.story-step:nth-child(5) .story-y, .story-step:nth-child(5) h3{ color: #a12c1f; }
.story-step--hope{ background: var(--forest); color: var(--white); border-radius: 20px; padding: 26px 24px; }
.story-step--hope .story-y{ color: var(--lime); }
.story-step--hope p{ color: rgba(255,255,255,.85); }
.story-dot{ display: none; }
/* pinned: steps sit on top of each other, only the active one shows */
.js .story-pin:not(.no-pin) .story-steps{ display: grid; }
.js .story-pin:not(.no-pin) .story-step{ grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.js .story-pin:not(.no-pin) .story-step.is-active{ opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .story-pin:not(.no-pin) .story-step.is-past{ transform: translateY(-26px); }
.story-hint{ display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 0; font-size: .82rem; font-weight: 700; color: var(--muted); transition: opacity .4s; }
.story-hint svg{ animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge{ 50%{ transform: translateY(4px); } }
.story-hint.is-gone{ opacity: 0; }
/* not pinned (reduced motion / no JS): a plain list */
.story-pin.no-pin .story-stage{ padding: 0 0 clamp(64px, 9vw, 120px); }
.story-pin.no-pin .story-progress, .story-pin.no-pin .story-hint{ display: none; }
.story-pin.no-pin .story-steps{ display: grid; gap: 22px; }

/* humic acid vs bacteria vs Agro Catalyst */
.whynot{ background: var(--sand); }
.vs{ background: var(--white); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.vs-table{ width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td{ padding: 18px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs-table thead th{ border-top: 0; font-size: .95rem; background: var(--cream); }
.vs-table thead th.vs-ac{ background: var(--forest); color: var(--lime); font-size: 1.05rem; }
.vs-table tbody th{ font-weight: 700; width: 24%; }
.vs-table td.vs-ac{ background: #f2fadc; font-weight: 700; color: var(--forest); }
.vs-icon{ display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; font-size: .8rem; font-weight: 800; vertical-align: -6px; }
.vs-yes .vs-icon{ background: var(--leaf); color: var(--white); }
.vs-no .vs-icon{ background: #f6d5d0; color: #a12c1f; }
.vs-na .vs-icon{ background: var(--sand); color: var(--muted); }
.vs-no, .vs-na{ color: var(--muted); }

/* TSP 46 demo */
.demo{ background: radial-gradient(circle at 20% 0%, #24402c, #13221a 60%); color: var(--white); }
.demo .section-lead{ color: rgba(255,255,255,.78); }
.demo-grid{ display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.lab{ background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 18px 18px 20px; }
.lab-svg{ display: block; width: 100%; height: auto; }
.lab .cup{ fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.75); stroke-width: 3; stroke-linejoin: round; }
.lab .water{ fill: rgba(140,195,230,.3); }
.lab .milk{ opacity: 0; transition: opacity 1.4s ease .2s; }
.lab:not([data-state="idle"]) .milk{ opacity: .93; }
.lab .granules polygon{ fill: #7d858b; stroke: #50565b; stroke-width: .8; transform-box: fill-box; transform-origin: center; }
.lab[data-state="break"] #granR polygon, .lab[data-state="done"] #granR polygon{ animation: shatter 1.5s var(--ease) forwards; animation-delay: var(--delay); }
@keyframes shatter{
  0%{ transform: none; opacity: 1; }
  22%{ transform: translate(var(--tx), var(--ty)) rotate(calc(var(--rot) * .4)); opacity: 1; }
  100%{ transform: translate(calc(var(--tx) * 1.8), calc(var(--ty) * 2.4)) rotate(var(--rot)) scale(0); opacity: 0; }
}
.lab #bubbles circle{ fill: rgba(255,255,255,.9); transform-box: fill-box; animation: bub 1.5s ease-out forwards; }
@keyframes bub{ to{ transform: translateY(var(--rise)); opacity: 0; } }
.lab .stream{ fill: #f2f4ec; transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform .45s ease .25s; }
.lab[data-state="pour"] .stream, .lab[data-state="break"] .stream{ transform: scaleY(1); }
.lab .beaker{ transform-box: view-box; transform-origin: 400px 72px; transition: transform .6s var(--ease); }
.lab[data-state="pour"] .beaker, .lab[data-state="break"] .beaker{ transform: rotate(-58deg); }
.lab .beaker-glass{ fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.8); stroke-width: 2.5; }
.lab .beaker-milk{ fill: #f2f4ec; transition: opacity 1.6s ease .6s; }
.lab[data-state="break"] .beaker-milk, .lab[data-state="done"] .beaker-milk{ opacity: 0; }
.lab-labels{ display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 10px; margin-top: 6px; }
.lab-labels b{ display: block; font-size: .95rem; }
.lab-state{ display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); transition: background-color .4s, color .4s; }
.lab[data-state="done"] .lab-state--ac{ background: var(--lime); color: var(--forest); animation: chipIn .4s var(--ease); }
.lab-controls{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.lab-timer{ font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); font-weight: 600; }
.lab-timer b{ font-size: 1.6rem; color: var(--lime); }
.lab[data-state="pour"] .btn, .lab[data-state="break"] .btn{ opacity: .5; pointer-events: none; }
.demo-video{ margin: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 12px; }
.demo-video video{ display: block; width: 100%; height: auto; aspect-ratio: 9/16; max-height: 560px; object-fit: cover; border-radius: 16px; background: #000; }
.demo-video figcaption{ padding: 12px 4px 2px; font-size: .88rem; color: rgba(255,255,255,.75); }
.demo-video figcaption b{ display: block; color: var(--white); font-size: .95rem; }
.demo-link{ display: inline-block; margin-top: 24px; font-weight: 700; color: var(--lime); text-decoration: none; border-bottom: 2px solid currentColor; }
.demo-link--dark{ color: var(--forest); margin-top: 6px; }

/* energy from residue */
.energy{ background: var(--cream); }
.energy-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.bars{ background: var(--white); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.bars-need{ font-weight: 700; color: var(--muted); font-size: .9rem; }
.bar-row{ margin: 16px 0; }
.bar-label{ display: block; font-weight: 800; margin-bottom: 6px; }
.bar{ display: flex; height: 48px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.seg{ width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: width 1.2s var(--ease); }
.bars.on .seg{ width: var(--w); }
.bars.on .seg + .seg{ transition-delay: .35s; }
.bars.on .bar-row + .bar-row .seg{ transition-delay: .6s; }
.bars.on .bar-row + .bar-row .seg + .seg{ transition-delay: .95s; }
.seg em{ font-style: normal; font-weight: 800; font-size: .9rem; color: var(--white); white-space: nowrap; }
.seg-new{ background: var(--forest-2); }
.seg-waste{ background: repeating-linear-gradient(-45deg, #9a958c 0 6px, #7d786f 6px 12px); }
.seg-waste em{ font-size: .7rem; }
.seg-res{ background: linear-gradient(90deg, #e8bf45, #f5d77a); }
.seg-res em{ color: #4a3000; }
.legend{ list-style: none; padding: 0; margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); }
.legend li{ display: flex; align-items: center; gap: 8px; }
.legend i{ width: 14px; height: 14px; border-radius: 4px; flex: none; }

/* savings simulator (guide page) */
.sim{ background: var(--white); }
.sim-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sim-form{ background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.sim-form select{ width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.hint{ display: block; margin-top: 5px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.sim-cut > span:first-child{ display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.sim-cut b{ color: var(--forest); font-size: 1.1rem; }
.sim-cut input[type="range"]{ width: 100%; accent-color: var(--leaf); padding: 0; border: 0; }
.sim-scale{ display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.sim-result{ background: var(--forest); color: var(--white); border-radius: 22px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); position: sticky; top: 96px; }
.sim-result .small-note{ color: rgba(255,255,255,.65); margin: 14px 0 0; }
.sim-empty{ color: rgba(255,255,255,.85); font-weight: 600; }
.sim-save-label{ margin: 0; color: rgba(255,255,255,.75); font-weight: 600; }
.sim-save{ margin: 2px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sim-save b{ font-size: clamp(2rem, 4.4vw, 2.8rem); color: var(--lime); letter-spacing: -.02em; line-height: 1.1; }
.sim-save span{ color: rgba(255,255,255,.75); font-weight: 600; }
.sim-pct{ display: inline-block; margin: 8px 0 4px; padding: 3px 12px; border-radius: 999px; background: var(--lime); color: var(--forest); font-weight: 800; }
.sim-pct:empty{ display: none; }
.sim-bars .bar-label{ display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85); }
.sim-bars .bar-label b{ color: var(--white); white-space: nowrap; }
.sim-bars .bar{ background: rgba(255,255,255,.1); height: 30px; }
.sim-bars .seg{ transition: width .6s var(--ease); }
.sim-bars .seg-new{ background: #7fa38a; }
.sim-bars .legend{ color: rgba(255,255,255,.75); margin: 12px 0 4px; }
.sim-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.sim-stats div{ background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; }
.sim-stats dt{ font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 600; }
.sim-stats dd{ margin: 2px 0 0; color: rgba(255,255,255,.8); font-size: .85rem; }
.sim-stats dd b{ font-size: 1.3rem; color: var(--white); }
.sim-warn{ background: #fff6dc; color: #6b4f05; border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 600; }
.sim-result .btn-primary{ background: var(--lime); color: var(--forest); }
.sim-result .btn-primary:hover{ background: var(--lime-2); }
.energy .btn{ margin-top: 6px; }

/* ---------- language switch ---------- */
.lang-toggle{ position: relative; }
.lang-thumb{ position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--lime); transform: translateX(calc(var(--li, 0) * 100%)); transition: transform .45s var(--ease); }
.lang-btn{ position: relative; z-index: 1; width: 36px; padding: 5px 0; text-align: center; transition: color .3s; }
.lang-btn[aria-pressed="true"]{ background: none; }
/* new language grows out of the button that was pressed (View Transitions) */
html.vt-lang::view-transition-old(root), html.vt-lang::view-transition-old(site-header){ animation: langOld .7s ease both; }
html.vt-lang::view-transition-new(root), html.vt-lang::view-transition-new(site-header){ animation: langReveal .75s cubic-bezier(.65,0,.25,1) both; }
@keyframes langReveal{
  from{ clip-path: circle(0 at var(--lx, 50%) var(--ly, 0)); }
  to{ clip-path: circle(150vmax at var(--lx, 50%) var(--ly, 0)); }
}
@keyframes langOld{ to{ opacity: .5; filter: blur(2px); } }
/* fallback: quick fade for browsers without View Transitions */
html.lang-out main, html.lang-out .main-nav, html.lang-out .site-footer{ opacity: 0; transition: opacity .18s ease; }
html.lang-in main, html.lang-in .main-nav, html.lang-in .site-footer{ animation: langIn .4s var(--ease); }
@keyframes langIn{ from{ opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px){
  .main-nav a{ padding: 8px 9px; font-size: .9rem; }
  .fn-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px){
  .nav-toggle{ display: block; }
  .main-nav{ position: fixed; inset: 76px 0 auto; max-height: calc(100svh - 76px); overflow-y: auto; background: var(--white); padding: 8px 16px 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; margin: 0; }
  .nav-open .main-nav{ opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul{ flex-direction: column; gap: 0; }
  .main-nav > ul > li{ border-bottom: 1px solid var(--line); }
  .nav-top, .nav-dd-btn{ width: 100%; justify-content: space-between; color: var(--ink) !important; padding: 14px 8px; font-size: 1.02rem; border-radius: 0; box-shadow: none !important; }
  .nav-top:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn{ background: none !important; }
  .nav-dd-menu{ position: static; transform: none !important; min-width: 0; padding: 0 0 10px; box-shadow: none; border-radius: 0; display: none; opacity: 1; visibility: visible; }
  .nav-dd.is-open .nav-dd-menu{ display: block; }
  .lang-toggle{ margin-left: auto; }
  .nav-open .site-header{ background: var(--white); }
  .nav-open .site-header .brand-logo--light{ opacity: 0; }
  .nav-open .site-header .brand-logo--dark{ opacity: 1; }
  .nav-open .site-header .nav-toggle-bar::before, .nav-open .site-header .nav-toggle-bar::after{ background: var(--ink); }
  .nav-open .site-header .lang-btn{ color: var(--ink); }

  .hero-inner, .problem-grid, .product, .shop-extra, .benefits-grid, .how-grid, .sawit, .about-grid, .contact-grid, .feature-card, .b2b-grid{ grid-template-columns: 1fr; }
  .learn-grid{ grid-template-columns: 1fr 1fr; }
  .steps::before{ display: none; }
  .story-grid, .demo-grid, .energy-grid, .sim-grid{ grid-template-columns: 1fr; }
  .sim-result{ position: static; }
  .story-grid{ gap: 16px; align-content: center; }
  .story-card{ display: grid; grid-template-columns: 120px 1fr; gap: 4px 14px; align-items: center; padding: 12px 14px; }
  .story-top{ grid-column: 2; grid-row: 1; margin: 0; flex-wrap: wrap; min-height: 0; }
  .story-svg{ grid-column: 1; grid-row: 1 / span 2; max-height: 160px; }
  .story-meters{ grid-column: 2; margin: 0; }
  .meter{ grid-template-columns: 1fr; gap: 3px; }
  .story-progress{ margin-bottom: 14px; }
  .story-step p{ font-size: 1rem; }
  .story-hint{ margin-top: 14px; }
  .demo-video{ max-width: 380px; justify-self: center; width: 100%; }
  .feature-media{ max-width: 360px; justify-self: center; width: 100%; }
  .page-hero{ padding: 120px 0 50px; }
  .hero{ padding-top: 100px; }
  .hero-bg{ background: linear-gradient(180deg, rgba(20,42,27,.94) 0%, rgba(20,42,27,.86) 60%, rgba(20,42,27,.7) 100%), url("../assets/img/soil-seedlings.jpg") 70% center / cover no-repeat; }
  .hero-product{ width: min(300px, 80%); }
  .benefits-photo{ max-height: 300px; }
  .product-media{ max-width: 460px; justify-self: center; width: 100%; }
  .benefits-photo img{ object-position: center 40%; }
  .cost-grid, .steps{ grid-template-columns: 1fr; }
  .how-figure figcaption{ right: 10px; }
  .about-photos{ max-width: 520px; }
}
@media (max-width: 600px){
  body{ font-size: 15px; }
  .header-inner{ gap: 8px; height: 68px; }
  .main-nav{ top: 68px; }
  html{ scroll-padding-top: 74px; }
  .brand{ width: 104px; height: 44px; }
  .lang-btn{ width: 30px; padding: 5px 0; font-size: .74rem; }
  .cart-btn{ width: 42px; height: 42px; }
  .hero-stats{ grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats div:last-child{ grid-column: span 2; }
  .hero-price{ left: -8px; }
  .hero-actions .btn{ flex: 1 1 auto; }
  .fn-grid, .benefit-cols, .calc-fields, .vm, .field-row, .learn-grid{ grid-template-columns: 1fr; }
  .story-year{ font-size: 1.15rem; }
  .js .story-pin:not(.no-pin) .story-stage{ top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); }
  .story-step h3{ font-size: 1.35rem; }
  .story-step--hope{ padding: 18px; }
  .vs-table thead{ display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td{ display: block; width: 100% !important; }
  .vs-table tr{ padding: 14px 16px; border-top: 1px solid var(--line); }
  .vs-table tr:first-child{ border-top: 0; }
  .vs-table th, .vs-table td{ border: 0; padding: 5px 0; }
  .vs-table tbody th{ font-size: 1.05rem; margin-bottom: 4px; }
  .vs-table td::before{ content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  .vs-table td.vs-ac{ background: #f2fadc; border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
  .seg-waste em{ display: none; }
  .lab{ padding: 12px 12px 14px; }
  .page-hero{ padding: 104px 0 40px; }
  .buy-actions .btn{ flex-basis: 100%; }
  .usage-table thead{ display: none; }
  .usage-table, .usage-table tbody, .usage-table tr, .usage-table td{ display: block; width: 100% !important; }
  .usage-table tr{ padding: 12px 16px; border-top: 1px solid var(--line); }
  .usage-table tr:first-child{ border-top: 0; }
  .usage-table td{ border: 0; padding: 3px 0; background: none !important; }
  .usage-table td::before{ content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
  .usage-table td:first-child::before{ display: none; }
  .sawit-photos{ grid-template-columns: 1fr 1fr; }
  .sawit-photos .ph-tall{ grid-row: auto; grid-column: span 2; max-height: 260px; }
  .cost-card li{ font-size: .85rem; }
  .how-figure figcaption{ width: 58%; }
  .wa-float{ width: 52px; height: 52px; right: 14px; bottom: 72px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  @view-transition{ navigation: none; }
  .marquee-track{ animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track > :nth-child(n+15){ display: none; }
  .wa-float::before, .pollen{ display: none; }
  .js .rise, .js .reveal{ opacity: 1; transform: none; }
  .js .hero-product.rise{ transform: rotate(3deg); }
}
