/* ============================================================
   The Free Bible — landing page styles
   Sections follow the page order in index.html
   ============================================================ */

:root{
  --navy:#1e3a5f;
  --green:#3a6b35;
  --green-dark:#2b5227;
  --green-soft:#6db36d;
  --red:#8b1a1a;
  --red-live:#e53935;
  --gold:#c4a23c;
  --gold-bright:#ffd54f;
  --olive:#9c9a7a;
  --olive-dark:#87856a;
  --beige:#f5f0e8;
  --beige-outer:#e8e0d4;
  --card:#ffffff;
  --line:#d4cfc5;
  --text:#1a1a2e;
  --text-2:#555555;
  --orange:#ff9800;
  --orange-deep:#bf360c;
  --shadow:0 2px 8px rgba(0,0,0,.06);
  --radius:12px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--beige-outer);
  color:var(--text);
  font-family:Lora,Georgia,"Times New Roman",serif;
  font-size:1.1rem;          /* +15% for 45+ readability */
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:Merriweather,Georgia,serif;line-height:1.35}
svg,img{display:block;max-width:100%}
a{color:var(--green)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

/* ---------------- shell ---------------- */
.page{
  width:100%;max-width:520px;margin:0 auto;
  background:var(--beige);
  overflow:hidden;
}
.pad{padding-left:20px;padding-right:20px}
.cta-wrap{margin-top:26px}

/* ---------------- 1. top banner ---------------- */
.banner{background:var(--navy);color:#fff;text-align:center;padding:16px 20px}
.banner p{margin:0;font-family:Merriweather,serif;font-size:1.1rem;font-weight:700;line-height:1.45}
.banner span{display:block;margin-top:6px;color:var(--green-soft);font-size:.92rem;line-height:1.55}

/* ---------------- 2. header ---------------- */
.masthead{
  background:var(--card);padding:14px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand .mark{font-size:1.5rem;color:var(--gold);line-height:1}
.brand b{font-family:Merriweather,serif;font-size:1.05rem;font-weight:700;color:var(--navy);white-space:nowrap}
.chips{display:flex;gap:7px;flex:0 0 auto}
.chip{
  font-size:.78rem;font-weight:600;padding:5px 10px;
  border-radius:999px;border:1px solid var(--line);white-space:nowrap;
}
.chip-safe{color:var(--green);border-color:rgba(58,107,53,.4);background:rgba(58,107,53,.06)}
.chip-free{color:var(--gold);border-color:rgba(196,162,60,.5);background:rgba(196,162,60,.08)}

/* ---------------- 3. color divider ---------------- */
.stripe{
  height:5px;
  background:linear-gradient(90deg,
    var(--navy) 0 25%, var(--gold) 25% 50%, var(--red) 50% 75%, var(--green) 75% 100%);
}

/* ---------------- 4. social proof ---------------- */
.proofbar{
  background:linear-gradient(135deg,#2e7d32,#1b5e20);
  color:#fff;padding:14px 20px;text-align:center;
  display:flex;align-items:center;justify-content:center;gap:10px;
}
.proofbar p{margin:0;font-size:.98rem;line-height:1.5}
.proofbar b{color:var(--gold-bright);font-weight:600}
.proofbar svg{flex:0 0 21px}

/* ---------------- 5. live viewers ---------------- */
/* hidden until a real count arrives — see js/main.js */
.livebar{
  display:none;
  align-items:center;justify-content:center;gap:9px;text-align:center;
  background:#fff8e1;border-bottom:1px solid #ffe082;
  padding:11px 20px;font-size:.94rem;color:#6d5a20;
}
.livebar.is-live{display:flex}
.pulse{
  width:10px;height:10px;flex:0 0 10px;border-radius:50%;
  background:var(--red-live);animation:pulse 1.5s ease-in-out infinite;
}
@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.55);opacity:.35}}
.livebar b{color:var(--red-live);font-weight:600}

/* ---------------- 6. price line ---------------- */
.priceline{
  margin:0;padding:20px;text-align:center;
  font-family:Merriweather,serif;font-weight:700;font-size:1.15rem;
  color:var(--green);line-height:1.5;
}

/* ---------------- 7. product image ---------------- */
.product{margin:0 auto;max-width:380px;padding:0 20px}
.product img{width:100%;border-radius:8px}

/* ---------------- 8. main heading ---------------- */
.headline{
  margin:24px 20px 0;text-align:center;
  font-size:2.1rem;font-weight:900;color:var(--navy);
  letter-spacing:-.3px;line-height:1.28;
}
.headline em{font-style:normal;color:var(--red)}
.subhead{margin:14px 20px 0;text-align:center;color:var(--text-2);font-size:1.02rem;line-height:1.7}

/* ---------------- 9. urgency ---------------- */
.urgency{
  margin:24px 20px 0;padding:16px 16px 14px;text-align:center;
  background:#fff3e0;border:2px dashed var(--orange);border-radius:10px;
}
.urgency p{margin:0;font-size:1rem;line-height:1.55;color:#6d3c08}
.urgency b{color:var(--orange-deep);font-weight:600}
.track{height:10px;margin-top:13px;border-radius:999px;background:#ffe0b2;overflow:hidden}
.track i{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--orange),#e65100);
  transition:width .6s ease;
}
.urgency small{display:block;margin-top:9px;font-size:.82rem;color:#a15c15}

/* ---------------- 10. buttons ---------------- */
.btn{
  display:block;width:100%;border:0;cursor:pointer;text-decoration:none;text-align:center;
  font-family:Merriweather,serif;font-weight:700;font-size:1.25rem;line-height:1.4;
  color:#fff;background:var(--green);border-radius:12px;padding:19px 18px;
  box-shadow:0 4px 14px rgba(58,107,53,.32);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{background:#43794b;transform:translateY(-2px);box-shadow:0 8px 20px rgba(58,107,53,.36)}
.btn:active{transform:translateY(0)}

.btn-soft{
  background:var(--olive);box-shadow:0 3px 10px rgba(156,154,122,.28);
  font-size:1.05rem;padding:16px 18px;margin-top:12px;
}
.btn-soft:hover{background:var(--olive-dark);box-shadow:0 6px 16px rgba(156,154,122,.3)}

.btn-note{margin:12px 0 0;text-align:center;font-size:.9rem;color:var(--text-2);line-height:1.6}

.softmsg{
  display:none;margin-top:16px;padding:16px;
  background:var(--card);border:1px solid var(--line);border-left:4px solid var(--green);
  border-radius:var(--radius);box-shadow:var(--shadow);
  font-size:1rem;line-height:1.7;color:#3d4a3a;
}
.softmsg.is-open{display:block;animation:fade .5s ease}
.softmsg a{font-weight:600}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------------- 11. trust badges ---------------- */
.trustrow{display:flex;gap:10px;margin:26px 20px 0}
.trustrow > div{
  flex:1;padding:14px 6px;text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.trustrow svg{margin:0 auto}
.trustrow span{display:block;margin-top:8px;font-size:.8rem;font-weight:600;color:var(--navy);line-height:1.35}

/* ---------------- section titles ---------------- */
.sect-title{margin:40px 20px 0;text-align:center;font-size:1.45rem;font-weight:700;color:var(--navy);line-height:1.4}
.sect-sub{margin:10px 20px 0;text-align:center;font-size:.98rem;color:var(--text-2);line-height:1.6}

/* ---------------- 13. steps ---------------- */
.steps{margin:22px 20px 0;display:grid;gap:14px}
.step{
  display:flex;gap:15px;align-items:flex-start;padding:18px;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.step .n{
  flex:0 0 40px;width:40px;height:40px;border-radius:50%;
  background:var(--navy);color:var(--gold);
  display:grid;place-items:center;
  font-family:Merriweather,serif;font-weight:700;font-size:1.05rem;
}
.step h3{margin:4px 0 6px;font-size:1.08rem;color:var(--navy)}
.step p{margin:0;font-size:.98rem;color:var(--text-2);line-height:1.7}

/* ---------------- 14. testimonials ---------------- */
.reviews{margin:22px 20px 0;display:grid;gap:14px}
.review{
  padding:18px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
}
.starrow{display:flex;gap:3px}
.review blockquote{margin:12px 0 16px;font-style:italic;font-size:1.02rem;line-height:1.75;color:#333}
.byline{display:flex;align-items:center;gap:12px}
.byline .av{
  flex:0 0 44px;width:44px;height:44px;border-radius:50%;
  background:var(--beige);border:2px solid var(--gold);color:var(--navy);
  display:grid;place-items:center;
  font-family:Merriweather,serif;font-weight:700;font-size:.9rem;
}
.byline b{display:block;font-size:.98rem;font-weight:600;color:var(--navy)}
.byline span{display:block;font-size:.9rem;color:var(--text-2)}

/* empty slots — replace with real, permitted reviews */
.review-slot{background:#fffdf4;border-style:dashed;border-color:var(--gold)}
.review-slot blockquote{color:#7a6a35}
.slot-label{
  display:inline-block;margin-top:8px;
  font-size:.75rem;font-weight:600;letter-spacing:.5px;text-transform:uppercase;
  color:var(--orange-deep);
}

/* ---------------- 15. second CTA ---------------- */
.cta-panel{
  margin:34px 20px 0;padding:24px 18px;text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.cta-panel h2{margin:0 0 10px;font-size:1.3rem;color:var(--navy);line-height:1.45}
.cta-panel > p{margin:0 0 18px;font-size:.96rem;color:var(--text-2);line-height:1.65}

/* ---------------- 16. FAQ ---------------- */
.faq{margin:22px 20px 0;display:grid;gap:14px}
.faq > div{
  padding:18px;background:var(--card);
  border:1px solid var(--line);border-left:4px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow);
}
.faq h3{margin:0 0 8px;font-size:1.05rem;color:var(--navy)}
.faq p{margin:0;font-size:.98rem;color:var(--text-2);line-height:1.75}

/* ---------------- 17. footer ---------------- */
.foot{margin-top:36px;padding:22px 24px 28px;border-top:1px solid var(--line);text-align:center}
.foot p{margin:0;font-size:.84rem;line-height:1.75;color:#8a8a8a}
.foot a{color:#8a8a8a}

/* ---------------- sticky mobile CTA ---------------- */
.sticky{
  position:fixed;left:0;right:0;bottom:0;z-index:40;display:none;
  padding:11px 16px 14px;
  background:rgba(245,240,232,.97);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-top:1px solid var(--line);box-shadow:0 -4px 20px rgba(0,0,0,.1);
}
.sticky .btn{font-size:1.08rem;padding:16px}
.sticky small{display:block;margin-top:8px;text-align:center;font-size:.8rem;color:var(--text-2)}

/* ---------------- exit-intent modal ---------------- */
.backdrop{
  position:fixed;inset:0;z-index:60;display:none;
  align-items:center;justify-content:center;padding:22px;
  background:rgba(0,0,0,.65);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.backdrop.is-open{display:flex}
.dialog{
  position:relative;width:100%;max-width:420px;
  padding:34px 26px 28px;text-align:center;
  background:var(--beige);border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  animation:scalein .4s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes scalein{from{transform:scale(.88);opacity:0}to{transform:scale(1);opacity:1}}
.dialog .halo{
  width:72px;height:72px;margin:0 auto 18px;border-radius:50%;
  background:linear-gradient(135deg,var(--navy),var(--green));
  display:grid;place-items:center;
  box-shadow:0 6px 18px rgba(30,58,95,.28);
}
.dialog h2{margin:0 0 12px;font-size:1.4rem;color:var(--navy);line-height:1.4}
.dialog > p{margin:0 0 22px;font-size:1rem;color:var(--text-2);line-height:1.7}
.dialog .later{
  display:inline-block;margin-top:16px;
  background:none;border:0;cursor:pointer;
  font-family:Lora,serif;font-size:.92rem;color:#8a8a8a;text-decoration:underline;
}
.dialog .x{
  position:absolute;top:14px;right:14px;
  width:34px;height:34px;border-radius:50%;
  background:#fff;border:1px solid var(--line);color:var(--text-2);
  cursor:pointer;font-size:1.1rem;line-height:1;
  display:grid;place-items:center;
}
.dialog .x:hover{background:#f0ebe1}

/* ============================================================
   responsive
   ============================================================ */
@media (min-width:1024px){
  body{padding:30px 0}
  .page{border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,.12)}
  .banner{border-radius:16px 16px 0 0}
}

@media (max-width:575.98px){
  body{font-size:1.05rem}
  .page{border-radius:0}
  .banner{border-radius:0;padding:14px 18px}
  .banner p{font-size:1.04rem}
  .headline{margin-left:18px;margin-right:18px;font-size:1.8rem}
  .product{max-width:320px}
  .sect-title{font-size:1.3rem}
  .pad{padding-left:18px;padding-right:18px}
  .urgency,.trustrow,.steps,.reviews,.faq,.cta-panel{margin-left:18px;margin-right:18px}
  .sticky{display:block}
  .foot{padding-bottom:132px}   /* clears the sticky bar */
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}
