/*
Theme Name: Power Foods Pre-Sell V5.4 Production
Theme URI: https://example.com/
Author: Custom build
Description: Lightweight mobile-first pre-sell theme for The Encyclopedia of Power Foods affiliate campaign.
Version: 5.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: powerfoods-presell
*/
:root{
 --ink:#15231d;--green:#1f5b3d;--green2:#2f7d54;--cream:#f7f3e8;--gold:#d7a83b;
 --muted:#66746d;--white:#fff;--line:#e6e4dc;--shadow:0 16px 50px rgba(20,40,30,.12)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}
a{text-decoration:none}.wrap{width:min(1120px,92%);margin:auto}.topbar{background:#11271d;color:#eaf4ee;text-align:center;padding:9px 12px;font-size:14px}.nav{display:flex;align-items:center;justify-content:space-between;padding:18px 0}.brand{font-weight:900;letter-spacing:-.03em;color:var(--ink);font-size:20px}.brand span{color:var(--green2)}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--green2);color:#fff;font-weight:800;padding:15px 22px;border-radius:12px;box-shadow:0 10px 25px rgba(47,125,84,.24);transition:.2s}.btn:hover{transform:translateY(-1px);background:#286d49}.btn.alt{background:#fff;color:var(--green);border:1px solid #d9e5de;box-shadow:none}.btn.big{font-size:18px;padding:18px 28px}
.hero{background:linear-gradient(135deg,#f8f5ea 0%,#eef6f0 100%);padding:62px 0 70px;border-top:1px solid #edf0ec}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}.eyebrow{display:inline-block;font-weight:800;color:var(--green2);background:#e3f1e8;padding:7px 11px;border-radius:999px;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:clamp(40px,5.3vw,70px);line-height:1.01;letter-spacing:-.055em;margin:18px 0}.hero h1 em{font-style:normal;color:var(--green2)}.lead{font-size:20px;color:#405149;max-width:700px}.micro{font-size:13px;color:var(--muted);margin-top:12px}
.visual{position:relative;min-height:500px;display:grid;place-items:center}.book{width:330px;max-width:78%;aspect-ratio:3/4;background:linear-gradient(145deg,#173629,#0e1f18);border-radius:8px 20px 20px 8px;box-shadow:28px 30px 55px rgba(15,45,30,.28);padding:34px 28px;color:#fff;position:relative;transform:rotate(2deg)}.book:after{content:"";position:absolute;right:-13px;top:12px;bottom:12px;width:15px;background:linear-gradient(90deg,#d8d3c3,#fff);border-radius:0 8px 8px 0}.book small{color:#d8bd72;text-transform:uppercase;letter-spacing:.15em;font-weight:800}.book h2{font-size:38px;line-height:1.02;margin:24px 0 14px}.book .seal{position:absolute;bottom:26px;left:28px;border:1px solid #d8bd72;color:#f5dfa4;padding:8px 10px;border-radius:999px;font-size:12px}.food-dots{position:absolute;inset:0;pointer-events:none}.dot{position:absolute;border-radius:50%;box-shadow:var(--shadow);border:6px solid #fff}.d1{width:100px;height:100px;background:radial-gradient(circle at 35% 35%,#ffde6d,#d59a16);top:30px;right:15px}.d2{width:120px;height:120px;background:radial-gradient(circle at 35% 35%,#8bc46c,#2c7a42);bottom:40px;left:0}.d3{width:78px;height:78px;background:radial-gradient(circle at 35% 35%,#e9785c,#9b281f);bottom:10px;right:50px}
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:-28px;position:relative;z-index:2}.trust div{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:18px;text-align:center;font-weight:800}.trust span{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-top:4px}
section{padding:78px 0}.section-title{text-align:center;max-width:800px;margin:0 auto 42px}.section-title h2{font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.04em;margin:0 0 14px}.section-title p{font-size:18px;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff;box-shadow:0 8px 28px rgba(20,40,30,.06)}.icon{width:46px;height:46px;border-radius:12px;background:#e7f2eb;display:grid;place-items:center;font-size:22px;margin-bottom:16px}.card h3{margin:0 0 8px;font-size:19px}.card p{margin:0;color:var(--muted)}
.editorial{background:#11271d;color:#fff}.editorial-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:52px;align-items:center}.plate{aspect-ratio:1;border-radius:50%;background:conic-gradient(#d75d3e 0 15%,#f0b74d 15% 30%,#70a94e 30% 50%,#356f50 50% 68%,#8c4e3c 68% 82%,#d9c789 82%);border:22px solid #f7f3e8;box-shadow:0 22px 55px rgba(0,0,0,.3);max-width:390px;margin:auto}.editorial h2{font-size:44px;line-height:1.08;letter-spacing:-.04em}.editorial p{color:#d9e4de;font-size:18px}
.list{display:grid;gap:12px;margin:24px 0}.list div{display:flex;gap:12px;align-items:flex-start}.check{flex:0 0 26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#d7a83b;color:#14261d;font-weight:900}
.offer{background:var(--cream)}.offerbox{background:#fff;border:1px solid #e1ded2;border-radius:24px;box-shadow:var(--shadow);padding:42px;display:grid;grid-template-columns:1fr .85fr;gap:42px;align-items:center}.price{font-size:50px;font-weight:900;letter-spacing:-.05em;color:var(--green)}.price small{font-size:15px;color:var(--muted);font-weight:600;letter-spacing:0}.facts{display:grid;gap:12px}.fact{background:#f8faf8;border:1px solid #e3ebe6;border-radius:12px;padding:14px 16px;font-weight:700}.disclosure{font-size:13px;color:var(--muted);margin-top:16px}
.faq{max-width:850px;margin:auto}.faq details{border-bottom:1px solid var(--line);padding:18px 0}.faq summary{cursor:pointer;font-weight:800;font-size:18px}.faq p{color:var(--muted)}
footer{background:#0e1f18;color:#b9c9c0;padding:42px 0;font-size:13px}footer a{color:#dce9e2}.footgrid{display:grid;grid-template-columns:1fr auto;gap:20px}
.sticky{display:none}
@media(max-width:800px){
 .nav .btn{display:none}.hero{padding:38px 0 58px}.hero-grid,.editorial-grid,.offerbox{grid-template-columns:1fr}.hero-grid{gap:28px}.visual{min-height:390px}.book{width:270px}.trust{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr}.editorial h2{font-size:34px}.offerbox{padding:26px}.footgrid{grid-template-columns:1fr}.sticky{display:block;position:fixed;left:10px;right:10px;bottom:10px;z-index:20}.sticky .btn{width:100%;border:2px solid #fff}.hero h1{font-size:44px}
}

/* V2 conversion enhancements */
.hero{padding-top:46px}
.hero-grid{grid-template-columns:1fr 1fr}
.hero-photo{width:100%;border-radius:26px;box-shadow:0 24px 70px rgba(20,40,30,.22);border:8px solid rgba(255,255,255,.75)}
.kicker{font-size:15px;font-weight:850;color:#1f5b3d;margin:12px 0}
.proofline{display:flex;gap:16px;flex-wrap:wrap;margin:22px 0 0;color:#43554b;font-weight:700;font-size:14px}
.proofline span:before{content:"✓";color:#2f7d54;font-weight:900;margin-right:6px}
.cta-note{display:flex;align-items:center;gap:8px;font-size:13px;color:#5d6e65;margin-top:12px}
.cta-note b{color:#173629}
.ribbon{background:#d7a83b;color:#15231d;text-align:center;font-weight:900;padding:12px 16px}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:22px}.compare .card{padding:30px}.compare ul{padding-left:20px;color:#56675e}
.story{max-width:820px;margin:auto;font-size:19px}.story p:first-of-type:first-letter{font-size:58px;float:left;line-height:.8;padding:8px 8px 0 0;color:#2f7d54;font-weight:900}
.cta-panel{background:linear-gradient(135deg,#173629,#0e1f18);color:#fff;border-radius:26px;padding:44px;text-align:center;box-shadow:var(--shadow)}
.cta-panel h2{font-size:clamp(32px,4vw,50px);line-height:1.06;margin:0 0 14px}.cta-panel p{color:#d9e4de;font-size:18px;max-width:720px;margin:0 auto 24px}
@media(max-width:800px){.compare{grid-template-columns:1fr}.hero-photo{border-radius:18px}.hero-grid{display:flex;flex-direction:column}.hero-grid>div:first-child{order:1}.hero-grid>div:last-child{order:0}.cta-panel{padding:28px 20px}.proofline{gap:8px 14px}}

/* V3 — mobile conversion pass */
@media(max-width:800px){
  body{font-size:16px;padding-bottom:82px}
  .topbar{font-size:11px;line-height:1.35;padding:7px 10px}
  .nav{padding:12px 0}
  .brand{font-size:16px}
  .ribbon{font-size:10px;line-height:1.35;padding:9px 10px}
  .hero{padding:20px 0 30px}
  .hero-grid{gap:18px}
  .hero-grid>div:last-child{order:0}
  .hero-grid>div:first-child{order:1}
  .hero-photo{width:100%;border-width:5px;border-radius:16px;box-shadow:0 14px 36px rgba(20,40,30,.18)}
  .eyebrow{font-size:10px;line-height:1.3;padding:6px 9px}
  .hero h1{font-size:35px;line-height:1.02;letter-spacing:-.045em;margin:12px 0}
  .lead{font-size:16px;line-height:1.48;margin:0}
  .kicker{font-size:13px;line-height:1.4;margin:12px 0}
  .hero .btn.big{width:100%;font-size:17px;padding:17px 16px}
  .hero .btn.alt.big{display:none}
  .proofline{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:15px;font-size:12px}
  .cta-note{font-size:11px;line-height:1.35}
  .trust{grid-template-columns:1fr 1fr;gap:8px;margin-top:0;padding-top:12px}
  .trust div{padding:12px 8px;font-size:13px;border-radius:11px}
  .trust span{font-size:10px}
  section{padding:48px 0}
  .section-title{margin-bottom:26px}
  .section-title h2{font-size:30px;line-height:1.08}
  .section-title p{font-size:16px}
  .card{padding:20px}
  .editorial-grid{gap:26px}
  .plate{max-width:250px;border-width:14px}
  .editorial h2{font-size:31px}
  .editorial p{font-size:16px}
  .offerbox{padding:22px 18px;gap:22px;border-radius:18px}
  .offerbox h2{font-size:31px!important}
  .price{font-size:43px}
  .fact{font-size:14px;padding:12px}
  .facts .btn.big{width:100%}
  .cta-panel{padding:28px 18px;border-radius:18px}
  .cta-panel h2{font-size:30px}
  .cta-panel p{font-size:16px}
  .cta-panel .btn.big{width:100%}
  .faq summary{font-size:16px}
  .sticky{left:8px;right:8px;bottom:8px}
  .sticky .btn{min-height:58px;font-size:16px;padding:14px 12px;box-shadow:0 12px 30px rgba(0,0,0,.28)}
}
@media(max-width:390px){
  .hero h1{font-size:32px}
  .proofline{grid-template-columns:1fr}
}

/* V4 — high-conversion mobile polish */
.mobile-proof{display:none}
.hero-primary{margin-top:24px}
.hero-micro{max-width:520px}
@media(max-width:800px){
  .topbar{display:none}
  header{border-bottom:1px solid #edf0ec}
  .nav{min-height:52px;padding:10px 0}
  .brand{font-size:15px;letter-spacing:-.02em}
  .desktop-ribbon{display:none}
  .hero{padding:14px 0 22px;background:linear-gradient(180deg,#f9f7ef 0%,#f0f6f1 100%)}
  .hero-grid{display:grid;grid-template-columns:1fr;gap:14px}
  .hero-media{order:0}
  .hero-copy{order:1}
  .hero-photo{
    display:block;width:100%;max-height:245px;object-fit:cover;
    object-position:center 49%;border:4px solid rgba(255,255,255,.92);
    border-radius:17px;box-shadow:0 12px 30px rgba(20,40,30,.14)
  }
  .hero .eyebrow{
    margin-top:1px;background:transparent;padding:0;border-radius:0;
    font-size:11px;letter-spacing:.11em;color:#2f7d54
  }
  .hero h1{
    font-size:36px;line-height:.99;letter-spacing:-.05em;
    margin:9px 0 12px;max-width:620px
  }
  .hero .lead{font-size:15.5px;line-height:1.42;color:#46574e;margin:0}
  .mobile-proof{
    display:block;margin-top:12px;font-size:11.5px;font-weight:800;
    color:#42564b;letter-spacing:.01em
  }
  .mobile-proof b{color:#d7a83b;margin:0 3px}
  .hero-primary{
    width:100%;margin-top:14px;min-height:56px;padding:14px 16px;
    border-radius:13px;font-size:17px;box-shadow:0 10px 24px rgba(47,125,84,.25)
  }
  .hero-micro{font-size:10.5px;line-height:1.35;text-align:center;margin:8px 4px 0;color:#6b7a72}
  .conversion-trust{display:none}
  #discover{padding-top:44px}
  .sticky{left:10px;right:10px;bottom:9px}
  .sticky .btn{min-height:54px;border-radius:13px;font-size:16px}
}
@media(max-width:390px){
  .hero-photo{max-height:218px}
  .hero h1{font-size:33px}
  .hero .lead{font-size:15px}
  .mobile-proof{font-size:10.8px}
}


/* V5 FINAL — mobile paid-traffic refinement */
@media(max-width:800px){
  body{padding-bottom:68px}
  .hero{padding-top:10px;padding-bottom:18px}
  .hero-grid{gap:11px}
  .hero-photo{
    max-height:205px;
    object-fit:cover;
    object-position:center 48%;
    border-radius:15px;
  }
  .hero h1{
    font-size:34px;
    line-height:1.01;
    margin:7px 0 9px;
  }
  .hero .lead{
    font-size:15px;
    line-height:1.38;
  }
  .mobile-proof{margin-top:9px}
  .hero-primary{
    margin-top:11px;
    min-height:53px;
    padding:13px 15px;
    font-size:16.5px;
  }
  .hero-micro{margin-top:6px}
  section{padding-top:38px;padding-bottom:38px}
  #discover{padding-top:36px}
  .section-title{margin-bottom:20px}
  .section-title h2{font-size:28px;line-height:1.06}
  .section-title p{font-size:15px;line-height:1.45}
  .cards,.grid3{gap:12px}
  .card{padding:17px}
  .card h3{margin-bottom:7px}
  .editorial-grid{gap:18px}
  .editorial h2{font-size:28px;line-height:1.08}
  .editorial p{font-size:15px;line-height:1.5}
  .offerbox{padding:19px 16px}
  .cta-panel{padding:24px 16px}
  .faq{gap:9px}
  .sticky{
    left:12px;
    right:12px;
    bottom:8px;
    transform:translateY(120%);
    opacity:0;
    pointer-events:none;
    transition:transform .24s ease,opacity .24s ease;
  }
  .sticky.v5-show{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .sticky .btn{
    min-height:48px;
    padding:11px 12px;
    font-size:15px;
    border-radius:12px;
  }
}
@media(max-width:390px){
  .hero-photo{max-height:185px}
  .hero h1{font-size:31px}
}

/* V5.1 — final mobile polish */
@media(max-width:800px){
  /* Slightly tighter vertical rhythm without changing desktop */
  #discover{padding-top:42px;padding-bottom:42px}
  #discover .section-title{margin-bottom:20px}
  #discover .cards{gap:10px}
  #discover .card{padding:15px 16px;border-radius:15px}
  #discover .icon{width:40px;height:40px;margin-bottom:10px;font-size:19px}
  #discover .card h3{font-size:18px;line-height:1.25;margin-bottom:5px}
  #discover .card p{font-size:14px;line-height:1.48}
  .compare{gap:14px}
  .compare .card{padding:20px 18px}
  .offer{padding-top:50px;padding-bottom:50px}
  .offerbox{gap:18px}
  .facts{gap:9px}
  .fact{padding:11px 12px}

  /* Smaller floating CTA; hidden by JS whenever a normal CTA is visible */
  .sticky{left:14px;right:14px;bottom:8px;transition:opacity .18s ease,transform .18s ease;opacity:0;transform:translateY(14px);pointer-events:none}
  .sticky.v5-show{opacity:1;transform:translateY(0);pointer-events:auto}
  .sticky .btn{min-height:48px!important;padding:10px 12px!important;font-size:15px!important;border-radius:12px!important}
}

/* V5.2 — production mobile CTA refinement */
@media(max-width:800px){
  .sticky .btn{
    min-height:44px!important;
    padding:8px 12px!important;
    font-size:15px!important;
    border-radius:12px!important;
  }
}
\n\n/* V5.3 — launch optimization: shorter mobile journey, cleaner hierarchy */\n@media(max-width:800px){\n  #discover{padding-top:34px;padding-bottom:34px}\n  #discover .section-title{margin-bottom:16px}\n  #discover .section-title p{margin-bottom:0}\n  #discover .cards{gap:9px}\n  #discover .card{padding:14px 15px}\n\n  .story{font-size:16px;line-height:1.55}\n  .story .section-title{margin-bottom:14px}\n  .story p{margin:0 0 14px}\n  .story p:last-child{margin-bottom:0}\n  .story p:first-of-type:first-letter{font-size:48px;padding-top:7px}\n\n  .editorial{padding-top:34px;padding-bottom:34px}\n  .editorial .plate{width:34px;height:34px;border:0;background:#f7f3e8;margin:0 auto 2px}\n  .editorial-grid{gap:12px}\n  .editorial h2{margin-top:12px;margin-bottom:12px}\n  .editorial p{margin-bottom:14px}\n  .editorial .list{gap:10px;margin-top:15px;margin-bottom:18px}\n  .editorial .list>div{font-size:15px;line-height:1.4}\n  .editorial .btn.big{width:100%;padding:14px 16px;font-size:16px}\n\n  .compare{gap:10px}\n  .compare .card{padding:17px 16px}\n  .compare .card h3{font-size:18px;margin:0 0 9px}\n  .compare ul{margin:0;padding-left:20px;font-size:15px;line-height:1.5}\n  .compare li{margin:3px 0}\n\n  .offer{padding-top:38px;padding-bottom:38px}\n  .offerbox{padding:18px 16px;gap:15px}\n  .offerbox h2{font-size:29px!important;margin:11px 0!important}\n  .offerbox>div>p[style]{font-size:16px!important;line-height:1.45}\n  .price{font-size:46px;line-height:1.1;margin-top:8px}\n  .price small{display:inline;font-size:13px;line-height:1.35}\n  .disclosure{font-size:11.5px;line-height:1.45;margin-top:12px}\n  .facts{gap:7px}\n  .fact{padding:10px 11px;font-size:13.5px}\n\n  .cta-panel{padding:22px 16px}\n  .cta-panel h2{font-size:27px}\n  .cta-panel p{font-size:15px;line-height:1.45;margin-bottom:18px}\n\n  .faq .section-title{margin-bottom:12px}\n  .faq details{padding:14px 0}\n  .faq summary{font-size:15.5px;line-height:1.35}\n  .faq p{font-size:14px;line-height:1.5;margin:10px 0 0}\n}\n

/* V5.4 — production release: faster mobile path, offer visibility, final polish */
.early-offer{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:14px 0 0;color:var(--muted)}
.early-offer strong{display:block;font-size:30px;line-height:1;color:var(--green);letter-spacing:-.04em}
.early-offer span{display:block;font-size:12px;line-height:1.3;font-weight:650}
.btn:focus-visible,.faq summary:focus-visible,a:focus-visible{outline:3px solid rgba(215,168,59,.75);outline-offset:3px}
.faq details[open] summary{color:var(--green2)}
.faq details[open] p{animation:pfFade .16s ease-out}
@keyframes pfFade{from{opacity:.25;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(max-width:800px){
  .hero{padding-bottom:20px}
  .early-offer{margin:8px 0 0;gap:3px}
  .early-offer strong{font-size:27px}
  .early-offer span{font-size:11px;line-height:1.25}
  .hero-primary{margin-top:10px}
  .hero-micro{font-size:10.5px;line-height:1.35}

  /* Story compressed into one useful thought */
  section[style*="background:#f7f3e8"]{padding-top:34px;padding-bottom:34px}
  .story{font-size:15.5px;line-height:1.52}
  .story .section-title{margin-bottom:12px}
  .story .section-title h2{font-size:27px}
  .story p{margin:0}
  .story p:first-of-type:first-letter{font-size:45px;padding-top:6px}

  /* Fit section: preserve compliance while reducing scroll depth */
  section:has(.compare){padding-top:38px;padding-bottom:38px}
  .compare{gap:9px}
  .compare .card{padding:15px 15px}
  .compare .card h3{font-size:17px;line-height:1.25;margin-bottom:7px}
  .compare ul{font-size:14px;line-height:1.42;padding-left:19px}
  .compare li{margin:2px 0}

  /* Offer becomes the strongest conversion block */
  .offerbox{box-shadow:0 14px 38px rgba(20,40,30,.12)}
  .offerbox h2{font-size:28px!important}
  .price{margin:7px 0 0}
  .facts .btn.big{min-height:54px}

  /* Final CTA / FAQ spacing */
  section:has(.cta-panel){padding-top:36px;padding-bottom:36px}
  section:has(.faq){padding-top:38px;padding-bottom:34px}
  .faq details{padding:13px 0}
}
@media(max-width:390px){
  .early-offer span{font-size:10.5px}
  .story .section-title h2{font-size:25px}
}

/* Final hero offer label */
.early-offer{display:block!important;}
.early-offer strong,.early-offer span{display:block!important;}
.early-offer span{margin-top:4px;}
