/* Landing Page Styles - Diabetes Free Training */
:root {
  --green:#1f5e1f;
  --dark-green:#1b4e1b;
  --text:#222;
  --muted:#5a6b6a;
  --orange:#f4a51c;
  --orange-dark:#d08b13;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
.container {
  max-width: 980px;
  padding: 0 20px;
  margin: 0 auto;
}
.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 18px 12px;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 34px);
  letter-spacing: .3px;
}
.hero { text-align: center; padding: 34px 0 10px; }
.hero h2 {
  color: var(--green);
  margin: 0 0 8px;
  letter-spacing: .6px;
}
.hero h1 { margin: 10px 0; font-size: clamp(20px, 2.4vw, 28px); }
.hero h3 { margin: 6px 0 0; font-size: clamp(18px, 2vw, 24px); font-weight: 700; }

  .section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    justify-items: center;
    padding: 14px 0 36px;
  }
@media (min-width: 900px) {
  .section { grid-template-columns: 1fr; }
}
.points { text-align: center; color: var(--muted); font-size: 16px; max-width: 720px; margin: 0 auto; }
.points .item { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px 0; color: #1e2a2a; font-weight: 600; }
.check {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #000; color: #000; font-size: 14px; line-height: 1;
}
.cta-wrap { display: flex; align-items: center; justify-content: center; margin-top: 24px; }
.cta {
  background: var(--orange);
  color: #fff;
  border: none;
  border-bottom: 4px solid var(--orange-dark);
  padding: 18px 28px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 280px;
  text-align: center;
}
.cta small { display: block; font-size: 11px; opacity: .9; margin-top: 6px; font-weight: 500; }
.cta:active { transform: translateY(1px); border-bottom-width: 3px; }

  .footer-note { text-align: center; color: #6b6b6b; font-size: 12px; padding: 24px 0 40px; }

/* Modal */
.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal { position: fixed; inset: 0; z-index: 1000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-dialog {
  position: relative; z-index: 1001; background: #fff; width: min(560px, 92%);
  margin: 8vh auto; padding: 22px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.modal-close { position: absolute; top: 8px; right: 12px; border:0; background: transparent; font-size: 28px; cursor: pointer; }
.lead-form { display: grid; gap: 12px; margin-top: 10px; }
.lead-form input { padding: 14px 12px; border: 1px solid #e2e2e2; border-radius: 6px; font-family: inherit; font-size: 15px; }
.btn-primary { background: #31a24c; color: #fff; padding: 14px; border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { filter: brightness(.96); }
.legal { text-align: center; color: #808080; font-size: 12px; margin: 4px 0 0; }

/* Training page */
.banner { background:#154a7c; color:#fff; text-align:center; padding:14px 10px; font-weight:700; letter-spacing:.3px; }
.training { max-width: 980px; margin: 0 auto; padding: 18px 20px 40px; }
.training h2 { text-align:center; font-size: clamp(18px,2.2vw,26px); font-weight:600; color:#214d64; }
.video-wrap { margin: 16px auto 18px; max-width: 900px; }
.video-box { position: relative; padding-top: 56.25%; background: #000; border-radius:8px; overflow:hidden; }
.video-box iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; cursor:pointer; }
.play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.play-btn { width:74px; height:52px; background:#ff0000; border-radius:10px; position:relative; box-shadow:0 6px 12px rgba(0,0,0,.25); }
.play-btn:after { content:""; position:absolute; left:28px; top:16px; border-style:solid; border-width:10px 0 10px 16px; border-color:transparent transparent transparent #fff; }
.cta-secondary { display:block; width:max(260px, 40%); margin: 18px auto 0; text-align:center; background:#f4a51c; color:#fff; padding:16px 22px; border-radius:6px; border-bottom:4px solid #d08b13; text-decoration:none; font-weight:700; }
.cta-secondary small { display:block; font-size:11px; opacity:.9; margin-top:6px; }
