/* -------------------------------- 

File#: _1_how-it-works-v2
Title: How It Works v2
Descr: A list of steps showing how a product works
Usage: codyhouse.co/license

-------------------------------- */
/* variables */
:root {
  /* colors */
  --ho7-color-primary-hsl: 250, 84%, 54%;
  --ho7-color-bg-hsl: 0, 0%, 100%;
  --ho7-color-contrast-high-hsl: 230, 7%, 23%;
  --ho7-color-contrast-higher-hsl: 230, 13%, 9%;
  --ho7-color-contrast-medium-hsl: 225, 4%, 47%;
  --ho7-color-white-hsl: 0, 0%, 100%;
  --ho7-color-accent-hsl: 342, 89%, 48%;
  --ho7-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --ho7-space-md: 1.25rem;
  --ho7-space-lg: 2rem;
  --ho7-space-xl: 3.25rem;
  --ho7-space-sm: 0.75rem;
  --ho7-space-xs: 0.5rem;

  /* typography */
  --ho7-text-md: 1.2rem;
  --ho7-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --ho7-space-md: 2rem;
    --ho7-space-lg: 3.125rem;
    --ho7-space-xl: 5.125rem;
    --ho7-space-sm: 1.125rem;
    --ho7-space-xs: 0.75rem;

    /* typography */
    --ho7-text-md: 1.5625rem;
    --ho7-text-sm: 1rem;
  }
}

/* component */
:root {
  --hiw-v2-gap: var(--ho7-space-lg);
  --hiw-v2-arrow-size: 40px;
}

.hiw-v2__grid {
  display: flex;
  flex-direction: column;
  gap: calc(var(--hiw-v2-gap)*2 + var(--hiw-v2-arrow-size));
}

.hiw-v2__item {
  position: relative;
}
.hiw-v2__item:last-child .hiw-v2__arrow {
  display: none;
}

.hiw-v2__arrow {
  position: absolute;
  top: calc(100% + var(--hiw-v2-gap));
  left: calc(50% - var(--hiw-v2-arrow-size)/2);
  width: var(--hiw-v2-arrow-size);
  height: var(--hiw-v2-arrow-size);
}

@media (min-width: 64rem) {
  /* layout swift */
  :root {
    --hiw-v2-gap: var(--ho7-space-md);
  }

  .hiw-v2__grid {
    flex-direction: row;
  }

  .hiw-v2__item {
    flex-grow: 1;
    flex-basis: 0;
    max-width: 100%;
    min-width: 0;
  }

  .hiw-v2__figure {
    position: relative;
  }

  .hiw-v2__arrow {
    top: calc(50% - var(--hiw-v2-arrow-size)/2);
    left: calc(100% + var(--hiw-v2-gap));
    transform: rotate(-90deg);
  }
}

/* utility classes */
.ho7-color-contrast-medium {
  --ho7-color-o: 1;
  color: hsla(var(--ho7-color-contrast-medium-hsl), var(--ho7-color-o, 1));
}

.ho7-text-md {
  font-size: var(--ho7-text-md);
}

.ho7-line-height-md {
  line-height: 1.4;
}

.ho7-text-gap-md {
  --ho7-space-multiplier: 1.25;
}

.ho7-text-component :where(h1, h2, h3, h4) {
  line-height: var(--ho7-heading-line-height, 1.2);
  margin-top: calc(var(--ho7-space-md) * var(--ho7-space-multiplier, 1));
  margin-bottom: calc(var(--ho7-space-sm) * var(--ho7-space-multiplier, 1));
}

.ho7-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--ho7-body-line-height, 1.4);
}

.ho7-text-component :where(ul, ol, p, blockquote, .ho7-text-component__block) {
  margin-bottom: calc(var(--ho7-space-sm) * var(--ho7-space-multiplier, 1));
}

.ho7-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.ho7-text-component ul :where(ul, ol), .ho7-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.ho7-text-component ul {
  list-style-type: disc;
}

.ho7-text-component ol {
  list-style-type: decimal;
}

.ho7-text-component img {
  display: block;
  margin: 0 auto;
}

.ho7-text-component figcaption {
  margin-top: calc(var(--ho7-space-xs) * var(--ho7-space-multiplier, 1));
  font-size: var(--ho7-text-sm);
  text-align: center;}

.ho7-text-component em {
  font-style: italic;
}

.ho7-text-component strong {
  font-weight: bold;
}

.ho7-text-component s {
  text-decoration: line-through;
}

.ho7-text-component u {
  text-decoration: underline;
}

.ho7-text-component mark {
  background-color: hsla(var(--ho7-color-accent-hsl), 0.2);
  color: inherit;
}

.ho7-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--ho7-color-contrast-lower-hsl));
  font-style: italic;
}

.ho7-text-component hr {
  margin: calc(var(--ho7-space-md) * var(--ho7-space-multiplier, 1)) auto;
  background: hsl(var(--ho7-color-contrast-lower-hsl));
  height: 1px;
}

.ho7-text-component > *:first-child {
  margin-top: 0;
}

.ho7-text-component > *:last-child {
  margin-bottom: 0;
}

.ho7-text-component.ho7-line-height-xs {
  --ho7-heading-line-height: 1;
  --ho7-body-line-height: 1.1;
}

.ho7-text-component.ho7-line-height-sm {
  --ho7-heading-line-height: 1.1;
  --ho7-body-line-height: 1.2;
}

.ho7-text-component.ho7-line-height-md {
  --ho7-heading-line-height: 1.15;
  --ho7-body-line-height: 1.4;
}

.ho7-text-component.ho7-line-height-lg {
  --ho7-heading-line-height: 1.22;
  --ho7-body-line-height: 1.58;
}

.ho7-text-component.ho7-line-height-xl {
  --ho7-heading-line-height: 1.3;
  --ho7-body-line-height: 1.72;
}

.ho7-shadow-sm {
  box-shadow:0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.ho7-radius-lg {
  border-radius: 0.5em;
}

.ho7-width-100\% {
  width: 100%;
}

.ho7-block {
  display: block;
}

.ho7-margin-bottom-md {
  margin-bottom: var(--ho7-space-md);
}

.ho7-text-center {
  text-align: center;
}

.ho7-margin-bottom-xl {
  margin-bottom: var(--ho7-space-xl);
}

.ho7-max-width-adaptive-lg {
  max-width: 32rem;
}

@media(min-width: 48rem) {
  .ho7-max-width-adaptive-lg {
    max-width: 48rem;
  }
}

@media(min-width: 64rem) {
  .ho7-max-width-adaptive-lg {
    max-width: 64rem;
  }
}

@media(min-width: 80rem) {
  .ho7-max-width-adaptive-lg {
    max-width: 80rem;
  }
}

.ho7-container {
  width: calc(100% - 2*var(--ho7-space-md));
  margin-left: auto;
  margin-right: auto;
}

.ho7-padding-y-xl {
  padding-top: var(--ho7-space-xl);
  padding-bottom: var(--ho7-space-xl);
}

.ho7-z-index-1 {
  z-index: 1;
}

.ho7-position-relative {
  position: relative;
}