.cm-page {
  --cm-navy: #142b49;
  --cm-green: #16866a;
  --cm-text: #334155;
  --cm-muted: #64748b;
  color: var(--cm-text);
  background: #fff;
  line-height: 1.8;
}

.cm-page *,
.cm-page *::before,
.cm-page *::after {
  box-sizing: border-box;
}

.cm-page h1,
.cm-page h2,
.cm-page h3,
.cm-page p {
  margin-top: 0;
}

.cm-page h1,
.cm-page h2,
.cm-page h3 {
  color: var(--cm-navy);
  line-height: 1.45;
}

.cm-eyebrow {
  margin-bottom: 12px;
  color: var(--cm-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}

.cm-hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #f1f8f6 0%, #fff 100%);
  text-align: center;
}

.cm-hero__inner {
  max-width: 1080px;
}

.cm-hero__title {
  margin: 16px 0 20px;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -.04em;
}

.cm-hero__description {
  max-width: 680px;
  margin: 0 auto;
  color: #526276;
  font-size: 16px;
}

.cm-hero__actions {
  margin: 30px 0 42px;
}

.cm-page .cm-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--cm-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 14px rgb(22 134 106 / 18%);
  transition: background .2s, transform .2s;
}

.cm-page .cm-download-button:hover {
  background: #106c55;
  transform: translateY(-2px);
}

.cm-note {
  margin: 10px 0 0;
  color: var(--cm-muted);
  font-size: 12px;
}

/* Spreadsheet preview */

.cm-preview {
  max-width: 850px;
  margin: 0 auto;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dce5e9;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 18px 50px rgb(20 43 73 / 8%);
}

.cm-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.cm-preview__icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 4px;
  background: #217346;
  color: #fff;
  font-size: 13px;
}

.cm-preview__label {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eaf5f1;
  color: var(--cm-green);
  font-size: 10px;
}

.cm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cm-summary__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f5f8fa;
}

.cm-summary__item span {
  color: var(--cm-muted);
  font-size: 12px;
}

.cm-summary__item strong {
  color: var(--cm-navy);
  font-size: clamp(16px, 2.5vw, 24px);
}

.cm-table-wrap {
  overflow-x: auto;
}

.cm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.cm-table th,
.cm-table td {
  padding: 12px;
  border-bottom: 1px solid #e8edf1;
  text-align: left;
}

.cm-table th {
  background: #f5f8fa;
  color: #536579;
}

.cm-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.cm-status--review {
  background: #fff1d8;
  color: #946200;
}

.cm-status--keep {
  background: #e4f6ec;
  color: #187449;
}

.cm-status--pending {
  background: #edf0f4;
  color: #58677a;
}

.cm-preview__footnote {
  margin: 12px 0 0;
  color: var(--cm-muted);
  font-size: 11px;
}

/* Common sections */

.cm-section {
  padding: 76px 0;
}

.cm-section__title {
  margin: 10px 0 34px;
  font-size: clamp(25px, 3vw, 34px);
  text-align: center;
}

.cm-section--muted {
  background: #f5f8fa;
}

/* Problem cards */

.cm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cm-card {
  padding: 24px;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  background: #fff;
}

.cm-card__number {
  color: var(--cm-green);
  font-size: 13px;
  font-weight: 800;
}

.cm-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.cm-card p {
  margin-bottom: 0;
  color: var(--cm-muted);
  font-size: 14px;
}

/* Feature list */

.cm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.cm-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cm-feature__check {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e1f4ec;
  color: var(--cm-green);
  font-weight: 800;
}

.cm-feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cm-feature p {
  margin-bottom: 0;
  color: var(--cm-muted);
  font-size: 14px;
}

/* Steps */

.cm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-step {
  padding: 22px;
  border-top: 3px solid var(--cm-green);
  background: #f8fafb;
}

.cm-step__number {
  color: var(--cm-green);
  font-size: 12px;
  font-weight: 800;
}

.cm-step h3 {
  margin: 10px 0;
  font-size: 17px;
}

.cm-step p {
  margin-bottom: 0;
  color: var(--cm-muted);
  font-size: 14px;
}

/* FAQ */

.cm-faq {
  max-width: 820px;
}

.cm-faq__item {
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid #dfe7ec;
  border-radius: 8px;
  background: #fff;
}

.cm-faq__item summary {
  color: var(--cm-navy);
  font-weight: 700;
  cursor: pointer;
}

.cm-faq__item p {
  margin: 14px 0 0;
  color: var(--cm-muted);
  font-size: 14px;
}

/* Final CTA */

.cm-final-cta {
  padding: 68px 0;
  background: var(--cm-navy);
  color: #fff;
  text-align: center;
}

.cm-final-cta h2 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
}

.cm-final-cta > .rd-container > p:not(.cm-eyebrow):not(.cm-note) {
  color: #d5dfeb;
}

.cm-page .cm-final-cta .cm-download-button {
  background: #24a47f;
}

.cm-page .cm-final-cta .cm-download-button:hover {
  background: #168866;
}

.cm-final-cta .cm-note {
  color: #d5dfeb;
}

.cm-product-link {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.cm-product-link p {
  margin-bottom: 8px;
  color: #d5dfeb;
  font-size: 14px;
}

.cm-product-link a {
  color: #a7efd8;
  font-weight: 700;
}

.cm-product-link .cm-comparison-link {
  color: #176534;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cm-product-link .cm-comparison-link:hover {
  color: #104522;
  text-decoration-thickness: 2px;
}

.cm-product-link .cm-comparison-link:focus-visible {
  outline: 2px solid #176534;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Responsive */

@media (max-width: 700px) {
  .cm-hero {
    padding: 46px 0 52px;
  }

  .cm-page .rd-container {
    width: calc(100% - 32px);
  }

  .cm-hero__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .cm-hero__description {
    font-size: 14px;
    text-align: left;
  }

  .cm-page .cm-download-button {
    width: 100%;
    padding: 14px 12px;
    font-size: 14px;
  }

  .cm-preview {
    padding: 12px;
  }

  .cm-summary {
    gap: 6px;
  }

  .cm-summary__item {
    padding: 10px 8px;
  }

  .cm-summary__item span {
    font-size: 10px;
  }

  .cm-section {
    padding: 52px 0;
  }

  .cm-card-grid,
  .cm-feature-grid,
  .cm-steps {
    grid-template-columns: 1fr;
  }

  .cm-card {
    padding: 20px;
  }

  .cm-feature-grid {
    gap: 22px;
  }

  .cm-final-cta {
    padding: 52px 0;
  }
}

/* Excel template guide card */
.cm-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dce8df;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 70, 45, 0.06);
}

.cm-guide-card__icon {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #217346;
  background: #e8f4eb;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
}

.cm-guide-card__content {
  flex: 1;
  min-width: 0;
}

.cm-guide-card__eyebrow {
  margin: 0 0 8px;
  color: #217346;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cm-guide-card__title {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.5;
}

.cm-guide-card__description {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.9;
}

.cm-guide-card__list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.cm-guide-card__list li {
  position: relative;
  padding-left: 24px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.cm-guide-card__list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #217346;
  content: "✓";
  font-weight: 700;
}

.cm-guide-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  color: #ffffff;
  background: #217346;
  border: 1px solid #217346;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cm-guide-card__link:hover {
  color: #ffffff;
  background: #185c36;
  text-decoration: none;
}

.cm-guide-card__link:focus-visible {
  outline: 3px solid #8bc9a1;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cm-guide-card {
    gap: 14px;
    margin-top: 28px;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .cm-guide-card__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 12px;
    border-radius: 10px;
  }

  .cm-guide-card__title {
    font-size: 19px;
  }

  .cm-guide-card__description {
    font-size: 14px;
  }

  .cm-guide-card__link {
    width: 100%;
    box-sizing: border-box;
  }
}
