/* ==== Base ==== */
.cta-band p { margin: 0; color: var(--line-cool-4); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  body.page-public:not(.has-tabbar) { padding-bottom: calc(64px + var(--safe-bottom)); }
}
body.nav-open .cta-bar { display: none; }
.public-hero .eyebrow, .public-hero__lead, .cta-band p { color: var(--sbs-muted-text); }
.link-btn--light { color: var(--sbs-ink); }

/* ==== Buttons, chips and switches ==== */
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .cta-bar .btn-sbs { width: 100%; min-height: 48px; }
}
.phone-collapse__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); width: 100%; min-height: var(--tap); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.phone-collapse__btn::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-3px, -3px); }
.phone-collapse__btn[aria-expanded="false"]::after { transform: rotate(45deg) translate(-3px, -3px); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .phone-collapse__btn { font-size: inherit; font-weight: inherit; }
}

/* ==== Cards, heroes and banners ==== */
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .spec-table.table-cards td { border-bottom: 0; }
  .page-public .hero p, .page-public .section p { max-width: 62ch; }
}
.public-hero, .public-section--dark, .cta-band { border-left: 0; background: var(--sbs-surface); color: var(--sbs-ink); }
.public-hero { border-bottom: 1px solid var(--sbs-line); }
.public-hero__title, .public-section--dark .public-h2, .cta-band .public-h2 { color: var(--sbs-ink); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .public-hero__inner { gap: var(--sp-4); padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
  .public-hero__media img { max-height: 200px; width: auto; object-fit: contain; }
  .steps .card-sbs, .level-cards .card-sbs { padding: var(--card-pad); }
}

/* ==== Status, levels and tips ==== */
.sample-dash__row .status-pill { justify-self: start; }
@media (min-width: 576px) {
  .sample-dash__row .status-pill { justify-self: end; }
}

/* ==== Forms ==== */
.check-list li { margin-bottom: var(--sp-3); padding-left: var(--sp-1); }
.check-list li::marker { color: var(--sbs-red); font-size: 1.2em; }
.check-list--questions { list-style: disc; }
.check-list--questions li::marker { color: var(--sbs-navy); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .auth-form .input-sbs { min-height: 48px; }
}

/* ==== Tables ==== */
.auth-intro__list li { margin-bottom: var(--sp-1); }
.spec-table th, .spec-table td { padding: var(--sp-3); border-bottom: 1px solid var(--sbs-line); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--sbs-bg); font-size: var(--fs-sm); }
.spec-table tbody th { width: 30%; color: var(--sbs-muted-text); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .spec-table tbody th { display: block; width: 100%; padding: 0 0 var(--sp-1); border: 0; color: var(--sbs-ink); }
  .spec-table .spec-list { text-align: right; list-style-position: inside; }
}
.spec-table th[scope="row"] { font-weight: 600; text-align: left; }

/* ==== Page pieces ==== */
.step p, .level-cards p { margin: var(--sp-2) 0 0; }
.alert-steps li { margin-bottom: var(--sp-2); }
.contact-lines li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-height: var(--tap); }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .steps, .level-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-split, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sample-dash__shot figcaption { margin-top: var(--sp-2); }
@media (min-width: 576px) {
  .sample-dash__row { grid-template-columns: 1fr auto 9rem; }
}
.cta-bar { display: none; }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .cta-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-tabbar); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--sp-2); padding: var(--sp-2) calc(var(--sp-4) + var(--safe-right)) calc(var(--sp-2) + var(--safe-bottom)) calc(var(--sp-4) + var(--safe-left)); border-top: 1px solid var(--sbs-line); background: var(--sbs-surface); box-shadow: 0 -4px 12px rgba(22, 28, 46, 0.08); }
  .cta-bar svg { width: 20px; height: 20px; margin-right: var(--sp-1); }
  .page-public img { height: auto; }
}
.public-section--dark, .cta-band { border-top: 4px solid var(--sbs-red); background: var(--surface-soft-2); }
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .public-section { padding: var(--sp-5) 0; }
  .alert-flow { width: 100%; max-height: 120px; object-fit: contain; }
  .steps, .level-cards { gap: var(--card-gap); }
  .cta-band__inner { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
  [data-phone-collapse] .public-h2 { margin-bottom: 0; }
  .phone-collapse__body { margin-top: var(--sp-3); }
  .sample-dash figure img { max-height: 220px; width: auto; margin: 0 auto; }
}

/* ==== Print ==== */
@media print {
  .public-hero, .cta-band, .public-section--dark { background: var(--sbs-white) !important; color: var(--print-ink) !important; }
}

/* ==== v1.4.0 Home (sales presentation, follows the Smart Filter Monitoring deck) ==== */
/* #1 Hero: the white panel on a tinted rounded backdrop, soft shadow, height capped so the hero fits 1366x768 */
.hero-panel { display: flex; justify-content: center; align-items: center; padding: var(--sp-5); border-radius: 24px; background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #eef1f4 55%, #dfe4ea 100%); box-shadow: inset 0 0 0 1px rgba(28, 34, 40, 0.06); }
.hero-panel picture { display: block; }
.hero-panel__img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(50vh, 400px); filter: drop-shadow(0 14px 22px rgba(28, 34, 40, 0.22)) drop-shadow(0 3px 6px rgba(28, 34, 40, 0.14)); }
@media (min-width: 992px) {
  .page-home .public-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
}
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 1024px), (max-height: 500px) {
  .hero-panel { padding: var(--sp-4); }
  .page-public .hero-panel__img { max-height: 240px; width: auto; }
}

/* Section helpers */
.public-section .eyebrow { color: var(--sbs-red-dark); }
.public-h3 { margin: var(--sp-5) 0 var(--sp-3); font-size: var(--fs-lg); font-weight: 700; }
.public-lead { max-width: 60ch; margin: 0 0 var(--sp-4); font-size: var(--fs-lg); color: var(--sbs-muted-text); }
.public-split--center { align-items: center; }
@media (min-width: 768px) and (min-height: 500.02px) and (pointer: fine), (min-width: 768px) and (min-height: 500.02px) and (pointer: none), (min-width: 1024.02px) and (min-height: 500.02px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* (a) Three levels */
.level-card__range { margin: var(--sp-2) 0 0; font-weight: 700; color: var(--sbs-ink); }
.level-card--warn { box-shadow: inset 0 0 0 2px var(--warn-bar); }

/* (b) 5 booths on a Friday */
.friday { margin: 0; padding: var(--sp-4); }
.friday__cap { margin-bottom: var(--sp-3); font-weight: 700; }
.friday__list { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.friday__list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 36px; }
.friday__name { font-weight: 600; font-size: var(--fs-sm); }
.friday__bar { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--sbs-line); overflow: hidden; }
.friday__bar > span { display: block; height: 100%; border-radius: var(--radius-pill); }
.friday__bar .is-ok { background: var(--ok-bar); }
.friday__bar .is-warn { background: var(--warn-bar); }
.friday__bar .is-bad { background: var(--bad-bar); }
.friday .status-pill { font-size: var(--fs-xs); }
.friday__note { margin: var(--sp-3) 0 0; }
@media (max-width: 420px) {
  .friday__list li { grid-template-columns: 4rem minmax(0, 1fr); }
  .friday__list .status-pill { grid-column: 1 / -1; justify-self: start; white-space: normal; }
}

/* (c) Cost cards: side by side, stacked on phones */
.cost-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cost-card { position: relative; padding: var(--sp-5); }
.cost-card--late { box-shadow: inset 4px 0 0 var(--bad-bar); }
.cost-card:not(.cost-card--late) { box-shadow: inset 4px 0 0 var(--warn-bar); }
.cost-card__tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--sbs-control-line); border-radius: var(--radius-pill); color: var(--sbs-muted-text); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cost-card__title { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-xl); font-weight: 700; }
.cost-math { margin: var(--sp-3) 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background: var(--sbs-bg); font-size: var(--fs-lg); font-weight: 700; line-height: 1.7; }
.cost-math__op { color: var(--sbs-muted-text); font-size: var(--fs-sm); font-weight: 400; }
.cost-total { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-lg); }
.cost-total .num { color: var(--sbs-ink); font-size: var(--fs-2xl); font-weight: 700; }
.cost-chain { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; padding: 0; list-style: none; counter-reset: chain; }
.cost-chain li { position: relative; padding: var(--sp-2) var(--sp-3) var(--sp-2) 2.5rem; border-radius: var(--radius-md); background: var(--sbs-bg); counter-increment: chain; }
.cost-chain li::before { content: counter(chain); position: absolute; left: var(--sp-3); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--bad-bg); color: var(--bad); font-size: var(--fs-xs); font-weight: 700; }
.cost-chain li:last-child { background: var(--bad-bg); color: var(--bad); font-weight: 700; }

/* (d) Portal screenshots */
.shots { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--sbs-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); background: var(--sbs-bg); }
.shot figcaption { margin-top: var(--sp-2); color: var(--sbs-muted-text); font-size: var(--fs-sm); }
.shots__note { margin: var(--sp-4) 0 0; }

/* (e) Reports */
.report-lists { display: grid; gap: var(--sp-2); }
.report-lists .public-h3 { margin-top: 0; }
@media (min-width: 576px) { .report-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }

/* (f) How to get started (v1.4.1 #17: same rhythm as the other sections) and roomier button rows (#19) */
.section-note { margin: var(--sp-5) 0 0; font-weight: 600; }
.cta-row--roomy { margin-top: var(--sp-4); gap: var(--sp-3); }
.cta-row--roomy .btn-sbs { min-height: var(--tap); padding: 10px 22px; }
.gs-cta { margin-top: var(--sp-5); }
@media (max-width: 575.98px) {
  .cta-row--roomy .btn-sbs { flex: 1 1 100%; justify-content: center; }
}

/* Getting started page (/contact, v1.4.0 #7) */
.gs-section { margin-bottom: var(--sp-5); }
.gs-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gs-grid .card-sbs { padding: var(--sp-5); }
.gs-grid .check-list { margin: 0; padding-left: var(--sp-5); }
