.hb-vs {
  position: relative;
  padding: 28px 0 80px;
  background: #f5f7fa;
  overflow-x: hidden;
}
.hb-vs > .container {
  width: 100%;
  max-width: 1170px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.hb-vs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr);
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .05);
  padding: 22px 28px;
  margin-bottom: 28px;
  min-width: 0;
}
.hb-vs-hero > div {
  min-width: 0;
}
.hb-vs-hero-kicker {
  margin: 0 0 6px;
  color: #3b9fe8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hb-vs-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hb-vs-hero p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.65;
  max-width: 36em;
}
.hb-vs-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  height: auto;
  margin-inline-start: auto;
  object-fit: contain;
  background: transparent;
}
.hb-vs-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 28px;
  align-items: start;
  min-width: 0;
}
.hb-vs-table-shell {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .05);
  padding: 10px 10px 14px 8px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.hb-vs-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.hb-vs-glow {
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: 38%;
  width: 31%;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(180deg, #38bdf8 0%, #6366f1 55%, #7c3aed 100%);
  box-shadow: 0 16px 40px rgba(56, 189, 248, .22);
  z-index: 0;
  pointer-events: none;
}
.hb-vs-glow i {
  display: block;
  height: 100%;
  border-radius: 16px;
  background: #fff;
}
.hb-vs-table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
}
.hb-vs-col-feat { width: 38%; }
.hb-vs-col-us,
.hb-vs-col-them { width: 31%; }
.hb-vs-table th,
.hb-vs-table td {
  padding: 13px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f4;
  font-size: 14px;
  color: #6b7280;
  background: transparent;
  overflow: visible;
}
.hb-vs-feat {
  text-align: start !important;
  color: #334155 !important;
  font-weight: 600;
  font-size: 13.5px !important;
  padding-inline-start: 14px !important;
  position: relative;
  z-index: 3;
  overflow: visible !important;
}
.hb-vs-feat .hb-compare-feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 28px);
  vertical-align: middle;
  flex-wrap: wrap;
}
.hb-vs-table tbody tr:hover .hb-vs-feat,
.hb-vs-table tbody tr:focus-within .hb-vs-feat {
  z-index: 30;
}
.hb-vs-table thead th {
  border-bottom: 1px solid #e8edf3;
  padding: 18px 10px 16px;
}
.hb-vs-table thead th img {
  display: block;
  margin: 0 auto;
  height: 32px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}
.hb-vs-table thead th.hb-vs-them img {
  filter: grayscale(1);
  opacity: .68;
  pointer-events: none;
}
.hb-vs-table thead th.hb-vs-us img {
  filter: none !important;
  opacity: 1 !important;
}
.hb-vs-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-inline-end: 8px;
  vertical-align: -3px;
  opacity: .8;
  flex: 0 0 18px;
}
.hb-vs-us {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hb-vs-brand-text {
  color: #179BEE;
  font-weight: 800;
  font-size: 18px;
}
.hb-vs-plan-in-table {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #3b9fe8;
  line-height: 1.3;
}
.hb-vs-val {
  color: #94a3b8;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.hb-vs-val.is-us {
  color: #179BEE;
  font-weight: 800;
}
.hb-vs-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
}
.hb-vs-yes { background: #2F80ED; }
.hb-vs-yes::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.hb-vs-no { background: #c5cdd6; }
.hb-vs-no::after,
.hb-vs-no::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 2.2px;
  height: 12px;
  background: #fff;
  border-radius: 1px;
}
.hb-vs-no::before { transform: rotate(45deg); }
.hb-vs-no::after { transform: rotate(-45deg); }

.hb-vs-plan {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
  min-width: 0;
  max-width: 100%;
}
.hb-vs-plan-kicker {
  color: #3b9fe8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hb-vs-plan-match {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}
.hb-vs-plan-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
.hb-vs-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  max-width: 180px;
  padding: 8px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}
.hb-vs-chip strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.hb-vs-chip span {
  font-size: 11px;
  color: #3b9fe8;
  font-weight: 700;
}
.hb-vs-chip.is-on {
  border-color: #3b9fe8;
  background: #eff8ff;
  box-shadow: 0 0 0 1px #3b9fe8;
}
.hb-vs-plan h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.hb-vs-plan-blurb {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.6;
}
.hb-vs-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
}
.hb-vs-price-row s {
  color: #9ca3af;
  font-size: 15px;
}
.hb-vs-save {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}
.hb-vs-amount {
  font-size: clamp(28px, 6vw, 34px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -.04em;
  margin: 2px 0 16px;
}
.hb-vs-amount span {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}
.hb-vs-order {
  display: block;
  width: 100%;
  text-align: center;
  border: 1.5px solid #3b9fe8;
  color: #3b9fe8;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
}
.hb-vs-order:hover {
  background: #3b9fe8;
  color: #fff !important;
}
.hb-vs-specs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.hb-vs-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #eef1f4;
  min-width: 0;
}
.hb-vs-specs li:last-child { border-bottom: 0; }
.hb-vs-specs li img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  opacity: .8;
}
.hb-vs-top {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
  z-index: 40;
  cursor: pointer;
}
html.hb-rtl .hb-vs-top {
  right: auto;
  left: max(12px, env(safe-area-inset-left, 0px));
}

/* Page shell — never spill past viewport */
.hb-vs {
  max-width: 100%;
  overflow-x: clip;
}
.hb-vs > .container {
  width: 100%;
  max-width: min(1140px, 100%);
  box-sizing: border-box;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
.hb-vs-wrap,
.hb-vs-hero,
.hb-vs-plan,
.hb-vs-table-shell {
  max-width: 100%;
  min-width: 0;
}
.hb-vs-table-scroll {
  max-width: 100%;
}

/* Large tablet: keep side-by-side but tighten */
@media (max-width: 1199px) {
  .hb-vs-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 18px;
  }
  .hb-vs-hero { padding: 18px 20px; }
}

/* Tablet / small laptop: stack plan above table */
@media (max-width: 991px) {
  .hb-vs { padding: 18px 0 64px; }
  .hb-vs > .container { padding-left: 12px; padding-right: 12px; }
  .hb-vs-hero,
  .hb-vs-wrap { grid-template-columns: 1fr; }
  .hb-vs-hero img {
    margin: 0 auto;
    max-height: 180px;
  }
  .hb-vs-plan { order: -1; }
  .hb-vs-glow { display: none; }
  .hb-vs-table-shell {
    padding: 8px 0 10px;
    border-radius: 14px;
  }
  .hb-vs-table-scroll {
    padding-inline: 4px;
  }
  .hb-vs-table {
    table-layout: auto;
    width: max(100%, 640px);
    min-width: 640px;
  }
  .hb-vs-col-feat,
  .hb-vs-col-us,
  .hb-vs-col-them { width: auto; }
  .hb-vs-table th,
  .hb-vs-table td {
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hb-vs-feat,
  .hb-vs-table th.hb-vs-feat-h,
  .hb-vs-table td.hb-vs-feat {
    position: sticky;
    left: 0;
    z-index: 4;
    min-width: 140px;
    max-width: 180px;
    white-space: normal;
    background: #fff !important;
    box-shadow: 8px 0 12px -8px rgba(15, 23, 42, .14);
  }
  html[dir="rtl"] .hb-vs-feat,
  html[dir="rtl"] .hb-vs-table th.hb-vs-feat-h,
  html[dir="rtl"] .hb-vs-table td.hb-vs-feat,
  html.hb-rtl .hb-vs-feat,
  html.hb-rtl .hb-vs-table th.hb-vs-feat-h,
  html.hb-rtl .hb-vs-table td.hb-vs-feat {
    left: auto;
    right: 0;
    box-shadow: -8px 0 12px -8px rgba(15, 23, 42, .14);
  }
  .hb-vs-table tbody tr:nth-child(even) td.hb-vs-feat {
    background: #fafbfd !important;
  }
  .hb-vs-us {
    background: #fff !important;
    box-shadow: 0 0 0 2px #67c6f5 inset !important;
  }
  .hb-vs-table thead th img {
    height: 28px;
    max-width: 120px;
  }
  .hb-vs-plan-chips { margin-bottom: 4px; }
}

/* Phone — stacked cards (no sideways table scroll) */
@media (max-width: 767px) {
  .hb-vs { padding: 12px 0 56px; }
  .hb-vs > .container { padding-left: 10px; padding-right: 10px; }
  .hb-vs-hero {
    padding: 14px 14px 16px;
    gap: 12px;
    margin-bottom: 16px;
    border-radius: 14px;
  }
  .hb-vs-hero h1 { font-size: 20px; }
  .hb-vs-hero p { font-size: 13.5px; }
  .hb-vs-hero img { max-height: 140px; }
  .hb-vs-plan {
    padding: 16px 14px 14px;
    border-radius: 14px;
  }
  .hb-vs-plan h2 { font-size: 20px; }
  .hb-vs-amount { font-size: 28px; margin-bottom: 12px; }
  .hb-vs-order { padding: 11px 14px; font-size: 14px; }
  .hb-vs-specs li { font-size: 13px; padding: 9px 0; }
  .hb-vs-glow { display: none; }
  .hb-vs-table-shell {
    padding: 8px;
    border-radius: 14px;
    overflow: visible;
  }
  .hb-vs-table-scroll {
    overflow: visible;
  }
  .hb-vs-table,
  .hb-vs-table colgroup,
  .hb-vs-table thead,
  .hb-vs-table tbody,
  .hb-vs-table tr,
  .hb-vs-table th,
  .hb-vs-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .hb-vs-table {
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }
  .hb-vs-table thead tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .hb-vs-table thead th.hb-vs-feat-h { display: none; }
  .hb-vs-table thead th {
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fff;
    white-space: normal;
  }
  .hb-vs-table thead th.hb-vs-us {
    box-shadow: 0 0 0 2px #67c6f5 inset;
  }
  .hb-vs-table thead th img {
    height: 26px;
    max-width: 100%;
    margin: 0 auto;
  }
  .hb-vs-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
    margin-bottom: 10px;
    padding: 12px 12px 10px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fff;
  }
  .hb-vs-table tbody td.hb-vs-feat {
    grid-column: 1 / -1;
    position: static;
    box-shadow: none;
    background: transparent !important;
    padding: 0 0 8px !important;
    margin-bottom: 6px;
    border-bottom: 1px dashed #e5eaf0;
    white-space: normal;
    font-size: 13px !important;
    font-weight: 700;
    color: #0f172a;
  }
  .hb-vs-table tbody td.hb-vs-us,
  .hb-vs-table tbody td.hb-vs-them {
    padding: 8px 4px !important;
    text-align: center;
    white-space: normal;
    font-size: 12.5px;
    background: transparent !important;
    box-shadow: none !important;
  }
  .hb-vs-table tbody td.hb-vs-us::before,
  .hb-vs-table tbody td.hb-vs-them::before {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
  }
  .hb-vs-table tbody td.hb-vs-us::before { content: "Us"; color: #3b9fe8; }
  .hb-vs-table tbody td.hb-vs-them::before { content: "Them"; }
  html[dir="rtl"] .hb-vs-table tbody td.hb-vs-us::before,
  html.hb-rtl .hb-vs-table tbody td.hb-vs-us::before { content: "نحن"; }
  html[dir="rtl"] .hb-vs-table tbody td.hb-vs-them::before,
  html.hb-rtl .hb-vs-table tbody td.hb-vs-them::before { content: "هم"; }
  .hb-vs-chip { min-width: 110px; max-width: 150px; }
  .hb-vs-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hb-vs-hero h1 { font-size: 18px; }
  .hb-vs-table tbody tr { padding: 10px; }
  .hb-vs-table tbody td.hb-vs-feat { font-size: 12px !important; }
}

/* Tablet still uses horizontal scroll for the table */
@media (min-width: 768px) and (max-width: 991px) {
  .hb-vs-table {
    width: max(100%, 640px);
    min-width: 640px;
  }
}
