/*
  Compact bar. Background defaults to #111111, heading to white.
  Highlight gradients and shadows match the teal, blue, and orange accents.
  Desktop is a row. Tablet and mobile stack the heading above the buttons.
*/

.mod-small-cta {
  --mod-small-cta-bg: #111111;
  --mod-small-cta-bg-opacity: 100;
  --mod-small-cta-heading: #ffffff;
  --mod-small-cta-heading-opacity: 100;
  --mod-small-cta-accent: linear-gradient(to right, #8effec, #00e5bf);
  --mod-small-cta-shadow: 0 35px 20px -20px rgba(142, 255, 236, 0.45);
  --mod-small-cta-pad-top: 20px;
  --mod-small-cta-pad-bottom: 20px;
  --mod-small-cta-radius: 12px;
  --mod-small-cta-heading-size: 32px;
  --mod-small-cta-heading-line: 38px;

  box-sizing: border-box;
  padding-top: var(--mod-small-cta-pad-top);
  padding-bottom: var(--mod-small-cta-pad-bottom);
  padding-inline: 20px;
}

.mod-small-cta--accent-orange {
  --mod-small-cta-accent: linear-gradient(97.26deg, #ffd524 2.34%, #ffac27 40.59%, #ff8827 81.78%);
  --mod-small-cta-shadow: 0 35px 20px -20px rgba(255, 172, 39, 0.45);
}

.mod-small-cta--accent-blue {
  --mod-small-cta-accent: linear-gradient(270deg, #006ff7 12.61%, #4eafff 33.72%, #8fd2f7 54.83%);
  --mod-small-cta-shadow: 0 35px 20px -20px rgba(78, 175, 255, 0.45);
}

.mod-small-cta--accent-teal {
  --mod-small-cta-accent: linear-gradient(to right, #8effec, #00e5bf);
  --mod-small-cta-shadow: 0 35px 20px -20px rgba(142, 255, 236, 0.45);
}

.mod-small-cta--pad-top-tight {
  --mod-small-cta-pad-top: 10px;
}

.mod-small-cta--pad-bottom-tight {
  --mod-small-cta-pad-bottom: 10px;
}

.mod-small-cta--pad-top-none {
  --mod-small-cta-pad-top: 0px;
}

.mod-small-cta--pad-bottom-none {
  --mod-small-cta-pad-bottom: 0px;
}

.mod-small-cta__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1045px;
  margin-inline: auto;
  padding: 30px;
  border-radius: var(--mod-small-cta-radius);
  background: var(--mod-small-cta-bg);
  background: color-mix(
    in srgb,
    var(--mod-small-cta-bg) calc(var(--mod-small-cta-bg-opacity) * 1%),
    transparent
  );
  box-shadow: var(--mod-small-cta-shadow);
}

.mod-small-cta__heading {
  margin: 0;
  min-width: 0;
  color: var(--mod-small-cta-heading);
  color: color-mix(
    in srgb,
    var(--mod-small-cta-heading) calc(var(--mod-small-cta-heading-opacity) * 1%),
    transparent
  );
  font-family: var(--primary-font, "Inter Tight", sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.mod-small-cta__highlight,
.mod-small-cta--gradient-heading .mod-small-cta__lead {
  background-image: var(--mod-small-cta-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mod-small-cta--gradient-heading .mod-small-cta__highlight {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

.mod-small-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.mod-small-cta__button {
  --mod-small-cta-button-bg: #ffffff;
  --mod-small-cta-button-text: #111111;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--mod-small-cta-button-bg);
  color: var(--mod-small-cta-button-text);
  font-family: var(--secondary-font, Inter, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mod-small-cta a.mod-small-cta__button,
.mod-small-cta a.mod-small-cta__button:hover,
.mod-small-cta a.mod-small-cta__button:focus,
.mod-small-cta a.mod-small-cta__button:active,
.mod-small-cta a.mod-small-cta__button:visited {
  text-decoration: none;
}

.mod-small-cta__button--orange {
  --mod-small-cta-button-bg: #ff8827;
  --mod-small-cta-button-text: #111111;
}

.mod-small-cta__button--blue {
  --mod-small-cta-button-bg: #006ff7;
  --mod-small-cta-button-text: #ffffff;
}

.mod-small-cta__button--teal {
  --mod-small-cta-button-bg: #00e5bf;
  --mod-small-cta-button-text: #111111;
}

.mod-small-cta a.mod-small-cta__button--primary:hover,
.mod-small-cta a.mod-small-cta__button--primary:focus-visible {
  background: #404140;
  color: #ffffff;
}

.mod-small-cta a.mod-small-cta__button--secondary,
.mod-small-cta a.mod-small-cta__button--secondary:visited {
  background: transparent;
  border-color: var(--mod-small-cta-button-bg);
  color: var(--mod-small-cta-button-bg);
}

.mod-small-cta a.mod-small-cta__button--secondary:hover,
.mod-small-cta a.mod-small-cta__button--secondary:focus-visible {
  background: var(--mod-small-cta-button-bg);
  border-color: var(--mod-small-cta-button-bg);
  color: var(--mod-small-cta-button-text);
}

.mod-small-cta a.mod-small-cta__button--link,
.mod-small-cta a.mod-small-cta__button--link:hover,
.mod-small-cta a.mod-small-cta__button--link:focus,
.mod-small-cta a.mod-small-cta__button--link:active,
.mod-small-cta a.mod-small-cta__button--link:visited {
  min-height: 20px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--mod-small-cta-button-bg);
}

.mod-small-cta__button:focus-visible {
  outline: 2px solid #4791ff;
  outline-offset: 3px;
}

.mod-small-cta__icon {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.mod-small-cta__button:hover .mod-small-cta__icon,
.mod-small-cta__button:focus-visible .mod-small-cta__icon {
  transform: translateX(4px);
}

.mod-small-cta__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mod-small-cta__button,
  .mod-small-cta__icon {
    transition: none;
  }
}

@supports not selector(:focus-visible) {
  .mod-small-cta__button:focus {
    outline: 2px solid #4791ff;
    outline-offset: 3px;
  }
}

@media (forced-colors: active) {
  .mod-small-cta__button {
    border: 1px solid ButtonText;
  }
}

@media (min-width: 768px) {
  .mod-small-cta__bar {
    padding: 40px;
  }

  .mod-small-cta__heading {
    font-size: var(--mod-small-cta-heading-size);
    line-height: var(--mod-small-cta-heading-line);
  }
}

@media (min-width: 1024px) {
  .mod-small-cta__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}
