/* ============================================
   Churn Solution — comparison pages
   Shared design tokens, global styles and every section a comparison page
   renders. A page's own <slug>-styles.css, if it has one, loads after this
   file and holds only what that page overrides.
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Brand — Churn Solution navy */
  --violet-50: #eff0f8;
  --violet-100: #e3e5f1;
  --violet-200: #c2c6df;
  --violet-300: #8c92be;
  --violet-600: #1a2061;
  --violet-700: #131851;
  --violet-800: #0f124d;
  --violet-900: #0b0e3d;

  /* Gold accent */
  --gold-100: #fef6db;
  --gold-200: #fdeaa3;
  --gold-400: #eebd23;
  --gold-500: #d9a40c;

  /* Neutrals — warm slate */
  --ink-900: #15131f;
  --ink-600: #4a4459;
  --ink-400: #948ca0;
  --ink-300: #c2bccc;
  --ink-200: #e4e0eb;
  --ink-100: #f4f2f8;
  --ink-50: #faf9fc;
  --paper: #ffffff;

  /* Accent gradient stops */
  --grad-b: #0f124d;
  --grad-c: #1a2061;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15, 12, 30, 0.04), 0 1px 1px rgba(15, 12, 30, 0.03);
  --sh-md: 0 4px 14px -4px rgba(15, 18, 77, 0.1),
    0 2px 6px -2px rgba(15, 12, 30, 0.04);
  --sh-lg: 0 24px 48px -16px rgba(15, 18, 77, 0.22),
    0 8px 16px -8px rgba(15, 12, 30, 0.06);

  /* Layout */
  --container: 1200px;
  --gutter: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--gold-200);
  color: var(--violet-900);
}

.chr-main-section-wrapper {
  --wp--custom--ast-default-block-top-padding: 0;
  --wp--custom--ast-default-block-bottom-padding: 32px;
  --wp--custom--ast-default-block-left-padding: 0;
  --wp--custom--ast-default-block-right-padding: 0;
  background: var(--ink-50);
}

.chr-main-section-wrapper > * {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto !important;
}

#root * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#root .comparison {
  background: var(--ink-50);
}

#root .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

#root section {
  padding: 0 0 72px;
  position: relative;
}

#root h1,
#root h2,
#root h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--violet-800);
}
#root h1 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.1;
}
#root h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
#root h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 600;
}

#root .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

/* Buttons */
#root .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms,
    background 200ms, color 200ms, border-color 200ms;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
#root .btn:active {
  transform: translateY(1px);
}

#root .btn-primary {
  background: var(--gold-400);
  color: white;
  box-shadow: 0 12px 28px -12px rgba(238, 189, 35, 0.8);
}
#root .btn-primary:hover {
  background: var(--gold-500);
}

#root .btn-secondary {
  background: var(--paper);
  color: var(--gold-400);
  border-color: var(--gold-400);
}
#root .btn-secondary:hover {
  background: var(--gold-100);
}

#root .btn-white {
  background: var(--paper);
  color: var(--gold-400);
}

/* ============================================
   HERO
   ============================================ */
#root .hero {
  margin-top: 72px;
  padding: 72px 0 48px;
}

#root .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
#root .hero h1 {
  max-width: 900px;
  text-wrap: balance;
}

#root .hero p.lead {
  max-width: 820px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-600);
  text-wrap: pretty;
}
#root .hero p.lead strong {
  color: var(--violet-800);
  font-weight: 600;
}

#root .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

#root .versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: 100%;
  margin-top: 28px;
}
#root .versus-tile {
  flex: 0 1 330px;
  aspect-ratio: 330 / 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 40px);
  border-radius: var(--r-lg);
  border: 2px solid var(--ink-200);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(15, 18, 77, 0.06);
}
#root .versus-tile.is-ours {
  border-color: transparent;
  background: linear-gradient(135deg, var(--grad-b) 0%, var(--grad-c) 100%);
}
#root .versus-tile img {
  display: block;
  width: 100%;
  max-width: 210px;
  max-height: 40px;
  object-fit: contain;
}
#root .versus-badge {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--ink-200);
  background: var(--paper);
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-800);
}

/* ============================================
   OVERVIEW
   ============================================ */
#root .overview {
  padding-top: 24px;
}
#root .overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
#root .overview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink-900);
}
#root .overview-card.is-ours {
  border-color: transparent;
  background: linear-gradient(135deg, var(--grad-b) 0%, var(--grad-c) 100%);
  color: var(--paper);
  box-shadow: var(--sh-lg);
}
#root .overview-card > img {
  display: block;
  height: 34px;
  width: auto;
  align-self: flex-start;
}
#root .overview-card > p {
  font-size: 18px;
  color: var(--ink-600);
  text-wrap: pretty;
}
#root .overview-card.is-ours > p {
  color: var(--violet-200);
}
#root .overview-card dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-200);
  font-size: 16px;
}
#root .overview-card.is-ours dl {
  border-top-color: rgba(255, 255, 255, 0.14);
}
#root .overview-card dl > div {
  display: flex;
  gap: 10px;
}
#root .overview-card dt {
  flex-shrink: 0;
  min-width: 110px;
  font-weight: 700;
  color: var(--violet-800);
}
#root .overview-card.is-ours dt {
  color: var(--gold-400);
}

/* ============================================
   WHY CHOOSE CHURN SOLUTION
   ============================================ */
#root .reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
#root .reason-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}
#root .reason-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-500);
}
#root .reason-card h3 {
  font-size: clamp(19px, 1.8vw, 22px);
}
#root .reason-card p {
  font-size: 16.5px;
  color: var(--ink-600);
  text-wrap: pretty;
}

/* ============================================
   WHY CHOOSE THE COMPETITOR
   ============================================ */
#root .strengths-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px;
  border-radius: var(--r-xl);
  background: var(--violet-50);
}
#root .strengths-panel > p {
  max-width: 900px;
  font-size: 17px;
  color: var(--ink-600);
}
#root .strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#root .strength-card {
  padding: 24px 28px;
  border: 1px solid var(--violet-100);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  font-size: 16.5px;
  color: var(--ink-600);
  text-wrap: pretty;
}
#root .strength-card strong {
  font-weight: 700;
  color: var(--violet-800);
}

/* ============================================
   FEATURE TABLE
   ============================================ */
#root .features {
  margin-top: -120px;
  padding-top: 120px;
}
#root .features-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
#root .features-head > p {
  font-size: 17px;
  color: var(--ink-600);
}
#root .legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-600);
}
#root .legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
#root .legend .mark {
  width: 16px;
}

#root .table-card {
  overflow: hidden;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}
#root .feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
#root .feature-table th,
#root .feature-table td {
  padding: 12px 28px;
  text-align: left;
  vertical-align: middle;
}
#root .feature-table thead th {
  padding: 18px 28px;
  background: var(--violet-800);
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}
#root .feature-table thead th:first-child {
  width: 42%;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-200);
}
#root .feature-table thead th:nth-child(2) {
  width: 29%;
  color: var(--gold-400);
}
#root .feature-table tbody tr {
  border-top: 1px solid var(--ink-100);
}
#root .feature-table tbody tr:nth-child(even) {
  background: var(--ink-50);
}
#root .feature-table .group-row {
  border-top: 0;
}
#root .feature-table .group-row th {
  padding: 22px 28px 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--violet-800);
}
#root .feature-table tbody:first-of-type .group-row th {
  padding-top: 14px;
}
#root .feature-table tbody th[scope="row"] {
  font-weight: 400;
  color: var(--ink-900);
}
#root .feature-table td {
  color: var(--ink-900);
}
#root .feature-table td.is-strong {
  font-weight: 600;
}
#root .cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
#root .cell-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-400);
}

#root .mark {
  flex-shrink: 0;
  display: block;
}

/* ============================================
   PRICING
   ============================================ */
#root .pricing-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 48px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--grad-b) 0%, var(--grad-c) 100%);
  box-shadow: var(--sh-lg);
}
#root .pricing-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 940px;
}
#root .pricing-head h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  color: var(--paper);
}
#root .pricing-head p {
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--violet-200);
}
#root .pricing-head .pricing-lead {
  font-weight: 600;
  color: var(--paper);
}
#root .pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
#root .price-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
}
#root .price-option.is-featured {
  border-color: var(--gold-400);
}
#root .price-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-200);
}
#root .price-option.is-featured .price-label {
  color: var(--gold-400);
}
#root .price-option h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--paper);
}
#root .price-option p {
  color: var(--violet-200);
  text-wrap: pretty;
}
#root .pricing-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
  color: var(--violet-800);
}
#root .pricing-guarantee svg {
  flex-shrink: 0;
}

/* ============================================
   WHEN TO CHOOSE
   ============================================ */
#root .choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
#root .choose-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--paper);
}
#root .choose-card.is-ours {
  border: 2px solid var(--violet-300);
}
#root .choose-card h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}
#root .choose-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  color: var(--ink-600);
}
#root .choose-card li::marker {
  color: var(--violet-800);
}

/* ============================================
   FAQ
   ============================================ */
#root .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
#root .faq-item {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition: border-color 180ms, box-shadow 180ms;
}
#root .faq-item.is-open {
  border-color: var(--violet-300);
  box-shadow: var(--sh-md);
}
#root .faq-item h3 {
  font-size: 17px;
}
#root .faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border: 0;
  background: transparent;
  color: var(--violet-800);
  font: inherit;
  text-align: left;
}
#root .faq-item button:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: var(--r-md);
}
#root .faq-item button svg {
  flex-shrink: 0;
  color: var(--violet-800);
  transition: transform 220ms ease;
}
#root .faq-item.is-open button svg {
  transform: rotate(180deg);
}
#root .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 240ms ease, visibility 240ms;
}
#root .faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
}
#root .faq-a > div {
  overflow: hidden;
}
#root .faq-a p {
  padding: 0 26px 22px;
  font-size: 15.5px;
  color: var(--ink-600);
  text-wrap: pretty;
}

/* ============================================
   GUARANTEE
   ============================================ */
#root .guarantee-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
  border-radius: 24px;
  background: linear-gradient(270deg, #f9e7b0 0%, #f1ca4f 50%, #eebd23 100%);
  color: var(--paper);
}
#root .guarantee-card img {
  width: 131px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
#root .guarantee-copy {
  flex: 1 1 0;
}
#root .guarantee-copy h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--paper);
}
#root .guarantee-copy p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
#root .guarantee-copy a {
  color: inherit !important;
  text-decoration: none;
  white-space: nowrap;
}
#root :is(.guarantee-copy a:hover, .btn-white:hover) {
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  #root .overview-grid,
  #root .reason-grid,
  #root .strength-grid,
  #root .pricing-grid,
  #root .choose-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #root .overview-grid,
  #root .choose-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #root section {
    padding-bottom: 56px;
  }
  #root .hero {
    padding-top: 56px;
  }
  #root .versus {
    gap: 14px;
  }
  #root .versus-badge {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }
  #root .versus-tile img {
    max-height: 28px;
  }
  #root .overview-card,
  #root .reason-card,
  #root .choose-card {
    padding: 28px 22px;
  }
  #root .strengths-panel,
  #root .pricing-panel {
    padding: 32px 22px;
  }

  /* The table becomes one card per feature: the feature on top, each
     product's cell below it under its own label. */
  #root .feature-table,
  #root .feature-table tbody,
  #root .feature-table tr,
  #root .feature-table th,
  #root .feature-table td {
    display: block;
  }
  #root .feature-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #root .feature-table tbody tr:not(.group-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding: 14px 20px;
  }
  #root .feature-table tbody th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0;
    font-weight: 600;
    color: var(--violet-800);
  }
  #root .feature-table td {
    padding: 0;
    font-size: 15px;
  }
  #root .feature-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-400);
  }
  #root .feature-table .group-row th,
  #root .feature-table tbody:first-of-type .group-row th {
    padding: 14px 20px;
    background: var(--violet-800);
    color: var(--paper);
  }

  #root .guarantee-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(0deg, #f9e7b0 0%, #f1ca4f 50%, #eebd23 100%);
  }
  #root .guarantee-copy h3 {
    font-size: 20px;
  }
  #root .guarantee-copy p {
    font-size: 16px;
  }
  #root .guarantee-card .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  #root :is(.hero-cta, .btn) {
    width: 100%;
  }
  #root .btn {
    white-space: normal;
  }
  #root .overview-card dl > div {
    flex-direction: column;
    gap: 2px;
  }
  #root .pricing-guarantee {
    align-items: flex-start;
  }
  #root .faq-item button {
    padding: 18px 20px;
  }
  #root .faq-a p {
    padding: 0 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root .faq-a,
  #root .faq-item button svg {
    transition: none;
  }
}
