/**
 * BaselHub public site styles. Tokens live in tokens.css.
 * Every interactive element is a real button/link with a visible focus ring.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bh-header-h) + var(--bh-4));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bh-bg);
  color: var(--bh-text);
  font-family: var(--bh-font);
  font-size: var(--bh-text-base);
  line-height: var(--bh-leading-normal);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(111, 106, 240, 0.22), transparent 60%),
    radial-gradient(900px 520px at 88% 4%, rgba(6, 182, 212, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--bh-3);
  line-height: var(--bh-leading-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, var(--bh-text-5xl));
}

h2 {
  font-size: clamp(1.5rem, 3.1vw, var(--bh-text-3xl));
}

h3 {
  font-size: var(--bh-text-lg);
}

p {
  margin: 0 0 var(--bh-4);
  color: var(--bh-text-muted);
  max-width: var(--bh-max-text);
}

a {
  color: var(--bh-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--bh-focus);
  outline-offset: 2px;
  border-radius: var(--bh-radius-xs);
}

.bh-skip {
  position: absolute;
  inset-inline-start: var(--bh-4);
  top: -80px;
  z-index: 100;
  padding: var(--bh-3) var(--bh-5);
  background: var(--bh-accent-strong);
  color: #fff;
  border-radius: var(--bh-radius-sm);
  transition: top var(--bh-dur) var(--bh-ease);
}

.bh-skip:focus {
  top: var(--bh-3);
}

.bh-shell {
  position: relative;
  z-index: 1;
}

.bh-container {
  width: 100%;
  max-width: var(--bh-container);
  margin-inline: auto;
  padding-inline: var(--bh-5);
}

.bh-container--wide {
  max-width: var(--bh-container-wide);
}

/* ── Header ─────────────────────────────────────────────── */

.bh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bh-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bh-border);
}

.bh-header__inner {
  display: flex;
  align-items: center;
  gap: var(--bh-4);
  min-height: var(--bh-header-h);
}

.bh-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-3);
  color: var(--bh-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bh-brand:hover {
  text-decoration: none;
}

.bh-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bh-gradient-brand);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: var(--bh-shadow-soft);
  flex: none;
}

.bh-brand__mark svg {
  display: block;
}

.bh-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.bh-brand__name {
  font-size: 1.06rem;
}

.bh-brand__tag {
  font-size: 0.66rem;
  color: var(--bh-text-subtle);
  font-weight: 500;
  letter-spacing: 0;
}

.bh-nav {
  display: flex;
  align-items: center;
  gap: var(--bh-1);
  margin-inline-start: auto;
}

.bh-nav__link {
  color: var(--bh-text-muted);
  font-size: var(--bh-text-sm);
  font-weight: 500;
  padding: var(--bh-2) var(--bh-3);
  border-radius: var(--bh-radius-sm);
  transition: background var(--bh-dur-fast) var(--bh-ease), color var(--bh-dur-fast) var(--bh-ease);
  white-space: nowrap;
}

.bh-nav__link:hover {
  background: var(--bh-surface-hover);
  color: var(--bh-text);
  text-decoration: none;
}

.bh-nav__link[aria-current="page"] {
  color: var(--bh-text);
  background: var(--bh-surface-hover);
}

.bh-header__actions {
  display: flex;
  align-items: center;
  gap: var(--bh-2);
  margin-inline-start: var(--bh-3);
}

.bh-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--bh-radius-sm);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  color: var(--bh-text);
  cursor: pointer;
  font-size: var(--bh-text-xs);
  font-weight: 600;
  transition: border-color var(--bh-dur-fast) var(--bh-ease), background var(--bh-dur-fast) var(--bh-ease);
}

.bh-iconbtn:hover {
  border-color: var(--bh-border-strong);
  background: var(--bh-surface-hover);
}

.bh-menu-toggle {
  display: none;
}

/* ── Buttons ────────────────────────────────────────────── */

.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bh-2);
  padding: 0.72rem 1.15rem;
  border-radius: var(--bh-radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--bh-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--bh-dur-fast) var(--bh-ease), box-shadow var(--bh-dur) var(--bh-ease),
    background var(--bh-dur-fast) var(--bh-ease), border-color var(--bh-dur-fast) var(--bh-ease);
  text-decoration: none;
  white-space: nowrap;
}

.bh-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.bh-btn:active {
  transform: translateY(0);
}

.bh-btn--primary {
  background: var(--bh-gradient-brand);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(84, 73, 224, 0.85);
}

.bh-btn--primary:hover {
  box-shadow: 0 16px 40px -16px rgba(84, 73, 224, 0.95);
}

.bh-btn--ghost {
  background: var(--bh-surface);
  border-color: var(--bh-border-strong);
  color: var(--bh-text);
}

.bh-btn--ghost:hover {
  background: var(--bh-surface-hover);
}

.bh-btn--quiet {
  background: transparent;
  color: var(--bh-text-muted);
  border-color: transparent;
}

.bh-btn--quiet:hover {
  color: var(--bh-text);
  background: var(--bh-surface-hover);
}

.bh-btn--danger {
  background: transparent;
  border-color: color-mix(in srgb, var(--bh-danger) 45%, transparent);
  color: var(--bh-danger);
}

.bh-btn--block {
  width: 100%;
}

.bh-btn[disabled],
.bh-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bh-btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: var(--bh-text-base);
}

/* ── Section scaffolding ────────────────────────────────── */

.bh-main {
  position: relative;
  z-index: 1;
}

.bh-section {
  padding-block: clamp(3rem, 7vw, var(--bh-24));
}

.bh-section--tight {
  padding-block: clamp(2rem, 4vw, var(--bh-12));
}

.bh-section__head {
  max-width: 62ch;
  margin-bottom: var(--bh-10);
}

.bh-section__head--center {
  margin-inline: auto;
  text-align: center;
}

.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-2);
  padding: 0.32rem 0.7rem;
  border-radius: var(--bh-radius-pill);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-surface);
  color: var(--bh-text-muted);
  font-size: var(--bh-text-xs);
  font-weight: 600;
  margin-bottom: var(--bh-4);
}

.bh-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bh-accent);
}

.bh-lead {
  font-size: var(--bh-text-lg);
  color: var(--bh-text-muted);
  line-height: var(--bh-leading-snug);
}

.bh-grid {
  display: grid;
  gap: var(--bh-5);
}

.bh-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bh-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.bh-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ── Cards ──────────────────────────────────────────────── */

.bh-card {
  position: relative;
  padding: var(--bh-6);
  border-radius: var(--bh-radius-lg);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-soft);
  transition: transform var(--bh-dur) var(--bh-ease), border-color var(--bh-dur) var(--bh-ease),
    box-shadow var(--bh-dur) var(--bh-ease);
  height: 100%;
}

.bh-card:hover {
  transform: translateY(-3px);
  border-color: var(--bh-border-strong);
  box-shadow: var(--bh-shadow-lift);
}

.bh-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--bh-radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: var(--bh-4);
  background: var(--bh-gradient-surface);
  border: 1px solid var(--bh-border);
  color: var(--bh-accent);
  font-weight: 700;
  font-size: var(--bh-text-sm);
}

.bh-card h3 {
  margin-bottom: var(--bh-2);
}

.bh-card p:last-child {
  margin-bottom: 0;
}

.bh-card--link {
  display: block;
  color: inherit;
}

.bh-card--link:hover {
  text-decoration: none;
}

.bh-card--featured {
  border-color: color-mix(in srgb, var(--bh-accent) 55%, transparent);
  box-shadow: 0 24px 60px -30px rgba(84, 73, 224, 0.85);
}

/* ── Hero ───────────────────────────────────────────────── */

.bh-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, var(--bh-24)) clamp(2.5rem, 6vw, var(--bh-16));
  overflow: hidden;
}

.bh-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, var(--bh-16));
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.bh-hero h1 {
  margin-bottom: var(--bh-5);
}

.bh-hero__lead {
  font-size: clamp(1.02rem, 1.5vw, var(--bh-text-lg));
  max-width: 56ch;
}

.bh-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-3);
  margin-block: var(--bh-6) var(--bh-4);
}

.bh-hero__note {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
  max-width: 54ch;
  margin: 0;
}

.bh-hero__panel {
  position: relative;
  padding: var(--bh-6);
  border-radius: var(--bh-radius-xl);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-lift);
  backdrop-filter: blur(10px);
}

.bh-hero__panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--bh-gradient-surface);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.bh-hero__stats {
  list-style: none;
  margin: var(--bh-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--bh-3);
}

.bh-hero__stats li {
  display: grid;
  gap: 2px;
  padding: var(--bh-3) var(--bh-4);
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-border);
  background: var(--bh-bg-elevated);
}

.bh-hero__stat-value {
  font-weight: 700;
  color: var(--bh-text);
}

.bh-hero__stat-label {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-muted);
}

.bh-hero__visual {
  display: grid;
  gap: var(--bh-3);
}

.bh-hero__visual-row {
  display: flex;
  align-items: center;
  gap: var(--bh-3);
  padding: var(--bh-3) var(--bh-4);
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-border);
  background: var(--bh-bg-elevated);
  font-size: var(--bh-text-sm);
}

.bh-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bh-success);
  flex: none;
}

.bh-dot--warn {
  background: var(--bh-warning);
}

.bh-dot--info {
  background: var(--bh-cyan-400);
}

.bh-hero__visual-row span:last-child {
  margin-inline-start: auto;
  color: var(--bh-text-subtle);
  font-size: var(--bh-text-xs);
}

/* ── Steps / workflow ──────────────────────────────────── */

.bh-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: bh-step;
}

.bh-step {
  position: relative;
  padding: var(--bh-5);
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-border);
  background: var(--bh-bg-elevated);
  counter-increment: bh-step;
}

.bh-step::before {
  content: counter(bh-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-bottom: var(--bh-3);
  background: var(--bh-gradient-brand);
  color: #fff;
  font-size: var(--bh-text-xs);
  font-weight: 700;
}

.bh-step h3 {
  font-size: var(--bh-text-base);
  margin-bottom: var(--bh-2);
}

.bh-step p {
  margin: 0;
  font-size: var(--bh-text-sm);
}

/* ── Split feature rows ────────────────────────────────── */

.bh-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, var(--bh-16));
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.bh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-3);
}

.bh-list li {
  display: flex;
  gap: var(--bh-3);
  align-items: flex-start;
  color: var(--bh-text-muted);
  font-size: var(--bh-text-sm);
}

.bh-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--bh-accent);
}

.bh-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-3);
  align-items: center;
}

.bh-flow li {
  padding: var(--bh-2) var(--bh-4);
  border-radius: var(--bh-radius-pill);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-surface);
  font-size: var(--bh-text-sm);
  font-weight: 600;
}

.bh-flow li::after {
  content: "←";
  margin-inline-start: var(--bh-3);
  color: var(--bh-text-subtle);
  font-weight: 400;
}

[dir="ltr"] .bh-flow li::after {
  content: "→";
}

.bh-flow li:last-child::after {
  content: "";
}

/* ── Badges & status ───────────────────────────────────── */

.bh-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-2);
  padding: 0.22rem 0.6rem;
  border-radius: var(--bh-radius-pill);
  border: 1px solid var(--bh-border-strong);
  font-size: var(--bh-text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.bh-badge--available {
  color: var(--bh-success);
  border-color: color-mix(in srgb, var(--bh-success) 42%, transparent);
  background: color-mix(in srgb, var(--bh-success) 12%, transparent);
}

.bh-badge--configuration_required {
  color: var(--bh-warning);
  border-color: color-mix(in srgb, var(--bh-warning) 42%, transparent);
  background: color-mix(in srgb, var(--bh-warning) 12%, transparent);
}

.bh-badge--planned {
  color: var(--bh-text-subtle);
}

.bh-badge--neutral {
  color: var(--bh-text-muted);
}

.bh-badge--info {
  color: var(--bh-cyan-400);
  border-color: color-mix(in srgb, var(--bh-cyan-400) 42%, transparent);
  background: color-mix(in srgb, var(--bh-cyan-400) 12%, transparent);
}

/* ── Tables ────────────────────────────────────────────── */

.bh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  background: var(--bh-bg-elevated);
  box-shadow: var(--bh-shadow-soft);
}

.bh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: var(--bh-text-sm);
}

.bh-table th,
.bh-table td {
  text-align: start;
  padding: var(--bh-3) var(--bh-4);
  border-bottom: 1px solid var(--bh-border);
  vertical-align: middle;
}

.bh-table th {
  color: var(--bh-text-muted);
  font-weight: 600;
  font-size: var(--bh-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bh-surface);
}

.bh-table tbody tr:last-child td {
  border-bottom: 0;
}

.bh-table tbody tr:hover td {
  background: var(--bh-surface-hover);
}

.bh-table td strong {
  color: var(--bh-text);
}

/* ── Pricing ───────────────────────────────────────────── */

.bh-plans {
  display: grid;
  gap: var(--bh-5);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: stretch;
}

.bh-plan {
  display: flex;
  flex-direction: column;
  gap: var(--bh-4);
  padding: var(--bh-6);
  border-radius: var(--bh-radius-lg);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-soft);
}

.bh-plan--featured {
  border-color: color-mix(in srgb, var(--bh-accent) 55%, transparent);
  box-shadow: 0 26px 64px -32px rgba(84, 73, 224, 0.9);
}

.bh-plan__price {
  font-size: var(--bh-text-2xl);
  font-weight: 700;
  color: var(--bh-text);
}

.bh-plan__price small {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
  font-weight: 500;
}

.bh-plan__limits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-2);
  font-size: var(--bh-text-sm);
}

.bh-plan__limits li {
  display: flex;
  justify-content: space-between;
  gap: var(--bh-3);
  padding-bottom: var(--bh-2);
  border-bottom: 1px dashed var(--bh-border);
  color: var(--bh-text-muted);
}

.bh-plan__limits li span:last-child {
  color: var(--bh-text);
  font-weight: 600;
}

.bh-plan__actions {
  margin-top: auto;
}

/* ── Notices / states ──────────────────────────────────── */

.bh-notice {
  display: flex;
  gap: var(--bh-3);
  align-items: flex-start;
  padding: var(--bh-4);
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-surface);
  font-size: var(--bh-text-sm);
  color: var(--bh-text-muted);
}

.bh-notice--warn {
  border-color: color-mix(in srgb, var(--bh-warning) 45%, transparent);
  background: color-mix(in srgb, var(--bh-warning) 10%, transparent);
}

.bh-notice--error {
  border-color: color-mix(in srgb, var(--bh-danger) 45%, transparent);
  background: color-mix(in srgb, var(--bh-danger) 10%, transparent);
  color: color-mix(in srgb, var(--bh-danger) 78%, var(--bh-text));
}

.bh-notice--success {
  border-color: color-mix(in srgb, var(--bh-success) 45%, transparent);
  background: color-mix(in srgb, var(--bh-success) 10%, transparent);
  color: color-mix(in srgb, var(--bh-success) 78%, var(--bh-text));
}

.bh-skeleton {
  height: 14px;
  border-radius: var(--bh-radius-pill);
  background: linear-gradient(90deg, var(--bh-surface) 25%, var(--bh-surface-hover) 50%, var(--bh-surface) 75%);
  background-size: 200% 100%;
  animation: bh-shimmer 1.4s linear infinite;
}

@keyframes bh-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-skeleton {
    animation: none;
  }
  .bh-card,
  .bh-btn,
  .bh-reveal {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Forms ─────────────────────────────────────────────── */

.bh-form {
  display: grid;
  gap: var(--bh-4);
}

.bh-field {
  display: grid;
  gap: var(--bh-2);
}

.bh-label {
  font-size: var(--bh-text-sm);
  font-weight: 600;
  color: var(--bh-text);
}

.bh-hint {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
}

.bh-input,
.bh-select,
.bh-textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: var(--bh-radius-sm);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-bg-elevated);
  color: var(--bh-text);
  font: inherit;
  font-size: var(--bh-text-sm);
  transition: border-color var(--bh-dur-fast) var(--bh-ease), box-shadow var(--bh-dur-fast) var(--bh-ease);
}

.bh-input:focus,
.bh-select:focus,
.bh-textarea:focus {
  outline: none;
  border-color: var(--bh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bh-accent) 30%, transparent);
}

.bh-input[aria-invalid="true"],
.bh-textarea[aria-invalid="true"] {
  border-color: var(--bh-danger);
}

.bh-textarea {
  min-height: 140px;
  resize: vertical;
}

.bh-field-error {
  font-size: var(--bh-text-xs);
  color: var(--bh-danger);
  min-height: 1.1em;
}

.bh-form-card {
  padding: clamp(1.25rem, 3vw, var(--bh-8));
  border-radius: var(--bh-radius-lg);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-soft);
  max-width: 520px;
}

.bh-color-field {
  display: flex;
  align-items: center;
  gap: var(--bh-3);
}

.bh-color-field input[type="color"] {
  width: 52px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--bh-border-strong);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-bg-elevated);
  cursor: pointer;
}

/* ── Wizard ────────────────────────────────────────────── */

.bh-wizard {
  display: grid;
  gap: var(--bh-6);
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: start;
}

.bh-wizard__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-2);
  position: sticky;
  top: calc(var(--bh-header-h) + var(--bh-4));
}

.bh-wizard__step {
  display: flex;
  gap: var(--bh-3);
  align-items: center;
  padding: var(--bh-3) var(--bh-4);
  border-radius: var(--bh-radius-sm);
  border: 1px solid transparent;
  color: var(--bh-text-subtle);
  font-size: var(--bh-text-sm);
}

.bh-wizard__step[data-state="current"] {
  border-color: var(--bh-border-strong);
  background: var(--bh-surface);
  color: var(--bh-text);
  font-weight: 600;
}

.bh-wizard__step[data-state="done"] {
  color: var(--bh-success);
}

.bh-wizard__index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-size: var(--bh-text-xs);
  flex: none;
}

.bh-wizard__panel {
  padding: clamp(1.25rem, 3vw, var(--bh-8));
  border-radius: var(--bh-radius-lg);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow-soft);
  min-height: 320px;
}

.bh-wizard__nav {
  display: flex;
  gap: var(--bh-3);
  justify-content: space-between;
  margin-top: var(--bh-6);
  flex-wrap: wrap;
}

.bh-review {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-2);
}

.bh-review li {
  display: flex;
  justify-content: space-between;
  gap: var(--bh-4);
  padding: var(--bh-3) var(--bh-4);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-bg-elevated);
  border: 1px solid var(--bh-border);
  font-size: var(--bh-text-sm);
}

.bh-review li span:first-child {
  color: var(--bh-text-subtle);
}

/* ── Preview (white-label) ─────────────────────────────── */

.bh-preview {
  border-radius: var(--bh-radius-lg);
  border: 1px solid var(--bh-border-strong);
  overflow: hidden;
  background: var(--bh-bg-elevated);
  box-shadow: var(--bh-shadow-lift);
}

.bh-preview__bar {
  display: flex;
  gap: var(--bh-2);
  padding: var(--bh-3) var(--bh-4);
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-surface);
}

.bh-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bh-border-strong);
}

.bh-preview__body {
  padding: var(--bh-6);
  display: grid;
  gap: var(--bh-4);
}

.bh-preview__store {
  display: flex;
  align-items: center;
  gap: var(--bh-4);
}

.bh-preview__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--bh-preview-primary, var(--bh-indigo-500));
  font-size: 1.1rem;
}

.bh-preview__name {
  font-weight: 700;
  font-size: var(--bh-text-lg);
}

.bh-preview__sub {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
}

.bh-preview__cards {
  display: grid;
  gap: var(--bh-3);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.bh-preview__card {
  padding: var(--bh-4);
  border-radius: var(--bh-radius-md);
  background: color-mix(in srgb, var(--bh-preview-accent, var(--bh-cyan-500)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bh-preview-accent, var(--bh-cyan-500)) 40%, transparent);
  font-size: var(--bh-text-xs);
  color: var(--bh-text-muted);
}

/* ── FAQ ───────────────────────────────────────────────── */

.bh-faq {
  display: grid;
  gap: var(--bh-3);
}

.bh-faq__item {
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-border);
  background: var(--bh-bg-elevated);
  overflow: hidden;
}

.bh-faq__item[open] {
  border-color: var(--bh-border-strong);
  box-shadow: var(--bh-shadow-soft);
}

.bh-faq__q {
  cursor: pointer;
  padding: var(--bh-4) var(--bh-5);
  font-weight: 600;
  font-size: var(--bh-text-base);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--bh-4);
  align-items: center;
}

.bh-faq__q::-webkit-details-marker {
  display: none;
}

.bh-faq__q::after {
  content: "+";
  color: var(--bh-accent);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.bh-faq__item[open] .bh-faq__q::after {
  content: "−";
}

.bh-faq__a {
  padding: 0 var(--bh-5) var(--bh-5);
  margin: 0;
  color: var(--bh-text-muted);
  font-size: var(--bh-text-sm);
}

/* ── CTA band ──────────────────────────────────────────── */

.bh-cta {
  position: relative;
  padding: clamp(2rem, 5vw, var(--bh-16));
  border-radius: var(--bh-radius-xl);
  border: 1px solid var(--bh-border-strong);
  background: var(--bh-gradient-surface), var(--bh-surface-solid);
  box-shadow: var(--bh-shadow-lift);
  text-align: center;
}

.bh-cta h2 {
  margin-bottom: var(--bh-3);
}

.bh-cta p {
  margin-inline: auto;
}

.bh-cta__actions {
  display: flex;
  gap: var(--bh-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--bh-6);
}

/* ── Footer ────────────────────────────────────────────── */

.bh-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--bh-16);
  border-top: 1px solid var(--bh-border);
  background: color-mix(in srgb, var(--bh-bg) 88%, transparent);
}

.bh-footer__inner {
  padding-block: var(--bh-12) var(--bh-8);
}

.bh-footer__grid {
  display: grid;
  gap: var(--bh-8);
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(140px, 1fr));
}

.bh-footer__group h3 {
  font-size: var(--bh-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bh-text-subtle);
  margin-bottom: var(--bh-3);
}

.bh-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bh-2);
}

.bh-footer__links a {
  color: var(--bh-text-muted);
  font-size: var(--bh-text-sm);
}

.bh-footer__links a:hover {
  color: var(--bh-text);
}

.bh-footer__boundary {
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
  max-width: 46ch;
  margin-top: var(--bh-4);
}

.bh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--bh-10);
  padding-top: var(--bh-5);
  border-top: 1px solid var(--bh-border);
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
}

/* ── Utilities ─────────────────────────────────────────── */

.bh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bh-mt-6 {
  margin-top: var(--bh-6);
}

.bh-mt-8 {
  margin-top: var(--bh-8);
}

.bh-mb-0 {
  margin-bottom: 0;
}

.bh-stack {
  display: grid;
  gap: var(--bh-4);
}

.bh-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-3);
  align-items: center;
}

.bh-center {
  text-align: center;
}

.bh-text-muted {
  color: var(--bh-text-muted);
}

.bh-text-subtle {
  color: var(--bh-text-subtle);
  font-size: var(--bh-text-xs);
}

.bh-hidden {
  display: none !important;
}

.bh-code {
  font-family: var(--bh-font-mono);
  font-size: var(--bh-text-xs);
  padding: 0.15rem 0.45rem;
  border-radius: var(--bh-radius-xs);
  background: var(--bh-surface-hover);
  border: 1px solid var(--bh-border);
  word-break: break-all;
}

/* ── Reveal animation ──────────────────────────────────── */

.bh-reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: bh-reveal-in var(--bh-dur-slow) var(--bh-ease) forwards;
}

.bh-reveal--1 {
  animation-delay: 60ms;
}

.bh-reveal--2 {
  animation-delay: 120ms;
}

.bh-reveal--3 {
  animation-delay: 180ms;
}

@keyframes bh-reveal-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Page header (inner pages) ─────────────────────────── */

.bh-page-head {
  padding-block: clamp(2.5rem, 6vw, var(--bh-16)) var(--bh-8);
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-gradient-surface);
}

.bh-page-head h1 {
  margin-bottom: var(--bh-3);
}

.bh-breadcrumb {
  list-style: none;
  margin: 0 0 var(--bh-4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-2);
  font-size: var(--bh-text-xs);
  color: var(--bh-text-subtle);
}

.bh-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: var(--bh-2);
  color: var(--bh-border-strong);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .bh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-wizard {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-wizard__steps {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* الحدّ 1080px: عنده لا يتّسع صف التنقّل الكامل + الأزرار بلا تجاوز أفقي،
   فينتقل الموقع إلى قائمة الجوال. */
@media (max-width: 1080px) {
  .bh-nav {
    position: fixed;
    inset: var(--bh-header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--bh-1);
    padding: var(--bh-4) var(--bh-5) var(--bh-8);
    background: var(--bh-bg-elevated);
    border-bottom: 1px solid var(--bh-border);
    box-shadow: var(--bh-shadow-lift);
    max-height: calc(100vh - var(--bh-header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bh-dur) var(--bh-ease), transform var(--bh-dur) var(--bh-ease),
      visibility var(--bh-dur) var(--bh-ease);
  }

  .bh-nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .bh-nav__link {
    padding: var(--bh-3) var(--bh-4);
    font-size: var(--bh-text-base);
  }

  .bh-header__actions {
    margin-inline-start: 0;
  }

  .bh-menu-toggle {
    display: inline-grid;
    margin-inline-start: auto;
  }

  .bh-nav .bh-nav__cta {
    margin-top: var(--bh-3);
  }
}

@media (min-width: 1081px) {
  .bh-nav__cta-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .bh-container {
    padding-inline: var(--bh-4);
  }

  /* زرّا "تسجيل الدخول" و"ابدأ متجرك" موجودان داخل قائمة الجوال، فلا داعي
     لتكرارهما في الرأس على الشاشات الضيقة (وهو ما كان يسبب تجاوزاً في EN). */
  .bh-header__actions .bh-btn {
    display: none;
  }

  .bh-card,
  .bh-plan,
  .bh-hero__panel,
  .bh-form-card,
  .bh-wizard__panel {
    padding: var(--bh-5);
  }

  .bh-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cta__actions {
    flex-direction: column;
  }

  .bh-cta__actions .bh-btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  :root {
    --bh-header-h: 62px;
  }

  .bh-brand__tag {
    display: none;
  }

  .bh-table {
    min-width: 520px;
  }
}

/* شاشات ضيقة جداً (320–380): نص العلامة يختفي ويبقى الرمز، والأزرار تُضغط
   بدل أن يفيض الصف أفقياً. */
@media (max-width: 380px) {
  .bh-brand__text {
    display: none;
  }

  .bh-header__inner {
    gap: var(--bh-2);
  }

  .bh-header__actions {
    gap: var(--bh-1);
  }

  .bh-iconbtn {
    width: 34px;
    height: 34px;
  }

  .bh-header__actions .bh-btn--primary {
    padding: 0.6rem 0.75rem;
    font-size: var(--bh-text-xs);
  }
}

@media (max-width: 375px) {
  .bh-hero__cta .bh-btn {
    width: 100%;
  }
}

/* ── Print ─────────────────────────────────────────────── */

@media print {
  body::before,
  .bh-header,
  .bh-footer,
  .bh-cta {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
