/* /compare and /compare/<competitor>-vs-limitlessai: AI receptionist comparisons.
   Builds on reception-enterprise-v1.css (rx-* tokens, sections, buttons, closing orbs, footer). */

.cx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Page rhythm: calmer headings than the long-form product page ---------- */
.cx-page .rx-h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.05em;
}

.cx-page .rx-head {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

/* ---------- Hero: centred, one label, a "them vs us" lockup and three quick stats ---------- */
.cx-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.cx-hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cx-back,
.cx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--rx-soft);
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.cx-pill {
  padding-left: 0.85rem;
}

.cx-back:hover {
  color: var(--rx-ink);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.22);
}

.cx-back svg {
  transition: transform 0.2s ease;
}

.cx-back:hover svg {
  transform: translateX(-2px);
}

.cx-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2678d4, #6557d9 55%, #ca35bd);
}

.cx-vs {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.cx-tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.1), 0 10px 24px -14px rgba(22, 22, 23, 0.25);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #5d616b;
}

.cx-tile--us {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ec4899, #8b5cf6 45%, #3b82f6) border-box;
  box-shadow: 0 14px 30px -16px rgba(70, 60, 170, 0.55);
}

.cx-tile--us img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cx-vs-x {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-mute);
}

.cx-h1 {
  margin: 0;
  max-width: 24ch;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  color: var(--rx-ink);
  text-wrap: balance;
}

.cx-h1 .rx-muted {
  display: block;
}

.cx-lede {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--rx-soft);
  text-wrap: balance;
}

.cx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.cx-stats {
  display: grid;
  width: 100%;
  max-width: 940px;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.08), 0 24px 60px -40px rgba(40, 50, 120, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
}

.cx-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.35rem 1.5rem;
}

.cx-stats li + li {
  border-top: 1px solid var(--rx-line);
}

@media (min-width: 760px) {
  .cx-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cx-stats li {
    padding: 1.6rem 1.75rem;
  }

  .cx-stats li + li {
    border-top: 0;
    border-left: 1px solid var(--rx-line);
  }
}

.cx-stat-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rx-mute);
}

.cx-stats b {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--rx-ink);
}

.cx-stat-v {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--rx-mute);
}

.cx-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 760px;
  margin-top: 2.75rem;
}

.cx-chips span {
  width: 100%;
  margin-bottom: 0.25rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rx-mute);
}

.cx-chips a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cx-chips a:hover {
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.28);
  transform: translateY(-1px);
}

.cx-reviewed {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 34rem;
  margin: 2rem 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rx-mute);
  text-align: left;
}

.cx-reviewed svg {
  flex: none;
  margin-top: 2px;
  color: #2f9e6f;
}

.cx-reviewed a {
  color: var(--rx-soft);
  text-underline-offset: 3px;
}

/* a soft colour field behind the heading, in the industry palettes */
.cx-aura {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -18%;
  width: min(980px, 130vw);
  height: 640px;
  transform: translateX(-50%);
  filter: blur(72px);
  opacity: 0.42;
  pointer-events: none;
}

.cx-aura span {
  position: absolute;
  border-radius: 50%;
  animation: cx-drift 24s ease-in-out infinite alternate;
}

.cx-aura span:nth-child(1) { inset: 8% 52% 30% 4%; background: radial-gradient(closest-side, rgba(236, 72, 153, 0.42), transparent); }
.cx-aura span:nth-child(2) { inset: 4% 6% 34% 50%; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.48), transparent); animation-delay: -9s; }
.cx-aura span:nth-child(3) { inset: 38% 28% 0 28%; background: radial-gradient(closest-side, rgba(251, 191, 36, 0.36), transparent); animation-delay: -17s; }

@media (max-width: 759px) {
  .cx-h1 {
    font-size: 2.2rem;
  }

  .cx-tile {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 22px;
  }

  /* keep the glow inside the page frame so it never shows a hard edge */
  .cx-aura {
    width: 100%;
    height: 460px;
    top: -60px;
    opacity: 0.32;
    -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent);
    mask-image: radial-gradient(closest-side, #000 50%, transparent);
  }
}

@keyframes cx-drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to { transform: translate3d(3%, -3%, 0) scale(1.07); }
}

/* ---------- Short answer ---------- */
.cx-verdict {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .cx-verdict {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cx-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  background: var(--rx-foot);
}

.cx-card--us {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ec4899, #8b5cf6 45%, #3b82f6) border-box;
  box-shadow: 0 24px 48px -30px rgba(70, 60, 170, 0.4);
}

.cx-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.cx-card > p {
  margin: 0.75rem 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--rx-soft);
}

.cx-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cx-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(22, 22, 23, 0.82);
}

.cx-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--rx-ink);
}

/* ---------- Comparison chart ---------- */
.cx-pick {
  display: none;
}

.cx-chart {
  position: relative;
  --feature-w: 34%;
  --cols: 2;
  --col-w: calc((100% - var(--feature-w)) / var(--cols));
}

.cx-chart--hub {
  --feature-w: 20%;
}

.cx-chart--hub .cx-table th,
.cx-chart--hub .cx-table td {
  padding: 1.15rem 0.85rem;
  font-size: 14.5px;
}

.cx-chart--hub .cx-table thead th:first-child,
.cx-chart--hub .cx-table tbody th {
  padding-left: 0;
}

.cx-chart--hub .cx-us-name {
  font-size: 17px;
}

.cx-chart--hub .cx-them {
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* LimitlessAI's column: one continuous wash, top to bottom */
.cx-wash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--feature-w);
  width: var(--col-w);
  border-radius: 30px;
  background: linear-gradient(180deg, #ead3e8 0%, #f1dfe3 18%, #f4e9dc 36%, #e9e4e6 50%, #cdd3ea 66%, #9fb2dc 84%, #6f8cc4 100%);
  box-shadow: 0 30px 60px -42px rgba(40, 60, 140, 0.55);
  pointer-events: none;
}

.cx-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .45 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.cx-table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cx-table th,
.cx-table td {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--rx-line);
  background: transparent;
  text-align: left;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.cx-table thead th {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  vertical-align: top;
}

.cx-table thead th:first-child,
.cx-table tbody th {
  width: var(--feature-w);
  padding-left: 0;
}

.cx-table thead th:first-child {
  font-size: 17px;
  font-weight: 500;
  color: var(--rx-ink);
}

.cx-us-name {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.cx-us-line {
  display: block;
  margin-top: 0.4rem;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(22, 22, 23, 0.62);
}

.cx-them {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e7280;
}

.cx-table tbody th {
  font-size: 16.5px;
  color: var(--rx-ink);
}

.cx-table td {
  color: #6b6f7a;
}

.cx-table td.cx-us {
  font-weight: 600;
  color: var(--rx-ink);
}

.cx-yes {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.cx-yes svg {
  flex: none;
  margin-top: 0.15em;
}

.cx-faint {
  color: #a3a6ae;
}

.cx-table tfoot td {
  border-bottom: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}

.cx-footnote {
  margin: 1.5rem 0 0;
  max-width: 60rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rx-mute);
}

/* phones and tablets: each row becomes a label with the values side by side */
@media (max-width: 1099px) {
  .cx-pick {
    display: flex;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cx-pick::-webkit-scrollbar {
    display: none;
  }

  .cx-pick .rx-seg {
    flex: none;
    flex-wrap: nowrap;
    margin-inline: auto;
  }

  .cx-pick [role="radio"] {
    padding: 0.5rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rx-soft);
    cursor: pointer;
  }

  .cx-pick [role="radio"][aria-checked="true"] {
    background: #fff;
    color: var(--rx-ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  .cx-wash,
  .cx-table thead,
  .cx-table tfoot {
    display: none;
  }

  .cx-table,
  .cx-table tbody {
    display: block;
  }

  .cx-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rx-line);
  }

  .cx-table tbody th,
  .cx-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .cx-table tbody th {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }

  .cx-table td {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: var(--rx-foot);
    font-size: 14px;
  }

  .cx-table td.cx-us {
    background: linear-gradient(135deg, #f3e3ef, #e9e8f5 55%, #d9e1f4);
  }

  .cx-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8e98;
  }

  .cx-yes svg {
    display: none;
  }

  .cx-chart--hub[data-show] td[data-col]:not(.cx-us) {
    display: none;
  }

  .cx-chart--hub[data-show="reception-ai"] td[data-col="reception-ai"]:not(.cx-us),
  .cx-chart--hub[data-show="smith-ai"] td[data-col="smith-ai"]:not(.cx-us),
  .cx-chart--hub[data-show="ruby"] td[data-col="ruby"]:not(.cx-us),
  .cx-chart--hub[data-show="goodcall"] td[data-col="goodcall"]:not(.cx-us),
  .cx-chart--hub[data-show="frontdesk"] td[data-col="frontdesk"]:not(.cx-us),
  .cx-chart--hub[data-show="dialzara"] td[data-col="dialzara"]:not(.cx-us) {
    display: block;
  }
}

/* ---------- Price, strengths, steps ---------- */
.cx-two {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .cx-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cx-price-list {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cx-price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rx-line);
  font-size: 15px;
  color: var(--rx-soft);
}

.cx-price-list b {
  font-weight: 500;
  color: var(--rx-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cx-card .cx-small {
  margin: 1rem 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rx-mute);
}

.cx-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .cx-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cx-steps li {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--rx-foot);
  counter-increment: step;
}

.cx-steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 2.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-mute);
}

.cx-steps b {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.cx-steps span {
  display: block;
  margin-top: 0.5rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rx-soft);
}

/* ---------- Hub: competitor cards ---------- */
.cx-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .cx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cx-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cx-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(22, 22, 23, 0.08);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cx-link-card:hover {
  box-shadow: inset 0 0 0 1.5px rgba(22, 22, 23, 0.2);
  transform: translateY(-2px);
}

.cx-link-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rx-mute);
}

.cx-link-card b {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--rx-ink);
}

.cx-link-card span:not(.cx-link-kicker):not(.cx-link-go) {
  font-size: 15px;
  line-height: 1.55;
  color: var(--rx-soft);
}

.cx-link-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-ink);
}

.cx-link-card:hover .cx-link-go svg {
  transform: translateX(2px);
}

.cx-link-go svg {
  transition: transform 0.2s ease;
}

.cx-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-more a {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--rx-foot);
  font-size: 14px;
  color: var(--rx-ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cx-more a:hover {
  background: #ebebee;
}

/* ---------- Prose blocks (method, sources) ---------- */
.cx-prose {
  max-width: 46rem;
}

.cx-prose p {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rx-soft);
}

.cx-sources {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.6;
}

.cx-sources li {
  padding: 0.35rem 0;
  color: var(--rx-mute);
}

.cx-sources a {
  color: var(--rx-soft);
  text-decoration: underline;
  text-decoration-color: rgba(22, 22, 23, 0.25);
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ---------- FAQ ---------- */
.cx-faq-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .cx-faq-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .cx-faq-head {
    position: sticky;
    top: 112px;
    align-self: start;
  }
}

.cx-faq-head.rx-head {
  margin-bottom: 0;
}

.cx-qa {
  border-bottom: 1px solid var(--rx-line);
}

.cx-qa:first-child {
  border-top: 1px solid var(--rx-line);
}

.cx-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--rx-ink);
}

.cx-qa summary::-webkit-details-marker {
  display: none;
}

.cx-qa-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.12);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.cx-qa-icon::before,
.cx-qa-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--rx-ink);
  transform: translate(-50%, -50%);
}

.cx-qa-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cx-qa summary:hover .cx-qa-icon {
  background: var(--rx-tint);
}

.cx-qa[open] .cx-qa-icon {
  transform: rotate(45deg);
}

.cx-qa-a {
  margin: 0;
  padding: 0 3rem 1.6rem 0;
  max-width: 42rem;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--rx-soft);
}

@media (prefers-reduced-motion: reduce) {
  .cx-aura span {
    animation: none;
  }

  .cx-link-card,
  .cx-link-go svg,
  .cx-back svg,
  .cx-chips a,
  .cx-qa-icon {
    transition: none;
  }
}
