@layer components {

  ul.homeImages img {
    max-width: min(100%, var(--max-width));
  }

  ul.homeImages {
    list-style: none;
    max-width: min(100%, var(--max-width));
    margin: 20px 20px 0 20px;
    padding: 0;
    border-radius: var(--radius-md);
    display: flex;
    gap: 4vw;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
  }

  ul.homeImages > li {
    list-style-type: none;
    flex: 0 0 100%;
    padding: 0;
    max-width: min(100%, var(--max-width));
    scroll-snap-align: center;
    text-align: center;
  }

  ul.carousel > li figcaption {
    &::after {
      content: "►";
    }
    &::before {
      content: "◄";
    }
  }
  ul.homeImages > li figcaption::before,
  ul.homeImages > li figcaption::after {
    margin: 0 var(--space-md);
    color: var(--color-caption);
  }

  /* "How we help you" steps: numbered ordered list where each step's
     label sits on its own line above the explanation, so the four-step
     shape stays scannable instead of collapsing into a wall of text. */
  ol.howList {
    padding-inline-start: 1.5em;
    margin: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  ol.howList > li {
    padding-inline-start: var(--space-md);
  }

  ol.howList > li::marker {
    color: var(--color-text-muted);
    font-weight: 400;
  }

  .howList__label {
    display: block;
    font-weight: 400;
    margin-bottom: var(--space-sm);
  }

  .howList__detail {
    display: block;
    font-weight: 300;
    line-height: 1.5;
  }

  /* Closing CTA image: a single framed photo, not a one-item carousel. */
  .homeImage--single {
    margin: var(--space-lg) 0 0;
    text-align: center;
  }

  .homeImage--single .homeImage {
    max-width: min(100%, var(--max-width));
  }

  /* CTA button: the page's "true primary" per DESIGN.md.
     Inverts the default link styling to brand color + paper text.
     --color-theme tracks the navbar today and swaps to indigo deep
     once the design_plan.md token migration lands. */
  .cta-container {
    margin: var(--space-lg) 0;
    text-align: center;
  }

  a.cta-button,
  a.cta-button:visited {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: var(--color-theme);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 400;
    line-height: 1.2;
    min-height: 44px;
    box-sizing: border-box;
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  a.cta-button:hover {
    background: var(--color-theme-hover);
    text-decoration: none;
  }

  a.cta-button:focus-visible {
    outline: 2px solid var(--color-theme);
    outline-offset: 3px;
  }

  @media (prefers-reduced-motion: reduce) {
    a.cta-button {
      transition: none;
    }
  }
}



