:root {
  --bb-bg: #f6f8fb;
  --bb-surface: #ffffff;
  --bb-surface-muted: #eef2f7;
  --bb-border: #d9e1ec;
  --bb-text: #1a2433;
  --bb-text-muted: #5d6c82;
  --bb-primary: #1d2f4b;
  --bb-primary-hover: #25406a;
  --bb-accent: #2764ff;
  --bb-radius-sm: 12px;
  --bb-radius-md: 18px;
  --bb-radius-lg: 24px;
  --bb-shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
  --bb-shadow-md: 0 18px 48px rgba(16, 24, 40, 0.1);
  --bb-header-height: 74px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Geist, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--bb-text);
  background: var(--bb-bg);
}

[id] {
  scroll-margin-top: calc(var(--bb-header-height) + 14px);
}

a { color: inherit; }

#bb-public-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.bb-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--bb-border);
}

.bb-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--bb-header-height);
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.bb-logo {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bb-desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-nav-link {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--bb-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}

.bb-nav-link:hover { background: var(--bb-surface-muted); color: var(--bb-text); }

.bb-nav-link[aria-current="page"] {
  color: var(--bb-text);
  background: #e9eff8;
}

.bb-actions { display: flex; align-items: center; gap: 10px; }

.bb-btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.bb-btn-secondary {
  background: var(--bb-surface);
  border-color: var(--bb-border);
  color: var(--bb-text);
}

.bb-btn-secondary:hover { background: var(--bb-surface-muted); }

.bb-btn-primary {
  background: var(--bb-primary);
  color: #fff;
}

.bb-btn-primary:hover { background: var(--bb-primary-hover); }

.bb-menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-surface);
  color: var(--bb-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bb-menu-toggle svg { width: 22px; height: 22px; }

.bb-mobile-panel {
  display: none;
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  background: var(--bb-surface);
  padding: 10px 16px 16px;
}

.bb-mobile-panel.is-open { display: block; }

.bb-mobile-nav, .bb-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-mobile-nav { margin-bottom: 12px; }

.bb-mobile-link {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--bb-text);
  display: flex;
  align-items: center;
}

.bb-mobile-link:hover,
.bb-mobile-link[aria-current="page"] { background: var(--bb-surface-muted); }

.bb-focusable:focus-visible,
.bb-menu-toggle:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--bb-accent);
  outline-offset: 2px;
}

#bb-public-footer {
  border-top: 1px solid var(--bb-border);
  background: #ffffff;
  margin-top: 56px;
}

.bb-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}

.bb-footer-col h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}

.bb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-footer-links a {
  text-decoration: none;
  color: var(--bb-text-muted);
  font-size: .92rem;
}

.bb-footer-links a:hover { color: var(--bb-text); }

.bb-footer-bottom {
  color: var(--bb-text-muted);
  font-size: .88rem;
}

.bb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px;
}

.bb-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0 20px;
}

.bb-chip-row {
  margin-top: 14px;
  color: var(--bb-text-muted);
  font-size: .92rem;
}

.bb-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.bb-subtitle {
  color: var(--bb-text-muted);
  font-size: 1.04rem;
  line-height: 1.5;
  margin: 0;
}

.bb-btn-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bb-note { margin-top: 10px; color: var(--bb-text-muted); font-size: .9rem; }

.bb-panel {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  box-shadow: var(--bb-shadow-sm);
}

.bb-hero-visual {
  padding: 20px;
}

.bb-calendar {
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  overflow: hidden;
}

.bb-calendar-head {
  background: #f4f7fc;
  border-bottom: 1px solid var(--bb-border);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--bb-text-muted);
}

.bb-calendar-grid {
  display: grid;
  grid-template-columns: 70px repeat(3, 1fr);
}

.bb-time, .bb-slot {
  min-height: 52px;
  border-right: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  font-size: .84rem;
}

.bb-time {
  padding: 10px 8px;
  color: var(--bb-text-muted);
  background: #fcfdff;
}

.bb-slot { padding: 8px; }

.bb-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: #e8efff;
  color: #1d4ed8;
}

.bb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bb-card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md);
  padding: 18px;
}

.bb-card h3 { margin: 0 0 10px; font-size: 1rem; }
.bb-card p { margin: 0; color: var(--bb-text-muted); line-height: 1.45; font-size: .95rem; }

.bb-section { padding: 20px 0; }
.bb-section h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.bb-section-intro { color: var(--bb-text-muted); margin: 0 0 18px; }

.bb-list {
  margin: 0;
  padding-left: 18px;
  color: var(--bb-text-muted);
  line-height: 1.5;
}

.bb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bb-step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8efff;
  color: #1d4ed8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.bb-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bb-cta-block {
  text-align: center;
  padding: 28px;
}

.bb-cta-block h2 { margin: 0 0 12px; }
.bb-cta-block p { margin: 0 0 16px; color: var(--bb-text-muted); }

.bb-pricing-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  background: var(--bb-surface);
  box-shadow: 0 4px 12px rgba(18, 30, 54, 0.05);
}

.bb-pricing-toggle-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bb-pricing-hero {
  text-align: center;
  padding-top: 26px;
}

.bb-pricing-hero-actions {
  justify-content: center;
}

.bb-pricing-trust {
  margin: 0;
  color: var(--bb-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bb-toggle-btn {
  min-height: 48px;
  min-width: 130px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  color: var(--bb-text-muted);
}

.bb-toggle-btn[aria-pressed="true"] {
  background: #e8efff;
  color: #1a2433;
}

.bb-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  align-items: stretch;
}

.bb-price-card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.bb-price-card.is-popular {
  border-color: #8fb0ff;
  box-shadow: 0 14px 34px rgba(46, 83, 174, 0.15);
}

.bb-popular {
  display: inline-flex;
  font-size: .78rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8efff;
  color: #1d4ed8;
  font-weight: 700;
}

.bb-popular-plus {
  background: #e9f7ef;
  color: #1e7a4b;
}

.bb-plan-head {
  margin-bottom: 8px;
}

.bb-plan-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.bb-plan-head p {
  margin: 8px 0 0;
  color: var(--bb-text-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.bb-price {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 8px 0 2px;
}

.bb-price-sub {
  color: var(--bb-text-muted);
  font-size: .92rem;
  min-height: 22px;
  margin: 0 0 4px;
}

.bb-price-yearly {
  color: var(--bb-text-muted);
  font-size: .89rem;
  margin: 0;
}

.bb-price-discount {
  margin: 7px 0 0;
  color: #1d4ed8;
  font-size: .84rem;
  font-weight: 600;
}

.bb-price-tax-note {
  margin: 14px 0 0;
  color: var(--bb-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.bb-feature-list {
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bb-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bb-text-muted);
  font-size: .93rem;
}

.bb-feature-list svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
  flex: 0 0 auto;
  margin-top: 1px;
}

.bb-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-option-price {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--bb-text);
}

.bb-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  background: var(--bb-surface);
}

.bb-table-wrap:focus-visible {
  outline: 3px solid var(--bb-accent);
  outline-offset: 2px;
}

.bb-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.bb-compare-table th,
.bb-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bb-border);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

.bb-compare-table thead th {
  background: #f4f7fc;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bb-text-muted);
}

.bb-compare-table tbody tr:last-child th,
.bb-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.bb-compare-table tbody th {
  font-weight: 600;
  color: var(--bb-text);
  background: #fcfdff;
}

.bb-faq {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-faq-item {
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-surface);
  overflow: hidden;
}

.bb-faq-trigger {
  width: 100%;
  min-height: 48px;
  border: none;
  background: transparent;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.bb-faq-content {
  padding: 0 14px 14px;
  color: var(--bb-text-muted);
}

.bb-faq-content[hidden] { display: none; }

.bb-icon { width: 20px; height: 20px; color: #2563eb; }

@media (max-width: 1120px) {
  .bb-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-price-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .bb-desktop-nav,
  .bb-actions { display: none; }
  .bb-menu-toggle { display: inline-flex; }
  .bb-hero { grid-template-columns: 1fr; }
  .bb-price-card:last-child {
    grid-column: auto;
  }
  .bb-card-grid,
  .bb-option-grid,
  .bb-steps,
  .bb-compare,
  .bb-price-grid,
  .bb-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bb-pricing-toggle-wrap {
    align-items: stretch;
    justify-content: center;
  }
  .bb-toggle-btn {
    min-width: 118px;
  }
  .bb-pricing-trust {
    font-size: 0.9rem;
  }
  .bb-compare-table {
    min-width: 640px;
  }
}

@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;
  }
}
