/* ===== BMI HERO — SHARED STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f5f0; --bg2: #eeeae1; --surface: #ffffff;
  --border: #e0dbd0; --border2: #d0c9ba;
  --text: #1a1612; --text2: #6b6155; --text3: #9e9082;
  --accent: #2a7d4f; --accent-l: #e8f5ee;
  --red: #e05a2b; --red-l: #fdf0eb;
  --blue: #2563a8; --blue-l: #eef4fb;
  --amber: #b45309; --amber-l: #fef9ee;
  --shadow: 0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --r: 16px; --r-sm: 10px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --serif: 'Instrument Serif', serif;
}
[data-theme="dark"] {
  --bg:#111110; --bg2:#1a1917; --surface:#1f1e1c;
  --border:#2c2a27; --border2:#3a3733;
  --text:#f0ede8; --text2:#a09890; --text3:#6b6560;
  --accent:#4ade80; --accent-l:#0d2b1a;
  --red:#ff7b52; --red-l:#2b1409;
  --blue:#60a5fa; --blue-l:#0d1e30;
  --amber:#fbbf24; --amber-l:#2a1f08;
  --shadow:0 1px 3px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.2);
  --shadow-lg:0 8px 32px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }
body { background:var(--bg); color:var(--text); font-family:var(--font); font-size:16px; line-height:1.6; transition:background .3s,color .3s; }

/* NAV */
nav { position:sticky; top:0; z-index:100; background:var(--surface); border-bottom:1px solid var(--border); }
.nav-inner { max-width:1100px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:60px; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-icon { width:32px; height:32px; background:var(--accent); border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; color:white; font-weight:800; }
.logo-text { font-weight:800; font-size:18px; color:var(--text); letter-spacing:-.3px; }
.logo-text span { color:var(--accent); }
.nav-links { display:flex; align-items:center; gap:4px; list-style:none; }
.nav-links a { color:var(--text2); text-decoration:none; font-size:14px; font-weight:500; padding:6px 12px; border-radius:8px; transition:all .2s; }
.nav-links a:hover, .nav-links a.active { background:var(--bg); color:var(--accent); }
.nav-right { display:flex; align-items:center; gap:12px; }
.theme-toggle { background:var(--bg2); border:1px solid var(--border); border-radius:20px; width:52px; height:28px; cursor:pointer; position:relative; }
.toggle-dot { position:absolute; top:3px; left:3px; width:20px; height:20px; background:var(--accent); border-radius:50%; transition:transform .3s; display:flex; align-items:center; justify-content:center; font-size:11px; }
[data-theme="dark"] .toggle-dot { transform:translateX(24px); }
.btn-cta { background:var(--accent); color:white; border:none; padding:8px 18px; border-radius:20px; font-family:var(--font); font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; transition:all .2s; display:inline-block; }
.btn-cta:hover { opacity:.88; transform:translateY(-1px); }

/* LAYOUT */
.container { max-width:1100px; margin:0 auto; padding:0 24px; }
.page-hero { padding:64px 0 48px; }
.section { padding:64px 0; }
.section-alt { background:var(--bg2); }

/* TYPOGRAPHY */
h1 { font-size:clamp(32px,5vw,52px); font-weight:800; letter-spacing:-1.2px; line-height:1.12; color:var(--text); margin-bottom:20px; }
h1 em, h2 em { font-style:normal; font-family:var(--serif); color:var(--accent); }
h2 { font-size:clamp(24px,3.5vw,36px); font-weight:800; letter-spacing:-.8px; line-height:1.2; color:var(--text); margin-bottom:14px; }
h3 { font-size:17px; font-weight:700; margin-bottom:8px; color:var(--text); }
p { color:var(--text2); line-height:1.75; }
.lead { font-size:17px; color:var(--text2); max-width:640px; margin-bottom:40px; line-height:1.75; }
.section-tag { display:inline-block; background:var(--accent-l); color:var(--accent); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:4px 12px; border-radius:20px; margin-bottom:14px; }
.divider { width:48px; height:3px; background:var(--accent); border-radius:2px; margin:14px 0 24px; }

/* CARDS */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:28px; box-shadow:var(--shadow); }
.card-sm { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); }

/* GRIDS */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }

/* TABLES */
.data-table { width:100%; border-collapse:collapse; background:var(--surface); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow); }
.data-table th { background:var(--text); color:var(--bg); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:14px 20px; text-align:left; }
.data-table td { padding:13px 20px; font-size:15px; border-bottom:1px solid var(--border); color:var(--text); }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--bg); }

/* TAGS */
.tag { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; padding:5px 12px; border-radius:20px; }
.tag-blue { background:var(--blue-l); color:var(--blue); }
.tag-green { background:var(--accent-l); color:var(--accent); }
.tag-amber { background:var(--amber-l); color:var(--amber); }
.tag-red { background:var(--red-l); color:var(--red); }

/* FAQ */
.faq-list { display:flex; flex-direction:column; gap:10px; }
.faq-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm); overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:none; padding:18px 20px; font-family:var(--font); font-size:15px; font-weight:700; color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.faq-q:hover { background:var(--bg); }
.faq-chevron { font-size:20px; color:var(--accent); transition:transform .3s; flex-shrink:0; }
.faq-item.open .faq-chevron { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .35s ease,padding .3s; font-size:15px; color:var(--text2); line-height:1.7; padding:0 20px; }
.faq-item.open .faq-a { max-height:300px; padding:0 20px 18px; }

/* SPECTRUM BAR */
.spectrum { position:relative; height:8px; border-radius:4px; background:linear-gradient(to right,#60a5fa 0%,#4ade80 28%,#fbbf24 58%,#f87171 100%); margin-bottom:6px; }
.spectrum-needle { position:absolute; top:50%; transform:translate(-50%,-50%); width:14px; height:14px; background:var(--surface); border:2.5px solid var(--text); border-radius:50%; transition:left .5s cubic-bezier(.34,1.56,.64,1); box-shadow:0 2px 6px rgba(0,0,0,.2); }
.spectrum-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--text3); font-weight:600; text-transform:uppercase; letter-spacing:.3px; margin-top:6px; }

/* FOOTER */
footer { background:var(--surface); border-top:1px solid var(--border); padding:40px 24px; margin-top:72px; }
.footer-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { color:var(--text3); text-decoration:none; font-size:14px; font-weight:500; transition:color .2s; }
.footer-links a:hover { color:var(--accent); }
.footer-copy { font-size:13px; color:var(--text3); }

/* CTA BANNER */
.cta-banner { background:var(--accent); border-radius:var(--r); padding:48px; text-align:center; position:relative; overflow:hidden; }
.cta-banner::before { content:''; position:absolute; top:-40px; right:-40px; width:200px; height:200px; background:rgba(255,255,255,.08); border-radius:50%; }
.cta-banner h2 { color:white; margin-bottom:12px; }
.cta-banner p { color:rgba(255,255,255,.82); font-size:17px; max-width:480px; margin:0 auto 28px; }
.btn-white { background:white; color:var(--accent); border:none; padding:14px 32px; border-radius:28px; font-family:var(--font); font-size:16px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; transition:all .2s; position:relative; z-index:1; box-shadow:0 4px 16px rgba(0,0,0,.15); }
.btn-white:hover { transform:translateY(-2px); }

/* BENEFIT LIST */
.benefit-list { list-style:none; display:flex; flex-direction:column; gap:14px; }
.benefit-item { display:flex; gap:14px; align-items:flex-start; }
.benefit-icon { width:38px; height:38px; border-radius:10px; background:var(--accent-l); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px; }
.benefit-text strong { display:block; font-size:15px; font-weight:700; color:var(--text); margin-bottom:2px; }
.benefit-text span { font-size:14px; color:var(--text2); }

/* STEPS */
.steps { display:flex; flex-direction:column; gap:20px; }
.step { display:flex; gap:16px; align-items:flex-start; }
.step-num { width:36px; height:36px; background:var(--accent); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; flex-shrink:0; margin-top:2px; }
.step-body strong { display:block; font-size:15px; font-weight:700; margin-bottom:4px; }
.step-body p { font-size:14px; }

/* FORMULA BOX */
.formula-box { background:var(--bg2); border-radius:var(--r-sm); padding:24px; text-align:center; font-size:22px; font-weight:700; font-family:var(--serif); color:var(--text); margin:16px 0; }

/* RESPONSIVE */
@media(max-width:768px){
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .nav-links { display:none; }
  h1 { font-size:32px; }
  h2 { font-size:26px; }
  .cta-banner { padding:36px 20px; }
}
@media(max-width:480px){
  .page-hero { padding:40px 0 32px; }
  .section { padding:48px 0; }
}
