/* =========================================================
   CHART MOTION KIT
   Resource Lab Pattern Pack
   File: /assets/css/chart-motion-kit.css
   ========================================================= */

.cmk-page {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 132px) 24px clamp(88px, 10vw, 144px);
  background: #ffffff;
  color: var(--lrl-ink, #080b12);
}

.cmk-page,
.cmk-page * {
  box-sizing: border-box;
}

.cmk-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cmk-hero {
  max-width: 980px;
  margin: 0 auto clamp(48px, 6vw, 76px);
  text-align: center;
}

.cmk-eyebrow,
.cmk-small-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .11),
    rgba(124, 58, 237, .11),
    rgba(20, 184, 166, .11)
  );
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cmk-hero h1 {
  margin: 0 0 28px;
  color: #0f172a;
  font-size: clamp(56px, 8vw, 104px);
  line-height: .92;
  letter-spacing: -.07em;
}

.cmk-hero h1 span {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 48%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cmk-intro {
  max-width: 860px;
  margin: 0 auto;
  color: #5f6472;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.72;
}

.cmk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.cmk-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 15px 23px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease,
    background .24s ease,
    color .24s ease;
}

.cmk-btn:hover {
  transform: translateY(-2px);
}

.cmk-btn.primary,
.cmk-btn.primary:visited,
.cmk-btn.primary:active {
  border: 0 !important;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #14b8a6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 45px rgba(124, 58, 237, .22) !important;
}

.cmk-btn.secondary,
.cmk-btn.secondary:visited,
.cmk-btn.secondary:active {
  border: 1px solid rgba(17, 24, 39, .09) !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .05) !important;
}

.cmk-btn.secondary:hover {
  border-color: rgba(124, 58, 237, .18) !important;
  color: #6d28d9 !important;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .08) !important;
}

.cmk-article {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: clamp(30px, 4vw, 42px);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .055);
}

.cmk-section {
  padding: 0 0 56px;
  margin: 0 0 56px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.cmk-intro-section p:first-child {
  color: #111827;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.cmk-section h2,
.cmk-snapshot-copy h2,
.cmk-preview-header h2,
.cmk-design-header h2,
.cmk-code-header h2,
.cmk-related-header h2,
.cmk-closing h2 {
  margin: 0 0 24px;
  color: #111827;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: .98;
  letter-spacing: -.055em;
}

.cmk-section p,
.cmk-snapshot-copy p,
.cmk-preview-header p,
.cmk-design-header p,
.cmk-code-header p,
.cmk-related-header p,
.cmk-closing p {
  margin: 0 0 24px;
  color: #5f6472;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.78;
}

.cmk-section p:last-child,
.cmk-snapshot-copy p:last-child,
.cmk-preview-header p:last-child,
.cmk-design-header p:last-child,
.cmk-code-header p:last-child,
.cmk-related-header p:last-child,
.cmk-closing p:last-child {
  margin-bottom: 0;
}

.cmk-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 38px);
  margin: 0 0 56px;
  border: 1px solid rgba(124, 58, 237, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, .1), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(20, 184, 166, .1), transparent 32%),
    linear-gradient(135deg, rgba(37, 99, 235, .055), rgba(124, 58, 237, .055), rgba(20, 184, 166, .055));
  box-shadow: 0 18px 52px rgba(15, 23, 42, .06);
}

.cmk-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cmk-stat-card {
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .045);
}

.cmk-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .9;
  letter-spacing: -.06em;
}

.cmk-stat-card span {
  display: block;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cmk-preview-section,
.cmk-design-section,
.cmk-code-section,
.cmk-related {
  padding: clamp(24px, 4vw, 38px);
  margin: 0 0 56px;
  border: 1px solid rgba(124, 58, 237, .1);
  border-radius: 34px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .07),
    rgba(124, 58, 237, .07),
    rgba(20, 184, 166, .07)
  );
}

.cmk-preview-header,
.cmk-design-header,
.cmk-code-header,
.cmk-related-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.cmk-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cmk-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cmk-demo-card {
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .055);
}

.cmk-demo-wide {
  grid-column: 1 / -1;
}

.cmk-card-header {
  margin-bottom: 24px;
}

.cmk-card-header span,
.cmk-related-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .12),
    rgba(124, 58, 237, .12),
    rgba(20, 184, 166, .12)
  );
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmk-card-header h3,
.cmk-related-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -.05em;
}

.cmk-card-header p,
.cmk-related-card p {
  margin: 0;
  color: #5f6472;
  font-size: 16px;
  line-height: 1.62;
}

.cmk-bar-chart {
  display: grid;
  gap: 18px;
}

.cmk-bar-row {
  display: grid;
  gap: 10px;
}

.cmk-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.cmk-bar-label span {
  color: #6d28d9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmk-bar-label strong {
  color: #111827;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
}

.cmk-bar-track {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.cmk-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #14b8a6 100%);
  transition: width .7s ease;
}

.cmk-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cmk-metric-card,
.cmk-outcome-card {
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, .1), transparent 30%),
    #f8fafc;
  border: 1px solid rgba(15, 23, 42, .07);
}

.cmk-metric-card strong,
.cmk-outcome-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -.06em;
}

.cmk-metric-card span,
.cmk-outcome-card span {
  display: block;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmk-ring-wrap {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.cmk-ring {
  --ring-value: 0%;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background:
    conic-gradient(#7c3aed var(--ring-value), rgba(15, 23, 42, .08) 0);
  transition: background .7s ease;
}

.cmk-ring-inner {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07);
}

.cmk-ring-inner strong {
  display: block;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.cmk-ring-inner span {
  display: block;
  max-width: 90px;
  margin-top: 8px;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cmk-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cmk-compare-card {
  padding: 26px;
  border-radius: 28px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .07);
}

.cmk-compare-card.strong {
  background:
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, .12), transparent 30%),
    #ffffff;
}

.cmk-compare-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, .08);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmk-compare-card h4 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.cmk-mini-bars {
  display: grid;
  gap: 14px;
}

.cmk-mini-bars div {
  display: grid;
  gap: 8px;
}

.cmk-mini-bars em {
  color: #5f6472;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cmk-mini-bars b {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.cmk-mini-bars i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #14b8a6 100%);
  transition: width .7s ease;
}

.cmk-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cmk-outcome-feedback {
  margin-top: 20px;
  padding: 24px;
  border-radius: 26px;
  background: #111827;
}

.cmk-outcome-feedback h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.cmk-outcome-feedback p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  line-height: 1.62;
}

.cmk-use-grid,
.cmk-design-grid,
.cmk-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.cmk-use-card,
.cmk-design-card,
.cmk-related-card {
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .045);
}

.cmk-use-card span,
.cmk-design-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #14b8a6 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cmk-use-card h3,
.cmk-design-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.cmk-use-card p,
.cmk-design-card p {
  margin: 0;
  color: #5f6472;
  font-size: 16px;
  line-height: 1.62;
}

.cmk-code-box {
  overflow: auto;
  border-radius: 28px;
  background: #111827;
  border: 1px solid rgba(15, 23, 42, .16);
  box-shadow: 0 18px 52px rgba(15, 23, 42, .16);
}

.cmk-code-box pre {
  margin: 0;
  padding: 28px;
  white-space: pre-wrap;
}

.cmk-code-box code {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.65;
}

.cmk-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.cmk-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .18);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.cmk-related-card strong {
  margin-top: 24px;
  color: #6d28d9;
  font-size: 15px;
  font-weight: 900;
}

.cmk-related-card strong::after {
  content: " →";
}

.cmk-closing {
  position: relative;
  margin-top: 10px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 34px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, .07),
    rgba(124, 58, 237, .07),
    rgba(20, 184, 166, .07)
  );
  border: 1px solid rgba(124, 58, 237, .1);
}

.closing-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .cmk-page {
    padding: 96px 20px 90px;
  }

  .cmk-hero {
    text-align: left;
    margin-bottom: 46px;
  }

  .cmk-intro {
    margin-left: 0;
  }

  .cmk-actions {
    justify-content: flex-start;
  }

  .cmk-section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .cmk-snapshot {
    grid-template-columns: 1fr;
  }

  .cmk-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmk-demo-grid,
  .cmk-compare-grid,
  .cmk-outcome-grid,
  .cmk-use-grid,
  .cmk-design-grid,
  .cmk-related-grid {
    grid-template-columns: 1fr;
  }

  .cmk-demo-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .cmk-hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .cmk-snapshot-grid,
  .cmk-metric-grid {
    grid-template-columns: 1fr;
  }

  .cmk-stat-card,
  .cmk-demo-card,
  .cmk-use-card,
  .cmk-design-card,
  .cmk-related-card,
  .cmk-compare-card,
  .cmk-outcome-card {
    padding: 22px;
    border-radius: 24px;
  }

  .cmk-card-header h3,
  .cmk-section h2,
  .cmk-snapshot-copy h2,
  .cmk-preview-header h2,
  .cmk-design-header h2,
  .cmk-code-header h2,
  .cmk-related-header h2,
  .cmk-closing h2 {
    font-size: 32px;
  }

  .cmk-code-box pre {
    padding: 22px;
  }

  .cmk-code-box code {
    font-size: 13px;
  }
}
