/* Salesboom design kit v1 (Phase 0, 13 Nov 2026).
   Extracted from crm/crm-software/construction-management-software.html.
   One file for the whole site. No Bootstrap, no Font Awesome, no jQuery.
   Guide: design-kit/GUIDE.md */

/* Inter, self-hosted (assets/fonts/README.md): one variable font, weights 400 to 800, Latin subset.
   Preloaded by the kit head; characters outside the range and a slow load fall back to the system font. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sb-navy: #002f6c;
  --sb-blue: #0052b4;
  --sb-link: #005baa;
  --sb-orange: #ff6b35;
  --sb-orange-hover: #ff8a5f;
  --sb-text: #1a1a1a;
  --sb-muted: #666;
  --sb-light: #f8f9fa;
  --sb-line: #e0e0e0;
  --sb-white: #fff;
  --sb-gradient: linear-gradient(135deg, var(--sb-navy) 0%, var(--sb-blue) 100%);
  --sb-radius: 12px;
  --sb-shadow: 0 4px 15px rgba(0, 0, 0, .08);
  --sb-shadow-hover: 0 8px 30px rgba(0, 47, 108, .15);
  --sb-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sb-container: 1140px;
  --sb-gutter: 24px;
  --sb-section: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sb-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sb-text);
  background: var(--sb-white);
}
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.25; color: var(--sb-navy); font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }
a { color: var(--sb-link); }
a:hover { color: var(--sb-navy); }
:focus-visible { outline: 3px solid var(--sb-orange); outline-offset: 2px; }
.sb-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb-container { width: 100%; max-width: calc(var(--sb-container) + 2 * 16px); margin: 0 auto; padding: 0 16px; }
.sb-center { text-align: center; }
.sb-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 8px; border: 2px solid transparent;
  font: 600 1.05rem/1.3 var(--sb-font); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.sb-btn:hover { transform: translateY(-2px); }
/* Orange accent. Navy text keeps WCAG AA contrast (4.6:1) on #ff6b35. */
.sb-btn--primary { background: var(--sb-orange); border-color: var(--sb-orange); color: var(--sb-navy); }
.sb-btn--primary:hover { background: var(--sb-orange-hover); border-color: var(--sb-orange-hover); color: var(--sb-navy); box-shadow: 0 6px 20px rgba(255, 107, 53, .4); }
.sb-btn--ghost { background: transparent; border-color: var(--sb-white); color: var(--sb-white); }
.sb-btn--ghost:hover { background: var(--sb-white); color: var(--sb-navy); }
.sb-btn--outline { background: transparent; border-color: var(--sb-navy); color: var(--sb-navy); }
.sb-btn--outline:hover { background: var(--sb-navy); color: var(--sb-white); }
.sb-btn--blue { background: var(--sb-link); border-color: var(--sb-link); color: var(--sb-white); }
.sb-btn--blue:hover { background: var(--sb-navy); border-color: var(--sb-navy); color: var(--sb-white); }
.sb-btn--sm { padding: 6px 16px; font-size: .9rem; }
.sb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 8px; }

/* ---------- Top bar ---------- */
.sb-topbar { background: var(--sb-light); border-bottom: 1px solid #dee2e6; font-size: .9rem; }
.sb-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 7px; padding-bottom: 7px; }
.sb-topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sb-topbar a { color: #333; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sb-topbar a:hover { color: var(--sb-link); }
.sb-social { display: flex; align-items: center; gap: 8px; }
.sb-social img { width: 22px; height: 22px; border-radius: 50%; }

/* ---------- Header and menu ---------- */
.sb-header { position: sticky; top: 0; z-index: 100; background: var(--sb-white); box-shadow: 0 2px 4px rgba(0, 0, 0, .1); }
.sb-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.sb-logo { display: inline-flex; flex: none; padding: 8px 0; }
.sb-logo img { width: auto; height: 40px; }
.sb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.sb-nav__item { position: relative; }
.sb-nav__item--wide { position: static; }
.sb-nav__row { display: flex; align-items: center; }
.sb-nav__link {
  display: block; padding: 21px 14px 19px; color: #333; font-weight: 600; font-size: .97rem;
  text-decoration: none; white-space: nowrap; border-top: 4px solid transparent;
}
.sb-nav--compact .sb-nav__link { padding-left: 8px; padding-right: 8px; font-size: .86rem; }
.sb-nav--compact .sb-nav__note { font-size: .68rem; }
.sb-nav__link:hover, .sb-nav__item:hover > .sb-nav__row > .sb-nav__link { color: var(--sb-link); border-top-color: var(--sb-link); }
.sb-nav__note { display: block; font-size: .75rem; color: var(--sb-muted); font-weight: 400; line-height: 1.2; }
.sb-nav__more {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -10px;
  padding: 0; border: 0; border-radius: 6px; background: none; color: #333; cursor: pointer; font-size: 14px;
}
.sb-nav__more .sb-icon { transition: transform .2s; }
.sb-nav__item.is-open > .sb-nav__row .sb-nav__more .sb-icon { transform: rotate(180deg); }
.sb-nav__cta { flex: none; }
.sb-nav-toggle { display: none; }

.sb-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 220px;
  background: var(--sb-light); border-radius: 0 0 8px 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 12px 0;
}
.sb-menu--wide { right: 0; padding: 24px 32px; }
.sb-menu a { display: block; padding: 6px 20px; color: #212529; text-decoration: none; font-size: .95rem; }
.sb-menu a:hover { background: #e9ecef; color: var(--sb-navy); }
.sb-menu--wide a { padding: 5px 8px; border-radius: 6px; }
.sb-menu__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
.sb-menu__heading { margin: 0 0 6px; padding: 0 8px; font-size: .8rem; font-weight: 600; text-transform: none; color: var(--sb-muted); min-height: 1.2em; }
.sb-menu__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.sb-menu__icons a { width: 92px; text-align: center; padding: 8px 4px; font-size: .85rem; font-weight: 600; color: var(--sb-navy); }
.sb-menu__icons img { display: block; width: 60px; height: 60px; margin: 0 auto 6px; padding: 8px; border-radius: 50%; background: var(--sb-white); border: 2px solid #ccc; }
.sb-menu__icons a:hover img { border-color: var(--sb-link); }
.sb-menu ul { list-style: none; margin: 0; padding: 0; }

@media (min-width: 992px) {
  .sb-nav__item:hover > .sb-menu,
  .sb-nav__item:focus-within > .sb-menu,
  .sb-nav__item.is-open > .sb-menu { display: block; }
  .sb-nav__item.is-closed > .sb-menu { display: none; }
}

/* Tablet and phone: the menu folds behind a button (needs the kit script).
   Without the script the menu simply stays open under the logo. */
@media (max-width: 991.98px) {
  .sb-header__inner { flex-wrap: wrap; }
  .sb-nav { order: 4; width: 100%; }
  .sb-nav__list { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .sb-nav__row { justify-content: space-between; border-bottom: 1px solid var(--sb-line); }
  .sb-nav__link { padding: 12px 4px; border-top: 0; }
  .sb-nav__link:hover, .sb-nav__item:hover > .sb-nav__row > .sb-nav__link { border-top: 0; }
  .sb-nav__more { width: 44px; height: 44px; margin: 0; }
  .sb-menu, .sb-menu--wide { position: static; display: block; box-shadow: none; border-radius: 0; padding: 8px 0 12px; background: transparent; min-width: 0; }
  .sb-menu__cols { grid-template-columns: repeat(2, 1fr); }
  .sb-menu__icons { justify-content: flex-start; }
  .sb-nav__cta { order: 2; margin-left: auto; }
  .sb-js .sb-nav { display: none; }
  .sb-js .sb-header.is-open .sb-nav { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
  .sb-js .sb-menu { display: none; }
  .sb-js .sb-nav__item.is-open > .sb-menu { display: block; }
  .sb-js .sb-nav-toggle {
    display: inline-flex; order: 3; align-items: center; justify-content: center; width: 48px; height: 44px;
    border: 1px solid var(--sb-line); border-radius: 8px; background: var(--sb-white); color: var(--sb-navy); font-size: 24px; cursor: pointer;
  }
  .sb-nav-toggle .sb-icon--close { display: none; }
  .sb-header.is-open .sb-nav-toggle .sb-icon--close { display: block; }
  .sb-header.is-open .sb-nav-toggle .sb-icon--menu { display: none; }
}
@media (max-width: 575.98px) {
  .sb-nav__cta { display: none; }
  .sb-menu__cols { grid-template-columns: 1fr; }
  .sb-logo img { height: 36px; }
}

/* ---------- Top banner ---------- */
.sb-hero { position: relative; overflow: hidden; background: var(--sb-gradient); color: var(--sb-white); padding: 100px 0 80px; text-align: center; }
.sb-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M40 0H0v40" fill="none" stroke="rgba(255,255,255,0.05)"/></svg>');
}
.sb-hero > * { position: relative; }
.sb-hero h1, .sb-hero__title { margin: 0 0 25px; font-size: 3.5rem; font-weight: 800; line-height: 1.2; color: var(--sb-white); }
.sb-hero__lead { max-width: 900px; margin: 0 auto 40px; font-size: 1.4rem; opacity: .95; }
.sb-hero--compact { padding: 64px 0 56px; }
.sb-hero--compact .sb-hero__title { font-size: 2.6rem; margin-bottom: 12px; }
.sb-hero__media { margin: 32px auto 0; max-width: 722px; border-radius: var(--sb-radius); overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.sb-hero__media img { display: block; width: 100%; }

/* ---------- Content sections ---------- */
.sb-section { padding: var(--sb-section) 0; }
.sb-section--light { background: var(--sb-light); }
.sb-section + .sb-section--light, .sb-section--light + .sb-section:not(.sb-section--light) { border-top: 0; }
.sb-title { margin: 0 0 20px; font-size: 2.5rem; font-weight: 700; text-align: center; color: var(--sb-navy); }
.sb-subtitle { max-width: 800px; margin: 0 auto 60px; font-size: 1.2rem; line-height: 1.8; text-align: center; color: var(--sb-muted); }
.sb-lead { max-width: 900px; margin: 24px auto 0; font-size: 1.25rem; font-weight: 400; text-align: center; color: var(--sb-muted); }
.sb-subhead { margin: 48px 0 24px; text-align: center; font-size: 1.75rem; }
.sb-section p.sb-note { text-align: center; margin-top: 8px; }

/* Grid: columns collapse on tablet and phone. */
.sb-grid { display: grid; gap: var(--sb-gutter); grid-template-columns: 1fr; margin-bottom: var(--sb-gutter); }
.sb-grid > * { min-width: 0; }
@media (min-width: 768px) {
  .sb-grid--3, .sb-grid--4, .sb-grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .sb-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .sb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sb-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .sb-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .sb-grid--2 > .sb-order-2 { order: 2; }
  .sb-grid--middle { align-items: center; }
}
.sb-narrow { max-width: 950px; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.sb-card {
  height: 100%; padding: 40px; background: var(--sb-white); border-top: 4px solid var(--sb-navy);
  border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.sb-card:hover { transform: translateY(-6px); box-shadow: var(--sb-shadow-hover); }
.sb-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.sb-card p { color: var(--sb-muted); line-height: 1.8; margin-bottom: 0; }
.sb-card ul { margin-top: 20px; }
.sb-card__icon {
  display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin: 0 auto 25px;
  border-radius: var(--sb-radius); background: var(--sb-gradient); color: var(--sb-white); font-size: 28px;
}
.sb-stack > * + * { margin-top: var(--sb-gutter); }

/* Check list: the tick is drawn by the stylesheet, the text stays plain. */
.sb-checks { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.sb-checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--sb-muted); line-height: 1.6; }
.sb-checks li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230052b4" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') no-repeat center / contain;
}

/* Prose column with an optional picture beside it. */
.sb-prose h3 { display: flex; align-items: center; gap: 12px; font-size: 2rem; margin-bottom: 20px; }
.sb-prose h3 .sb-icon { color: var(--sb-blue); font-size: .9em; }
.sb-prose h4 { font-size: 1.5rem; font-weight: 600; margin: 30px 0 15px; }
.sb-prose p { color: var(--sb-muted); line-height: 1.8; margin-bottom: 20px; }
.sb-prose .sb-checks li { margin-bottom: 15px; }
.sb-media img { display: block; width: 100%; border-radius: var(--sb-radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .1); }
.sb-text p { margin-bottom: 1rem; }

/* ---------- Steps ---------- */
.sb-step { height: 100%; padding: 32px 24px; background: var(--sb-white); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); text-align: center; }
.sb-step__num {
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 25px;
  border-radius: 50%; background: var(--sb-navy); color: var(--sb-white); font-size: 1.8rem; font-weight: 700;
}
.sb-step h3 { font-size: 1.4rem; margin-bottom: 15px; }
.sb-step p { color: var(--sb-muted); line-height: 1.7; margin: 0; }
.sb-grid--5 .sb-step { padding: 28px 18px; }
.sb-grid--5 .sb-step h3 { font-size: 1.15rem; }
.sb-grid--5 .sb-step p { font-size: .95rem; }

/* ---------- Benefits ---------- */
.sb-benefits { background: var(--sb-gradient); color: var(--sb-white); padding: var(--sb-section) 0; }
.sb-benefits .sb-title, .sb-benefits h3 { color: var(--sb-white); }
.sb-benefits .sb-subtitle { color: rgba(255, 255, 255, .92); }
.sb-benefit { height: 100%; padding: 40px; border-radius: var(--sb-radius); background: rgba(255, 255, 255, .1); text-align: center; transition: background-color .3s, transform .3s; }
.sb-benefit:hover { background: rgba(255, 255, 255, .15); transform: translateY(-5px); }
.sb-benefit h3 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; margin-bottom: 15px; }
.sb-benefit p { margin: 0; line-height: 1.7; }

/* ---------- Risk / highlight items ---------- */
.sb-risk { padding: 30px; margin-bottom: 20px; background: var(--sb-white); border-left: 4px solid var(--sb-orange); border-radius: 8px; box-shadow: var(--sb-shadow); }
.sb-risk h4 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 10px; }
.sb-risk h4 .sb-icon { color: var(--sb-blue); }
.sb-risk p { margin: 0; color: var(--sb-muted); line-height: 1.7; }

/* ---------- Questions and answers ---------- */
.sb-faq { max-width: 950px; margin: 0 auto; }
.sb-faq__item { margin-bottom: 20px; padding: 28px 32px; background: var(--sb-white); border-top: 4px solid var(--sb-navy); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); }
.sb-faq__item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.sb-faq__item p { margin: 0; color: var(--sb-muted); line-height: 1.8; }

/* ---------- Call to action ---------- */
.sb-cta { background: var(--sb-navy); color: var(--sb-white); padding: var(--sb-section) 0; text-align: center; }
.sb-cta h2 { color: var(--sb-white); font-size: 2.8rem; margin-bottom: 25px; }
.sb-cta p { max-width: 800px; margin: 0 auto 40px; font-size: 1.3rem; opacity: .95; }

/* ---------- Link cards (related reading, case studies) ---------- */
.sb-links__title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; font-size: 1.75rem; color: var(--sb-navy); }
.sb-links__intro { text-align: center; color: var(--sb-muted); margin: 0 0 40px; }
.sb-links__title + .sb-grid { margin-top: 36px; }
.sb-linkcard { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 28px 20px; background: var(--sb-white); border-radius: 8px; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); text-align: center; }
.sb-linkcard > .sb-icon { font-size: 34px; color: var(--sb-navy); margin-bottom: 16px; }
.sb-linkcard h5 { font-size: 1.15rem; margin-bottom: 8px; }
.sb-linkcard p { color: var(--sb-muted); margin-bottom: 16px; }
.sb-linkcard .sb-btn { margin-top: auto; }

/* ---------- Forms ---------- */
.sb-panel { padding: 32px; background: var(--sb-white); border-top: 4px solid var(--sb-navy); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); }
.sb-panel__note { padding: 16px 20px; margin-bottom: 24px; background: var(--sb-light); border-left: 4px solid var(--sb-blue); border-radius: 8px; color: var(--sb-muted); }
.sb-panel h3 { font-size: 1.6rem; margin-bottom: 12px; }
.sb-form { margin-top: 20px; }
.sb-form table { width: 100%; border-collapse: collapse; }
.sb-form td { height: auto; padding: 6px 8px; vertical-align: middle; font-size: 1rem; color: var(--sb-text); }
.sb-form td[align=right] { font-weight: 600; color: var(--sb-navy); white-space: nowrap; }
.sb-form font { font-size: inherit; }
.sb-form font[size="1"] { font-size: .85rem; color: var(--sb-muted); }
.sb-form input:not([type]), .sb-form input[type=text], .sb-form input[type=email], .sb-form select, .sb-form textarea {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #b8c0c8; border-radius: 8px; background: var(--sb-white);
  font: 1rem/1.4 var(--sb-font); color: var(--sb-text);
}
.sb-form textarea { min-height: 120px; }
.sb-form input:focus, .sb-form select:focus, .sb-form textarea:focus { border-color: var(--sb-blue); outline: 3px solid rgba(0, 82, 180, .25); outline-offset: 0; }
.sb-form input[type=submit], .sb-form input[type=reset] {
  padding: 12px 28px; margin: 12px 8px 0 0; border-radius: 8px; border: 2px solid var(--sb-navy); font: 600 1rem var(--sb-font); cursor: pointer;
}
.sb-form input[type=submit] { background: var(--sb-orange); border-color: var(--sb-orange); color: var(--sb-navy); }
.sb-form input[type=submit]:disabled { background: #e9ecef; border-color: #ced4da; color: #6c757d; cursor: not-allowed; }
.sb-form input[type=reset] { background: transparent; color: var(--sb-navy); }
.sb-form .g-recaptcha { margin: 12px 0 !important; }
@media (max-width: 575.98px) {
  .sb-form table, .sb-form tbody, .sb-form tr, .sb-form td { display: block; width: auto !important; }
  .sb-form td { padding: 4px 0; text-align: left; }
  .sb-form td[align=right] { padding-top: 12px; }
  .sb-panel { padding: 24px 18px; }
}
.sb-side { padding: 28px; background: var(--sb-white); border-top: 4px solid var(--sb-orange); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); }
.sb-side h3, .sb-side__title { display: block; margin: 0 0 16px; font-size: 1.3rem; font-weight: 700; color: var(--sb-navy); }
.sb-side ul { list-style: none; margin: 0; padding: 0; }
.sb-side li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sb-line); }
.sb-side li:last-child { border-bottom: 0; }
.sb-side li > .sb-icon { margin-top: .3em; color: var(--sb-blue); }
.sb-grid--aside { align-items: start; }
@media (min-width: 992px) { .sb-grid--aside { grid-template-columns: 2fr 1fr; } }

/* ---------- Footer ---------- */
.sb-footer { margin-top: 0; background: #f7f8fa; color: #333; font-size: 15px; }
.sb-footer__cols { display: grid; gap: 32px 24px; grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .sb-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .sb-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.sb-footer h5, .sb-footer__heading { font-size: 1.05rem; font-weight: 700; color: var(--sb-navy); margin: 0 0 14px; }
.sb-footer h5 + a, .sb-footer a + h5 { margin-top: 0; }
.sb-footer__col .sb-footer__heading:not(:first-child) { margin-top: 24px; }
.sb-footer__col a { display: block; margin-bottom: 8px; color: var(--sb-link); text-decoration: none; font-size: 14px; }
.sb-footer__col a:hover { color: var(--sb-navy); text-decoration: underline; }
.sb-footer__col h5:not(:first-child) { margin-top: 24px; }
.sb-footer__logo img { width: 180px; height: auto; }
.sb-footer__label { margin: 20px 0 8px; font-weight: 700; }
.sb-footer .sb-social { gap: 10px; }
.sb-footer .sb-social a { display: inline-flex; margin: 0; }
.sb-footer .sb-social img { width: 32px; height: 32px; }
.sb-footer__phone { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 700; color: var(--sb-link); }
.sb-footer__phone a { display: inline; margin: 0; font-size: inherit; color: inherit; }
.sb-footer__bottom { background: var(--sb-gradient); color: var(--sb-white); text-align: center; padding: 18px 0; font-size: 14px; }
.sb-footer__bottom a { color: var(--sb-white); text-decoration: none; }
.sb-footer__bottom a:hover { text-decoration: underline; color: var(--sb-white); }
.sb-footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.sb-footer__bottom p { margin: 0; }
@media (max-width: 767.98px) { .sb-footer__col { text-align: center; } .sb-footer .sb-social, .sb-footer__phone { justify-content: center; } }

/* ---------- Restyled pages (Phase 0b): blocks the restyle command produces ---------- */
/* An automatic grid for rows of cards, a narrow centred column, tables, a menu intro line,
   and a page's own footer columns (headings and lists as the page wrote them). */
@media (min-width: 768px) { .sb-grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.sb-narrow { max-width: 900px; margin: 0 auto; }
.sb-narrow > h2, .sb-narrow > h3 { margin-top: 32px; }
.sb-table { overflow-x: auto; margin: 0 0 var(--sb-gutter); }
.sb-table table { width: 100%; border-collapse: collapse; background: var(--sb-white); }
.sb-table th, .sb-table td { padding: 10px 14px; border: 1px solid var(--sb-line); text-align: left; vertical-align: top; }
.sb-table th { background: var(--sb-light); color: var(--sb-navy); }
.sb-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; background: #0b1b33; border-radius: 8px; overflow: hidden; }
.sb-video iframe, .sb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
main iframe { max-width: 100%; }
.sb-menu__intro { margin: 0 0 12px; padding: 0 8px; font-weight: 700; color: var(--sb-navy); }
.sb-card__icon + h3, .sb-card__icon + h4 { margin-top: 0; }
.sb-step .sb-icon, .sb-card h3 .sb-icon, .sb-card h4 .sb-icon { color: var(--sb-blue); }
.sb-footer--page .sb-footer__col h2, .sb-footer--page .sb-footer__col h3, .sb-footer--page .sb-footer__col h4, .sb-footer--page .sb-footer__col h5, .sb-footer--page .sb-footer__col h6 { font-size: 1.05rem; font-weight: 700; color: var(--sb-navy); margin: 0 0 14px; }
.sb-footer--page .sb-footer__col ul { list-style: none; margin: 0 0 16px; padding: 0; }
.sb-footer--page .sb-footer__col p { margin: 0 0 10px; }
.sb-footer--page .sb-footer__col img { max-width: 180px; height: auto; }
.sb-footer--page .sb-footer__col a:has(> .sb-social__img) { display: inline-block; margin: 0 8px 8px 0; }
.sb-footer--page img.sb-social__img { width: 32px; height: 32px; border-radius: 50%; }
.sb-hero a:not(.sb-btn), .sb-cta a:not(.sb-btn), .sb-benefits a:not(.sb-btn) { color: var(--sb-white); text-decoration: underline; }
.sb-cta .sb-lead, .sb-cta .sb-subtitle, .sb-cta .sb-note, .sb-benefits .sb-lead, .sb-benefits .sb-subtitle, .sb-benefits .sb-note { color: var(--sb-white); }
/* Several cards stacked in one column: each takes its own height. */
.sb-grid > div:not([class]) > .sb-card { height: auto; }
.sb-grid > div:not([class]) > .sb-card + .sb-card, .sb-grid > div:not([class]) > .sb-step + .sb-step { margin-top: var(--sb-gutter); }
.sb-footer--page .sb-footer__bottom p + p { margin-top: 6px; }

/* ---------- Pages made from the templates (Phase 0b) ---------- */
/* Long-form text, the TL;DR box, metric cards, dateline and the FAQ the templates write. */
.sb-article { max-width: 860px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }
.sb-article h2 { margin: 40px 0 14px; font-size: 1.9rem; }
.sb-article h3 { margin: 28px 0 10px; font-size: 1.35rem; }
.sb-article p, .sb-article ul, .sb-article ol { margin: 0 0 18px; }
.sb-article ul, .sb-article ol { padding-left: 1.4em; }
.sb-article li { margin-bottom: 6px; }
.sb-article img { max-width: 100%; height: auto; border-radius: var(--sb-radius); }
.sb-article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.sb-article th, .sb-article td { padding: 10px 14px; border: 1px solid var(--sb-line); text-align: left; vertical-align: top; }
.sb-article th { background: var(--sb-light); color: var(--sb-navy); }
.sb-article blockquote { margin: 0 0 18px; padding: 12px 20px; border-left: 4px solid var(--sb-orange); background: var(--sb-light); }
.sb-article .key-takeaways { margin: 0 0 32px; padding: 20px 24px; background: var(--sb-light); border-left: 4px solid var(--sb-navy); border-radius: var(--sb-radius); }
.sb-article .key-takeaways h2 { margin: 0 0 10px; font-size: 1.3rem; }
.sb-article .key-takeaways ul { margin: 0; }
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0 0 32px; }
.metric-card { display: flex; flex-direction: column; padding: 20px 16px; text-align: center; background: var(--sb-white); border-top: 4px solid var(--sb-navy); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); }
.metric-value { font-size: 2rem; font-weight: 800; color: var(--sb-navy); }
.metric-label { color: var(--sb-muted); font-size: .95rem; }
/* Restyled stat bands: the figures are metric cards in the grid. */
.sb-grid > .metric-card { height: 100%; }
.sb-benefits .metric-label { color: var(--sb-muted); }
.sb-article .dateline { color: var(--sb-muted); font-style: italic; }
.sb-article .summary { font-size: 1.15rem; }
main section.faq, .sb-article section.faq { max-width: 860px; margin: 0 auto; padding: 0 16px var(--sb-section); }
.sb-article section.faq { padding: 0; }
section.faq h2 { margin: 40px 0 18px; font-size: 1.9rem; }
section.faq h3 { margin: 0; padding: 20px 24px 6px; font-size: 1.2rem; background: var(--sb-white); border-top: 4px solid var(--sb-navy); border-radius: var(--sb-radius) var(--sb-radius) 0 0; box-shadow: var(--sb-shadow); }
section.faq h3 + p { margin: 0 0 16px; padding: 0 24px 20px; color: var(--sb-muted); background: var(--sb-white); border-radius: 0 0 var(--sb-radius) var(--sb-radius); box-shadow: var(--sb-shadow); }
.sb-hero--post { padding: 72px 0 64px; }
.sb-hero--post h1 { font-size: 2.8rem; }
.sb-post__tagline { margin: 0 auto; font-size: 1.25rem; font-style: italic; color: rgba(255, 255, 255, .9); }

/* ---------- Tablet and phone sizes ---------- */
@media (max-width: 991.98px) {
  .sb-hero h1, .sb-hero__title { font-size: 2.5rem; }
  .sb-hero__lead { font-size: 1.2rem; }
  .sb-title { font-size: 2rem; }
  .sb-cta h2 { font-size: 2.2rem; }
}
@media (max-width: 767.98px) {
  :root { --sb-section: 50px; }
  .sb-hero { padding: 60px 0; }
  .sb-hero h1, .sb-hero__title, .sb-hero--compact .sb-hero__title { font-size: 2rem; }
  .sb-hero__lead { font-size: 1.1rem; }
  .sb-actions { flex-direction: column; }
  .sb-actions .sb-btn { width: 100%; }
  .sb-title { font-size: 1.75rem; }
  .sb-subtitle { font-size: 1.1rem; margin-bottom: 40px; }
  .sb-card, .sb-benefit { padding: 28px 22px; }
  .sb-prose h3 { font-size: 1.6rem; }
  .sb-prose h4 { font-size: 1.3rem; }
  .sb-cta h2 { font-size: 1.8rem; }
  .sb-cta p { font-size: 1.1rem; }
  .sb-topbar__inner { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .sb-btn:hover, .sb-card:hover, .sb-benefit:hover { transform: none; }
}
