/* Patterns reused across sections: container, eyebrow labels, the reveal transition, expanders, body copy. */

@layer components {
  /* "Why it matters" style expanders: js/expanders.js flips aria-expanded; the plus turns into a close mark. */
  .rv-chev {
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
    transform: rotate(0deg);
  }
  [aria-expanded="true"] .rv-chev { transform: rotate(135deg); }
}

@layer sections {
  .flex-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 56px;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .expander {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 9999px;
    padding: 11px 20px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(14,23,38,.06);
  }
  .expander:hover {
    border-color: rgba(46,91,230,.55);
    color: var(--blue);
  }

  .expander-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    flex: 0 0 auto;
  }

  .more-copy {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    break-inside: avoid;
  }

  .more-copy-last {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    break-inside: avoid;
  }

  .cta-arrow {
    display: inline-block;
    transition: transform .25s ease;
  }

  .text-strong {
    color: var(--ink);
    font-weight: 600;
  }

  .mt-32 {
    margin-top: 32px;
  }

  .eyebrow-on-dark {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8FB4FF;
  }
}
