/* Wahero Health Institute shared styles
   Palette: blue-dominant medical with red accent (per client logo direction) */
:root {
  --navy: #122a56;
  --navy-deep: #0c1d3d;
  --blue: #1d4ed8;
  --blue-soft: #eaf0fd;
  --red: #d2232a;
  --red-dark: #a91b21;
  --green: #2f9e44;
  --bg: #f6f8fc;
  --white: #ffffff;
  --ink: #1e293b;
  --muted: #5b6b83;
  --line: #dde5f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 42, 86, 0.10);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #b9c8e6; font-size: 12.5px; }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 7px 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #dbe6fa; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .dot { color: var(--red); margin: 0 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(18, 42, 86, .06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 13px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: auto; flex: 0 0 auto; }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 5px; width: 48px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name strong {
  color: var(--navy); font-family: "Manrope", sans-serif; font-size: 20px;
  font-weight: 800; letter-spacing: -0.015em;
}
.brand-name span {
  color: var(--green); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--blue-soft); text-decoration: none; color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 700; }
.main-nav .nav-cta {
  background: var(--red); color: #fff; font-weight: 700; margin-left: 14px;
  padding: 11px 22px; border-radius: 999px; font-family: "Manrope", sans-serif;
  box-shadow: 0 4px 14px rgba(210, 35, 42, .32);
  transition: transform .12s ease, background .12s ease;
}
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 18px; color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(210, 35, 42, .18), transparent 60%),
    linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, #1a3a7c 100%);
  color: #e8eefb;
  padding: 84px 0 92px;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 780px;
}
.hero .tagline {
  color: #ffd7d9; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: 13px; margin-bottom: 14px;
}
.hero p.lede {
  max-width: 680px; margin: 18px 0 30px; font-size: 1.12rem; color: #c6d3ec;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-family: "Manrope", sans-serif;
  padding: 13px 26px; border-radius: 999px; font-size: 15.5px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(210, 35, 42, .35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .30); }
.btn-blue:hover { background: #1a44bd; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-dark:hover { background: var(--blue-soft); color: var(--blue); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head .kicker {
  color: var(--red); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 12.5px; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { margin: 12px 0 0 2px; list-style: none; }
.card ul li {
  padding-left: 26px; position: relative; margin-bottom: 8px;
  color: var(--ink); font-size: .96rem;
}
.card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 800;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 22px; margin-bottom: 16px;
}
.card.accent-top { border-top: 4px solid var(--red); }

/* ---------- Image placeholders (swap for client photos) ---------- */
.ph {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #16366d 0%, #1d4ed8 100%);
  min-height: 220px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(300px 160px at 80% 15%, rgba(210,35,42,.35), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px);
}
.ph .ph-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  font-size: 44px; opacity: .85;
}
.ph figcaption {
  position: relative; width: 100%; padding: 12px 16px;
  background: rgba(12, 29, 61, .72); color: #dbe6fa; font-size: .85rem;
  backdrop-filter: blur(4px);
}
.ph.tall { min-height: 320px; }

/* Real photo variant */
.ph.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.ph.photo::before {
  background: linear-gradient(180deg, rgba(12, 29, 61, 0) 55%, rgba(12, 29, 61, .42));
  z-index: 1;
}
.ph.photo figcaption { z-index: 2; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 46px;
}
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 18px 22px;
}
.stat strong { display: block; font-size: 1.5rem; color: #fff; font-family: "Manrope", sans-serif; }
.stat span { color: #b9c8e6; font-size: .88rem; }

/* ---------- Mission / vision / values ---------- */
.mvv .card h3 { display: flex; align-items: center; gap: 10px; }
.mvv .card h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* ---------- Course card ---------- */
.course-card {
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 0; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.course-card .course-media { min-height: 100%; border-radius: 0; }
.course-body { padding: 30px 34px; }
.course-body .meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.badge {
  background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: .82rem;
  padding: 5px 12px; border-radius: 999px;
}
.badge.red { background: #fdecec; color: var(--red); }

/* ---------- Price tiles ---------- */
.price-note { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tile-cta { margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, #b71e24 100%);
  color: #fff; border-radius: var(--radius); padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.cta-band p { color: #ffd9db; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: #f3f4f6; }

/* ---------- Forms ---------- */
.form-card { max-width: 640px; }
.form-grid { display: grid; gap: 16px; }
.form-grid label { font-weight: 600; font-size: .92rem; color: var(--navy); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c8e6; margin-top: 72px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b9c8e6; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin-top: 10px; max-width: 340px; font-size: .93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--maxw); margin: 0 auto; padding: 18px 22px 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem;
}
.footer-bottom .red { color: #ff8f94; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18,42,86,.16); }
.post-card img { width: 100%; height: 230px; object-fit: cover; }
.post-card .post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--blue); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.post-meta .cat { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.post-card .readmore { margin-top: 16px; font-weight: 700; color: var(--blue); }

/* Article page */
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 18px 0 10px; }
.article h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.article p { margin-bottom: 16px; color: #33415c; }
.article ul, .article ol { margin: 0 0 16px 24px; color: #33415c; }
.article li { margin-bottom: 8px; }
.article .callout {
  border-left: 4px solid var(--red); background: #fdf1f1; border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 24px 0; color: #7a2226;
}
.article .callout.blue { border-color: var(--blue); background: var(--blue-soft); color: #1e3a8a; }
.article .chart { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0; box-shadow: var(--shadow); }
.article .chart svg { width: 100%; height: auto; display: block; }
.article .chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .85rem; color: var(--ink); }
.chart-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 6px; right: 20px; font-size: 74px;
  color: var(--blue-soft); font-family: Georgia, serif; line-height: 1;
}
.testimonial p { color: #33415c; font-size: .98rem; margin-bottom: 18px; position: relative; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-family: "Manrope", sans-serif; font-size: 15px;
}
.testimonial .who strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonial .who span { color: var(--muted); font-size: .84rem; }
.demo-note { font-size: .75rem; color: #9aa8bf; text-align: center; margin-top: 18px; }

/* ---------- Resource / learning material pages ---------- */
.resource-sheet {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 44px; max-width: 860px; margin: 0 auto;
}
.resource-sheet .sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border-bottom: 3px solid var(--red); padding-bottom: 18px; margin-bottom: 26px;
}
.resource-sheet .sheet-head img { width: 54px; height: auto; }
.resource-sheet h2 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--navy);
  padding: 6px 12px; background: var(--blue-soft); border-radius: 8px; display: inline-block; }
.resource-sheet table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .93rem; }
.resource-sheet th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; }
.resource-sheet td { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.resource-sheet tr:nth-child(even) td { background: #f8fafd; }
.check-list { list-style: none; margin: 10px 0 20px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.check-list .box {
  width: 18px; height: 18px; border: 2px solid var(--blue); border-radius: 4px; flex: 0 0 auto; margin-top: 2px;
}
.fill-line { border-bottom: 1.5px solid var(--line); min-height: 26px; margin: 6px 0 14px; }
.sheet-footer { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.toolbar { display: flex; gap: 10px; justify-content: center; margin: 0 0 26px; }
@media print {
  .site-header, .site-footer, .toolbar, .page-hero, .cta-band, .no-print { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .resource-sheet { box-shadow: none; border: none; padding: 0; }
}

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; opacity: .75; }
.logo-strip span { font-family: "Manrope", sans-serif; font-weight: 800; color: #8194b3; font-size: 1.02rem; letter-spacing: .02em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #dbe6fa; padding: 58px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.page-hero p { max-width: 680px; margin-top: 12px; color: #b9c8e6; font-size: 1.05rem; }
.page-hero .kicker {
  color: #ff8f94; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: 12.5px; margin-bottom: 8px;
}

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; }
  .course-card .course-media { min-height: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
  .main-nav .nav-cta { padding: 10px 16px; margin-left: 8px; }
  .brand-name strong { font-size: 17px; }
}
@media (max-width: 920px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(18, 42, 86, .12);
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px; gap: 2px;
  }
  .main-nav a { font-size: 15px; padding: 10px 12px; }
  .main-nav.open { display: flex; }
  .main-nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .topbar { display: none; }
}
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 60px 0 68px; }
  .cta-band { padding: 34px 26px; }
}

/* ---- Floating WhatsApp button (injected by main.js on every page) ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(18, 42, 86, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float svg { width: 30px; height: 30px; display: block; }
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(18, 42, 86, 0.34);
}
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: none; }
}

/* ---------- Responsive fixes: nav overflow, mobile hero height ---------- */

/* The nav gained Shop and Portal, so it needs to compress sooner and the
   hamburger has to appear before it can overflow the viewport. */
@media (max-width: 1200px) {
  .main-nav a { padding: 8px 7px; font-size: 13.5px; }
  .main-nav .nav-cta { padding: 10px 15px; margin-left: 6px; font-size: 13.5px; }
  .brand-name span { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
              background: var(--white); border-bottom: 1px solid var(--line);
              flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px;
              box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 15px; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
}

/* Nothing may push the page wider than the screen. */
html, body { max-width: 100%; overflow-x: hidden; }
.header-inner, .topbar-inner, .container { max-width: 100%; }
img, svg, video, table { max-width: 100%; }

/* Small phones: reclaim the horizontal padding that was causing overflow. */
@media (max-width: 420px) {
  .header-inner { padding: 11px 14px; gap: 10px; }
  .topbar-inner { padding: 6px 14px; gap: 8px; }
  .brand img { height: 34px; }
  .brand-name strong { font-size: 15.5px; }
}

/* Mobile hero: fit the first screen. The old hero ran to ~1.4x viewport height,
   so the headline and the call to action were both below the fold. */
@media (max-width: 720px) {
  .hero { padding: 34px 0 34px; }
  .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); line-height: 1.16; }
  .hero .tagline { margin-bottom: 8px; font-size: 12px; }
  .hero .lede { font-size: .96rem; margin-bottom: 16px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-actions .btn:first-child { flex: 1 1 100%; }

  /* Three stacked stat cards were the single biggest cause of the tall hero.
     Side by side and compact, they cost a fraction of the height. */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .stat { padding: 10px 9px; border-radius: 9px; }
  .stat strong { font-size: 13px; display: block; }
  .stat span { font-size: 10.5px; line-height: 1.32; }
}
@media (max-width: 400px) {
  .hero { padding: 26px 0 28px; }
  .stat span { display: none; }   /* keep the three labels, drop the descriptions */
  .stat strong { font-size: 12.5px; }
}
