/* Shopify compare hero — white premium split layout */

.ch-hero {
  --ch-max: 1240px;
  --ch-blue: var(--accent);
  --ch-ink: var(--ink);
  --ch-grey: #64748b;
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
  background: #fff !important;
  text-align: left;
}

.compare-page--shopify .ch-hero.compare-page-hero {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
}

.compare-page--freshdesk .ch-hero.compare-page-hero {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
}

.ch-hero__shell {
  position: relative;
  z-index: 1;
  width: min(var(--ch-max), 92vw);
  margin-inline: auto;
}

.ch-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .ch-hero__grid {
    grid-template-columns: minmax(0, 34rem) 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* —— Breadcrumb —— */

.ch-hero__crumb {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  font-size: 0.8125rem;
  color: rgba(15, 23, 42, 0.45);
}

.ch-hero__crumb a {
  color: rgba(15, 23, 42, 0.55);
}

.ch-hero__crumb a:hover {
  color: var(--accent);
}

.ch-hero__crumb span:last-child {
  color: rgba(15, 23, 42, 0.7);
}

/* —— Copy —— */

.ch-hero__copy {
  max-width: 32rem;
}

.ch-hero__eyebrow {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  margin: 0 0 0.875rem;
  padding: 0.2rem 0.55rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-blue);
  background: rgba(64, 80, 208, 0.08);
  border: 1px solid rgba(64, 80, 208, 0.14);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-12px);
}

.ch-hero.is-ready .ch-hero__eyebrow {
  animation: chSlideInLeft 0.45s ease-out 0.05s forwards;
}

.ch-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ch-ink);
  opacity: 0;
  transform: translateX(-20px);
}

.compare-page-hero.ch-hero .ch-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--ch-ink);
}

.ch-hero.is-ready .ch-hero__title {
  animation: chSlideInLeft 0.5s ease-out 0.12s forwards;
}

.ch-hero__brand {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ch-hero__lead {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: var(--ch-grey);
  opacity: 0;
  transform: translateX(-14px);
}

.ch-hero.is-ready .ch-hero__lead {
  animation: chSlideInLeft 0.5s ease-out 0.22s forwards;
}

.ch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(-12px);
}

.ch-hero.is-ready .ch-hero__actions {
  animation: chSlideInLeft 0.45s ease-out 0.32s forwards;
}

.ch-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.875rem;
  padding: 0 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ch-hero__btn--primary {
  background: var(--ch-ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ch-hero__btn--secondary {
  background: #fff;
  color: var(--ch-blue);
  border-color: rgba(64, 80, 208, 0.35);
  font-weight: 500;
}

.ch-hero__btn-icon {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .ch-hero__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  }

  .ch-hero__btn--primary:hover .ch-hero__btn-icon {
    transform: translateX(3px);
  }

  .ch-hero__btn--secondary:hover {
    background: rgba(64, 80, 208, 0.04);
    border-color: rgba(64, 80, 208, 0.5);
    transform: translateY(-1px);
  }
}

@keyframes chSlideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* —— Canvas visual —— */

.ch-hero__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.ch-canvas {
  position: relative;
  width: min(100%, 34rem);
  min-height: 28rem;
  margin-inline: auto;
}

.ch-canvas__rings {
  position: absolute;
  top: 50%;
  left: 54%;
  z-index: 0;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.ch-canvas__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 50%;
}

.ch-canvas__ring:nth-child(1) { width: 55%; height: 55%; }
.ch-canvas__ring:nth-child(2) { width: 72%; height: 72%; }
.ch-canvas__ring:nth-child(3) { width: 88%; height: 88%; }
.ch-canvas__ring:nth-child(4) { width: 104%; height: 104%; opacity: 0.6; }

/* Comparison cards row */

.ch-canvas__compare {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-inline: 0.5rem;
}

.ch-cmp-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: min(44%, 9.5rem);
  padding: 0.65rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  opacity: 0;
  transform: translateY(12px);
}

.ch-cmp-card--legacy {
  animation: none;
}

.ch-cmp-card--sg {
  position: relative;
  animation: none;
}

.ch-hero.is-ready .ch-cmp-card--legacy {
  animation: chCardIn 0.45s ease-out 0.45s forwards;
}

.ch-hero.is-ready .ch-cmp-card--sg {
  animation: chCardIn 0.45s ease-out 0.85s forwards, chFloat 5s ease-in-out 1.4s infinite;
}

.ch-cmp-card__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  line-height: 0;
}

.ch-cmp-card__logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #f8fafc;
}

.ch-cmp-card__logo img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

.ch-cmp-card__logo--shopify {
  background: #f0fdf4;
}

.ch-cmp-card__logo--shopify img {
  width: 1.5rem;
  height: 1.5rem;
}

.ch-cmp-card__logo--freshdesk {
  background: #eff6ff;
}

.ch-cmp-card__logo--freshdesk img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

.ch-cmp-card__title {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ch-ink);
}

.ch-cmp-card__desc {
  margin: 0;
  font-size: 0.5625rem;
  line-height: 1.4;
  color: var(--ch-grey);
}

.ch-canvas__arrow {
  flex-shrink: 0;
  width: 3.5rem;
  opacity: 0;
}

.ch-canvas__arrow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ch-canvas__arrow-path {
  stroke-dasharray: 4 6;
  stroke-dashoffset: 0;
  opacity: 0;
}

.ch-canvas__arrow-head {
  opacity: 0;
}

.ch-hero.is-ready .ch-canvas__arrow {
  animation: chFadeIn 0.3s ease-out 0.65s forwards;
}

.ch-hero.is-ready .ch-canvas__arrow-path {
  animation:
    chDrawLine 0.7s ease-out 0.7s forwards,
    chMarch 0.8s linear 1.5s infinite;
}

.ch-hero.is-ready .ch-canvas__arrow-head {
  animation: chFadeIn 0.3s ease-out 1.2s forwards;
}

@keyframes chCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chDrawLine {
  from {
    opacity: 0;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
  }
  to {
    opacity: 1;
    stroke-dasharray: 4 6;
    stroke-dashoffset: 0;
  }
}

@keyframes chMarch {
  to { stroke-dashoffset: -20; }
}

@keyframes chFadeIn {
  to { opacity: 1; }
}

@keyframes chFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Store preview */

.ch-canvas__stage {
  position: relative;
  z-index: 2;
  padding-right: 4.5rem;
}

.ch-store {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.ch-hero.is-ready .ch-store {
  animation: chStoreIn 0.55s ease-out 0.95s forwards, chFloatSlow 6s ease-in-out 1.6s infinite;
}

@keyframes chStoreIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chFloatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ch-store__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafafa;
}

.ch-store__brand {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ch-ink);
  white-space: nowrap;
}

.ch-store__nav {
  display: none;
  flex: 1;
  gap: 0.65rem;
  justify-content: center;
  font-size: 0.5625rem;
  color: var(--ch-grey);
}

.ch-store__icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.ch-store__icon {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ch-grey);
}

.ch-store__cart {
  position: relative;
  color: var(--ch-grey);
}

.ch-store__cart em {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.15rem;
  font-size: 0.4375rem;
  font-style: normal;
  font-weight: 700;
  line-height: 0.875rem;
  text-align: center;
  color: #fff;
  background: var(--ch-blue);
  border-radius: 999px;
}

.ch-store__hero {
  position: relative;
  min-height: 8.5rem;
  overflow: hidden;
}

.ch-store__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  object-fit: cover;
  object-position: center;
}

.ch-store__hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.15) 55%, transparent 100%);
}

.ch-store__hero-eyebrow {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ch-store__hero-title {
  max-width: 9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.ch-store__hero-btn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.32rem 0.6rem;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
  background: var(--ch-ink);
  border-radius: 4px;
}

.ch-store__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.85rem;
}

.ch-store__product {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ch-store__product img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}

.ch-store__product-line {
  display: block;
  height: 0.35rem;
  border-radius: 3px;
  background: #e2e8f0;
  width: 88%;
}

.ch-store__product-line--short {
  width: 55%;
}

/* Shopify store — compact stage to match Freshdesk inbox */
.compare-page--shopify .ch-store__hero,
.compare-page--shopify .ch-store__hero-img {
  min-height: 5rem;
}

.compare-page--shopify .ch-store__grid {
  gap: 0.35rem;
  padding: 0.45rem 0.65rem 0.55rem;
}

.compare-page--shopify .ch-store__product {
  gap: 0.2rem;
}

.compare-page--shopify .ch-store__product img {
  aspect-ratio: 1;
  max-height: 4.25rem;
}

.compare-page--shopify .ch-store__product-line {
  height: 0.25rem;
}

/* Feature callouts */

.ch-canvas__callouts {
  position: absolute;
  top: 28%;
  right: 0;
  bottom: 8%;
  width: 4.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ch-callout {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateX(10px);
}

.ch-hero.is-ready .ch-callout--1 { animation: chCalloutIn 0.4s ease-out 1.15s forwards; }
.ch-hero.is-ready .ch-callout--2 { animation: chCalloutIn 0.4s ease-out 1.35s forwards; }
.ch-hero.is-ready .ch-callout--3 { animation: chCalloutIn 0.4s ease-out 1.55s forwards; }

@keyframes chCalloutIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ch-callout__line {
  width: 1.25rem;
  height: 0;
  border-top: 2px dotted rgba(64, 80, 208, 0.45);
  flex-shrink: 0;
}

.ch-callout__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(64, 80, 208, 0.2);
  color: var(--ch-blue);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ch-callout__text {
  position: absolute;
  left: 3.25rem;
  width: max-content;
  max-width: 7rem;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ch-ink);
}

.ch-callout {
  position: relative;
}

@media (min-width: 480px) {
  .ch-store__nav {
    display: flex;
  }

  .ch-cmp-card {
    width: min(44%, 10.5rem);
    padding: 0.75rem 0.8rem;
  }

  .ch-cmp-card__title {
    font-size: 0.75rem;
  }

  .ch-cmp-card__desc {
    font-size: 0.625rem;
  }

  .ch-callout__text {
    font-size: 0.625rem;
    max-width: 8.5rem;
  }
}

@media (min-width: 1024px) {
  .ch-canvas {
    width: min(100%, 36rem);
    min-height: 30rem;
  }

  .compare-page--shopify .ch-hero__grid,
  .compare-page--freshdesk .ch-hero__grid {
    align-items: stretch;
  }

  .compare-page--shopify .ch-hero__copy,
  .compare-page--freshdesk .ch-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ch-store__hero {
    min-height: 10rem;
  }

  .ch-store__hero-img {
    min-height: 10rem;
  }

  .compare-page--shopify .ch-store__hero,
  .compare-page--shopify .ch-store__hero-img {
    min-height: 5.25rem;
  }

  .compare-page--shopify .ch-store__product img {
    max-height: 5rem;
  }

  .ch-store__hero-title {
    font-size: 0.9375rem;
    max-width: 10rem;
  }

  .ch-canvas__stage {
    padding-right: 5.5rem;
  }

  .ch-canvas__callouts {
    width: 5rem;
  }

  .ch-callout__text {
    max-width: 9.5rem;
  }
}

/* Cost section callouts */

.cmp-cost-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  padding: 0.875rem 1rem;
  text-align: left;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--btn-r);
}

.cmp-legend + .cmp-cost-callout {
  margin-bottom: 1.5rem;
}

.cmp-cost-callout__icon {
  flex-shrink: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.cmp-cost-callout__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #78350f;
}

.cmp-cost-callout__text strong {
  font-weight: 600;
  color: #92400e;
}

.cmp-cost-footnote {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
}

/* Responsive */

@media (max-width: 1023px) {
  .ch-canvas__stage {
    padding-right: 0;
  }

  .ch-canvas__callouts {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
  }

  .ch-callout {
    flex-direction: column;
    text-align: center;
    width: calc(33% - 0.5rem);
    min-width: 5.5rem;
  }

  .ch-callout__line {
    display: none;
  }

  .ch-callout__text {
    position: static;
    max-width: none;
    width: auto;
  }
}

@media (max-width: 767px) {
  .ch-hero,
  .compare-page--shopify .ch-hero.compare-page-hero {
    text-align: center;
  }

  .ch-hero__crumb {
    justify-content: center;
  }

  .ch-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
  }

  .ch-hero__eyebrow {
    align-self: center;
  }

  .ch-hero__title,
  .compare-page-hero.ch-hero .ch-hero__title {
    font-size: 2rem;
  }

  .ch-hero__lead {
    text-align: center;
  }

  .ch-hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
  }

  .ch-hero__btn {
    width: 100%;
  }

  .ch-canvas__compare {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .ch-cmp-card {
    width: calc(50% - 2rem);
  }

  .ch-canvas__arrow {
    order: 3;
    width: 100%;
    transform: rotate(90deg);
  }

  .ch-callout {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-hero__eyebrow,
  .ch-hero__title,
  .ch-hero__lead,
  .ch-hero__actions,
  .ch-cmp-card,
  .ch-canvas__arrow,
  .ch-canvas__arrow-path,
  .ch-canvas__arrow-head,
  .ch-store,
  .ch-callout {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ch-canvas__rings {
    transform: translate(-50%, -50%) !important;
  }
}

/* —— Pain points section —— */

.cmp-pain-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.cmp-pain-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cmp-pain-section__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(48rem, 90%);
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(64, 80, 208, 0.07) 0%, transparent 68%);
  filter: blur(12px);
}

.cmp-pain-section__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 75%);
}

.cmp-pain-section__inner {
  position: relative;
  z-index: 1;
}

.compare-page--shopify .cmp-pain-section .section-intro {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.compare-page--shopify .cmp-pain-grid {
  gap: 1.25rem;
}

.compare-page--shopify .cmp-pain-card {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  background: linear-gradient(165deg, #fff 0%, #f8fbff 100%);
  border: 1px solid rgba(64, 80, 208, 0.1);
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 28px rgba(64, 80, 208, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.cmp-pain-section.is-visible .cmp-pain-card {
  animation: cmpPainCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--pain-i, 0) * 0.07s);
}

@keyframes cmpPainCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-page--shopify .cmp-pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 80, 208, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.compare-page--shopify .cmp-pain-card:hover {
  border-color: rgba(64, 80, 208, 0.22);
  box-shadow:
    0 0 0 1px rgba(64, 80, 208, 0.06),
    0 12px 36px rgba(64, 80, 208, 0.1);
  transform: translateY(-4px);
}

.compare-page--shopify .cmp-pain-card:hover::before {
  opacity: 1;
}

.compare-page--shopify .cmp-pain-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.625rem;
  background: rgba(64, 80, 208, 0.08);
  border: none;
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.compare-page--shopify .cmp-pain-card:hover .cmp-pain-icon {
  background: rgba(64, 80, 208, 0.12);
  transform: scale(1.05);
}

.compare-page--shopify .cmp-pain-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.compare-page--shopify .cmp-pain-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .compare-page--shopify .cmp-pain-card {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .compare-page--shopify .cmp-pain-card:hover {
    transform: none;
  }

  .compare-page--shopify .cmp-pain-card:hover .cmp-pain-icon {
    transform: none;
  }
}

/* Freshdesk compare — support inbox hero */

.ch-inbox {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.ch-hero.is-ready .ch-inbox {
  animation: chStoreIn 0.55s ease-out 0.95s forwards, chFloatSlow 6s ease-in-out 1.6s infinite;
}

.ch-inbox__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafafa;
}

.ch-inbox__brand {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ch-ink);
}

.ch-inbox__count {
  margin-left: auto;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ch-inbox__ai {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(64, 80, 208, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ch-inbox__layout {
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 11.5rem;
}

.ch-inbox__list {
  padding: 0.45rem;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  background: #fcfcfd;
}

.ch-inbox__ticket {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.ch-inbox__ticket strong {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--ch-ink);
  line-height: 1.3;
}

.ch-inbox__ticket span {
  font-size: 0.5rem;
  color: #94a3b8;
}

.ch-inbox__ticket.is-active {
  background: rgba(64, 80, 208, 0.08);
  border: 1px solid rgba(64, 80, 208, 0.12);
}

.ch-inbox__thread {
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ch-inbox__order {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(64, 80, 208, 0.06), rgba(64, 80, 208, 0.02));
  border: 1px solid rgba(64, 80, 208, 0.1);
}

.ch-inbox__order-label {
  font-size: 0.5rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ch-inbox__order strong {
  font-size: 0.625rem;
  color: var(--ch-ink);
}

.ch-inbox__order span:last-child {
  font-size: 0.5rem;
  color: #64748b;
}

.ch-inbox__bubble {
  max-width: 88%;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-size: 0.5625rem;
  line-height: 1.45;
}

.ch-inbox__bubble--customer {
  align-self: flex-start;
  background: #f1f5f9;
  color: #334155;
}

.ch-inbox__bubble--agent {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

@media (max-width: 767px) {
  .ch-inbox__layout {
    grid-template-columns: 1fr;
  }

  .ch-inbox__list {
    display: none;
  }
}

/* Pain section — Freshdesk page uses same styles as Shopify */

.compare-page--freshdesk .cmp-pain-section .section-intro {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.compare-page--freshdesk .cmp-pain-grid {
  gap: 1.25rem;
}

.compare-page--freshdesk .cmp-pain-card {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  background: linear-gradient(165deg, #fff 0%, #f8fbff 100%);
  border: 1px solid rgba(64, 80, 208, 0.1);
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 28px rgba(64, 80, 208, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.compare-page--freshdesk .cmp-pain-section.is-visible .cmp-pain-card {
  animation: cmpPainCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--pain-i, 0) * 0.07s);
}

.compare-page--freshdesk .cmp-pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 80, 208, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.compare-page--freshdesk .cmp-pain-card:hover {
  border-color: rgba(64, 80, 208, 0.22);
  box-shadow:
    0 0 0 1px rgba(64, 80, 208, 0.06),
    0 12px 36px rgba(64, 80, 208, 0.1);
  transform: translateY(-4px);
}

.compare-page--freshdesk .cmp-pain-card:hover::before {
  opacity: 1;
}

.compare-page--freshdesk .cmp-pain-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.625rem;
  background: rgba(64, 80, 208, 0.08);
  border: none;
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.compare-page--freshdesk .cmp-pain-card:hover .cmp-pain-icon {
  background: rgba(64, 80, 208, 0.12);
  transform: scale(1.05);
}

.compare-page--freshdesk .cmp-pain-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.compare-page--freshdesk .cmp-pain-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .compare-page--freshdesk .cmp-pain-card {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .compare-page--freshdesk .cmp-pain-card:hover {
    transform: none;
  }

  .compare-page--freshdesk .cmp-pain-card:hover .cmp-pain-icon {
    transform: none;
  }

  .ch-hero.is-ready .ch-inbox {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
