/* CMS Comparison Page Components */

:root {
  --cc-green: #00CA6E;
  --cc-gray: #EFF1F2;
  --cc-row-border: #F1F1F1;
  --cc-muted: rgba(0, 0, 0, 0.55);
}

/* Landing page typography */
.cms-landing-body h1 { font-size: 75px; font-weight: 500; line-height: 65px; }
.cms-landing-body h2 { font-size: 48px; font-weight: 500; line-height: 1.15; }
.cms-landing-body h3 { font-size: 26px; font-weight: 600; line-height: 1.3; }
.cms-landing-body p { font-size: 16px; line-height: 1.75; }
@media (max-width: 991px) {
  .cms-landing-body h1 { font-size: 52px; line-height: 56px; }
  .cms-landing-body h2 { font-size: 36px; }
  .cms-landing-body h3 { font-size: 22px; }
}
@media (max-width: 575px) {
  .cms-landing-body h1 { font-size: 38px; line-height: 42px; }
  .cms-landing-body h2 { font-size: 30px; }
}

/* Hero override for landing pages */
.cms-landing-body .cms-hero {
  text-align: left; background: #fff; padding: 5rem 0 4.5rem;
}
.cms-landing-body .cms-hero h1 {
  font-size: 75px; font-weight: 500; line-height: 65px; margin-bottom: 1.5rem;
}
.cms-landing-body .cms-hero h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #000; margin-bottom: 1rem; line-height: 1.5;
}
.cms-landing-body .cms-hero p { margin: 0 0 1rem; }
.cms-landing-body .cms-hero p:first-of-type {
  font-size: 19px; font-weight: 500; line-height: 1.5; color: #000;
}
.cms-landing-body .cms-hero p:last-of-type {
  font-size: 12px; color: rgba(0,0,0,0.38); margin-top: 0.5rem;
}
@media (max-width: 991px) {
  .cms-landing-body .cms-hero h1 { font-size: 52px; line-height: 56px; }
}
@media (max-width: 575px) {
  .cms-landing-body .cms-hero h1 { font-size: 38px; line-height: 42px; }
}

/* Section labels */
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
}

/* Section subtitle (shared across blocks) */
.section-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.62);
  margin-bottom: 1.75rem;
}

/* Buttons */
.btn-cc-red {
  background-color: var(--brand-red, #E20000);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  padding: 11px 28px;
  border: none;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  transition: opacity 0.15s ease;
}
.btn-cc-red:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

.btn-cc-gray {
  background-color: #6c757d;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  padding: 11px 28px;
  border: none;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  transition: opacity 0.15s ease;
}
.btn-cc-gray:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

/* ---- Criteria cards (:::grid style=criteria) ---- */
.cms-criteria-section {
  background: var(--cc-gray);
  padding: 5rem 0;
}

.criteria-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
}

.criteria-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.criteria-card p {
  color: rgba(0, 0, 0, 0.72);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 0;
}

.criteria-icon {
  background: var(--cc-gray);
  border-radius: 8px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.criteria-icon img {
  max-width: 40px;
  max-height: 40px;
}

/* ---- Comparison table (:::comptable) ---- */
.cms-comptable {
  background: #fff;
  padding: 5rem 0;
}

.comptable-disclaimer {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.cc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #FEFEFE;
}

.cc-table thead tr th {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid #ddd;
}

.th-feature {
  background: #fff;
  color: #000;
  font-weight: 700;
  min-width: 200px;
}

.th-coldcard {
  background-color: var(--cc-green);
  color: #000;
  text-align: center;
}

.th-competitor {
  background-color: #f0f0f0;
  color: #000;
  text-align: center;
}

.cc-table tbody tr td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--cc-row-border);
  vertical-align: middle;
}

.cc-table tbody tr td:not(:first-child) {
  text-align: center;
}

.cc-table .row-group td {
  background-color: #f5f5f5;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 16px;
  color: #444;
}

.check-icon {
  color: #198754;
  font-weight: 700;
  font-size: 1.1em;
}

.cross-icon {
  color: var(--brand-red, #E20000);
  font-weight: 700;
  font-size: 1.1em;
}

.partial-icon {
  color: #D97706;
  font-weight: 700;
  font-size: 1.1em;
}

.table-value-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.table-value-text {
  display: inline;
}

/* Sticky first column */
.cc-table th:first-child,
.cc-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.cc-table thead th:first-child {
  background: #fff;
  z-index: 3;
}

.cc-table .row-group td:first-child {
  background: #f5f5f5;
}

.cc-table .feature-info-row td {
  position: static;
  background: #f9fafb;
}

/* Feature accordion toggle */
.feature-cell {
  display: flex;
  align-items: center;
  gap: 0;
}

.feature-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 7px 0 0;
  color: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.feature-toggle:hover {
  color: rgba(0, 0, 0, 0.65);
}

.feature-toggle svg {
  transition: transform 0.2s ease;
}

.feature-toggle.active {
  color: var(--brand-red, #E20000);
}

.feature-toggle.active svg {
  transform: rotate(180deg);
}

/* Feature info row */
.feature-info-row td {
  background: #f9fafb;
  padding: 9px 16px 11px 36px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.65;
  border-bottom: 1px solid var(--cc-row-border);
  font-style: italic;
}

/* Scroll wrapper with right-fade hint */
.table-scroll-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
  border-radius: 0 4px 4px 0;
}

.table-scroll-wrap.scrolled-end::after {
  display: none;
}

/* Mobile swipe label */
.table-swipe-hint {
  display: none;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  text-align: right;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .table-swipe-hint {
    display: block;
  }
}


/* ---- Callout cards (:::callout) ---- */
.cms-callout-section {
  background: var(--cc-gray);
  padding: 5rem 0;
}

.cms-callout-section h2 {
  margin-bottom: 1.75rem;
}

.callout-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
}

.callout-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.callout-card p {
  color: rgba(0, 0, 0, 0.72);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ---- Editorial note variant (:::callout style=note) ---- */
.cms-callout-section.cms-callout-note { background: #fff; padding: 4.5rem 0; }
.cms-callout-section.cms-callout-note .callout-card {
  max-width: none;
  background: transparent;
  border-radius: 0;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 4px solid var(--brand-red, #E20000);
}
.cms-callout-section.cms-callout-note .callout-card h3 {
  font-size: 26px;
  margin-bottom: 1rem;
}
.cms-callout-section.cms-callout-note .callout-card p {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.cms-callout-section.cms-callout-note .callout-card p:last-child {
  margin-bottom: 0;
}

/* ---- Honest list / checklist (:::checklist) ---- */
.cms-checklist {
  background: #fff;
  padding: 5rem 0;
}

.cms-checklist h2 {
  margin-bottom: 1rem;
}

.cms-checklist .checklist-intro {
  color: rgba(0, 0, 0, 0.62);
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.honest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honest-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--cc-row-border);
  font-size: 15.5px;
  line-height: 1.65;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.honest-list li:last-child {
  border-bottom: none;
}

.honest-list li div {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.72);
}

.honest-list li strong {
  font-weight: 700;
  color: #000;
}

.honest-check {
  color: #198754;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 15px;
}

/* ---- Dark foundation variant (:::checklist style=dark) ---- */
.cms-checklist.cms-checklist-dark { background: #0A0A0A; color: #fff; }
.cms-checklist.cms-checklist-dark .section-label { color: #fff; }
.cms-checklist.cms-checklist-dark h2 {
  color: #fff;
  text-align: left;
  max-width: none;
  margin: 0 0 1.5rem;
}
.cms-checklist.cms-checklist-dark .honest-list {
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1.5rem;
}
.cms-checklist.cms-checklist-dark .honest-list li {
  color: rgba(255,255,255,0.72);
  border-bottom: none;
  padding: 0;
  flex: 0 0 auto;
  max-width: 100%;
}
.cms-checklist.cms-checklist-dark .honest-list li div { color: rgba(255,255,255,0.72); }
.cms-checklist.cms-checklist-dark .honest-list li strong { color: #fff; }
.cms-checklist.cms-checklist-dark .checklist-intro {
  color: rgba(255,255,255,0.72);
  max-width: none;
  margin: 0 0 2rem;
  text-align: left;
}
.cms-checklist.cms-checklist-dark .honest-check { color: var(--cc-green); }
@media (max-width: 767px) {
  .cms-checklist.cms-checklist-dark .honest-list { gap: 0.75rem 1rem; }
}

/* ---- Verdict cards (:::verdict) ---- */
.cms-verdict-section {
  background: var(--cc-gray);
  padding: 5rem 0;
}

.cms-verdict-section > .container > h2,
.cms-verdict-section > .container > .section-subtitle {
  max-width: 66%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.cms-verdict-section > .container > h2 { margin-bottom: 1rem; }
.cms-verdict-section > .container > .section-subtitle { margin-bottom: 1.75rem; }

.verdict-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.verdict-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cc-row-border);
}

.verdict-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.verdict-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cc-row-border);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.verdict-list li:last-child {
  border-bottom: none;
}

.verdict-arrow {
  color: var(--brand-red, #E20000);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.verdict-arrow-gray {
  color: #6c757d;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Cross-compare links (:::crosslinks) ---- */
.cross-compare {
  background: var(--cc-gray);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 auto;
  max-width: 66%;
  text-align: center;
}

.cms-crosslinks {
  padding: 2rem 0 0;
}

.cross-compare a {
  color: var(--brand-red, #E20000);
  text-decoration: none;
  font-weight: 500;
}

.cross-compare a:hover {
  text-decoration: underline;
}

/* ---- Desktop: constrain headings and text to left ~66% column ---- */
@media (min-width: 992px) {
  .cms-landing-body .cms-hero h1,
  .cms-landing-body .cms-hero p,
  .section-subtitle,
  .cms-criteria-section > .container > h2,
  .cms-criteria-section > .container > p,
  .cms-comptable > .container > h2,
  .cms-callout-section h2,
  .cms-checklist h2,
  .cms-checklist .checklist-intro,
  .cms-checklist .honest-list,
  .cms-verdict-section > .container > h2 { max-width: 66%; }
}
