/* Downloads page. Mobile first. Breakpoints: 640px, 900px. */

body:has(.cm-downloads) {
  margin: 0;
  background: #fff;
}

html:has(.cm-downloads) {
  scroll-behavior: smooth;
}

.cm-downloads,
.cm-downloads * {
  box-sizing: border-box;
}

.cm-downloads {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cm-downloads a {
  color: inherit;
  text-decoration: none;
}

.cm-downloads a:focus-visible,
.cm-downloads button:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.cm-downloads .dl-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.cm-downloads .dl-hero {
  padding: 144px 0 52px;
  text-align: center;
}

.cm-downloads .dl-hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.cm-downloads .dl-hero p {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}

.cm-downloads .dl-list {
  padding: 0 0 72px;
}

.cm-downloads .dl-list-in {
  max-width: 1000px;
}

.cm-downloads .dl-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cm-downloads .dl-group:last-child {
  border-bottom: 1px solid var(--line);
}

.cm-downloads .dl-group h2 {
  margin: 0;
  padding-top: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
}

.cm-downloads .dl-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-downloads .dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.cm-downloads .dl-row:last-child {
  border-bottom: 0;
}

.cm-downloads .dl-ic {
  flex: none;
  width: 26px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.cm-downloads .dl-ic svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cm-downloads .dl-name {
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cm-downloads .dl-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  padding-left: 40px;
}

.cm-downloads .dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 11, 12, 0.14);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cm-downloads .dl-btn:hover {
  border-color: rgba(11, 11, 12, 0.4);
  color: var(--ink);
}

.cm-downloads .dl-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  display: block;
}

.cm-downloads .dl-btn .is-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-downloads .dl-btn-pri {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cm-downloads .dl-btn-pri:hover {
  background: #2a2a2d;
  color: #fff;
}

.cm-downloads .dl-btn-pri svg:not(.is-stroke) path {
  fill: #fff;
  stroke: none;
}

.cm-downloads .dl-fin {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: 118px 0;
  text-align: center;
  overflow: hidden;
}

.cm-downloads .dl-fin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100%;
  height: 320px;
  background: radial-gradient(ellipse, rgba(59, 123, 255, 0.16), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.cm-downloads .dl-fin h2 {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.cm-downloads .dl-fin p {
  max-width: 94ch;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

.cm-downloads .dl-fin-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.cm-downloads .dl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}

.cm-downloads .dl-cta-light {
  background: #fff;
  color: var(--ink);
}

.cm-downloads .dl-cta-light:hover {
  background: #f0f0ec;
  color: var(--ink);
  transform: translateY(-1px);
}

.cm-downloads .dl-cta-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.cm-downloads .dl-cta-line:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cm-downloads .dl-fin a:focus-visible {
  outline-color: #fff;
}

@media (min-width: 460px) {
  .cm-downloads .dl-row {
    flex-wrap: nowrap;
  }

  .cm-downloads .dl-acts {
    width: auto;
    justify-content: flex-end;
    padding-left: 0;
  }
}

@media (min-width: 640px) {
  .cm-downloads .dl-wrap {
    padding: 0 32px;
  }

  .cm-downloads .dl-hero {
    padding: 176px 0 72px;
  }

  .cm-downloads .dl-list {
    padding-bottom: 120px;
  }

  .cm-downloads .dl-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 40px;
    padding: 36px 0;
  }

  .cm-downloads .dl-group h2 {
    padding-top: 12px;
  }

  .cm-downloads .dl-fin h2 {
    text-wrap: nowrap;
  }
}

@media (max-width: 820px) {
  .cm-downloads .dl-fin h2 {
    text-wrap: balance;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-downloads .dl-btn,
  .cm-downloads .dl-cta {
    transition: none;
  }

  .cm-downloads .dl-cta-light:hover {
    transform: none;
  }
}
