/* ═══════════════════════════════════════════════
   Chancery Treatment Comparison v2
   3-column layout: Feature | Treatment A | Treatment B
   Berry Crimson #A62461 / Teal Mint #7ABFB8
   Raleway / Open Sans
   ═══════════════════════════════════════════════ */

.cdc {
  --berry: #A62461;
  --berry-dark: #8a1e51;
  --berry-10: rgba(166,36,97,0.07);
  --berry-05: rgba(166,36,97,0.03);
  --teal: #7ABFB8;
  --teal-dark: #5fa9a1;
  --teal-10: rgba(122,191,184,0.08);
  --white: #ffffff;
  --text: #2a2a2f;
  --text-2: #6e6e7a;
  --text-3: #a0a0ac;
  --border: #e8e5e0;
  --border-light: #f0eeea;
  --green: #3a9e6e;
  --green-bg: rgba(58,158,110,0.09);
  --amber: #c48a22;
  --amber-bg: rgba(196,138,34,0.09);
  --red: #b74e4e;
  --red-bg: rgba(183,78,78,0.07);
  --shadow: 0 8px 40px rgba(42,42,47,0.08);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  max-width: 880px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
}

/* ── HEADER ── */
.cdc-header { text-align: center; margin-bottom: 36px; }

.cdc-header__label {
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 12px; display: block;
}
.cdc-header__title {
  font-family: 'Raleway', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2;
  color: var(--text); margin-bottom: 10px;
}
.cdc-header__sub {
  font-size: .9rem; line-height: 1.55; color: var(--text-2);
  max-width: 440px; margin: 0 auto;
}

/* ── CARD ── */
.cdc-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* ── COLUMN HEADS — 3-col ── */
.cdc-colheads {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--border);
}

.cdc-colheads__spacer {
  border-right: 1px solid var(--border);
  background: var(--white);
}

.cdc-colhead {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 22px; gap: 14px;
}
.cdc-colhead--a {
  background: var(--berry-05);
  border-right: 1px solid var(--border);
}
.cdc-colhead--b {
  background: var(--teal-10);
}

.cdc-colhead__img {
  width: 100px; height: 100px; border-radius: 14px;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #e8e5e0, #d8d4cf);
}
.cdc-colhead--a .cdc-colhead__img {
  border: 2.5px solid var(--berry);
  box-shadow: 0 4px 16px rgba(166,36,97,0.12);
}
.cdc-colhead--b .cdc-colhead__img {
  border: 2.5px solid var(--teal);
  box-shadow: 0 4px 16px rgba(122,191,184,0.15);
}
.cdc-colhead__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cdc-colhead__name {
  font-family: 'Raleway', sans-serif; font-weight: 700;
  font-size: .95rem; color: var(--text); text-align: center;
}

/* ── TABLE ── */
.cdc-table { border-top: 1px solid var(--border); }

.cdc-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--border-light);
  transition: background .2s var(--ease);
}
.cdc-row:last-child { border-bottom: none; }
.cdc-row:hover { background: var(--berry-05); }

.cdc-feature {
  padding: 18px 20px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Raleway', sans-serif; font-weight: 600;
  font-size: .82rem; color: var(--text);
  border-right: 1px solid var(--border-light);
}

.cdc-feature__icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--berry-10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cdc-feature__icon svg {
  width: 13px; height: 13px; stroke: var(--berry);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.cdc-cell {
  padding: 18px 16px;
  display: flex; align-items: center; justify-content: center;
}
.cdc-cell--a { border-right: 1px solid var(--border-light); }

/* Chips */
.cdc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 100px;
  font-weight: 500; font-size: .78rem; white-space: nowrap;
}
.cdc-chip--great { background: var(--green-bg); color: var(--green); }
.cdc-chip--good  { background: var(--amber-bg); color: var(--amber); }
.cdc-chip--ok    { background: var(--red-bg);   color: var(--red); }

.cdc-chip__dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.cdc-chip--great .cdc-chip__dot { background: var(--green); }
.cdc-chip--good  .cdc-chip__dot { background: var(--amber); }
.cdc-chip--ok    .cdc-chip__dot { background: var(--red); }

/* Badge tick/cross */
.cdc-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cdc-badge--yes { background: var(--green-bg); }
.cdc-badge--no  { background: var(--red-bg); }
.cdc-badge svg {
  width: 12px; height: 12px; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.cdc-badge--yes svg { stroke: var(--green); }
.cdc-badge--no  svg { stroke: var(--red); }

/* ── FOOTER ── */
.cdc-footer {
  padding: 26px 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--berry-05) 0%, var(--teal-10) 100%);
  border-top: 1px solid var(--border-light);
}

.cdc-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 26px; border-radius: 100px;
  font-family: 'Raleway', sans-serif; font-weight: 600; font-size: .84rem;
  text-decoration: none; transition: all .3s var(--ease);
  cursor: pointer; border: none;
}
.cdc-cta--primary {
  background: var(--berry); color: #fff;
  box-shadow: 0 4px 14px rgba(166,36,97,0.2);
}
.cdc-cta--primary:hover {
  background: var(--berry-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166,36,97,0.28);
}
.cdc-cta--secondary {
  background: transparent; color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}
.cdc-cta--secondary:hover {
  background: var(--teal-10); transform: translateY(-2px);
}
.cdc-cta svg {
  width: 14px; height: 14px; stroke: currentColor;
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── TABLET ── */
@media (max-width: 768px) {
  .cdc-colheads,
  .cdc-row {
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .cdc-colhead { padding: 22px 10px 18px; gap: 10px; }
  .cdc-colhead__img { width: 80px; height: 80px; border-radius: 12px; }
  .cdc-colhead__name { font-size: .85rem; }
  .cdc-feature { padding: 14px 14px; font-size: .78rem; gap: 8px; }
  .cdc-feature__icon { width: 22px; height: 22px; border-radius: 6px; }
  .cdc-feature__icon svg { width: 11px; height: 11px; }
  .cdc-cell { padding: 14px 10px; }
  .cdc-chip { font-size: .72rem; padding: 4px 10px; }
}

/* ── MOBILE ── */
@media (max-width: 580px) {
  .cdc-header { margin-bottom: 24px; }
  .cdc-header__sub { font-size: .85rem; }

  .cdc-colheads { grid-template-columns: 1fr 1fr; }
  .cdc-colheads__spacer { display: none; }
  .cdc-colhead { padding: 20px 10px 16px; gap: 10px; }
  .cdc-colhead__img { width: 72px; height: 72px; border-radius: 11px; }
  .cdc-colhead__name { font-size: .82rem; }

  .cdc-row { grid-template-columns: 1fr 1fr; }
  .cdc-feature {
    grid-column: 1 / -1;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    background: var(--berry-05);
    justify-content: center;
    text-align: center;
  }
  .cdc-cell { padding: 12px 12px; }
  .cdc-cell--a { border-right: 1px solid var(--border-light); }
  .cdc-chip { font-size: .72rem; padding: 4px 10px; }

  .cdc-footer { flex-direction: column; gap: 10px; padding: 20px 14px; align-items: stretch; }
  .cdc-cta { justify-content: center; font-size: .8rem; padding: 11px 20px; }
}

@media (max-width: 400px) {
  .cdc-colhead { padding: 16px 6px 12px; gap: 8px; }
  .cdc-colhead__img { width: 60px; height: 60px; border-radius: 10px; border-width: 2px; }
  .cdc-colhead__name { font-size: .76rem; }
  .cdc-feature { padding: 12px 12px 4px; font-size: .74rem; }
  .cdc-cell { padding: 3px 8px 14px; }
  .cdc-chip { font-size: .67rem; padding: 3px 8px; gap: 3px; }
  .cdc-chip__dot { width: 4px; height: 4px; }
  .cdc-badge { width: 20px; height: 20px; }
  .cdc-badge svg { width: 10px; height: 10px; }
  .cdc-card { border-radius: 12px; }
}
