/* ============================================================
   OpenClaw comparison — sits directly after "How Claw AI Army
   Compares" (.section11) as part two of the same argument.

   The existing table is a price anchor against AI writing tools.
   This one is a different argument entirely: same interaction
   model, different operating burden. Three rows deliberately go
   to OpenClaw — a comparison that concedes nothing reads as
   marketing, and these are true.

   MOBILE: the comparison is NOT a scrolling table. Each row
   becomes a stacked card with its own inline column labels, so
   there is no horizontal scroll and no nested scroller.
   ============================================================ */

.ocx {
  display: block !important; /* beats the inline display:none fail-safe */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 82px 0 74px;
  background: linear-gradient(180deg, #0b0e1c 0%, #11162b 55%, #0c1020 100%);
  color: #fff;
  --ocx-line: rgba(255, 255, 255, 0.12);
  --ocx-us: #ffc861;
}

.ocx-glow {
  position: absolute;
  inset: -30% 20% auto 20%;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.22), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}

.ocx-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Brand marks ----------
   Both sides get a real logo so the comparison reads end to end. The OpenClaw
   lobster is their own mark, unaltered; the square Claw AI Army icon is used
   alongside it so the two sit at matching visual weight. */
.ocx-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ocx-line);
}
.ocx-brand span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.ocx-card--us .ocx-brand span {
  color: var(--ocx-us);
}
.ocx-mark {
  width: 40px;
  flex: none;
  display: block;
  object-fit: contain;
}
img.ocx-mark {
  border-radius: 7px;
}

.ocx .section-head {
  max-width: 880px;
}
.ocx .section-head h2 {
  color: #fff;
}
.ocx .section-head .lead {
  color: rgba(255, 255, 255, 0.74);
}
.ocx .eyebrow {
  color: #ffde4a;
  border-color: rgba(255, 222, 74, 0.55);
}
.ocx .eyebrow::before,
.ocx .eyebrow::after {
  border-color: rgba(255, 222, 74, 0.55);
  background: #11162b;
}

/* ---------- "Pick X if..." split ---------- */
.ocx-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.ocx-card {
  padding: 26px 26px 22px;
  border-radius: 18px;
  border: 1px solid var(--ocx-line);
  background: rgba(255, 255, 255, 0.045);
}
.ocx-card--us {
  border-color: rgba(255, 200, 97, 0.42);
  background: linear-gradient(160deg, rgba(255, 200, 97, 0.12), rgba(255, 255, 255, 0.03));
}
.ocx-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}
.ocx-card--us h3 {
  color: var(--ocx-us);
}
.ocx-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.ocx-card li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.ocx-card li b {
  color: #fff;
  font-weight: 700;
}
.ocx-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  color: rgba(255, 255, 255, 0.42);
}
.ocx-card--us li::before {
  color: var(--ocx-us);
}
.ocx-fair {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--ocx-line);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Comparison rows ---------- */
.ocx-table {
  border: 1px solid var(--ocx-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.ocx-head,
.ocx-row {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.25fr;
  gap: 18px;
  padding: 15px 22px;
  align-items: start;
}
.ocx-head {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--ocx-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ocx-h-them,
.ocx-h-us {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-size: 18px;
}
/* .ocx-h-them {
  color: #000;
} */
.ocx-h-them .ocx-mark {
  height: 34px;
}
.ocx-h-us {
  color: var(--ocx-us);
}
.ocx-wordmark {
  height: 34px;
  width: auto;
  display: block;
}
.ocx-row + .ocx-row,
.ocx-head + .ocx-row {
  border-top: 1px solid var(--line-soft);
}
.ocx-k {
  font-size: 18px;
  font-weight: 700;
  color: #0b0e1c;
}
.ocx-them,
.ocx-us {
  font-size: 18px;
  line-height: 1.5;
  color: #0c1020;
}
.ocx-us {
    color: var(--secondary-color);
    FONT-WEIGHT: 700;
}
.ocx-them b,
.ocx-us b {
  font-weight: 700;
}
/* the inline column labels only appear in the stacked mobile layout */
.ocx-them i,
.ocx-us i {
  display: none;
}
.ocx-row sup {
  font-size: 10px;
  color: var(--ocx-us);
}
/* rows where OpenClaw is the better answer */
.ocx-row--them .ocx-them {
  color: #b9f6d0;
}

.ocx-note {
  margin: 22px auto 0;
  max-width: 900px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}
.ocx-note sup {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ----------
   Below 860px the three columns stack. Each cell prints its own label so the
   row still reads as a comparison — no horizontal scrolling table. */
@media (max-width: 860px) {
  .ocx {
    padding: 60px 0 54px;
  }
  /* keep both logos visible on mobile, as a two-up strip above the rows */
  .ocx-head {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 13px 16px;
  }
  .ocx-h-blank {
    display: none;
  }
  .ocx-h-them,
  .ocx-h-us {
    justify-content: center;
    min-height: 24px;
  }
  .ocx-h-them .ocx-mark {
    width: 22px;
    height: 22px;
  }
  .ocx-wordmark {
    height: 21px;
  }
  .ocx-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 16px 18px;
  }
  .ocx-k {
    font-size: 15px;
  }
  .ocx-them,
  .ocx-us {
    padding: 11px 13px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
  }
  .ocx-us {
    background: rgba(255, 200, 97, 0.12);
  }
  .ocx-them i,
  .ocx-us i {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.45);
  }
  .ocx-us i {
    color: var(--ocx-us);
  }
  .ocx-card {
    padding: 22px 20px 18px;
  }
}
@media (max-width: 620px) {
  .ocx {
    padding: 50px 0 44px;
  }
  .ocx-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocx * {
    transition: none !important;
    animation: none !important;
  }
}
