/* styles/sections/compare-flow.css
 * /return-on-tokens/ "Catch wrong turns while building": Without Brief and With Brief side by
 * side from 900px, each a tagged head over a dotted flow list whose last step is the outcome.
 * The With column is the emphasised card (2px fern edge). 24px padding under 620px (the
 * page's own pre-swap query). */
@layer sections {
  /* Column heads were 24px at every width: the h5 role's 900px step (campaign-frame.css). */
  .rot-compare {
    --t-h5-size: 24px;

    display: grid;
    gap: var(--space-24);
    margin-top: var(--space-32);
  }

  .rot-compare-col {
    padding: var(--space-32);
    border: 1px solid var(--rule-edge);
    border-radius: var(--radius-lg);
  }

  .rot-compare-col--with {
    border: 2px solid var(--fern);
    box-shadow: var(--elevation-low);
  }

  .rot-compare-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-24);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--line-2);
  }

  .rot-compare-tag {
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-pill);
  }

  .rot-compare-col--without .rot-compare-tag {
    background: var(--orange-tint);
    color: var(--orange-ink);
  }

  .rot-compare-col--with .rot-compare-tag {
    background: var(--mist);
    color: var(--fern);
  }

  .rot-flow {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .rot-flow li {
    position: relative;
    padding: 0 0 var(--space-24) var(--space-32);
    color: var(--ink-muted);
  }

  .rot-flow li::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0;
    width: 10px;
    height: 10px;
    border: 2px solid var(--rule-edge);
    border-radius: var(--radius-pill);
    background: var(--white);
  }

  .rot-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(0.4em + 14px);
    bottom: 2px;
    left: 6px;
    width: 2px;
    background: var(--line-2);
  }

  .rot-flow li.rot-flow-end {
    padding-bottom: 0;
    color: var(--ink);
    font-weight: 600;
  }

  .rot-compare-col--without .rot-flow-end::before {
    border-color: var(--orange);
    background: var(--orange);
  }

  .rot-compare-col--with .rot-flow li::before {
    border-color: var(--success);
  }

  .rot-compare-col--with .rot-flow-end::before {
    background: var(--success);
  }

  @media (width >= 900px) {
    .rot-compare {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (width <= 620px) {
    .rot-compare-col {
      padding: var(--space-24);
    }
  }
}
