/* Homepage 05: how the DsphereAI browser + Agent compares with step-by-step AI
   agents and traditional RPA. Qualitative only; the table follows the pricing
   comparison's language and the pricing page's plain brand-blue ticks. */
body.ai-home-page .home-compare {
  --compare-ink: #192236;
  --compare-muted: #736a80;
  --compare-line: #e2e7ef;
  --compare-brand: #5e63c6;
  --compare-tint: #f8f7ff;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: #fff;
}
body.ai-home-page .home-compare .overview-heading { max-width: 52rem; }
body.ai-home-page .home-compare .overview-heading h2 { text-wrap: balance; }
body.ai-home-page .home-compare .overview-heading p { margin-top: .5rem; text-wrap: pretty; }

.home-compare__table {
  overflow: hidden;
  border: 1px solid var(--compare-line);
  border-radius: 1rem;
  background: #fff;
}
.home-compare__row {
  display: grid;
  grid-template-columns: minmax(10rem, .9fr) repeat(3, minmax(0, 1fr));
  border-top: 1px solid #eaeef3;
}
.home-compare__row:first-child { border-top: 0; }
.home-compare__row > div {
  min-width: 0;
  padding: 1rem 1.25rem;
  color: var(--compare-muted);
  font-size: .875rem;
  line-height: 1.6;
}
.home-compare__row--head { background: #f8fbfe; }
.home-compare__row--head > div { color: #4a3d61; font-weight: 500; }
.home-compare__name { color: var(--compare-ink) !important; font-weight: 500; }
.home-compare__row--ours { background: var(--compare-tint); }
.home-compare__row--ours > div { display: flex; align-items: flex-start; gap: .625rem; color: #414c63; }
.home-compare__row--ours .home-compare__name { flex-direction: column; gap: .375rem; }
.home-compare__row--ours .home-compare__name img { display: block; width: auto; height: 1.5rem; }
.home-compare__row--ours .home-compare__name span { color: #4b50c4; font-weight: 600; }
.home-compare__row--ours > [role="cell"] > span:last-child { flex: 1 1 0; min-width: 0; }
.home-compare__tick {
  flex-shrink: 0;
  color: var(--compare-brand);
  font-size: 1rem;
  line-height: 1.4;
}

.home-compare__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.home-compare__points li {
  margin: 0;
  padding: 1.375rem 1.25rem;
  border: 1px solid var(--compare-line);
  border-radius: .875rem;
  background: #fff;
}
.home-compare__icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  background: #f0efff;
  color: var(--compare-brand);
}
.home-compare__icon svg { width: 1.25rem; height: 1.25rem; }
.home-compare__points small {
  display: block;
  margin-top: .875rem;
  color: var(--compare-brand);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.home-compare__points h3 { margin: .25rem 0 .375rem; color: var(--compare-ink); font-size: 1.0625rem; line-height: 1.4; }
.home-compare__points p { margin: 0; color: var(--compare-muted); font-size: .875rem; line-height: 1.7; }
.home-compare__note { margin: 1rem 0 0; color: #9398a5; font-size: .75rem; text-align: center; }

@media (max-width: 991px) {
  .home-compare__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: one card per approach, labelled by CSS so the markup stays shared. */
@media (max-width: 767px) {
  .home-compare__table { display: grid; gap: .75rem; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .home-compare__row--head { display: none; }
  .home-compare__row {
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--compare-line);
    border-radius: .875rem;
    background: #fff;
  }
  .home-compare__row--ours { border-color: #d9d6fb; background: var(--compare-tint); }
  .home-compare__row > div { padding: .25rem 1rem; }
  .home-compare__row > .home-compare__name { padding-top: .875rem; padding-bottom: .5rem; font-weight: 600; }
  .home-compare__row > div:last-child { padding-bottom: .875rem; }
  .home-compare__row--ours .home-compare__name { flex-direction: row; align-items: center; }
  .home-compare__row > [role="cell"]::before {
    display: block;
    flex-basis: 100%;
    color: #9398a5;
    font-size: .6875rem;
    font-weight: 500;
  }
  .home-compare__row--ours > [role="cell"] { flex-wrap: wrap; column-gap: .5rem; row-gap: 0; }
  .home-compare__row > [role="cell"]:nth-child(2)::before { content: "Setting up"; }
  .home-compare__row > [role="cell"]:nth-child(3)::before { content: "Every run"; }
  .home-compare__row > [role="cell"]:nth-child(4)::before { content: "Scaling up"; }
  html[lang^="zh"] .home-compare__row > [role="cell"]:nth-child(2)::before { content: "上手方式"; }
  html[lang^="zh"] .home-compare__row > [role="cell"]:nth-child(3)::before { content: "每次运行"; }
  html[lang^="zh"] .home-compare__row > [role="cell"]:nth-child(4)::before { content: "规模化"; }
  .home-compare__points { grid-template-columns: 1fr; }
}
