/* ============================================================
   DERILA ERGO V2 — css/style.css
   Domain: us-en-derila-ergo.com
   Theme: Deep Navy + Soft Cloud White + Lavender Blue + Warm Cream
   Hero: NEW Split-screen contrast — dark navy LEFT (sleep problems) + bright RIGHT (product+solution)
   Features: NEW Horizontal image-top feature cards (3-wide grid with product image at top)
   Footer: NEW Soft blue-grey wellness footer with wave shape + trust badges row
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --navy:         #0e1b2e;
  --navy-mid:     #162035;
  --navy-light:   #1e2d45;
  --blue:         #1d4ed8;
  --blue-mid:     #2563eb;
  --blue-soft:    #3b82f6;
  --blue-pale:    #eff6ff;
  --blue-xpale:   #f0f7ff;
  --lavender:     #7c3aed;
  --lavender-mid: #8b5cf6;
  --lavender-pale:#f5f3ff;
  --teal:         #0f766e;
  --teal-mid:     #14b8a6;
  --teal-pale:    #f0fdfa;
  --white:        #ffffff;
  --cloud:        #f8fafc;
  --cream:        #fefdf8;
  --warm-white:   #fffef5;
  --near-white:   #f4f6f8;
  --text:         #0e1b2e;
  --text-mid:     #162035;
  --muted:        #526070;
  --border:       #e2e8f0;
  --border-blue:  #bfdbfe;
  --moon:         #64748b;   /* for sleep/dark side */
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  50px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.07);
  --shadow:       0 4px 24px rgba(0,0,0,0.11);
  --shadow-h:     0 12px 40px rgba(0,0,0,0.18);
  --shadow-blue:  0 4px 20px rgba(29,78,216,0.22);
  --shadow-teal:  0 4px 16px rgba(15,118,110,0.22);
}

html{scroll-behavior:smooth}
body{font-family:'Jost',sans-serif;font-size:18px;color:var(--text);background:var(--white);overflow-x:hidden;line-height:1.75}

/* NAV */
nav{position:sticky;top:0;z-index:1000;background:var(--navy);padding:0 24px;height:72px;box-shadow:0 2px 20px rgba(0,0,0,.55);border-bottom:2px solid var(--blue-soft)}
.nav-inner{max-width:1200px;margin:0 auto;height:100%;display:flex;align-items:center;justify-content:space-between;gap:32px}
.nav-logo{font-family:'Jost',sans-serif;font-size:1.55rem;font-weight:900;color:var(--white);text-decoration:none;letter-spacing:1px;flex-shrink:0}
.nav-logo span{color:#93c5fd}
.nav-links{display:flex;align-items:center;gap:28px;list-style:none}
.nav-links a{color:#93c5fd;text-decoration:none;font-size:.95rem;font-weight:500;transition:color .2s;white-space:nowrap}
.nav-links a:hover{color:var(--white)}
.btn-nav-order{background:var(--teal)!important;color:var(--white)!important;font-weight:900!important;font-size:.9rem!important;padding:10px 24px!important;border-radius:var(--radius-pill)!important;border:none!important;transition:filter .2s!important;text-transform:uppercase}
.btn-nav-order:hover{filter:brightness(1.10)!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.hamburger span{width:25px;height:2px;background:#93c5fd;display:block;border-radius:2px}
.mobile-menu{display:none;flex-direction:column;background:var(--navy);position:absolute;top:72px;left:0;right:0;padding:24px 32px;gap:18px;z-index:999;border-bottom:2px solid var(--blue-soft)}
.mobile-menu.open{display:flex}
.mobile-menu a{color:#93c5fd;text-decoration:none;font-size:1.05rem;font-weight:500}
.mobile-menu .btn-mob-order{background:var(--teal);color:var(--white);text-align:center;padding:13px;border-radius:var(--radius-pill);font-weight:900;margin-top:6px;text-transform:uppercase}

/* BUTTONS */
.btn-primary{display:inline-block;background:var(--teal);color:var(--white);font-family:'Jost',sans-serif;font-weight:900;font-size:1.05rem;letter-spacing:.5px;text-transform:uppercase;padding:15px 36px;border-radius:var(--radius-pill);text-decoration:none;transition:filter .2s,transform .15s;box-shadow:var(--shadow-teal)}
.btn-primary:hover{filter:brightness(1.10);transform:translateY(-2px)}
.btn-blue{display:inline-block;background:var(--blue);color:var(--white);font-family:'Jost',sans-serif;font-weight:900;font-size:1.05rem;text-transform:uppercase;padding:15px 36px;border-radius:var(--radius-pill);text-decoration:none;transition:background .2s,transform .15s;box-shadow:var(--shadow-blue)}
.btn-blue:hover{background:var(--blue-mid);transform:translateY(-2px)}
.btn-outline{display:inline-block;background:transparent;color:var(--teal);font-family:'Jost',sans-serif;font-weight:700;font-size:1.05rem;text-transform:uppercase;padding:14px 34px;border-radius:var(--radius-pill);border:2px solid var(--teal);text-decoration:none;transition:background .2s,transform .15s}
.btn-outline:hover{background:var(--teal-pale);transform:translateY(-2px)}

/* TITLE BANDS */
.sec-title-band{background:var(--navy);padding:48px 40px 40px;text-align:center;border-top:3px solid var(--blue-soft);border-bottom:3px solid var(--blue-soft)}
.sec-title-band h2{font-family:'Jost',sans-serif;font-size:2.4rem;font-weight:900;color:var(--white);letter-spacing:1px;text-transform:uppercase;line-height:1.2}
.sec-title-band p.band-sub{color:rgba(255,255,255,.60);font-size:1rem;margin-top:10px}
.sec-title-band.teal-band{border-top-color:var(--teal-mid);border-bottom-color:var(--teal-mid)}
.sec-title-band.teal-band h2{color:var(--teal-mid)}
.sec-title-band.light-band{background:var(--blue-xpale);border-top-color:var(--blue);border-bottom-color:var(--blue)}
.sec-title-band.light-band h2{color:var(--navy)}
.sec-title-band.light-band p.band-sub{color:var(--muted)}
.sec-title-band.cream-band{background:var(--cream);border-top-color:var(--teal);border-bottom-color:var(--teal)}
.sec-title-band.cream-band h2{color:var(--navy)}
.sec-title-band.cream-band p.band-sub{color:var(--muted)}

/* ===== HERO — NEW Split-screen contrast ===== */
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:620px;
  overflow:hidden;
  position:relative;
}

/* LEFT PANEL — dark navy "before" / sleep problems */
.hero-left-dark{
  background:linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #0b1520 100%);
  padding:72px 48px 72px 48px;
  display:flex;flex-direction:column;justify-content:center;
  position:relative;overflow:hidden;
}
/* Moon decorative */
.hero-left-dark::before{
  content:'🌙';
  position:absolute;top:28px;right:32px;font-size:3rem;opacity:.18;
}
/* Stars pattern */
.hero-left-dark::after{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:22px 22px;
  pointer-events:none;
}

.hero-problem-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.74rem;font-weight:800;letter-spacing:3px;text-transform:uppercase;
  color:rgba(255,255,255,.40);margin-bottom:20px;
}
.hero-problem-tag::before{content:'●';font-size:.4rem;color:#94a3b8}

.hero-left-dark h1{
  font-family:'Jost',sans-serif;font-size:2.5rem;font-weight:900;
  line-height:1.08;color:var(--white);margin-bottom:24px;
}
.hero-left-dark h1 em{color:#93c5fd;font-style:normal}

/* Sleep problem list */
.sleep-problems{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;position:relative;z-index:1}
.sp-item{
  display:flex;align-items:center;gap:10px;
  font-size:.95rem;color:rgba(255,255,255,.65);
  font-family:'Jost',sans-serif;font-weight:500;
}
.sp-icon{font-size:1.1rem;flex-shrink:0}

.hero-left-dark p{
  font-size:1rem;line-height:1.78;color:rgba(255,255,255,.55);
  margin-bottom:20px;max-width:400px;position:relative;z-index:1;
}

/* RIGHT PANEL — bright white "after" / solution */
.hero-right-bright{
  background:linear-gradient(155deg,var(--white) 0%,var(--blue-xpale) 60%,#e0f2fe 100%);
  padding:52px 48px 52px 40px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  position:relative;
}
/* Sun decorative */
.hero-right-bright::before{
  content:'☀️';
  position:absolute;top:24px;left:28px;font-size:2.2rem;opacity:.30;
}
.hero-solution-tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:.74rem;font-weight:800;letter-spacing:3px;text-transform:uppercase;
  color:var(--teal);margin-bottom:16px;
  background:var(--teal-pale);border:1px solid rgba(15,118,110,.22);
  padding:5px 14px;border-radius:var(--radius-pill);
}
.hero-right-bright a img{
  max-width:100%;max-height:420px;object-fit:contain;
  filter:drop-shadow(0 8px 32px rgba(14,27,46,.18)) drop-shadow(0 2px 8px rgba(0,0,0,.12));
  transition:transform .5s ease;margin-bottom:20px;
}
.hero-right-bright a:hover img{transform:scale(1.04) translateY(-6px)}

/* Rating row under product */
.hero-rating-row{
  display:flex;align-items:center;gap:10px;margin-bottom:16px;
}
.hero-rating-stars{font-size:1.1rem;color:#f59e0b;letter-spacing:2px}
.hero-rating-text{font-size:.86rem;color:var(--muted);font-weight:700}

.hero-solution-points{
  display:flex;flex-direction:column;gap:7px;margin-bottom:22px;width:100%;max-width:360px;
}
.hsp{
  display:flex;align-items:center;gap:9px;
  font-size:.88rem;font-weight:700;color:var(--text-mid);
}
.hsp::before{content:'✓';color:var(--teal);font-weight:900;font-size:1rem;flex-shrink:0}

.hero-btns-right{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px}
.hero-btns-right a{text-align:center}
.hero-note-right{font-size:.80rem;color:var(--muted);text-align:center;margin-top:8px}
.hero-note-right strong{color:var(--teal)}

/* ===== TRUST BAR ===== */
.trust-bar{background:var(--navy-light);padding:13px 32px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 32px;border-top:1px solid rgba(59,130,246,.15);border-bottom:1px solid rgba(59,130,246,.15)}
.trust-bar span{color:#93c5fd;font-size:.86rem;font-weight:700;display:flex;align-items:center;gap:6px;white-space:nowrap}

/* REVIEWS */
.reviews-section{background:var(--near-white);padding:70px 48px}
.reviews-grid{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.review-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px 24px;text-align:center;transition:box-shadow .3s,transform .3s;box-shadow:var(--shadow-sm);border-top:4px solid var(--teal)}
.review-card:hover{box-shadow:var(--shadow-h);transform:translateY(-4px)}
.reviewer-photo{width:84px;height:84px;border-radius:50%;object-fit:cover;margin:0 auto 14px;display:block;border:3px solid var(--teal)}
.review-stars{height:20px;margin:0 auto 12px;display:block}
.review-badge{font-size:.9rem;font-weight:700;color:var(--teal);margin-bottom:12px}
.review-text{font-size:.98rem;line-height:1.75;color:var(--muted);font-style:italic}
.reviewer-name{margin-top:16px;font-weight:700;color:var(--text-mid);font-size:.92rem}

/* WHAT IS */
.what-is-section{background:var(--white);padding:70px 48px}
.what-is-inner{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:1fr 1.45fr;align-items:center;gap:64px}
.what-is-img-wrap{display:flex;justify-content:center}
.what-is-img-wrap img{width:100%;max-width:400px;height:auto;object-fit:contain;filter:drop-shadow(0 8px 28px rgba(0,0,0,.12))}
.what-is-text p{font-size:1.1rem;line-height:1.85;color:var(--muted);margin-bottom:18px}

/* WHY */
.why-section{background:var(--blue-xpale);padding:70px 48px}
.section-prose{max-width:900px;margin:0 auto}
.section-prose p{font-size:1.1rem;line-height:1.85;color:var(--muted);margin-bottom:18px}

/* PRICING */
.pricing-band{background:var(--navy);padding:48px 40px 16px;text-align:center;border-top:3px solid var(--teal)}
.pricing-band h3{font-family:'Jost',sans-serif;font-size:2rem;font-weight:900;color:var(--teal-mid);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.pricing-band h4{font-family:'Jost',sans-serif;font-size:1.25rem;font-weight:500;color:rgba(255,255,255,.65);margin-bottom:0}
.price-img-section{background:var(--white);padding:48px;text-align:center}
.price-img-section a img{max-width:900px;width:100%;height:auto;object-fit:contain;border-radius:var(--radius-lg);box-shadow:var(--shadow);transition:transform .3s}
.price-img-section a:hover img{transform:scale(1.01)}

/* ===== FEATURES — NEW Horizontal image-top feature cards ===== */
.features-section{background:var(--cream);padding:70px 48px}

.feature-cards-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.fc-card{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-xl);overflow:hidden;
  box-shadow:var(--shadow-sm);transition:box-shadow .25s,transform .25s;
}
.fc-card:hover{box-shadow:var(--shadow-h);transform:translateY(-4px)}

/* Image top section */
.fc-img-top{
  width:100%;aspect-ratio:4/3;overflow:hidden;
  background:var(--blue-xpale);
  display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid var(--border-blue);
}
.fc-img-top img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s ease;
}
.fc-card:hover .fc-img-top img{transform:scale(1.05)}

/* Emoji fallback when no specific image */
.fc-img-icon{
  font-size:4rem;display:block;
}

/* Card body */
.fc-body{padding:24px 22px}
.fc-number{
  font-family:'Jost',sans-serif;font-size:.72rem;font-weight:800;
  letter-spacing:2px;text-transform:uppercase;
  color:var(--teal);margin-bottom:8px;display:block;
}
.fc-body h3{
  font-family:'Jost',sans-serif;font-size:1.1rem;font-weight:900;
  color:var(--text-mid);margin-bottom:8px;line-height:1.3;
}
.fc-body p{font-size:.92rem;line-height:1.70;color:var(--muted)}

/* feature tag */
.fc-tag{
  display:inline-block;margin-top:12px;
  background:var(--teal-pale);border:1px solid rgba(15,118,110,.20);
  color:var(--teal);font-size:.72rem;font-weight:800;
  padding:3px 12px;border-radius:var(--radius-pill);
}

/* GUARANTEE */
.guarantee-section{background:var(--white);padding:70px 48px}
.guarantee-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:260px 1fr;align-items:center;gap:60px}
.guarantee-img-wrap{display:flex;justify-content:center}
.guarantee-img-wrap img{width:100%;max-width:260px;height:auto;object-fit:contain}
.guarantee-text p{font-size:1.1rem;line-height:1.85;color:var(--muted);margin-bottom:18px}

/* BENEFITS */
.benefits-section{background:var(--near-white);padding:70px 48px}
.ben-2col{max-width:960px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ben-item{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;display:flex;align-items:flex-start;gap:14px;transition:box-shadow .2s,transform .2s;box-shadow:var(--shadow-sm);border-left:4px solid var(--teal)}
.ben-item:nth-child(even){border-left-color:var(--blue)}
.ben-item:hover{box-shadow:var(--shadow-h);transform:translateY(-2px)}
.ben-icon{font-size:1.5rem;flex-shrink:0;margin-top:2px}
.ben-body strong{font-family:'Jost',sans-serif;font-size:1rem;font-weight:800;color:var(--text-mid);display:block;margin-bottom:4px;line-height:1.3}
.ben-body p{font-size:.90rem;line-height:1.65;color:var(--muted)}

/* FAQs */
.faq-section{background:var(--white);padding:70px 48px}
.faq-list{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--cloud);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm)}
.faq-question{width:100%;background:none;border:none;text-align:left;padding:20px 24px;font-family:'Jost',sans-serif;font-size:1.08rem;font-weight:700;color:var(--text);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;transition:background .2s;line-height:1.4}
.faq-question:hover{background:var(--blue-pale)}
.faq-arrow{font-size:1.1rem;transition:transform .3s;color:var(--teal);flex-shrink:0}
.faq-answer{display:none;padding:14px 24px 20px;font-size:1.02rem;line-height:1.8;color:var(--muted);border-top:1px solid var(--border)}
.faq-item.open .faq-answer{display:block}
.faq-item.open .faq-arrow{transform:rotate(180deg)}

/* ORDER */
.order-how-section{background:var(--blue-xpale);padding:70px 48px}
.order-how-inner{max-width:900px;margin:0 auto}
.order-how-inner p{font-size:1.1rem;line-height:1.85;color:var(--muted);margin-bottom:18px}
.order-img-wrap{text-align:center;margin-top:36px}
.order-img-wrap a img{max-width:900px;width:100%;height:auto;object-fit:contain;border-radius:var(--radius-lg);box-shadow:var(--shadow);transition:transform .3s}
.order-img-wrap a:hover img{transform:scale(1.01)}

/* CTA FINAL */
.cta-final{background:var(--navy);padding:80px 48px;text-align:center;border-top:3px solid var(--teal);position:relative;overflow:hidden}
.cta-final::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(20,184,166,.14) 0%,transparent 55%);pointer-events:none}
.cta-final h2{font-family:'Jost',sans-serif;font-size:2.5rem;font-weight:900;color:var(--white);margin-bottom:12px;line-height:1.2;position:relative;z-index:1}
.cta-final h2 span{color:var(--teal-mid)}
.cta-sub{font-size:1.05rem;color:rgba(255,255,255,.60);margin-bottom:36px;position:relative;z-index:1}
.cta-product-img{max-width:300px;margin:0 auto 32px;position:relative;z-index:1}
.cta-product-img a img{width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 0 28px rgba(20,184,166,.30)) drop-shadow(0 14px 40px rgba(0,0,0,.60));transition:transform .4s}
.cta-product-img a:hover img{transform:scale(1.06) translateY(-8px)}
.cta-note{font-size:.88rem;color:rgba(255,255,255,.38);margin-top:14px;position:relative;z-index:1}

/* ===== FOOTER — NEW Soft blue-grey wellness + wave + trust badges ===== */
footer{background:var(--navy)}

/* SVG wave separator */
.footer-wave{
  background:var(--white);
  line-height:0;
}
.footer-wave svg{display:block;width:100%;height:60px}

/* Main footer body */
.footer-main{
  background:var(--navy);
  padding:48px 48px 0;
  text-align:center;
}

/* Logo + tagline */
.footer-brand-centred{margin-bottom:28px}
.footer-logo-text{
  font-family:'Jost',sans-serif;font-size:1.7rem;font-weight:900;
  color:var(--white);letter-spacing:1px;display:block;
  text-decoration:none;margin-bottom:6px;
}
.footer-logo-text span{color:#93c5fd}
.footer-tagline{font-size:.9rem;color:rgba(255,255,255,.45)}

/* Trust badge row — sleep quality badges */
.footer-badges-row{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
  margin-bottom:28px;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.fba{
  display:flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(59,130,246,.15);
  border-radius:var(--radius-pill);
  padding:8px 16px;
  font-size:.80rem;font-weight:800;color:rgba(255,255,255,.70);
  font-family:'Jost',sans-serif;
  transition:background .2s;
}
.fba:hover{background:rgba(255,255,255,.09)}
.fba-icon{font-size:1rem}

/* Nav links */
.footer-nav-row{
  display:flex;flex-wrap:wrap;justify-content:center;gap:0;
  margin-bottom:0;
  padding:16px 0;
}
.footer-nav-row a{
  color:rgba(255,255,255,.35);text-decoration:none;font-size:.84rem;font-weight:600;
  padding:4px 16px;border-right:1px solid rgba(255,255,255,.07);
  transition:color .2s;font-family:'Jost',sans-serif;white-space:nowrap;
}
.footer-nav-row a:last-child{border-right:none}
.footer-nav-row a:hover{color:#93c5fd}

/* Legal bottom */
.footer-legal-bottom{
  padding:18px 48px 28px;text-align:center;
  border-top:1px solid rgba(255,255,255,.05);
}
.footer-legal-bottom p{font-size:.82rem;color:rgba(255,255,255,.24);line-height:1.72;margin-bottom:8px}
.footer-legal-bottom a{color:rgba(255,255,255,.32);text-decoration:none}
.footer-legal-bottom a:hover{color:#93c5fd}
.footer-copy{font-size:.82rem;color:rgba(255,255,255,.24);font-family:'Jost',sans-serif;margin-top:10px}

/* FADE-UP */
.fade-up{opacity:0;transform:translateY(28px);transition:opacity .65s ease,transform .65s ease}
.fade-up.visible{opacity:1;transform:translateY(0)}

/* RESPONSIVE */
@media(max-width:1024px){.hero{grid-template-columns:1fr 1fr}.feature-cards-grid{grid-template-columns:repeat(3,1fr)}.what-is-inner{grid-template-columns:1fr 1.3fr}}
@media(max-width:900px){.hero{grid-template-columns:1fr;grid-template-rows:auto auto}.hero-left-dark{padding:52px 28px 36px}.hero-right-bright{padding:36px 28px 52px}.reviews-grid{grid-template-columns:1fr 1fr}.what-is-inner,.guarantee-inner{grid-template-columns:1fr}.guarantee-img-wrap{justify-content:center}.feature-cards-grid{grid-template-columns:1fr 1fr}.ben-2col{grid-template-columns:1fr}}
@media(max-width:640px){nav{padding:0 16px}.nav-links{display:none}.hamburger{display:flex}.hero-left-dark h1{font-size:2rem}.sec-title-band{padding:36px 20px 30px}.sec-title-band h2{font-size:1.65rem}.reviews-grid{grid-template-columns:1fr}.reviews-section,.what-is-section,.why-section,.features-section,.benefits-section,.guarantee-section,.faq-section,.order-how-section{padding:44px 20px}.pricing-details,.price-img-section{padding:32px 20px}.cta-final{padding:56px 20px}.cta-final h2{font-size:1.85rem}.feature-cards-grid{grid-template-columns:1fr}.footer-main,.footer-legal-bottom{padding:36px 20px 20px}.trust-bar{padding:12px 20px;gap:6px 18px}}