/* ================================================================
   MY SMSF — Ebooks Page CSS  [mysmsf_ebooks]
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.msfe{--blue:#1e88e5;--blue-dk:#0d47a1;--navy:#1e3a5f;--gold:#f7931a;--green:#10b981;--ink:#1e293b;--muted:#64748b;--border:#e2e8f0;--bg:#f8fafc;--white:#fff;font-family:'Plus Jakarta Sans',-apple-system,sans-serif;color:var(--ink);background:var(--white);overflow-x:hidden;line-height:1.6}
.msfe *,.msfe *::before,.msfe *::after{box-sizing:border-box;margin:0;padding:0}
.msfe a{text-decoration:none}
.msfe-wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.msfe-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 26px;border-radius:10px;font-family:inherit;font-size:.9375rem;font-weight:700;cursor:pointer;border:2px solid transparent;text-decoration:none;transition:all .3s}
.msfe-btn-ghost{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.25)}
.msfe-btn-ghost:hover{background:rgba(255,255,255,.2);color:#fff}

/* ── HERO ── */
.msfe-hero{background:linear-gradient(140deg,#0a3d6c 0%,var(--blue) 55%,#1e3a8a 100%);padding:72px 24px 100px;text-align:center;position:relative;overflow:hidden}
.msfe-hero::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px;pointer-events:none}
.msfe-hero-inner{position:relative;z-index:1;max-width:680px;margin:0 auto}
.msfe-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 18px;border-radius:50px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-bottom:18px}
.msfe-hero h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:800;color:#fff;margin-bottom:10px;line-height:1.15}
.msfe-hero .msfe-hero-sub{font-size:1.0625rem;color:rgba(255,255,255,.8);margin-bottom:22px}
.msfe-benefits{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;max-width:480px;margin-left:auto;margin-right:auto}
.msfe-benefit{display:flex;align-items:center;gap:10px;font-size:.9375rem;color:rgba(255,255,255,.9);text-align:left}
.msfe-benefit-ico{width:24px;height:24px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.msfe-benefit-ico svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.msfe-wave{position:absolute;bottom:0;left:0;right:0;line-height:0;z-index:2}
.msfe-wave svg{display:block;width:100%;height:52px}

/* ── SECTIONS ── */
.msfe-section{padding:64px 0}
.msfe-section-light{background:var(--bg)}
.msfe-head{text-align:center;margin-bottom:44px}
.msfe-label{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:50px;background:#e8f2fb;color:var(--blue);font-size:.75rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px}
.msfe-label.msfe-label-gold{background:linear-gradient(135deg,var(--gold),#d4700c);color:#fff}
.msfe-title{font-size:clamp(1.625rem,3vw,2.25rem);font-weight:800;color:var(--ink);margin-bottom:10px}
.msfe-sub{font-size:1rem;color:var(--muted);line-height:1.7;max-width:640px;margin:0 auto}

/* ── FREE EBOOK CARDS ── */
.msfe-ebooks-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.msfe-ebook-card{background:var(--white);border-radius:20px;overflow:hidden;border:1px solid var(--border);box-shadow:0 4px 24px rgba(0,0,0,.09);transition:transform .35s,box-shadow .35s;display:flex;flex-direction:column}
.msfe-ebook-card:hover{transform:translateY(-7px);box-shadow:0 18px 56px rgba(0,0,0,.16)}
.msfe-ebook-body{display:flex;gap:18px;padding:22px 22px 26px;flex:1;align-items:flex-start}
.msfe-ebook-cover-wrap{flex-shrink:0;width:100px}
.msfe-ebook-cover-wrap img{width:100px;height:130px;object-fit:cover;border-radius:8px;display:block;box-shadow:0 4px 16px rgba(0,0,0,.18)}
.msfe-ebook-cover-fallback{width:100px;height:130px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.msfe-ebook-cover-fallback svg{width:36px;height:36px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msfe-ebook-info{flex:1;min-width:0}
.msfe-ebook-info h3{font-size:1rem;font-weight:800;color:var(--ink);margin-bottom:3px;line-height:1.3}
.msfe-ebook-sub{font-size:.78rem;font-weight:700;margin-bottom:8px;display:block}
.msfe-ebook-info p{font-size:.84rem;color:var(--muted);line-height:1.6;margin-bottom:12px}
.msfe-ebook-features{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
.msfe-ebook-feat{display:flex;align-items:center;gap:6px;font-size:.8125rem;color:var(--ink)}
.msfe-ebook-feat svg{width:13px;height:13px;stroke:var(--green);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.msfe-ebook-btn{width:100%;padding:10px 14px;border-radius:9px;font-family:inherit;font-size:.84rem;font-weight:700;cursor:pointer;border:none;color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;transition:transform .2s,box-shadow .2s}
.msfe-ebook-btn:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.2)}
.msfe-ebook-btn svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* ── AMAZON BOOKS ── */
.msfe-amazon-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.msfe-amazon-card{background:var(--white);border-radius:20px;overflow:hidden;border:2px solid var(--border);box-shadow:0 6px 28px rgba(0,0,0,.1);transition:transform .35s,box-shadow .35s;display:flex;flex-direction:column}
.msfe-amazon-card:hover{transform:translateY(-7px);box-shadow:0 20px 60px rgba(0,0,0,.16)}
.msfe-amazon-cover{position:relative;height:320px;background:linear-gradient(135deg,#f0f4f8,#e8eef4);display:flex;align-items:center;justify-content:center;overflow:hidden}
.msfe-amazon-cover img{height:100%;width:auto;max-width:100%;object-fit:contain;display:block;filter:drop-shadow(0 8px 24px rgba(0,0,0,.2));padding:16px}
.msfe-amazon-cover-badge{position:absolute;top:14px;left:14px;padding:4px 12px;border-radius:50px;color:#fff;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.msfe-amazon-cover-stars{position:absolute;bottom:12px;right:12px;display:flex;gap:2px}
.msfe-amazon-cover-stars svg{width:14px;height:14px;fill:#f7931a}
.msfe-amazon-info{padding:24px 24px 28px;display:flex;flex-direction:column;flex:1}
.msfe-amazon-info h3{font-size:1.125rem;font-weight:800;color:var(--ink);margin-bottom:4px;line-height:1.25}
.msfe-amazon-subtitle{font-size:.8125rem;color:var(--muted);margin-bottom:10px;line-height:1.4;font-style:italic}
.msfe-amazon-author{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.msfe-amazon-author-ico{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue-dk));display:flex;align-items:center;justify-content:center;color:#fff;font-size:.78rem;font-weight:800;flex-shrink:0}
.msfe-amazon-author span{font-size:.84rem;color:var(--muted);font-weight:600}
.msfe-amazon-info p{font-size:.875rem;color:var(--muted);line-height:1.7;margin-bottom:16px;flex:1}
.msfe-amazon-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--border);margin-bottom:14px}
.msfe-amazon-price{font-size:1.25rem;font-weight:800;color:var(--ink)}
.msfe-amazon-platform{display:flex;align-items:center;gap:5px;font-size:.75rem;color:var(--muted);font-weight:600}
.msfe-amazon-platform svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msfe-amazon-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:10px;background:linear-gradient(135deg,#232f3e,#131921);color:#ff9900;font-family:inherit;font-size:.9375rem;font-weight:700;text-decoration:none;transition:all .2s;border:2px solid #ff9900}
.msfe-amazon-btn:hover{background:linear-gradient(135deg,#ff9900,#e88800);color:#fff;border-color:transparent}
.msfe-amazon-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.msfe-amazon-note{font-size:.72rem;color:var(--muted);text-align:center;margin-top:6px}

/* ── DOWNLOAD MODAL ── */
.msfe-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}
.msfe-modal-overlay.open{display:flex}
.msfe-modal{background:#fff;border-radius:20px;width:100%;max-width:460px;max-height:92vh;overflow-y:auto;position:relative;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.msfe-modal-head{padding:28px 28px 0}
.msfe-modal-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;background:#f1f5f9;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.msfe-modal-close svg{width:15px;height:15px;stroke:#64748b;fill:none;stroke-width:2.5;stroke-linecap:round}
.msfe-modal-preview{display:flex;align-items:center;gap:12px;padding:14px;background:#f8fafc;border-radius:12px;margin:16px 0 20px}
.msfe-modal-preview .mpico{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.msfe-modal-preview .mpico svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msfe-modal-preview strong{display:block;font-size:.9rem;color:var(--ink);font-weight:700}
.msfe-modal-preview span{font-size:.78rem;color:var(--muted)}
.msfe-modal-title{font-size:1.25rem;font-weight:800;color:var(--ink);margin-bottom:4px}
.msfe-modal-desc{font-size:.875rem;color:var(--muted);margin-bottom:0;line-height:1.6}
.msfe-modal-body{padding:0 28px 28px}
.msfe-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.msfe-mfield{display:flex;flex-direction:column;margin-bottom:12px}
.msfe-mfield label{font-size:.78rem;font-weight:600;color:var(--ink);margin-bottom:5px}
.msfe-mfield input{padding:10px 12px;border:2px solid var(--border);border-radius:9px;font-family:inherit;font-size:.9rem;color:var(--ink);outline:none;transition:border-color .2s}
.msfe-mfield input:focus{border-color:var(--blue)}
.msfe-mfield-full{grid-column:1/-1}
.msfe-newsletter-row{display:flex;align-items:flex-start;gap:9px;font-size:.84rem;color:var(--muted);margin-bottom:12px;cursor:pointer;line-height:1.45}
.msfe-newsletter-row input{width:15px;height:15px;accent-color:var(--blue);margin-top:2px;flex-shrink:0;cursor:pointer}
.msfe-privacy{font-size:.75rem;color:var(--muted);background:#f8fafc;border-radius:8px;padding:10px 12px;margin-bottom:14px;line-height:1.55}
.msfe-submit-btn{width:100%;padding:13px;border-radius:10px;font-family:inherit;font-size:.9375rem;font-weight:700;cursor:pointer;border:none;color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue-dk));box-shadow:0 4px 14px rgba(30,136,229,.3);display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .2s}
.msfe-submit-btn:hover{transform:translateY(-2px)}
.msfe-submit-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.msfe-success{text-align:center;padding:28px 20px;display:none}
.msfe-success.show{display:block}
.msfe-success-ico{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,var(--green),#059669);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;box-shadow:0 8px 28px rgba(16,185,129,.35)}
.msfe-success-ico svg{width:32px;height:32px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round}
.msfe-success h3{font-size:1.375rem;font-weight:800;color:var(--ink);margin-bottom:8px}
.msfe-success p{font-size:.9375rem;color:var(--muted)}

/* ── CTA ── */
.msfe-cta{padding:72px 24px;background:linear-gradient(135deg,var(--blue),var(--blue-dk));text-align:center}
.msfe-cta h2{font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:800;color:#fff;margin-bottom:14px}
.msfe-cta p{font-size:1rem;color:rgba(255,255,255,.8);max-width:640px;margin:0 auto 32px;line-height:1.7}
.msfe-cta-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.msfe-btn-white{background:#fff;color:var(--blue);border:2px solid #fff}
.msfe-btn-white:hover{background:#f0f7ff;color:var(--blue)}
.msfe-btn-moneysmart{background:rgba(255,255,255,.1);color:#fff;border:2px solid rgba(255,255,255,.3)}
.msfe-btn-moneysmart:hover{background:rgba(255,255,255,.2);color:#fff}

/* ── REVEAL ── */
.msfe-reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.msfe-reveal.on{opacity:1;transform:none}
.msfe-d1{transition-delay:.1s}.msfe-d2{transition-delay:.2s}.msfe-d3{transition-delay:.3s}

@media(max-width:768px){
  .msfe-ebooks-grid,.msfe-amazon-grid{grid-template-columns:1fr}
  .msfe-form-row{grid-template-columns:1fr}
  .msfe-amazon-cover{height:240px}
}
