/**
 * Clarke modern home comparison block.
 * Two premium cards with a centered VS marker.
 */

.clarke-compare-vs {
  --ccv-reject: #e95643;
  --ccv-reject-strong: #bd3f31;
  --ccv-reject-soft: #fff6f3;
  --ccv-reject-soft-2: #fffbfa;
  --ccv-reject-border: rgba(233, 86, 67, .18);
  --ccv-green: var(--uzeda-color-secondary, #00bf6a);
  --ccv-green-strong: #16783f;
  --ccv-green-soft: #f1fbf5;
  --ccv-green-soft-2: #f9fefb;
  --ccv-green-border: rgba(0, 191, 106, .2);
  --ccv-ink: #1f2937;
  --ccv-muted: #64748b;
  --ccv-border: rgba(15, 23, 42, .08);
  --ccv-shadow: 0 20px 60px rgba(15, 23, 42, .065), 0 2px 8px rgba(15, 23, 42, .035);
  --ccv-shadow-soft: 0 14px 34px rgba(15, 23, 42, .07);
  --ccv-ease: cubic-bezier(.4, 0, .2, 1);

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 0;
  font-family: inherit;
  box-sizing: border-box;
}

.clarke-compare-vs *,
.clarke-compare-vs *::before,
.clarke-compare-vs *::after {
  box-sizing: inherit;
}

.clarke-compare-vs .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;
}

.ccv-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: clamp(26px, 2.8vw, 38px) clamp(22px, 2.8vw, 34px) clamp(28px, 2.8vw, 38px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .98), transparent 46%),
    #fff;
  border: 1px solid var(--ccv-border);
  border-radius: 26px;
  box-shadow: var(--ccv-shadow);
  overflow: hidden;
  transition: transform .28s var(--ccv-ease), box-shadow .28s var(--ccv-ease), border-color .28s var(--ccv-ease);
}

.ccv-col::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .72;
}

.ccv-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 72px rgba(15, 23, 42, .085), 0 4px 12px rgba(15, 23, 42, .04);
}

.ccv-col--left {
  border-color: rgba(233, 86, 67, .14);
}

.ccv-col--left::before {
  background: linear-gradient(180deg, rgba(233, 86, 67, .035), transparent 38%);
}

.ccv-col--right {
  border-color: rgba(0, 191, 106, .16);
}

.ccv-col--right::before {
  background: linear-gradient(180deg, rgba(0, 191, 106, .04), transparent 40%);
}

.ccv-col__label {
  position: relative;
  z-index: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: min(292px, 82%);
  min-height: 54px;
  margin: 0 auto clamp(24px, 3vw, 32px);
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ccv-col__label svg {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
  transition: transform .24s var(--ccv-ease);
}

.ccv-col:hover .ccv-col__label svg {
  transform: scale(1.05);
}

.ccv-col--left .ccv-col__label {
  color: var(--ccv-reject-strong);
  background: linear-gradient(90deg, rgba(233, 86, 67, .14), rgba(233, 86, 67, .075));
  box-shadow: 0 14px 34px rgba(233, 86, 67, .11);
}

.ccv-col--left .ccv-col__label svg {
  color: var(--ccv-reject);
  border: 0;
}

.ccv-col--right .ccv-col__label {
  color: var(--ccv-green-strong);
  background: linear-gradient(90deg, rgba(0, 191, 106, .13), rgba(0, 191, 106, .075));
  box-shadow: 0 14px 34px rgba(0, 191, 106, .11);
}

.ccv-col--right .ccv-col__label svg {
  color: var(--ccv-green-strong);
  border: 0;
}

.ccv-col__items {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.ccv-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--ccv-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .018);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .45s var(--ccv-ease),
    transform .45s var(--ccv-ease),
    border-color .24s var(--ccv-ease),
    background .24s var(--ccv-ease),
    box-shadow .24s var(--ccv-ease);
}

.ccv-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ccv-col--left .ccv-item {
  background: linear-gradient(180deg, #fff, var(--ccv-reject-soft-2));
  border-color: var(--ccv-reject-border);
  box-shadow: inset 0 1px 0 rgba(233, 86, 67, .025);
}

.ccv-col--right .ccv-item {
  background: linear-gradient(180deg, #fff, var(--ccv-green-soft-2));
  border-color: var(--ccv-green-border);
  box-shadow: inset 0 1px 0 rgba(0, 191, 106, .025);
}

.ccv-item:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, .055);
  transform: translateY(-1px);
}

.ccv-col--left .ccv-item:hover {
  background: var(--ccv-reject-soft);
  border-color: rgba(233, 86, 67, .28);
}

.ccv-col--right .ccv-item:hover {
  background: var(--ccv-green-soft);
  border-color: rgba(0, 191, 106, .32);
}

.ccv-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .045);
  transition: transform .22s var(--ccv-ease), box-shadow .22s var(--ccv-ease);
}

.ccv-item:hover .ccv-item__icon {
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .075);
}

.ccv-col--left .ccv-item__icon {
  color: var(--ccv-reject);
  border: 1px solid rgba(233, 86, 67, .38);
  background: #fff8f6;
}

.ccv-col--right .ccv-item__icon {
  color: var(--ccv-green-strong);
  border: 1px solid rgba(0, 191, 106, .34);
  background: #f4fcf7;
}

.ccv-item__icon svg {
  width: 15px;
  height: 15px;
}

.ccv-item__text {
  min-width: 0;
  flex: 1;
}

.ccv-item__title {
  margin: 0;
  color: var(--ccv-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: 0;
}

.ccv-item__desc {
  margin: 4px 0 0;
  color: var(--ccv-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ccv-vs {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 100%;
  z-index: 2;
}

.ccv-vs::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 220px;
  border-radius: 999px;
  opacity: .45;
  background-image: radial-gradient(rgba(0, 191, 106, .34) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
}

.ccv-vs span {
  position: relative;
  display: grid;
  place-items: center;
  transform: translateX(-12px);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12), inset 0 0 0 6px rgba(15, 23, 42, .025);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}

@media (max-width: 1100px) {
  .clarke-compare-vs {
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
    gap: 16px;
  }

  .ccv-col {
    min-height: 430px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .ccv-col__label {
    width: min(260px, 86%);
    min-height: 50px;
    margin-bottom: 22px;
    font-size: 12.5px;
  }

  .ccv-item {
    gap: 12px;
    min-height: 60px;
    padding: 11px 14px;
  }

  .ccv-item__title {
    font-size: 13.5px;
  }

  .ccv-vs,
  .ccv-vs span {
    width: 54px;
  }

  .ccv-vs span {
    transform: translateX(-8px);
    height: 54px;
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  .clarke-compare-vs {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .ccv-col {
    min-height: 0;
    padding: 22px;
  }

  .ccv-col--left {
    order: 1;
  }

  .ccv-vs {
    order: 2;
    width: 100%;
    min-height: 50px;
  }

  .ccv-vs::before {
    width: 190px;
    height: 44px;
  }

  .ccv-vs span {
    transform: none;
    width: 54px;
    height: 54px;
    font-size: 16px;
  }

  .ccv-col--right {
    order: 3;
  }
}

@media (max-width: 640px) {
  .clarke-compare-vs {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .ccv-col {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .ccv-col__label {
    min-height: 44px;
    margin-bottom: 16px;
    padding: 8px 16px;
    gap: 9px;
    font-size: 11.5px;
  }

  .ccv-col__label svg {
    width: 24px;
    height: 24px;
  }

  .ccv-col__items {
    gap: 10px;
  }

  .ccv-item {
    gap: 12px;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .ccv-col__items {
    width: 100%;
    min-width: 0;
  }

  .ccv-item__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .ccv-item__icon svg {
    width: 15px;
    height: 15px;
  }

  .ccv-item__title {
    font-size: 13px;
    line-height: 1.38;
  }
}

@media (max-width: 380px) {
  .ccv-col {
    padding: 16px 14px;
  }

  .ccv-item {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccv-col,
  .ccv-col__label svg,
  .ccv-item,
  .ccv-item__icon {
    transition: none;
  }

  .ccv-col:hover,
  .ccv-item:hover {
    transform: none;
  }

  .ccv-item,
  .ccv-item.is-visible {
    opacity: 1;
    transform: none;
  }
}

.no-js .ccv-item,
.ccv-item:not([data-delay]) {
  opacity: 1;
  transform: none;
}
