html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: #0d2540;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 158, 217, 0.2), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(95, 188, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 158, 217, 0.12), transparent 24%),
    linear-gradient(180deg, #edf7ff 0%, #d8eeff 100%);
}

#bacbo-public-home {
  --home-blue-500: #229ed9;
  --home-blue-600: #1988c2;
  --home-blue-700: #106b9d;
  --home-blue-800: #0d527b;
  --home-blue-900: #093b5b;
  --home-surface: rgba(255, 255, 255, 0.84);
  --home-surface-strong: rgba(246, 251, 255, 0.98);
  --home-surface-soft: rgba(235, 246, 255, 0.9);
  --home-border: rgba(24, 104, 155, 0.14);
  --home-border-strong: rgba(24, 104, 155, 0.22);
  --home-text: #0d2540;
  --home-muted: #4f6880;
  --home-accent: #229ed9;
  --home-accent-strong: #1988c2;
  --home-accent-soft: rgba(34, 158, 217, 0.12);
  --home-shadow-lg: 0 28px 70px rgba(28, 94, 135, 0.16);
  --home-shadow-md: 0 16px 40px rgba(28, 94, 135, 0.12);
  --home-radius-xl: 34px;
  --home-radius-lg: 26px;
  --home-radius-md: 20px;
  position: relative;
  padding:
    max(0px, env(safe-area-inset-top))
    max(0px, env(safe-area-inset-right))
    max(136px, calc(108px + env(safe-area-inset-bottom)))
    max(0px, env(safe-area-inset-left));
}

#bacbo-public-home *,
#bacbo-public-home *::before,
#bacbo-public-home *::after {
  box-sizing: border-box;
  min-width: 0;
}

#bacbo-public-home a {
  color: inherit;
  text-decoration: none;
}

#bacbo-public-home button {
  font: inherit;
}

.home-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: rgba(13, 37, 64, 0.06);
}

.home-progress__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--home-blue-500), #35b7ff, #79d1ff);
  box-shadow: 0 0 18px rgba(34, 158, 217, 0.42);
  transition: width 120ms linear;
}

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 0;
}

.home-hero,
.home-section,
.home-panel-card,
.home-faq-item,
.home-bridge-card,
.home-inline-cta,
.home-trust-strip {
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-xl);
  background: var(--home-surface);
  box-shadow: var(--home-shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 158, 217, 0.12), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(95, 188, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 255, 0.95));
  box-shadow: var(--home-shadow-lg);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.16), transparent 70%);
  pointer-events: none;
}

.home-hero-grid,
.home-status-row,
.home-hero-actions,
.home-panel-stack,
.home-steps-grid,
.home-benefits-grid,
.home-faq-list {
  display: grid;
  gap: 14px;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
  align-items: start;
}

.home-status-row {
  grid-template-columns: repeat(2, max-content);
  gap: 10px;
  margin-bottom: 10px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--home-border-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--home-blue-800);
  font: 800 0.72rem/1 "SFMono-Regular", "Roboto Mono", "Consolas", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-badge--accent {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.12), rgba(57, 190, 255, 0.18));
  color: var(--home-blue-700);
}

.home-eyebrow,
.home-section-kicker,
.home-panel-label {
  margin: 0;
  color: var(--home-blue-800);
  font: 800 0.76rem/1.2 "SFMono-Regular", "Roboto Mono", "Consolas", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--home-text);
  letter-spacing: -0.04em;
  text-wrap: balance;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 10vw, 5rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.8rem, 6.8vw, 3.1rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.12rem, 4.6vw, 1.5rem);
  line-height: 1.08;
}

.home-subheadline,
.home-hero-note,
.home-section-intro,
.home-panel-card p,
.home-step-card p,
.home-benefit-card p,
.home-faq-answer p,
.home-bridge-card p,
.home-footer {
  color: var(--home-muted);
  line-height: 1.62;
}

.home-subheadline {
  margin: 14px 0 0;
  max-width: 46rem;
  font-size: clamp(1rem, 4vw, 1.12rem);
}

.home-hero-note {
  margin: 14px 0 0;
  max-width: 42rem;
  font-size: clamp(0.98rem, 3.6vw, 1.06rem);
}

.home-hero-actions {
  margin-top: 22px;
  grid-template-columns: 1fr;
}

.home-cta,
.home-sticky-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  font: 800 0.92rem/1.1 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-cta:hover,
.home-cta:focus-visible,
.home-sticky-cta:hover,
.home-sticky-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.home-cta-primary,
.home-sticky-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--home-blue-700) 0%, var(--home-blue-900) 100%);
  box-shadow: 0 18px 38px rgba(13, 82, 123, 0.28);
}

.home-cta-secondary {
  border: 1px solid var(--home-border-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-blue-800);
}

.home-panel-card,
.home-step-card,
.home-benefit-card,
.home-faq-item,
.home-inline-cta,
.home-bridge-card {
  padding: 18px;
  border-radius: var(--home-radius-lg);
  background: var(--home-surface-strong);
}

.home-panel-card--accent {
  background:
    radial-gradient(circle at top right, rgba(34, 158, 217, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 246, 255, 0.98));
}

.home-panel-card strong,
.home-inline-cta strong,
.home-bridge-card strong {
  display: block;
  margin: 6px 0 10px;
  color: var(--home-text);
  font-size: 1.22rem;
  line-height: 1.1;
}

.home-hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--home-border-strong);
  border-radius: var(--home-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.95));
  box-shadow: var(--home-shadow-md);
}

.home-panel-stack {
  gap: 12px;
}

.home-panel-label {
  margin-bottom: 4px;
}

.home-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.home-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: rgba(235, 246, 255, 0.9);
  color: var(--home-blue-800);
  font: 800 0.74rem/1 "SFMono-Regular", "Roboto Mono", "Consolas", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-section {
  margin-top: 18px;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 250, 255, 0.92));
}

.home-section--compact {
  padding: 18px 18px 16px;
}

.home-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.home-section--compact .home-section-head {
  gap: 8px;
  margin-bottom: 14px;
}

.home-section-intro {
  margin: 0;
  max-width: 52rem;
}

.home-steps-grid,
.home-benefits-grid {
  grid-template-columns: 1fr;
}

.home-step-number,
.home-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--home-accent-soft);
  color: var(--home-blue-700);
  font: 800 0.86rem/1 "SFMono-Regular", "Roboto Mono", "Consolas", monospace;
}

.home-inline-cta,
.home-bridge-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--home-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 246, 255, 0.98));
}

.home-section--compact .home-steps-grid,
.home-section--compact .home-benefits-grid {
  gap: 12px;
}

.home-section--compact .home-step-card,
.home-section--compact .home-benefit-card,
.home-section--compact .home-inline-cta {
  padding: 16px;
}

.home-section--compact .home-inline-cta {
  gap: 12px;
  margin-top: 14px;
}

.home-bridge-card {
  align-items: center;
}

.home-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--home-text);
  font: 800 1rem/1.3 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.home-faq-question span:last-child {
  flex-shrink: 0;
  color: var(--home-accent);
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.home-faq-question[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.home-faq-answer {
  padding-top: 12px;
}

.home-footer {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 8px 0;
  font-size: 0.92rem;
}

.home-footer-link {
  color: var(--home-blue-700);
  text-decoration: underline;
  text-decoration-color: rgba(25, 136, 194, 0.28);
  text-underline-offset: 3px;
}

.home-floating-controls {
  position: fixed;
  inset: auto 0 max(10px, calc(10px + env(safe-area-inset-bottom))) 0;
  z-index: 70;
  pointer-events: none;
}

.home-back-to-top,
.home-sticky-bar {
  pointer-events: auto;
}

.home-back-to-top {
  position: fixed;
  right: 14px;
  bottom: max(92px, calc(92px + env(safe-area-inset-bottom)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--home-border-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--home-blue-700);
  box-shadow: var(--home-shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-back-to-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.home-sticky-bar {
  width: min(760px, calc(100% - 16px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(25, 136, 194, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--home-shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-sticky-bar[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.home-sticky-bar[data-at-footer="true"] {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.home-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .home-hero {
    padding: 28px;
  }

  .home-section--compact {
    padding: 20px 18px 18px;
  }

  .home-section--compact .home-section-head {
    margin-bottom: 16px;
  }

  .home-section--compact .home-inline-cta {
    margin-top: 16px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
  }

  .home-hero-actions,
  .home-inline-cta,
  .home-bridge-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .home-steps-grid,
  .home-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .home-shell {
    width: min(1180px, calc(100% - 44px));
    padding: 22px 0 0;
  }

  .home-hero {
    padding: 34px;
  }

  .home-steps-grid,
  .home-benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .home-status-row {
    grid-template-columns: 1fr;
  }

  .home-trust-strip {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
