@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.7; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav — clean clinical bar */
nav { background: #fff; border-bottom: 2px solid #2563eb; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 58px; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.brand { font-size: 16px; font-weight: 700; color: #1e293b; letter-spacing: -0.2px; }
.brand span { font-weight: 400; color: #94a3b8; }
nav .dl { background: #2563eb; color: #fff; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 5px; }
nav .dl:hover { background: #1d4ed8; text-decoration: none; }

/* Hero — white, precise */
.hero { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 60px 32px 48px; }
.hero-inner { max-width: 840px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; padding: 4px 12px; border-radius: 100px; margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
h1 { font-size: clamp(28px, 4.5vw, 50px); font-weight: 700; color: #0f172a; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.5px; }
h1 em { color: #2563eb; font-style: normal; }
.lead { font-size: 18px; color: #475569; max-width: 600px; line-height: 1.6; }

/* Body */
section { max-width: 840px; margin: 0 auto; padding: 52px 32px; }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #0f172a; margin: 44px 0 14px; letter-spacing: -0.3px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
h2:first-child { margin-top: 0; }
h3 { font-size: 15px; font-weight: 600; color: #1e293b; margin: 24px 0 8px; }
p { color: #475569; margin-bottom: 16px; font-size: 16px; line-height: 1.75; }
p:last-child { margin-bottom: 0; }

/* Calculator */
.calc-box { background: #fff; border: 1px solid #e2e8f0; border-top: 3px solid #2563eb; padding: 32px; border-radius: 8px; margin-bottom: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.calc-box h3 { font-size: 14px; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: 1px; margin-top: 0; margin-bottom: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
label { display: block; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 15px; font-family: 'IBM Plex Mono', monospace; color: #1e293b; background: #f8fafc; outline: none; transition: border-color 0.15s; }
input:focus { border-color: #2563eb; background: #fff; }
.calc-result { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 20px 24px; }
.calc-result .val { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; color: #1d4ed8; }
.calc-result .lbl { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* Cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #2563eb; padding: 22px 24px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.card h3 { margin-top: 0; font-size: 14px; color: #1d4ed8; margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* FAQ */
details { border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
details[open] { border-color: #bfdbfe; }
summary { padding: 16px 20px; font-weight: 600; color: #1e293b; cursor: pointer; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 20px; font-weight: 300; color: #2563eb; }
details[open] summary::after { content: '−'; }
.faq-ans { padding: 0 20px 18px; color: #475569; font-size: 15px; line-height: 1.7; }

/* CTA */
.cta-box { background: #1e3a8a; padding: 40px; text-align: center; margin: 40px 0; border-radius: 8px; }
.cta-box h2 { color: #fff; border-bottom: none; font-size: 24px; margin-top: 0; padding-bottom: 0; }
.cta-box p { color: #93c5fd; margin-bottom: 20px; }
.app-badge { height: 44px; filter: brightness(1.1); }

/* Footer */
footer { border-top: 1px solid #e2e8f0; padding: 28px 32px; text-align: center; color: #94a3b8; font-size: 13px; background: #fff; }
footer a { color: #64748b; }
footer a:hover { color: #2563eb; }

@media (max-width: 600px) {
  .hero { padding: 40px 20px 32px; }
  section { padding: 36px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  nav { padding: 0 16px; }
  footer { padding: 20px 16px; }
}

/* Image float integration */
.img-float {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 255px;
  width: 36%;
}
.img-float img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
}
.img-float .img-cap {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.45;
  text-align: center;
}
.flow-block { overflow: hidden; }
@media (max-width: 640px) {
  .img-float {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1.5rem;
    display: block;
  }
}
