/* ==========================================================================
   Pan African Farms — site layer
   Sits on top of base.css (compiled utility layer).
   Palette: green #1B5E35 · green-dark #0F3D22 · green-light #2A7A4A
            gold #C9A24B · cream #FAFAF7
   ========================================================================== */

:root{
  --paf-green:#1B5E35;
  --paf-green-dark:#0F3D22;
  --paf-green-light:#2A7A4A;
  --paf-gold:#C9A24B;
  --paf-cream:#FAFAF7;
  --paf-border:#E8E6DF;
  --paf-muted:#6B6B63;
}

html{scroll-behavior:smooth}
body{background:var(--paf-cream)}

/* ---------- Header ---------------------------------------------------- */
.paf-header{transition:background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease}
.paf-header.is-solid{
  background:rgba(250,250,247,.92);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  box-shadow:0 1px 0 rgba(27,94,53,.08);
}
.paf-header.is-solid .paf-navlink{color:#4A5A4E}
.paf-header.is-solid .paf-navlink:hover,
.paf-header.is-solid .paf-navlink.is-active{color:var(--paf-green)}
.paf-header.is-solid .paf-wordmark{color:var(--paf-green)}
.paf-header.is-solid .paf-tagline{color:var(--paf-gold)}
.paf-header.is-solid .paf-burger{color:var(--paf-green)}
.paf-header.is-solid .paf-logo{filter:none}

.paf-logo{height:34px;width:auto;display:block;filter:brightness(0) invert(1)}
.paf-navlink{position:relative;transition:color .25s ease}
.paf-navlink::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;
  background:var(--paf-gold);transform:scaleX(0);transform-origin:left;
  transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.paf-navlink:hover::after,.paf-navlink.is-active::after{transform:scaleX(1)}

/* Mobile drawer */
.paf-drawer{
  position:fixed;inset:0;z-index:60;background:var(--paf-green-dark);
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;
}
.paf-drawer.open{opacity:1;visibility:visible}
.paf-drawer a{
  font-family:var(--font-serif),Georgia,serif;font-size:1.9rem;color:#fff;
  padding:.55rem 1rem;transition:color .25s ease;
}
.paf-drawer a:hover{color:var(--paf-gold)}
.paf-drawer-close{position:absolute;top:1.4rem;right:1.6rem;color:#fff;opacity:.75}

/* ---------- Reveal on scroll ------------------------------------------ */
.rv{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
.rv.vis{opacity:1;transform:none}
.rv-l{opacity:0;transform:translateX(-32px)}
.rv-r{opacity:0;transform:translateX(32px)}
.rv-l.vis,.rv-r.vis{opacity:1;transform:none}
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}
.d4{transition-delay:.32s}.d5{transition-delay:.40s}.d6{transition-delay:.48s}
@media (prefers-reduced-motion:reduce){
  .rv,.rv-l,.rv-r{opacity:1!important;transform:none!important;transition:none!important}
}

/* ---------- Marquee ---------------------------------------------------- */
.paf-marquee{overflow:hidden;border-top:1px solid var(--paf-border);border-bottom:1px solid var(--paf-border);padding:.9rem 0;background:#fff}
.paf-marquee-track{display:flex;gap:2rem;white-space:nowrap;animation:paf-marquee 46s linear infinite;will-change:transform}
@keyframes paf-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.paf-marquee span{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(27,94,53,.5);font-weight:500}
.paf-marquee span i{font-style:normal;margin-left:2rem;color:rgba(201,162,75,.45)}

/* ---------- Hero ------------------------------------------------------- */
.paf-hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;padding:8rem 0 5rem}
.paf-hero-media{position:absolute;inset:0;z-index:0}
.paf-hero-media img,.paf-hero-media video{width:100%;height:100%;object-fit:cover;display:block}
.paf-hero-scrim{
  position:absolute;inset:0;
  background:
    linear-gradient(to top, rgba(6,26,15,.94) 0%, rgba(9,34,20,.78) 38%, rgba(11,40,24,.55) 70%, rgba(11,40,24,.48) 100%),
    radial-gradient(120% 90% at 15% 90%, rgba(15,61,34,.72) 0%, rgba(15,61,34,0) 62%);
}
.paf-hero-grain{
  position:absolute;inset:0;opacity:.28;mix-blend-mode:overlay;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.14) .5px, transparent .5px);
  background-size:3px 3px;
}
.paf-scroll-cue{
  position:absolute;left:50%;bottom:1.75rem;transform:translateX(-50%);z-index:10;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  font-size:.62rem;letter-spacing:.28em;text-transform:uppercase;color:rgba(255,255,255,.55);
}
.paf-scroll-cue::after{content:"";width:1px;height:34px;background:linear-gradient(rgba(201,162,75,.9),transparent);animation:paf-cue 2.4s ease-in-out infinite}
@keyframes paf-cue{0%,100%{opacity:.25;transform:scaleY(.55)}50%{opacity:1;transform:scaleY(1)}}

/* Page hero (inner pages) */
.paf-pagehero{position:relative;background:var(--paf-green-dark);overflow:hidden;padding:9.5rem 0 4.5rem}
.paf-pagehero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(90% 120% at 82% 12%, rgba(42,122,74,.55) 0%, rgba(15,61,34,0) 60%);
}
.paf-pagehero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,162,75,.5),transparent);
}

/* ---------- Buttons ---------------------------------------------------- */
.paf-btn{
  display:inline-flex;align-items:center;gap:.55rem;padding:.85rem 1.6rem;border-radius:.375rem;
  font-size:.875rem;font-weight:500;line-height:1;transition:all .3s cubic-bezier(.16,1,.3,1);
}
.paf-btn-primary{background:var(--paf-green);color:#fff}
.paf-btn-primary:hover{background:var(--paf-green-light);transform:translateY(-1px);box-shadow:0 8px 20px -8px rgba(27,94,53,.55)}
.paf-btn-ghost{background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(6px)}
.paf-btn-ghost:hover{background:rgba(255,255,255,.24)}
.paf-btn-outline{border:1px solid var(--paf-green);color:var(--paf-green)}
.paf-btn-outline:hover{background:var(--paf-green);color:#fff}

/* ---------- Section furniture ------------------------------------------ */
.paf-eyebrow{font-size:.7rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--paf-gold)}
.paf-rule{height:1px;background:linear-gradient(90deg,rgba(201,162,75,.55),rgba(201,162,75,0))}
.paf-pill{
  display:inline-block;padding:.28rem .8rem;border-radius:9999px;
  font-size:.68rem;font-weight:500;letter-spacing:.09em;text-transform:uppercase;
  color:var(--paf-green);background:rgba(27,94,53,.09);
}

/* ---------- Product grid ------------------------------------------------ */
.paf-pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:1.4rem}
.paf-pcard{
  position:relative;display:flex;flex-direction:column;height:100%;text-align:left;
  background:#fff;border:1px solid var(--paf-border);border-radius:.75rem;overflow:hidden;
  cursor:pointer;transition:border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.paf-pcard:hover{border-color:rgba(27,94,53,.3);box-shadow:0 18px 40px -22px rgba(15,61,34,.42);transform:translateY(-3px)}
.paf-pcard:focus-visible{outline:2px solid var(--paf-green);outline-offset:3px}
.paf-pcard-media{
  position:relative;height:210px;display:flex;align-items:center;justify-content:center;padding:1.25rem;
  background:linear-gradient(160deg,#F4F6F2 0%,#EAEFE7 100%);
}
.paf-pcard-media img{max-height:100%;max-width:78%;width:auto;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(15,61,34,.16))}
.paf-pcard:hover .paf-pcard-media img{transform:scale(1.045)}
.paf-pcard-media img{transition:transform .5s cubic-bezier(.16,1,.3,1)}
.paf-pcard-code{position:absolute;top:.85rem;left:.95rem;font-family:var(--font-mono),monospace;font-size:.62rem;letter-spacing:.12em;color:rgba(27,94,53,.45)}
.paf-pcard-tag{
  position:absolute;top:.75rem;right:.75rem;padding:.22rem .6rem;border-radius:9999px;
  font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600;
  background:rgba(255,255,255,.9);color:var(--paf-green);border:1px solid rgba(27,94,53,.14);
}
.paf-pcard-tag.reg{background:var(--paf-green);color:#fff;border-color:var(--paf-green)}
.paf-pcard-body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.paf-pcard-name{font-family:var(--font-serif),Georgia,serif;font-size:1.35rem;color:var(--paf-green);line-height:1.15}
.paf-pcard-sub{font-size:.8rem;color:var(--paf-gold);margin-top:.15rem}
.paf-pcard-blurb{font-size:.82rem;color:var(--paf-muted);line-height:1.62;margin-top:.7rem;flex:1}
.paf-pcard-more{
  margin-top:1rem;display:inline-flex;align-items:center;gap:.4rem;
  font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--paf-green);font-weight:600;
}
.paf-pcard-more svg{transition:transform .3s ease}
.paf-pcard:hover .paf-pcard-more svg{transform:translateX(3px)}

/* Featured product banner */
.paf-featured{
  display:grid;grid-template-columns:1fr;gap:2.5rem;align-items:center;
  background:var(--paf-green-dark);border-radius:1rem;overflow:hidden;padding:2.5rem;position:relative;
}
.paf-featured::before{content:"";position:absolute;inset:0;background:radial-gradient(80% 120% at 88% 8%, rgba(42,122,74,.55), transparent 62%)}
.paf-featured>*{position:relative;z-index:1}
@media(min-width:900px){.paf-featured{grid-template-columns:1.05fr .95fr;padding:3.25rem}}

/* ---------- Product detail overlay -------------------------------------- */
.paf-modal{
  position:fixed;inset:0;z-index:80;display:flex;align-items:flex-start;justify-content:center;
  padding:1.25rem;overflow-y:auto;overscroll-behavior:contain;
  background:rgba(9,26,16,.62);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;
}
.paf-modal.open{opacity:1;visibility:visible}
.paf-modal-panel{
  width:100%;max-width:880px;margin:2.5rem auto;background:var(--paf-cream);
  border-radius:1rem;box-shadow:0 40px 90px -30px rgba(0,0,0,.55);overflow:hidden;
  transform:translateY(22px) scale(.985);transition:transform .42s cubic-bezier(.16,1,.3,1);
}
.paf-modal.open .paf-modal-panel{transform:none}
.paf-modal-head{
  position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;gap:1.25rem;
  padding:1.4rem 1.6rem;background:var(--paf-green-dark);color:#fff;
}
.paf-modal-head .thumb{
  width:64px;height:64px;flex:none;border-radius:.6rem;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;padding:.35rem;
}
.paf-modal-head .thumb img{max-width:100%;max-height:100%;object-fit:contain}
.paf-modal-close{
  margin-left:auto;flex:none;width:36px;height:36px;border-radius:9999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);color:#fff;transition:background .25s ease;
}
.paf-modal-close:hover{background:rgba(255,255,255,.24)}
.paf-modal-body{padding:1.9rem 1.7rem 2.4rem}
@media(min-width:768px){.paf-modal-body{padding:2.4rem 2.6rem 3rem}.paf-modal-head{padding:1.6rem 2.6rem}}

.paf-doc h4{font-family:var(--font-serif),Georgia,serif;font-size:1.32rem;color:var(--paf-green);margin:2.1rem 0 .85rem;line-height:1.25}
.paf-doc h4:first-child{margin-top:0}
.paf-doc h4+.paf-doc-rule{margin-top:-.5rem}
.paf-doc-rule{height:1px;background:linear-gradient(90deg,rgba(201,162,75,.6),rgba(201,162,75,0));margin-bottom:1rem}
.paf-doc p{font-size:.93rem;line-height:1.75;color:#4A4A44;margin-bottom:.85rem}
.paf-doc p strong{color:var(--paf-green);font-weight:600}
.paf-doc .lead{font-size:1rem;color:#3C3C36}
.paf-doc ul{list-style:none;margin:0 0 1.1rem;padding:0}
.paf-doc li{position:relative;padding-left:1.1rem;font-size:.9rem;line-height:1.7;color:#4A4A44;margin-bottom:.6rem}
.paf-doc li::before{content:"";position:absolute;left:0;top:.65em;width:5px;height:5px;border-radius:50%;background:var(--paf-gold)}
.paf-doc li b{color:var(--paf-green);font-weight:600}
.paf-doc figure{margin:1.15rem 0}
.paf-doc figure img{width:100%;border-radius:.6rem;border:1px solid var(--paf-border);background:#fff;display:block}
.paf-doc figure.narrow img{max-width:190px;margin:0 auto}
.paf-doc figcaption{font-size:.74rem;color:var(--paf-muted);margin-top:.5rem;line-height:1.55;text-align:center}

.paf-statrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:.75rem;margin:1.3rem 0 1.5rem}
.paf-stat{background:#fff;border:1px solid var(--paf-border);border-radius:.6rem;padding:.95rem .8rem;text-align:center}
.paf-stat .v{font-family:var(--font-serif),Georgia,serif;font-size:1.7rem;font-weight:600;color:var(--paf-gold);line-height:1}
.paf-stat .l{font-size:.7rem;color:var(--paf-muted);margin-top:.4rem;line-height:1.45}

.paf-spec{background:#fff;border:1px solid var(--paf-border);border-radius:.75rem;padding:1.4rem 1.5rem;margin-top:2rem}
.paf-spec-title{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--paf-gold);font-weight:600;margin-bottom:1rem}
.paf-spec-row{display:grid;grid-template-columns:1fr;gap:.15rem;padding:.7rem 0;border-top:1px solid var(--paf-border)}
.paf-spec-row:first-of-type{border-top:0;padding-top:0}
@media(min-width:640px){.paf-spec-row{grid-template-columns:150px 1fr;gap:1.2rem}}
.paf-spec-row dt{font-family:var(--font-mono),monospace;font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:var(--paf-muted);padding-top:.15rem}
.paf-spec-row dd{font-size:.9rem;color:#3C3C36;line-height:1.65;margin:0}
.paf-actives{margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--paf-border);font-size:.83rem;color:var(--paf-green);font-weight:500}

/* ---------- Trials ------------------------------------------------------ */
.paf-trial{
  display:grid;grid-template-columns:1fr;gap:0;background:#fff;
  border:1px solid var(--paf-border);border-radius:.85rem;overflow:hidden;height:100%;
}
.paf-trial-img{aspect-ratio:16/10;background:#EFF1EC;overflow:hidden}
.paf-trial-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.16,1,.3,1)}
.paf-trial:hover .paf-trial-img img{transform:scale(1.04)}
.paf-trial-body{padding:1.35rem 1.45rem 1.5rem;display:flex;flex-direction:column;flex:1}
.paf-trial-result{
  margin-top:1rem;padding:.75rem .9rem;border-radius:.5rem;
  background:rgba(27,94,53,.06);border-left:2px solid var(--paf-gold);
  font-size:.83rem;color:var(--paf-green);font-weight:500;line-height:1.55;
}

/* ---------- Contact ----------------------------------------------------- */
.paf-field label{display:block;font-size:.66rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--paf-muted);margin-bottom:.4rem}
.paf-field input,.paf-field select,.paf-field textarea{
  width:100%;padding:.7rem .9rem;border-radius:.375rem;border:1px solid var(--paf-border);
  background:var(--paf-cream);font-family:var(--font-sans),system-ui,sans-serif;font-size:.88rem;color:#2C2C28;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.paf-field textarea{min-height:120px;resize:vertical}
.paf-field input:focus,.paf-field select:focus,.paf-field textarea:focus{
  outline:none;border-color:var(--paf-green);box-shadow:0 0 0 3px rgba(27,94,53,.13);
}
.paf-order-line{
  display:flex;align-items:center;gap:.75rem;padding:.6rem .8rem;border-radius:.4rem;
  background:var(--paf-cream);border:1px solid var(--paf-border);font-size:.83rem;color:#3C3C36;
}
.paf-order-line button{margin-left:auto;color:#A33;font-size:1.05rem;line-height:1;padding:0 .2rem}
.paf-order-empty{font-size:.83rem;color:var(--paf-muted);font-style:italic}

/* ---------- Downloads --------------------------------------------------- */
.paf-dl{
  display:flex;align-items:center;gap:1rem;padding:1rem 1.2rem;background:#fff;
  border:1px solid var(--paf-border);border-radius:.6rem;transition:all .3s ease;
}
.paf-dl:hover{border-color:rgba(27,94,53,.3);box-shadow:0 10px 26px -18px rgba(15,61,34,.45);transform:translateY(-2px)}
.paf-dl-icon{flex:none;width:38px;height:38px;border-radius:.45rem;background:rgba(27,94,53,.08);display:flex;align-items:center;justify-content:center;color:var(--paf-green)}
.paf-dl-name{font-size:.9rem;color:#2C2C28;line-height:1.4}
.paf-dl-meta{font-family:var(--font-mono),monospace;font-size:.66rem;color:var(--paf-muted);margin-top:.15rem;letter-spacing:.05em}

/* ---------- Footer ------------------------------------------------------ */
.paf-footer a{transition:color .25s ease}
.paf-foot-logo{height:30px;width:auto;filter:brightness(0) invert(1);opacity:.95}

/* ---------- Misc -------------------------------------------------------- */
.paf-noscroll{overflow:hidden}
::selection{background:rgba(201,162,75,.28)}

/* ---------- Utilities absent from the compiled base layer ---------------- */
.gap-5{gap:1.25rem}
.gap-9{gap:2.25rem}
.gap-x-12{column-gap:3rem}
.h-\[76px\]{height:76px}
.leading-\[1\.08\]{line-height:1.08}
.mb-5{margin-bottom:1.25rem}
.mb-7{margin-bottom:1.75rem}
.mb-9{margin-bottom:2.25rem}
.mb-14{margin-bottom:3.5rem}
.mt-3{margin-top:.75rem}
.mt-7{margin-top:1.75rem}
.mt-9{margin-top:2.25rem}
.mt-14{margin-top:3.5rem}
.p-7{padding:1.75rem}
@media (min-width:768px){.md\:p-9{padding:2.25rem}}
@media (min-width:1024px){.lg\:gap-16{gap:4rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}}

/* ---------- Refinements ------------------------------------------------- */
.paf-logo{height:38px}
@media (max-width:640px){.paf-logo{height:32px}}

/* Hero scrim: cool the warm microscopy footage toward the brand green
   and darken the top band so the navigation stays legible. */
.paf-hero-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(160deg, rgba(15,61,34,.55), rgba(11,29,19,.35));
  mix-blend-mode:color;
}
.paf-hero-scrim{
  background:
    linear-gradient(to top, rgba(6,26,15,.96) 0%, rgba(8,32,19,.86) 34%, rgba(10,38,23,.62) 64%, rgba(10,38,23,.72) 100%),
    radial-gradient(120% 90% at 12% 92%, rgba(15,61,34,.7) 0%, rgba(15,61,34,0) 60%);
}
.paf-hero{padding-bottom:6.5rem}
.paf-hero h1{letter-spacing:-.015em}

/* Serif display tightening — Cormorant runs wide at large sizes */
h1.font-serif,h2.font-serif{letter-spacing:-.01em}

/* Nav spacing fallback */
#paf-header nav{display:none}
@media (min-width:1024px){#paf-header nav{display:flex;gap:2.25rem;align-items:center}}

/* Document list bullets sit better with a slightly larger marker */
.paf-doc li::before{width:5px;height:5px;top:.72em}

/* Trial cards: equalise heights inside their grid cell */
.grid>div>.paf-trial{height:100%}

/* ---------- Product card tag moved into the body ------------------------ */
.paf-pcard-tag{
  position:static;display:inline-block;align-self:flex-start;
  margin-bottom:.6rem;padding:.24rem .62rem;border-radius:9999px;
  font-size:.6rem;letter-spacing:.09em;text-transform:uppercase;font-weight:600;
  background:rgba(27,94,53,.08);color:var(--paf-green);border:1px solid rgba(27,94,53,.14);
  white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
.paf-pcard-tag.reg{background:var(--paf-green);color:#fff;border-color:var(--paf-green)}
.paf-pcard-media{height:196px}
.paf-pcard-name{font-size:1.3rem}

/* Utility-order fix: `.hidden` must beat the later-declared `.paf-btn` display. */
.hidden{display:none}
@media (min-width:768px){.md\:inline-flex.hidden{display:inline-flex}}
@media (max-width:767px){.hidden.paf-btn{display:none}}

/* ---------- Image sizing pass ------------------------------------------- */
/* Trial photography, microscopy and charts inside a product detail panel
   were running the full panel width. Cap them and centre instead. */
.paf-doc figure{margin:1.3rem 0}
.paf-doc figure img{max-width:440px;margin-left:auto;margin-right:auto}
.paf-doc figure.narrow img{max-width:132px}
.paf-doc figcaption{max-width:440px;margin-left:auto;margin-right:auto}

/* Evidence strips (PSHB) — smaller tiles, more of them per row */
.paf-doc + div[style*="minmax(140px"],
div[style*="repeat(auto-fit,minmax(140px,1fr))"]{
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  gap:.7rem!important;
}

/* Product cards — calmer bottle scale */
.paf-pcard-media{height:172px;padding:1.1rem}
.paf-pcard-media img{max-width:58%;max-height:88%}

@media (max-width:600px){
  .paf-doc figure img,.paf-doc figcaption{max-width:100%}
  .paf-pcard-media{height:186px}
  .paf-pcard-media img{max-width:52%}
}

/* ==========================================================================
   RESPONSIVE LAYER — phones, tablets, desktop
   Breakpoints: <640 phone · 640–1023 large phone / tablet · 1024+ desktop
   ========================================================================== */

/* --- Global safety ------------------------------------------------------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
img,video{max-width:100%;height:auto}
*{-webkit-tap-highlight-color:rgba(27,94,53,.15)}

.mx-auto.max-w-\[1200px\]{
  padding-left:max(1.5rem, env(safe-area-inset-left));
  padding-right:max(1.5rem, env(safe-area-inset-right));
}

/* --- Reveal animations ---------------------------------------------------
   Horizontal reveals translate content ±32px. Below the desktop breakpoint
   the layout is one column, so that sideways motion only ever pushed the
   page 8px wider than the viewport and created a phantom scrollbar.        */
@media (max-width:1023px){
  .rv-l,.rv-r{transform:translateY(26px)}
  .rv-l.vis,.rv-r.vis{transform:none}
}

/* --- Fluid display type -------------------------------------------------- */
h1.font-serif{font-size:clamp(2.15rem, 7.2vw, 4.5rem);line-height:1.08}
h2.font-serif{font-size:clamp(1.75rem, 4.6vw, 3rem);line-height:1.15}
h3.font-serif{font-size:clamp(1.25rem, 3vw, 1.9rem)}
@media (min-width:1280px){
  h1.font-serif{font-size:4.5rem}
  h2.font-serif{font-size:3rem}
}

/* --- Header / navigation -------------------------------------------------- */
@media (max-width:1023px){
  #paf-header .mx-auto{height:66px}
  .paf-logo{height:30px}
  .paf-burger{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-right:-.4rem}
}
.paf-drawer a{padding:.7rem 1.2rem;font-size:clamp(1.5rem,6vw,2rem)}
.paf-drawer-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;top:.8rem;right:.9rem}
.paf-drawer .paf-btn{margin-top:1.6rem;font-size:.95rem;padding:.95rem 2rem}

/* --- Hero ----------------------------------------------------------------- */
.paf-hero{min-height:100vh;min-height:100svh}
@media (max-width:767px){
  .paf-hero{padding:7rem 0 4.5rem}
  .paf-scroll-cue{bottom:1.1rem;font-size:.58rem}
}
@media (max-height:520px) and (orientation:landscape){
  .paf-hero{min-height:auto;padding:6rem 0 3rem}
  .paf-scroll-cue{display:none}
}

/* --- Inner page heroes ----------------------------------------------------- */
@media (max-width:767px){ .paf-pagehero{padding:7rem 0 3rem} }

/* --- Section rhythm -------------------------------------------------------- */
@media (max-width:767px){
  .py-20{padding-top:3.5rem;padding-bottom:3.5rem}
  .mt-16{margin-top:2.75rem}
  .mt-14{margin-top:2.5rem}
  .mt-20{margin-top:3rem}
  .mb-12{margin-bottom:2rem}
  .mb-14{margin-bottom:2.25rem}
  .gap-12{gap:2.25rem}
}

/* --- Product grid ---------------------------------------------------------- */
@media (max-width:479px){
  .paf-pgrid{grid-template-columns:1fr;gap:1.1rem}
  .paf-pcard-media{height:200px}
  .paf-pcard-media img{max-width:46%}
}
@media (min-width:480px) and (max-width:767px){
  .paf-pgrid{grid-template-columns:repeat(2,1fr);gap:1rem}
  .paf-pcard-media{height:158px}
  .paf-pcard-body{padding:1rem 1.05rem 1.15rem}
  .paf-pcard-name{font-size:1.15rem}
  .paf-pcard-blurb{font-size:.78rem}
}
@media (min-width:768px) and (max-width:1023px){
  .paf-pgrid{grid-template-columns:repeat(3,1fr);gap:1.1rem}
  .paf-pcard-media{height:168px}
}
.paf-pcard-tag{font-size:.66rem}

@media (max-width:767px){
  .paf-featured{padding:1.75rem 1.4rem;border-radius:.8rem;gap:1.75rem}
  .paf-featured .grid{gap:.65rem}
}

/* --- Product detail panel: full-height sheet on phones --------------------- */
@media (max-width:767px){
  .paf-modal{padding:0;align-items:stretch}
  .paf-modal-panel{margin:0;max-width:100%;min-height:100%;border-radius:0;transform:translateY(30px)}
  .paf-modal.open .paf-modal-panel{transform:none}
  .paf-modal-head{padding:1rem 1.1rem;gap:.85rem}
  .paf-modal-head .thumb{width:50px;height:50px}
  .paf-modal-head h3{font-size:1.22rem}
  .paf-modal-head p{font-size:.75rem}
  .paf-modal-body{padding:1.4rem 1.15rem 3.5rem}
  .paf-doc h4{font-size:1.15rem;margin-top:1.7rem}
  .paf-doc p{font-size:.9rem}
  .paf-statrow{grid-template-columns:repeat(2,1fr);gap:.55rem}
  .paf-stat .v{font-size:1.45rem}
  .paf-stat .l{font-size:.72rem}
  .paf-spec{padding:1.1rem 1.15rem}
}
.paf-modal-close{width:44px;height:44px}

@media (max-width:600px){
  div[style*="repeat(auto-fit,minmax(140px,1fr))"]{grid-template-columns:repeat(2,1fr)!important}
}

/* --- Trials & industry cards ----------------------------------------------- */
@media (max-width:767px){
  .paf-trial-body{padding:1.1rem 1.15rem 1.25rem}
  .paf-trial-img{aspect-ratio:16/9}
  .p-7{padding:1.4rem}
}

/* --- Forms -----------------------------------------------------------------
   iOS zooms the page when a focused input is under 16px. Lock controls to
   16px on touch widths; the label above stays small.                        */
@media (max-width:767px){
  .paf-field input,.paf-field select,.paf-field textarea{font-size:16px;padding:.8rem .9rem}
  .paf-field textarea{min-height:130px}
  .paf-btn{padding:.95rem 1.5rem}
  .paf-order-line{flex-wrap:wrap;gap:.35rem .7rem}
  .paf-order-line button{width:32px;height:32px;display:flex;align-items:center;justify-content:center}
}
@media (max-width:479px){
  form .paf-btn,form .paf-btn-outline{width:100%;justify-content:center}
}

/* --- Spec rows -------------------------------------------------------------- */
@media (max-width:639px){
  .paf-spec-row{padding:.65rem 0}
  .paf-spec-row dt{font-size:.64rem;margin-bottom:.15rem}
  .paf-spec-row dd{font-size:.88rem}
}

/* --- Downloads -------------------------------------------------------------- */
@media (max-width:479px){
  .paf-dl{padding:.85rem .95rem;gap:.75rem}
  .paf-dl-name{font-size:.85rem}
}

/* --- Footer: 15px tap targets were below the 44px guidance ------------------ */
@media (max-width:1023px){
  .paf-footer ul li a,.paf-footer ul li span{display:inline-block;padding:.42rem 0}
  .paf-footer .py-16{padding-top:3rem;padding-bottom:3rem}
  .paf-footer .gap-10{gap:2.25rem}
  .paf-footer .mt-16{margin-top:2.5rem}
}

/* --- Marquee ---------------------------------------------------------------- */
@media (max-width:767px){
  .paf-marquee{padding:.7rem 0}
  .paf-marquee span{font-size:.64rem;letter-spacing:.16em}
  .paf-marquee-track{animation-duration:32s}
}

@media (max-width:479px){
  .grid.grid-cols-2.md\:grid-cols-4{gap:1.75rem 1rem}
}

/* --- Print ------------------------------------------------------------------ */
@media print{
  #paf-header,.paf-drawer,.paf-marquee,.paf-scroll-cue,.paf-modal{display:none!important}
  body{background:#fff}
  .rv,.rv-l,.rv-r{opacity:1!important;transform:none!important}
}

/* --- Final responsive corrections ------------------------------------------ */
/* Category chips were 10.6px — lift to 11px so they stay legible on a phone. */
@media (max-width:767px){ .paf-pcard-tag{font-size:11px;letter-spacing:.06em} }

/* Between 1024 and 1279 the ±32px reveal offset reached just past the
   viewport edge. 20px keeps it inside at every desktop width.               */
@media (min-width:1024px){
  .rv-l{transform:translateX(-20px)}
  .rv-r{transform:translateX(20px)}
  .rv-l.vis,.rv-r.vis{transform:none}
}

/* --- Phone held sideways ----------------------------------------------------
   A short landscape viewport pushed the hero buttons below the fold. Tighten
   the display type and padding so the whole hero fits in ~390px of height.  */
@media (max-height:540px) and (orientation:landscape){
  .paf-hero{padding:4.5rem 0 2rem}
  .paf-hero h1.font-serif{font-size:clamp(1.8rem,4.2vw,2.5rem)}
  .paf-hero p{font-size:.92rem;margin-top:.9rem}
  .paf-hero .mt-9{margin-top:1.15rem}
  .paf-hero .mb-5{margin-bottom:.6rem}
  .paf-pagehero{padding:5.5rem 0 2.25rem}
}

/* ==========================================================================
   ROUND 3 — hero imagery, heading scale, product images, trial lightbox
   ========================================================================== */

/* --- 1. Inner-page heroes carry the liposome still ------------------------
   index.html runs the video; products / field-tested / contact use a frame
   from the same footage as a photo, with identical scrim, grain and grade.  */
.paf-pagehero{
  background:var(--paf-green-dark);
  padding:10.5rem 0 5.5rem;
  display:flex;align-items:flex-end;min-height:56svh;
}
.paf-pagehero::before{content:none}          /* the photo replaces the flat radial */
.paf-pagehero .paf-hero-media{position:absolute;inset:0;z-index:0}
.paf-pagehero .paf-hero-scrim{
  background:
    linear-gradient(to top, rgba(6,26,15,.95) 0%, rgba(8,32,19,.88) 42%, rgba(10,38,23,.70) 100%),
    radial-gradient(115% 100% at 10% 95%, rgba(15,61,34,.7) 0%, rgba(15,61,34,0) 62%);
}
.paf-pagehero .paf-hero-grain{opacity:.22}
@media (max-width:767px){ .paf-pagehero{padding:7.5rem 0 3.25rem;min-height:auto} }

/* --- 2. Heading hierarchy -------------------------------------------------
   The page title now sits clearly above section headings, and section
   headings clearly above card headings.                                     */
h1.font-serif{font-size:clamp(2.6rem, 8.4vw, 5.25rem);line-height:1.04;letter-spacing:-.018em}
h2.font-serif{font-size:clamp(1.7rem, 4.1vw, 2.85rem);line-height:1.13;letter-spacing:-.012em}
h3.font-serif{font-size:clamp(1.2rem, 2.5vw, 1.7rem);line-height:1.18}
h4.font-serif{font-size:clamp(1.05rem, 1.7vw, 1.25rem)}
@media (min-width:1280px){
  h1.font-serif{font-size:5.25rem}
  h2.font-serif{font-size:2.85rem}
}
/* Hero intro paragraphs grow a little with the headline */
.paf-hero p,.paf-pagehero p{font-size:clamp(1rem,1.35vw,1.2rem)}

/* --- 3. Product images — larger, and sized off the card, not a fixed px ---
   The tile is now a ratio so the bottle grows with the column width instead
   of staying pinned to one height at every breakpoint.                      */
.paf-pcard-media{
  height:auto;aspect-ratio:1/.92;padding:1.15rem;
}
.paf-pcard-media img{
  max-width:82%;max-height:94%;width:auto;height:auto;object-fit:contain;
}
@media (min-width:480px) and (max-width:767px){
  .paf-pcard-media{aspect-ratio:1/.9}
  .paf-pcard-media img{max-width:80%}
}
@media (max-width:479px){
  .paf-pcard-media{aspect-ratio:1/.72}
  .paf-pcard-media img{max-width:62%}
}
@media (min-width:768px) and (max-width:1023px){
  .paf-pcard-media{aspect-ratio:1/.9}
}
/* Detail-panel figures also come up a step now they are zoomable */
.paf-doc figure img{max-width:540px;cursor:zoom-in}
.paf-doc figcaption{max-width:540px}
.paf-doc figure.narrow img{max-width:150px}
.paf-doc figure img:hover{filter:brightness(1.03)}
@media (max-width:600px){ .paf-doc figure img,.paf-doc figcaption{max-width:100%} }

/* --- 4. Lightbox ---------------------------------------------------------- */
.paf-trial.is-zoomable{cursor:zoom-in}
.paf-trial.is-zoomable:hover{
  border-color:rgba(27,94,53,.28);
  box-shadow:0 20px 44px -26px rgba(15,61,34,.45);
  transform:translateY(-3px);
}
.paf-trial{transition:border-color .35s ease, box-shadow .35s ease, transform .35s ease}
.paf-trial.is-zoomable:focus-visible{outline:2px solid var(--paf-green);outline-offset:3px}
.paf-trial-img{position:relative}
.paf-trial.is-zoomable .paf-trial-img::after{
  content:"";position:absolute;right:.7rem;bottom:.7rem;width:32px;height:32px;border-radius:9999px;
  background:rgba(15,61,34,.62) center/15px 15px no-repeat;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.2-3.2M11 8v6M8 11h6'/></svg>");
  backdrop-filter:blur(3px);opacity:0;transform:translateY(5px);
  transition:opacity .3s ease, transform .3s ease;
}
.paf-trial.is-zoomable:hover .paf-trial-img::after,
.paf-trial.is-zoomable:focus-visible .paf-trial-img::after{opacity:1;transform:none}
@media (hover:none){ .paf-trial.is-zoomable .paf-trial-img::after{opacity:.85;transform:none} }

.paf-lightbox{
  position:fixed;inset:0;z-index:95;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:clamp(1rem,4vw,3rem);
  background:rgba(7,24,14,0);
  backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);
  opacity:0;visibility:hidden;cursor:zoom-out;
  transition:opacity .34s cubic-bezier(.16,1,.3,1),
             visibility .34s cubic-bezier(.16,1,.3,1),
             background-color .34s ease, backdrop-filter .34s ease;
}
.paf-lightbox.open{
  opacity:1;visibility:visible;
  background:rgba(7,24,14,.86);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.paf-lb-fig{
  margin:0;display:flex;flex-direction:column;align-items:center;gap:1rem;
  max-width:100%;max-height:100%;
  opacity:0;transform:scale(.90) translateY(14px);
  transition:opacity .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1);
}
.paf-lightbox.open .paf-lb-fig{opacity:1;transform:none}
.paf-lb-frame{
  border-radius:.75rem;overflow:hidden;background:#fff;cursor:default;
  box-shadow:0 40px 90px -32px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.09);
  max-width:100%;
}
.paf-lb-img{
  display:block;max-width:min(1080px, 92vw);max-height:74svh;
  width:auto;height:auto;object-fit:contain;
}
.paf-lb-cap{
  text-align:center;max-width:min(680px,90vw);
  display:flex;flex-direction:column;gap:.35rem;
}
.paf-lb-title{
  font-family:var(--font-serif),Georgia,serif;font-size:clamp(1.05rem,2vw,1.4rem);
  color:#fff;line-height:1.25;
}
.paf-lb-note{font-size:.82rem;line-height:1.55;color:rgba(255,255,255,.68)}
.paf-lb-close{
  position:absolute;top:clamp(.9rem,2vw,1.6rem);right:clamp(.9rem,2vw,1.6rem);
  width:44px;height:44px;border-radius:9999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
  transition:background .25s ease, transform .25s ease;
}
.paf-lb-close:hover{background:rgba(255,255,255,.24);transform:rotate(90deg)}
@media (max-width:600px){
  .paf-lb-img{max-height:62svh}
  .paf-lb-fig{gap:.8rem}
}
@media (prefers-reduced-motion:reduce){
  .paf-lightbox,.paf-lb-fig{transition-duration:.01ms}
}

/* --- Corrections ----------------------------------------------------------- */
/* "Flowering & Fruiting Enhancer" was being cut to an ellipsis. Let long
   category chips wrap onto a second line instead of truncating.             */
.paf-pcard-tag{
  white-space:normal;overflow:visible;text-overflow:clip;
  line-height:1.35;padding:.26rem .62rem;text-align:left;
}

/* Several trial images are small originals; at natural size they looked lost
   inside the lightbox. Give the frame a floor so every image reads, without
   scaling small sources so far that they go soft.                           */
.paf-lb-img{min-width:min(420px, 88vw)}
@media (min-width:1024px){ .paf-lb-img{min-width:min(560px, 60vw)} }
@media (max-width:600px){ .paf-lb-img{min-width:0;width:100%} }

/* ==========================================================================
   HEADING INVERSION — the gold label leads, the green line supports
   ========================================================================== */

/* The gold section label becomes the dominant heading. Serif rather than
   sans, so it carries at size without shouting.                            */
.paf-eyebrow{
  font-family:var(--font-serif),Georgia,serif;
  font-size:clamp(1.5rem, 3.1vw, 2.45rem);
  font-weight:500;
  letter-spacing:.06em;
  line-height:1.16;
  text-transform:uppercase;
  color:var(--paf-gold);
}
@media (min-width:1280px){ .paf-eyebrow{font-size:2.45rem} }

/* The green line beneath it steps down to a supporting subheading. */
h2.font-serif{
  font-size:clamp(1.3rem, 2.25vw, 1.8rem);
  line-height:1.28;
  letter-spacing:0;
  font-weight:400;
  max-width:min(46ch, 100%)!important;   /* the old 16–22ch caps were tuned
                                            for display size and now read as
                                            an over-narrow column */
}
@media (min-width:1280px){ h2.font-serif{font-size:1.8rem} }

/* Pull the pair together — they now read as one unit. */
.paf-eyebrow.mb-4{margin-bottom:.45rem}
.paf-eyebrow.mb-5{margin-bottom:.55rem}
.paf-eyebrow.mb-6{margin-bottom:.6rem}

/* Hero kickers sit a step down so they never fight the page title, which is
   already gold-and-large in its own right. */
.paf-hero .paf-eyebrow,
.paf-pagehero .paf-eyebrow{
  font-size:clamp(1.1rem, 1.9vw, 1.55rem);
  letter-spacing:.09em;margin-bottom:.7rem;
}

/* Inside a form or a card, the label stays a label. */
form .paf-eyebrow,
.paf-featured .paf-eyebrow{font-size:clamp(1rem, 1.6vw, 1.3rem);letter-spacing:.08em}

/* Section intro paragraphs sit just under the new subheading size. */
h2.font-serif + p,
h2.font-serif + .mt-6{margin-top:1rem}

/* Card titles now sit clearly below the section subheading, keeping the
   order: gold label > green subheading > card title.                       */
h3.font-serif,.paf-pcard-name,.paf-trial-body h3{
  font-size:clamp(1.02rem, 1.65vw, 1.32rem);
  line-height:1.24;
}
.paf-modal-head h3{font-size:clamp(1.15rem,2vw,1.5rem)}
.paf-doc h4{font-size:clamp(1rem,1.5vw,1.18rem)}

/* ==========================================================================
   POLISH PASS
   ========================================================================== */

:root{
  /* Bright gold carries display type and reads well on dark grounds, but at
     3.0:1 it fails contrast for small text on cream. A deeper gold — taken
     from Pan African Farms' own palette — is used for small gold text.      */
  --paf-gold-ink:#8A6D2F;
  --r-sm:.4rem; --r-md:.65rem; --r-lg:.9rem;
  --sh-1:0 1px 2px rgba(15,61,34,.04), 0 1px 3px rgba(15,61,34,.05);
  --sh-2:0 10px 26px -16px rgba(15,61,34,.34);
  --sh-3:0 22px 48px -24px rgba(15,61,34,.42);
}

/* --- Anchors clear the fixed header ---------------------------------------- */
[id]{scroll-margin-top:110px}

/* --- Typography refinements ------------------------------------------------ */
h1.font-serif,h2.font-serif,h3.font-serif,.paf-eyebrow{text-wrap:balance}
p{text-wrap:pretty}
.paf-eyebrow{font-feature-settings:"liga" 1,"kern" 1}
/* Old-style figures in display numbers keep the stat rows even */
.paf-stat .v,[data-count]{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}

/* Units set apart from the number they follow */
.paf-unit{
  font-style:normal;font-size:.56em;font-weight:500;
  letter-spacing:.02em;opacity:.72;margin-left:.06em;
  vertical-align:.06em;
}

/* --- Small gold text: use the deeper ink ----------------------------------- */
.paf-pcard-sub,
.paf-dl-meta,
.paf-doc .paf-spec-title,
.paf-trial-result{color:var(--paf-gold-ink)}
.paf-trial-result{background:rgba(138,109,47,.07);border-left-color:var(--paf-gold)}
.paf-pill{color:#17532F;background:rgba(27,94,53,.08);letter-spacing:.11em;font-size:.7rem;padding:.32rem .85rem}

/* --- Bullet lists ----------------------------------------------------------
   The inline dot glyph sat like a comma on the baseline. Replace it with a
   true circular marker aligned to the first line's x-height.                */
li.flex.items-start > span:first-child{display:none}
li.flex.items-start{position:relative;padding-left:1.05rem;display:block}
li.flex.items-start::before{
  content:"";position:absolute;left:0;top:.62em;
  width:5px;height:5px;border-radius:50%;background:var(--paf-gold);
}
li.flex.items-start > span:last-child{display:inline}

/* --- Surfaces: one radius scale, one shadow scale --------------------------- */
.paf-pcard,.paf-trial,.paf-dl,.paf-spec,.paf-lb-frame{border-radius:var(--r-lg)}
.rounded-lg{border-radius:var(--r-lg)}
.paf-btn{border-radius:var(--r-sm)}
.paf-stat{border-radius:var(--r-md)}

.paf-pcard,.paf-trial{box-shadow:var(--sh-1)}
.paf-pcard:hover{box-shadow:var(--sh-3)}
.paf-trial.is-zoomable:hover{box-shadow:var(--sh-3)}
.paf-dl:hover{box-shadow:var(--sh-2)}

/* A hairline of light along the top edge stops white cards dissolving into
   the cream background. */
.paf-pcard,.paf-trial,.rounded-lg{position:relative}
.paf-pcard::after,.paf-trial::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

/* --- Section boundaries ----------------------------------------------------
   Cream meeting white was a hard colour step. A hairline reads as intent.   */
section.bg-white{border-top:1px solid rgba(232,230,223,.85);border-bottom:1px solid rgba(232,230,223,.85)}
section.bg-white + section.bg-white{border-top:0}

/* --- Section heading pair --------------------------------------------------- */
.paf-eyebrow{position:relative;display:block}
.paf-eyebrow::after{
  content:"";display:block;width:54px;height:2px;margin-top:.85rem;
  background:linear-gradient(90deg,var(--paf-gold),rgba(201,162,75,0));
}
.text-center .paf-eyebrow::after,
.paf-eyebrow.text-center::after{margin-left:auto;margin-right:auto;
  background:linear-gradient(90deg,rgba(201,162,75,0),var(--paf-gold),rgba(201,162,75,0))}
form .paf-eyebrow::after,.paf-featured .paf-eyebrow::after{width:38px;margin-top:.6rem}
.paf-hero .paf-eyebrow::after,.paf-pagehero .paf-eyebrow::after{
  background:linear-gradient(90deg,var(--paf-gold),rgba(201,162,75,0));margin-top:.7rem;
}

/* --- Buttons ---------------------------------------------------------------- */
.paf-btn{position:relative;overflow:hidden;font-weight:600;letter-spacing:.01em}
.paf-btn svg,.paf-btn span{transition:transform .35s cubic-bezier(.16,1,.3,1)}
.paf-btn:hover svg,.paf-btn:hover > span:last-child{transform:translateX(3px)}
.paf-btn-primary{box-shadow:var(--sh-1)}
.paf-btn-primary:hover{box-shadow:0 10px 24px -10px rgba(27,94,53,.6)}
.paf-btn-outline{border-width:1.5px}
.paf-btn:active{transform:translateY(1px)}

/* --- Focus: one visible, consistent ring ------------------------------------ */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--paf-green);outline-offset:3px;border-radius:2px;
}
.paf-hero a:focus-visible,.paf-pagehero a:focus-visible,
.paf-footer a:focus-visible,.paf-drawer a:focus-visible,
.paf-lb-close:focus-visible,.paf-modal-close:focus-visible{outline-color:var(--paf-gold)}

/* --- Download rows ---------------------------------------------------------- */
.paf-dl{position:relative;padding-right:2.6rem}
.paf-dl::after{
  content:"";position:absolute;right:1.1rem;top:50%;width:14px;height:14px;
  margin-top:-7px;opacity:.35;
  background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B5E35' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>");
  transition:transform .3s cubic-bezier(.16,1,.3,1),opacity .3s ease;
}
.paf-dl:hover::after{opacity:.85;transform:translateX(3px)}
.paf-dl-icon{transition:background-color .3s ease,color .3s ease}
.paf-dl:hover .paf-dl-icon{background:var(--paf-green);color:#fff}

/* --- Header: reading-progress hairline -------------------------------------- */
.paf-progress{
  position:absolute;left:0;bottom:0;height:2px;width:0;
  background:linear-gradient(90deg,var(--paf-gold),rgba(201,162,75,.35));
  transition:width .12s linear;pointer-events:none;
}
.paf-header:not(.is-solid) .paf-progress{opacity:.75}

/* --- Footer ------------------------------------------------------------------ */
.paf-foot-logo{height:34px}
.paf-footer h5{color:var(--paf-gold);letter-spacing:.16em;font-size:.7rem}
.paf-footer a:hover{color:var(--paf-gold)!important}
.paf-footer ul li a{position:relative}
.paf-footer ul li a::after{
  content:"";position:absolute;left:0;right:100%;bottom:.28rem;height:1px;
  background:rgba(201,162,75,.6);transition:right .32s cubic-bezier(.16,1,.3,1);
}
.paf-footer ul li a:hover::after{right:0}

/* --- Cards: content cards get the same treatment as product cards ------------ */
.rounded-lg[style*="border:1px solid #E8E6DF"],
div[style*="background:#FAFAF7;border:1px solid #E8E6DF"],
div[style*="background:#fff;border:1px solid #E8E6DF"]{
  transition:border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
div[style*="border:1px solid #E8E6DF"]:hover{
  border-color:rgba(27,94,53,.22)!important;
  box-shadow:var(--sh-2);
}

/* --- Editorial image band ----------------------------------------------------- */
figure > div[style*="aspect-ratio:21/9"]{aspect-ratio:16/7!important;box-shadow:var(--sh-2)}
.paf-doc figure img,figure img{border-radius:var(--r-md)}

/* --- Scrollbar ----------------------------------------------------------------- */
@supports (scrollbar-width:thin){
  html{scrollbar-width:thin;scrollbar-color:rgba(27,94,53,.32) transparent}
}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(27,94,53,.28);border-radius:9999px;border:3px solid var(--paf-cream)}
::-webkit-scrollbar-thumb:hover{background:rgba(27,94,53,.45)}

/* --- Body links ------------------------------------------------------------------ */
.paf-doc a,dd a{
  color:var(--paf-green);text-decoration:underline;
  text-decoration-color:rgba(201,162,75,.55);text-underline-offset:3px;
  text-decoration-thickness:1px;transition:text-decoration-color .25s ease;
}
.paf-doc a:hover,dd a:hover{text-decoration-color:var(--paf-gold)}

/* --- Marquee: softer edges ------------------------------------------------------- */
.paf-marquee{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}

/* --- Polish corrections ------------------------------------------------------ */

/* Download group labels are sub-headings within the Documentation section, not
   peers of it — step them down so the section keeps one clear owner.          */
#downloads .mb-12 > .paf-eyebrow{
  font-size:clamp(1.05rem,1.7vw,1.35rem);letter-spacing:.11em;
}
#downloads .mb-12 > .paf-eyebrow::after{width:34px;margin-top:.55rem}

/* The Challenge row was bottom-aligned for a display-size heading. Now the
   subheading is small, top alignment reads correctly.                         */
.grid.items-end{align-items:start}

/* Small gold links carried an inline bright gold; use the accessible ink. */
dd a[style*="C9A24B"],a[style*="color:#C9A24B"]{color:var(--paf-gold-ink)!important}

/* Product card: settle the footer link to a consistent baseline. */
.paf-pcard-more{margin-top:auto;padding-top:1rem}
.paf-pcard-blurb{flex:0 1 auto}

/* Spec lists: quieter rules, tighter label column. */
.paf-spec-row{border-top-color:rgba(232,230,223,.75)}
dl .paf-spec-row dt{color:#7A7A70}

/* Stat band cells get a hairline divider on wide screens. */
@media (min-width:768px){
  .grid.grid-cols-2.md\:grid-cols-4 > div + div{
    border-left:1px solid rgba(232,230,223,.9);
  }
  .grid.grid-cols-2.md\:grid-cols-4 > div{padding-left:.5rem;padding-right:.5rem}
}
@media (max-width:767px){
  .grid.grid-cols-2.md\:grid-cols-4 > div:nth-child(even){
    border-left:1px solid rgba(232,230,223,.9);
  }
}

/* Hero: the eyebrow rule reads better slightly shorter against display type. */
.paf-hero .paf-eyebrow::after,.paf-pagehero .paf-eyebrow::after{width:44px}

/* ==========================================================================
   FINISHERS — skip link, product filter, empty state
   ========================================================================== */

/* Keyboard users get out of the header in one tab. */
.paf-skip{
  position:fixed;top:.6rem;left:.6rem;z-index:120;
  transform:translateY(-160%);transition:transform .25s cubic-bezier(.16,1,.3,1);
  background:var(--paf-green);color:#fff;font-size:.85rem;font-weight:600;
  padding:.75rem 1.2rem;border-radius:var(--r-sm);box-shadow:var(--sh-3);
}
.paf-skip:focus{transform:none}
main:focus{outline:none}

/* --- Product filter --------------------------------------------------------- */
.paf-filter{
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;
  justify-content:space-between;margin-bottom:2rem;
  padding-bottom:1.4rem;border-bottom:1px solid var(--paf-border);
}
.paf-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.paf-chip{
  font-family:var(--font-sans),system-ui,sans-serif;
  font-size:.78rem;font-weight:600;letter-spacing:.02em;
  padding:.55rem 1rem;border-radius:9999px;cursor:pointer;
  color:#4A5A4E;background:transparent;border:1px solid var(--paf-border);
  transition:color .25s ease,background-color .25s ease,border-color .25s ease,transform .25s ease;
}
.paf-chip:hover{border-color:rgba(27,94,53,.35);color:var(--paf-green)}
.paf-chip.is-on{background:var(--paf-green);border-color:var(--paf-green);color:#fff}
.paf-chip:active{transform:translateY(1px)}

.paf-search{position:relative;flex:1 1 260px;max-width:340px}
.paf-search svg{
  position:absolute;left:.85rem;top:50%;margin-top:-8px;width:16px;height:16px;
  color:#8A9A8E;pointer-events:none;
}
.paf-search input{
  width:100%;padding:.7rem .9rem .7rem 2.4rem;
  border:1px solid var(--paf-border);border-radius:9999px;background:#fff;
  font-family:var(--font-sans),system-ui,sans-serif;font-size:.85rem;color:#2C2C28;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.paf-search input::placeholder{color:#9AA79D}
.paf-search input:focus{
  outline:none;border-color:var(--paf-green);box-shadow:0 0 0 3px rgba(27,94,53,.12);
}
.paf-search input::-webkit-search-cancel-button{cursor:pointer}

.paf-count{
  font-family:var(--font-mono),monospace;font-size:.72rem;letter-spacing:.06em;
  color:var(--paf-muted);margin:-1rem 0 1.4rem;min-height:1.1em;
}
.paf-pcard[hidden]{display:none}
.paf-pgrid.is-empty{min-height:120px}

@media (max-width:767px){
  .paf-filter{gap:.9rem;margin-bottom:1.5rem}
  .paf-search{max-width:100%;flex-basis:100%;order:-1}
  .paf-search input{font-size:16px}   /* no iOS zoom on focus */
  .paf-chips{gap:.4rem}
  .paf-chip{font-size:.74rem;padding:.5rem .85rem}
}

/* --- 404 ---------------------------------------------------------------------- */
a.rounded-lg{text-decoration:none}
a.rounded-lg:hover h3{color:var(--paf-green-light)}

/* ==========================================================================
   Product detail: the bottle, at the same scale as the card that opened it
   ========================================================================== */

/* The plate matches the card's media tile — 270px wide, same 1/.92 ratio,
   same gradient — so the bottle renders at exactly the size it was on the
   grid rather than shrinking when the panel opens.                          */
.paf-doc-bottle{margin:0 0 1.9rem;display:flex;justify-content:center}
.paf-doc-bottle-plate{
  display:flex;align-items:center;justify-content:center;
  width:270px;max-width:100%;aspect-ratio:1/.92;padding:1.15rem;
  background:linear-gradient(160deg,#F4F6F2 0%,#EAEFE7 100%);
  border:1px solid var(--paf-border);border-radius:var(--r-lg);
}
.paf-doc-bottle-plate img{
  max-width:82%;max-height:94%;width:auto;height:auto;object-fit:contain;
  border-radius:0;cursor:zoom-in;
  filter:drop-shadow(0 10px 18px rgba(15,61,34,.16));
  transition:transform .45s cubic-bezier(.16,1,.3,1);
}
.paf-doc-bottle-plate:hover img{transform:scale(1.04)}
@media (max-width:600px){
  .paf-doc-bottle{margin-bottom:1.5rem}
  .paf-doc-bottle-plate{width:240px}
}

/* Registration mark sits on one line where the card is wide enough. */
.paf-pcard-tag.paf-tag-reg{
  letter-spacing:.03em;text-transform:none;font-size:.68rem;
  font-family:var(--font-mono),monospace;padding:.3rem .7rem;
}
@media (max-width:767px){ .paf-pcard-tag.paf-tag-reg{font-size:11px} }

/* Match the card tile exactly. The card's media box measures 270 x 311 at
   desktop, and the bottle inside is height-constrained at 94% of the tile's
   content box — so the plate needs that height, not just that ratio.      */
.paf-doc-bottle-plate{width:270px;height:311px;aspect-ratio:auto}
@media (max-width:600px){ .paf-doc-bottle-plate{width:240px;height:276px} }

/* `.paf-doc figure img` sets width:100% for trial photography. The bottle is
   a product shot, not a photo — it must keep its own proportions. Matching
   specificity so this wins, and clearing the photo chrome.                */
.paf-doc .paf-doc-bottle-plate img{
  width:auto;height:auto;max-width:82%;max-height:94%;
  border:0;background:none;object-fit:contain;
}
.paf-doc .paf-doc-bottle{margin-left:auto;margin-right:auto}

/* The Surfactant carries no registration mark, so its name would sit ~34px
   higher than every other card in the row. Reserve the space instead.     */
.paf-pcard-body > .paf-pcard-name:first-child{margin-top:2.13rem}
@media (max-width:767px){ .paf-pcard-body > .paf-pcard-name:first-child{margin-top:2.05rem} }

/* ==========================================================================
   Mixing rows + image scale
   ========================================================================== */

/* Products with several ratios under one heading (PANAF 4, 5 and 8) list
   each on its own line, the way the source site does.                     */
.paf-spec-row dd .paf-mixline{
  display:block;padding:.42rem 0;
  border-top:1px solid rgba(232,230,223,.8);
}
.paf-spec-row dd .paf-mixline:first-child{border-top:0;padding-top:0}
.paf-spec-row dd .paf-mixline:last-child{padding-bottom:0}
.paf-spec-row dd b{color:var(--paf-green);font-weight:600}

/* Images inside a product panel at half their previous size. */
.paf-doc-bottle-plate{width:135px;height:156px;padding:.6rem}
@media (max-width:600px){ .paf-doc-bottle-plate{width:120px;height:138px} }
.paf-doc figure img{max-width:270px}
.paf-doc figcaption{max-width:270px}
@media (max-width:600px){
  .paf-doc figure img,.paf-doc figcaption{max-width:min(270px,100%)}
}
/* Evidence strips scale with them. */
.paf-doc + div[style*="minmax"],
div[style*="repeat(auto-fit,minmax(140px,1fr))"]{
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr))!important;
}

/* ==========================================================================
   Mixing ratios as a list · bottles down another 15%
   ========================================================================== */

/* A real list rather than styled spans, so the layout holds regardless of
   which rules load first. */
.paf-spec-row dd .paf-mixlist{list-style:none;margin:0;padding:0}
.paf-spec-row dd .paf-mixlist > li{
  position:relative;display:block;
  padding:.5rem 0 .5rem 1.05rem;
  border-top:1px solid rgba(232,230,223,.85);
  font-size:.9rem;line-height:1.65;color:#3C3C36;
}
.paf-spec-row dd .paf-mixlist > li::before{
  content:"";position:absolute;left:0;top:1.16em;
  width:5px;height:5px;border-radius:50%;background:var(--paf-gold);
}
.paf-spec-row dd .paf-mixlist > li:first-child{border-top:0;padding-top:0}
.paf-spec-row dd .paf-mixlist > li:first-child::before{top:.62em}
.paf-spec-row dd .paf-mixlist > li:last-child{padding-bottom:0}
.paf-spec-row dd .paf-mixlist > li b{color:var(--paf-green);font-weight:600}

/* Product bottle inside a description: another 15% down (135 -> 115). */
.paf-doc-bottle-plate{width:115px;height:133px;padding:.5rem}
@media (max-width:600px){ .paf-doc-bottle-plate{width:102px;height:118px} }

/* ==========================================================================
   Bottle back to card size
   The 50% and 15% reductions were judged against a stale stylesheet, where
   the bottle was rendering at ~536px. With the correct CSS loading, matching
   the grid card is the right size: 270 x 311 plate, bottle at 178 x 256.
   ========================================================================== */
.paf-doc-bottle-plate{width:270px;height:311px;padding:1.15rem}
@media (max-width:600px){ .paf-doc-bottle-plate{width:240px;height:276px;padding:1rem} }

/* Trial photos, charts and tables in a product description: a step up from
   270px. Small tables like the beetroot analysis need the extra width to
   stay readable at a glance; still well short of the original 540px.      */
.paf-doc figure img{max-width:340px}
.paf-doc figcaption{max-width:340px}
@media (max-width:600px){
  .paf-doc figure img,.paf-doc figcaption{max-width:min(340px,100%)}
}
/* Evidence strips keep pace. */
div[style*="repeat(auto-fit,minmax(140px,1fr))"]{
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
}

/* Another step up: 340 -> 420px. */
.paf-doc figure img{max-width:420px}
.paf-doc figcaption{max-width:420px}
@media (max-width:600px){
  .paf-doc figure img,.paf-doc figcaption{max-width:min(420px,100%)}
}
div[style*="repeat(auto-fit,minmax(140px,1fr))"]{
  grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important;
}

/* ==========================================================================
   HEADER — liposome behind the bar on every page
   Previously the bar turned cream once you scrolled, which flipped the logo
   to dark and broke the look between the home page and the inner pages.
   Now the same liposome frame sits behind the nav everywhere.
   ========================================================================== */

.paf-header.is-solid{
  background-image:
    linear-gradient(rgba(8,30,18,.88), rgba(10,36,22,.92)),
    url("../img/hero-liposome.jpg");
  background-size:cover, cover;
  background-position:center, center 28%;
  background-repeat:no-repeat;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  box-shadow:0 10px 30px -18px rgba(6,24,14,.75);
}
/* a fine gold rule along the bottom, matching the page heroes */
.paf-header.is-solid::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,162,75,.45),transparent);
}
.paf-header{position:fixed}

/* Logo stays white, links stay light — at the top and once scrolled. */
.paf-header.is-solid .paf-logo{filter:brightness(0) invert(1)}
.paf-header.is-solid .paf-navlink{color:rgba(255,255,255,.82)}
.paf-header.is-solid .paf-navlink:hover,
.paf-header.is-solid .paf-navlink.is-active{color:#fff}
.paf-header.is-solid .paf-burger{color:rgba(255,255,255,.9)}
.paf-navlink.is-active{color:#fff}

/* ---- "Request a quote" ---------------------------------------------------
   A solid green block sat on top of the header rather than in it. Glass with
   a gold hairline belongs to the scheme; it fills gold on hover.          */
.paf-header .paf-btn-primary{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(201,162,75,.5);
  color:#fff;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:none;font-weight:500;letter-spacing:.02em;
}
.paf-header .paf-btn-primary:hover{
  background:rgba(201,162,75,.92);
  border-color:rgba(201,162,75,.92);
  color:#0B2A18;
  transform:translateY(-1px);
  box-shadow:0 10px 24px -12px rgba(201,162,75,.6);
}
.paf-header .paf-btn-primary span{color:inherit}

/* Mobile drawer picks up the same backdrop. */
.paf-drawer{
  background-image:
    linear-gradient(rgba(8,30,18,.94), rgba(10,36,22,.96)),
    url("../img/hero-liposome.jpg");
  background-size:cover, cover;
  background-position:center, center 28%;
}
.paf-drawer .paf-btn-primary{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(201,162,75,.5);
  color:#fff;backdrop-filter:blur(8px);
}
.paf-drawer .paf-btn-primary:hover{
  background:rgba(201,162,75,.92);border-color:rgba(201,162,75,.92);color:#0B2A18;
}

/* Darker, finer liposome so nav text keeps even contrast across the bar.
   A wider crop shows more of the structure instead of one blurred blob. */
.paf-header.is-solid{
  background-image:
    linear-gradient(rgba(7,27,16,.93), rgba(9,33,20,.95)),
    radial-gradient(120% 300% at 18% 50%, rgba(20,66,38,.55), rgba(9,33,20,0) 70%),
    url("../img/hero-liposome.jpg");
  background-size:cover, cover, 1700px auto;
  background-position:center, center, center 34%;
}
.paf-header.is-solid .paf-navlink{color:rgba(255,255,255,.86)}
.paf-header.is-solid .paf-btn-primary{border-color:rgba(201,162,75,.55)}

/* Same treatment for the drawer. */
.paf-drawer{
  background-image:
    linear-gradient(rgba(7,27,16,.95), rgba(9,33,20,.97)),
    url("../img/hero-liposome.jpg");
  background-size:cover, 1700px auto;
  background-position:center, center 34%;
}

/* ==========================================================================
   HEADER — transparent over the hero, light over the content
   The bar no longer carries its own copy of the liposome. It was a second
   crop of the same photo at a different scale, which is what produced the
   seam under the header. Now the hero's own image runs unbroken behind it.
   ========================================================================== */

.paf-header{
  background:transparent;background-image:none;
  box-shadow:none;border:0;
  transition:background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.paf-header::after{content:none}
.paf-header .paf-logo{filter:brightness(0) invert(1)}
.paf-header .paf-navlink{color:rgba(255,255,255,.86)}
.paf-header .paf-navlink:hover,
.paf-header .paf-navlink.is-active{color:#fff}
.paf-header .paf-burger{color:rgba(255,255,255,.92)}

/* ---- over the cream content ---------------------------------------------- */
.paf-header.is-solid{
  background-color:rgba(250,250,247,.9);
  background-image:none;
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  box-shadow:0 1px 0 rgba(27,94,53,.07), 0 14px 34px -28px rgba(15,61,34,.5);
}
.paf-header.is-solid::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,162,75,.4),transparent);
}
/* the logo returns to its own colours */
.paf-header.is-solid .paf-logo{filter:none}
.paf-header.is-solid .paf-navlink{color:#4A5A4E}
.paf-header.is-solid .paf-navlink:hover,
.paf-header.is-solid .paf-navlink.is-active{color:var(--paf-green)}
.paf-header.is-solid .paf-burger{color:var(--paf-green)}

/* ---- quote button, both states ------------------------------------------- */
.paf-header .paf-btn-primary{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(201,162,75,.55);
  color:#fff;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:none;font-weight:500;
  transition:all .35s cubic-bezier(.16,1,.3,1);
}
.paf-header .paf-btn-primary:hover{
  background:rgba(201,162,75,.92);border-color:rgba(201,162,75,.92);color:#0B2A18;
}
.paf-header.is-solid .paf-btn-primary{
  background:var(--paf-green);
  border-color:var(--paf-green);
  color:#fff;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  box-shadow:var(--sh-1);
}
.paf-header.is-solid .paf-btn-primary:hover{
  background:var(--paf-green-light);border-color:var(--paf-green-light);color:#fff;
  box-shadow:0 10px 24px -12px rgba(27,94,53,.6);
}

/* The hero image runs to the very top of the page, under the bar. */
.paf-hero-media{top:0}
.paf-pagehero{padding-top:11rem}
@media (max-width:767px){ .paf-pagehero{padding-top:8rem} }

/* Order line: name left, size and quantity right, so "PANAF 1" and "5 L"
   can never read as one value. */
.paf-order-line .paf-order-name{flex:1 1 auto;min-width:0}
.paf-order-line .paf-order-qty{
  margin-left:auto;white-space:nowrap;color:var(--paf-muted);
  font-family:var(--font-mono),monospace;font-size:.76rem;letter-spacing:.03em;
}
.paf-order-line button{margin-left:.6rem;border-radius:9999px;transition:background-color .2s ease,color .2s ease}
.paf-order-line button:hover{background:rgba(170,51,51,.1)}

/* Optional-field tag, honeypot, and form status messages */
.paf-opt{
  font-weight:400;text-transform:none;letter-spacing:0;
  font-size:.66rem;color:#9AA79D;margin-left:.35rem;font-style:italic;
}
.paf-hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.paf-note{font-size:.8rem;line-height:1.6;color:var(--paf-muted);transition:color .25s ease}
.paf-note.is-ok{color:var(--paf-green);font-weight:600}
.paf-note.is-err{color:#A8342F;font-weight:600}
.paf-note.is-warn{color:var(--paf-gold-ink);font-weight:600}
.paf-note.is-busy{color:var(--paf-muted)}
.paf-btn:disabled{opacity:.65;cursor:progress}

/* Contact page has no header CTA — you are already there. Hold the space so
   the navigation stays where it sits on every other page. */
@media (min-width:1024px){
  .paf-header[data-nocta] .paf-actions{min-width:186px;justify-content:flex-end}
}

/* Honeypot: hide it inside the layout rather than at left:-9999px, so no
   element sits off-canvas. Bots still see and fill it; people never do. */
.paf-hp{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  left:auto;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);
  white-space:nowrap;border:0;opacity:0;pointer-events:none;
}

/* Wordmark a step larger across the site. */
.paf-logo{height:44px}
@media (max-width:1023px){ .paf-logo{height:38px} }
@media (max-width:640px){ .paf-logo{height:34px} }
.paf-foot-logo{height:40px}

/* ==========================================================================
   MOBILE PASS — phones & small tablets
   Loaded last so it settles the conflicts between the earlier
   "responsive layer" and the later "image sizing" pass.
   ========================================================================== */

/* --- Header: the burger follows the backdrop -------------------------------
   The button carried an inline colour, which beat every rule below and left a
   white icon sitting on the cream header. Colour now comes from the header
   state: light over the hero, green over the page.                          */
.paf-burger{color:rgba(255,255,255,.95);transition:color .35s ease}
.paf-header .paf-burger{color:rgba(255,255,255,.95)}
.paf-header.is-solid .paf-burger{color:var(--paf-green)}
/* A soft scrim keeps the icon legible if a pale frame of the hero video
   drifts underneath it. */
.paf-header:not(.is-solid) .paf-burger{
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.paf-header.is-solid .paf-burger{filter:none}

/* --- Product grid ----------------------------------------------------------
   One column on a phone made each card ~555px tall: a single bottle filled
   the screen and the catalogue ran to 11,800px. Two columns from 380px up,
   with the tile sized so the bottle fills it rather than stretching it.     */
@media (max-width:767px){
  .paf-pgrid{grid-template-columns:repeat(2,1fr);gap:.85rem}
  .paf-pcard-media{
    height:auto;aspect-ratio:1/1.02;padding:.85rem;
  }
  .paf-pcard-media img{max-width:74%;max-height:92%}
  .paf-pcard-body{padding:.85rem .9rem 1rem}
  .paf-pcard-name{font-size:1.02rem;line-height:1.22}
  .paf-pcard-sub{font-size:.74rem}
  .paf-pcard-blurb{
    font-size:.76rem;line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;
    overflow:hidden;
  }
  .paf-pcard-tag{font-size:.58rem;padding:.2rem .5rem}
  .paf-pcard-more{font-size:.72rem}
}
/* Very narrow phones keep a single column — two would be unreadable. */
@media (max-width:379px){
  .paf-pgrid{grid-template-columns:1fr;gap:1rem}
  .paf-pcard-media{aspect-ratio:1/.62;padding:1rem}
  .paf-pcard-media img{max-width:42%;max-height:92%}
  .paf-pcard-blurb{-webkit-line-clamp:3}
}

/* --- Legibility on a phone -------------------------------------------------
   The uppercase micro-labels were rendering at 9–10px, which is under the
   comfortable floor on a handset. Nothing below 11px on a touch screen.     */
@media (max-width:767px){
  .paf-spec-row dt,
  .paf-doc .paf-spec dt,
  .paf-label,.paf-eyebrow,.paf-kicker{font-size:.7rem;letter-spacing:.13em}
  .paf-pcard-tag{font-size:.66rem;padding:.24rem .58rem}
  .paf-pcard-idx,.paf-pcard-media .idx{font-size:.68rem}
  .paf-scroll-cue{font-size:.66rem}
  .paf-trial-idx{font-size:.68rem}
}

/* --- Touch targets ---------------------------------------------------------
   Phone, WhatsApp and email on Contact were 15–16px tall — hard to hit and
   below the 44px guidance. Give them real height without moving the layout. */
@media (max-width:767px){
  .paf-spec-row dd a,
  .paf-spec-row dd > a{
    display:inline-block;padding:.55rem 0;min-height:44px;
    line-height:1.9;
  }
  .paf-spec-row dd a + a{margin-left:0}
  .paf-spec-row dd{display:flex;flex-direction:column;align-items:flex-start}
}
@media (max-width:767px){
  .paf-pcard-code{font-size:.68rem}
}

/* --- Product panel on a phone: a real sheet with its own scroll -------------
   `align-items:stretch` pinned the panel to exactly one viewport height while
   it still carried `overflow:hidden` from the desktop rule. The panel held
   2,732px of content in an 844px box, so everything below the fold was
   clipped and unreachable — and the touch fell through to the page behind.
   The panel is now a column: fixed head, scrolling body.                    */
@media (max-width:767px){
  .paf-modal{
    padding:0;align-items:stretch;
    overflow:hidden;                 /* the body scrolls, not the overlay */
  }
  .paf-modal-panel{
    display:flex;flex-direction:column;
    height:100%;max-height:100%;min-height:0;
    margin:0;max-width:100%;border-radius:0;overflow:hidden;
  }
  .paf-modal-head{flex:0 0 auto;position:static}
  .paf-modal-body{
    flex:1 1 auto;min-height:0;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
}
/* Use the dynamic viewport where it exists so the iOS toolbar collapsing
   does not leave the sheet taller than the visible area. */
@supports (height:100dvh){
  @media (max-width:767px){ .paf-modal{height:100dvh} }
}

/* Lightbox: keep the image inside the visible area on a phone and stop the
   scroll chaining through to the page behind. */
@media (max-width:767px){
  .paf-lightbox{overscroll-behavior:contain}
  .paf-lb-fig{max-height:100%}
  .paf-lb-img{max-width:94vw;max-height:62svh}
  .paf-lb-close{width:44px;height:44px}
}

/* --- Header scrim over the hero --------------------------------------------
   While the bar is transparent, hero content scrolls straight under it and
   collided with the logo — the CTA buttons and the wordmark rendered on top
   of each other. A soft top-down scrim keeps the bar feeling transparent
   while separating it from whatever passes beneath.                         */
.paf-header:not(.is-solid){
  background-image:linear-gradient(to bottom,
    rgba(9,26,16,.78) 0%,
    rgba(9,26,16,.46) 58%,
    rgba(9,26,16,0) 100%);
}
.paf-header.is-solid{background-image:none}

/* Scrolled, but still over the hero: a dark translucent bar. Keeps the white
   logo and burger, hides whatever is sliding underneath. */
.paf-header.is-dark{
  background-color:rgba(11,32,20,.82);
  background-image:none;
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  box-shadow:0 10px 30px -24px rgba(0,0,0,.9);
}
.paf-header.is-dark .paf-burger{color:rgba(255,255,255,.95);filter:none}
.paf-header.is-dark .paf-logo{filter:brightness(0) invert(1)}
