/* Morgan Mwanza Organic Products: polish for every screen, plus the tablet and computer layouts.
   The phone layout itself lives in the page's own styles. */

/* ---------- Every screen: smoother feel ---------- */
html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.card,.act,.buy,.icon-btn,.rbtn2,.add,.cta{transition:transform .18s ease,box-shadow .25s ease,background-color .2s ease,filter .2s ease}
.card:active,.act:active,.buy:active,.icon-btn:active,.add:active{transform:scale(.97)}
.drawer{transition:transform .38s cubic-bezier(.2,.8,.2,1)!important}
.scrim.on{animation:mmfade .25s both}
.modal.open{animation:mmfade .2s both}
.modal.open .sheet{animation:mmup .32s cubic-bezier(.2,.8,.2,1) both}
@keyframes mmfade{from{opacity:0}to{opacity:1}}
@keyframes mmup{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
:focus-visible{outline:3px solid #8fdd2a;outline-offset:2px}
.rv{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)!important}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .drawer,.card,.act,.buy{transition:none!important}
  .scrim.on,.modal.open,.modal.open .sheet{animation:none}
}
@media print{.rv{opacity:1!important;transform:none!important}}

/* ---------- Things the admin app can add or switch ---------- */
.cust-slide{align-items:flex-end!important}
.cust-slide.noimg{align-items:center!important}
.promo img.custimg{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;object-fit:cover;-webkit-mask-image:none!important;mask-image:none!important}
.cust-slide:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,rgba(6,40,6,.9) 0,rgba(6,40,6,.45) 50%,rgba(6,40,6,0) 80%)}
.cust-slide.noimg:before{display:none}
.ctext{position:relative;z-index:2;width:100%;padding:18px 18px 30px}
.cust-slide .htitle{margin:0 0 4px;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.csub{color:#e9f7df;font-weight:600;font-size:clamp(13px,3.8vw,20px);line-height:1.35;margin:0 0 12px;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.slide.cur .csub{animation:rise .6s .35s both}
.tile.art .pphoto{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px}
.mm-no-reviews #dReviews,.mm-no-reviews .card[data-reviews],.mm-no-reviews .dnav [data-reviews],.mm-no-reviews .dfoot [data-reviews]{display:none!important}
.mm-no-how #dHow,.mm-no-how [data-howbuy]{display:none!important}
body.mm-biz .actions{display:grid!important}
body.mm-biz .dnav [data-biz]{display:inline-block!important}
body.mm-biz .alist [data-biz]{display:flex!important}
.mm-preview{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:90;background:#111;color:#fff;font-size:12px;font-weight:700;padding:7px 14px;border-radius:999px;opacity:.92;pointer-events:none;white-space:nowrap;max-width:94vw;overflow:hidden;text-overflow:ellipsis}

/* Sections that only exist on computers */
.dcopy,.dsub,.dsec,.dfoot{display:none}

/* ---------- Tablets: a wider single column ---------- */
@media (min-width:700px) and (max-width:899px){
  .app{max-width:760px}
  .bnav-in{max-width:760px}
  main{padding:18px 22px 24px}
  .promo{min-height:270px}
  .grid{gap:16px}
}

/* ---------- Computers: full-width layout ---------- */
@media (min-width:900px){
  :root{--gutter:max(clamp(28px,5vw,88px),calc((100% - 1640px) / 2));--ink:#0f3d0f;--head:76px;--sec:clamp(64px,7vw,108px)}
  body{background:#fff;overflow-x:hidden}
  .app{max-width:none;padding:0!important;background:transparent}
  main{max-width:none;margin:0;padding:0!important}
  .bnav{display:none!important}
  .mm-preview{bottom:18px}

  /* Top bar */
  header{position:sticky;top:0;z-index:20;height:var(--head);gap:24px;padding:0 var(--gutter);background:rgba(255,255,255,.93);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 1px 0 rgba(15,61,15,.08);transition:box-shadow .25s}
  header.scrolled{box-shadow:0 8px 28px rgba(15,61,15,.1)}
  header img{height:52px}
  .dnav{display:flex;gap:2px;margin-right:auto}
  .dnav button{border:0;background:none;font:inherit;font-weight:600;font-size:15px;color:#1d3b1d;padding:9px 15px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
  .dnav button:hover{background:#eef5ec;color:#16692a}
  .dnav button.on{background:#e3f2e6;color:#145f12}
  .icons{gap:8px}
  .icon-btn{width:44px;height:44px;border-radius:50%}
  .icon-btn:hover{background:#dfeedd}
  .search{padding:14px var(--gutter);box-shadow:0 1px 0 #e4e9e2}
  .search input,.search .allp{max-width:640px;margin-left:auto;margin-right:auto}

  /* Banner: edge to edge */
  .dhero{display:flex;flex-direction:column}
  .slider{order:0;border-radius:0!important;box-shadow:none}
  .promo{min-height:clamp(420px,calc(100vh - var(--head) - 150px),640px)!important}
  .promo .promo-text{width:58%!important;padding:0 0 0 var(--gutter)!important}
  .badge{font-size:15px;padding:7px 16px;letter-spacing:.05em}
  .promo h1{font-size:clamp(60px,7.4vw,118px)!important;line-height:.95;letter-spacing:-.03em;margin:18px 0 16px}
  .plusk20{font-size:clamp(17px,1.6vw,24px)!important;padding:6px 14px;border-radius:10px;white-space:nowrap}
  .buy{font-size:19px!important;padding:15px 34px!important}
  .buy:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.25)}
  .howbuy{font-size:17px;padding:13px 24px}
  .promo img.jar{width:auto!important;height:min(94%,470px)!important;top:0!important;bottom:0!important;margin:auto 0!important;right:calc(var(--gutter) + 3%)!important;object-fit:contain!important;-webkit-mask-image:radial-gradient(closest-side,#000 72%,transparent 100%)!important;mask-image:radial-gradient(closest-side,#000 72%,transparent 100%)!important}
  .promo .k20coin{right:var(--gutter);width:clamp(150px,13vw,210px)}
  .itext{padding:52px var(--gutter) 0!important}
  .ingr-slide .htitle,.cust-slide .htitle{font-size:clamp(40px,4.6vw,72px)!important;letter-spacing:-.02em}
  .cust-slide .htitle{max-width:18ch}
  .ctext{padding:0 var(--gutter) 72px}
  .csub{font-size:clamp(18px,1.6vw,24px);max-width:44ch;margin-bottom:22px}
  .rtext{max-width:1000px;margin:0 auto;padding:40px var(--gutter)!important;text-align:center}
  .rq{font-size:96px;height:44px}
  .rbody{font-size:clamp(22px,2.2vw,32px)!important;line-height:1.4;margin:12px 0 16px}
  .rwho{font-size:16px}
  .dots{bottom:22px;gap:8px}
  .dots button{width:10px;height:10px}
  .dots button.on{width:32px}

  /* Welcome band under the banner */
  .dcopy{order:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"eye eye" "title lead" "title ctas" "trust trust";column-gap:clamp(32px,6vw,104px);padding:clamp(48px,5.5vw,80px) var(--gutter) 0}
  .deyebrow{grid-area:eye;justify-self:start;background:#e3f2e6;color:#16692a;font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:7px 14px;border-radius:999px;margin-bottom:20px}
  .dtitle{grid-area:title;font-size:clamp(34px,3.7vw,58px);line-height:1.05;font-weight:900;color:var(--ink);letter-spacing:-.03em}
  .dlead{grid-area:lead;font-size:clamp(17px,1.3vw,20px);line-height:1.65;color:#4a5a4a;padding-top:6px}
  .dctas{grid-area:ctas;display:flex;flex-wrap:wrap;gap:12px;margin-top:26px;align-self:start}
  .dbtn{display:inline-flex;align-items:center;gap:8px;background:#16692a;color:#fff;border:2px solid #16692a;border-radius:999px;padding:13px 26px;font:inherit;font-weight:700;font-size:16px;line-height:1.2;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .2s,transform .2s,box-shadow .2s}
  .dbtn:hover{background:#0f5a0c;border-color:#0f5a0c;transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,90,12,.22)}
  .dbtn.ghost{background:transparent;color:#16692a}
  .dbtn.ghost:hover{background:#eef5ec;box-shadow:none}
  .dbtn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linejoin:round}
  .dtrust{grid-area:trust;display:grid;grid-template-columns:repeat(3,1fr);list-style:none;margin-top:clamp(40px,4.5vw,64px);border-top:1px solid #e6ece4;border-bottom:1px solid #e6ece4;color:#2c4a2c;font-weight:600;font-size:15.5px}
  .dtrust li{display:flex;align-items:center;justify-content:center;gap:10px;padding:22px 12px}
  .dtrust li+li{border-left:1px solid #e6ece4}
  .dtrust svg{width:24px;height:24px;flex:none;stroke:#16692a;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

  /* Goals: three wide cards per row */
  main>h2{font-size:clamp(30px,3vw,46px)!important;color:var(--ink);letter-spacing:-.025em;padding:0 var(--gutter);margin:var(--sec) 0 8px!important;scroll-margin-top:calc(var(--head) + 24px)}
  .dsub{display:block;color:#5b6b5b;font-size:clamp(16px,1.2vw,19px);line-height:1.5}
  main>.dsub{padding:0 var(--gutter);margin:0 0 32px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(18px,2.2vw,34px)!important;padding:0 var(--gutter)}
  .card{border:0!important;border-radius:24px!important;background:#fff;box-shadow:0 0 0 1px rgba(15,61,15,.06),0 14px 34px rgba(15,61,15,.08)!important;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
  .card:hover{transform:translateY(-6px);box-shadow:0 0 0 1px rgba(15,61,15,.06),0 26px 52px rgba(15,61,15,.17)!important}
  .card img{order:0;flex:none;aspect-ratio:1.5!important;object-position:center 30%;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
  .card:hover img{transform:scale(1.045)}
  .card .t{order:1;position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff!important;color:var(--ink)!important;border-bottom:0!important;text-transform:none!important;text-align:left!important;font-size:clamp(17px,1.5vw,22px)!important;letter-spacing:-.01em!important;padding:18px 22px!important;white-space:normal}
  .card .t:after{content:"\2192";flex:none;width:40px;height:40px;border-radius:50%;background:#e3f2e6;color:#16692a;display:grid;place-items:center;font-size:18px;font-weight:700;transition:background .25s,color .25s,transform .25s}
  .card:hover .t:after{background:#16692a;color:#fff;transform:translateX(3px)}
  .card .reviews{order:0;flex:none;aspect-ratio:1.5;background:linear-gradient(135deg,#eef8ea,#d8efd1)}
  .rstars{font-size:clamp(30px,2.6vw,42px)}
  .reviews p{font-size:17px;margin:10px 0 8px}
  .rbtn{font-size:16px;padding:11px 24px}
  .actions{padding:0 var(--gutter);gap:clamp(18px,2.2vw,34px)!important;margin-top:28px!important}
  .act{font-size:19px!important;padding:22px!important;border-radius:18px}
  .act:hover{filter:brightness(1.12)}

  /* Full-width sections */
  .dsec{display:block;padding:var(--sec) var(--gutter);scroll-margin-top:var(--head)}
  .dsec[hidden]{display:none}
  .dsec h2{font-size:clamp(30px,3vw,46px)!important;color:var(--ink);letter-spacing:-.025em;margin:0 0 8px!important}
  .dsec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:36px}
  .dsec-head .dsub{margin:0}
  .dsec-btns{display:flex;gap:10px}

  /* Reviews */
  #dReviews{background:#f3f8f1;margin-top:var(--sec)}
  .drevs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.2vw,34px);align-items:stretch}
  .drev{background:#fff;border-radius:24px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 0 0 1px rgba(15,61,15,.05),0 14px 34px rgba(15,61,15,.07)}
  .drev-pics{display:grid;gap:2px;background:#e4e9e2}
  .drev-pics.two{grid-template-columns:1fr 1fr}
  .drev-pics figure{position:relative;margin:0}
  .drev-pics img{display:block;width:100%;height:clamp(220px,20vw,320px);object-fit:cover;object-position:center 30%}
  .drev-pics figcaption{position:absolute;left:12px;bottom:12px;background:rgba(15,61,15,.85);color:#fff;font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px}
  .drev-body{padding:26px 28px 28px;display:flex;flex-direction:column;gap:16px;flex:1}
  .drev-stars{color:#f5b301;letter-spacing:2px;font-size:18px}
  .drev-q{font-size:17px;line-height:1.65;color:#1f2d1f}
  .drev:not(:has(.drev-pics)) .drev-body{justify-content:center}
  .drev:not(:has(.drev-pics)) .drev-q{font-size:clamp(19px,1.6vw,24px);line-height:1.5;color:var(--ink);font-weight:600}
  .drev-who{border-top:1px solid #eef2ec;padding-top:16px;margin-top:auto}
  .drev-who b{display:block;color:var(--ink);font-size:15px}
  .drev-who span{font-size:13px;color:#16692a;font-weight:600}

  /* How to buy */
  .dhow{display:grid;grid-template-columns:auto minmax(0,600px);gap:clamp(48px,8vw,140px);align-items:center;justify-content:center}
  .dhow-vid{width:clamp(250px,22vw,310px);padding:10px;border-radius:42px;background:#111;box-shadow:0 30px 60px rgba(15,61,15,.28)}
  .dhow-vid video{display:block;width:100%;aspect-ratio:1/2;border-radius:32px;background:#000;object-fit:cover}
  .dhow-copy .dsub{margin:0 0 8px}
  .dsteps{list-style:none;counter-reset:st;margin:24px 0 34px;display:grid;gap:22px}
  .dsteps li{counter-increment:st;display:grid;grid-template-columns:48px 1fr;column-gap:18px;align-items:start}
  .dsteps li:before{content:counter(st);grid-row:span 2;width:48px;height:48px;border-radius:50%;background:#e3f2e6;color:#16692a;font-weight:800;font-size:19px;display:grid;place-items:center}
  .dsteps b{color:var(--ink);font-size:18px;padding-top:2px}
  .dsteps span{color:#5b6b5b;font-size:15.5px;line-height:1.5}

  /* Footer */
  .dfoot{display:block;text-align:left;background:#0c330c;color:#cfe3cf;padding:64px var(--gutter) 28px;font-size:14.5px}
  .dfoot-in{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:40px}
  .dfoot img{height:58px;background:#fff;border-radius:12px;padding:6px 10px}
  .dfoot p{margin-top:16px;line-height:1.6;max-width:280px}
  .dfoot b{display:block;color:#fff;font-size:15px;margin-bottom:16px}
  .dfoot a,.dfoot .dfoot-in span{display:block;color:#cfe3cf;text-decoration:none;margin-bottom:10px;cursor:pointer;transition:color .2s}
  .dfoot .dfoot-in a span{display:inline;margin:0}
  .dfoot .dfoot-in div>span{cursor:default}
  .dfoot a:hover{color:#fff}
  .dfoot .dcopy-r{max-width:none;border-top:1px solid rgba(255,255,255,.12);margin-top:44px;padding-top:22px;font-size:13px;color:#9fbf9f}

  /* Pop-ups in the centre of the screen */
  .modal{align-items:center;padding:24px}
  .sheet{border-radius:22px;max-height:85vh;box-shadow:0 24px 60px rgba(0,0,0,.3)}
  .drawer{width:560px}
  .gbox{max-width:440px}
  .toast{top:96px!important}
}

/* Smaller laptops, and phones switched to "desktop site" */
@media (min-width:900px) and (max-width:1199px){
  header{gap:14px}
  .dnav button{padding:8px 10px;font-size:14px}
  .promo .promo-text{width:60%!important}
  .promo img.jar{height:min(80%,400px)!important;right:var(--gutter)!important}
  .promo h1{font-size:clamp(54px,6.6vw,80px)!important}
  .dtrust{font-size:14px}
  .dtrust li{padding:18px 8px}
  .card .t{padding:14px 16px!important}
  .card .t:after{width:34px;height:34px;font-size:16px}
  .drev-body{padding:20px 20px 22px}
}
