/* Plans: three cards, price large; the year stands out as a maple-red card. On the buy page the same cards
   are the choice of plan. */
@layer entities {
  .pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    max-width: 1060px;
    margin: var(--space-14) auto var(--space-7);
  }
  .pricing article,
  .pricing label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-11) var(--space-8) var(--space-9);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    text-align: center;
  }
  .price {
    display: block;
    margin: var(--space-6) 0 0;
    font-size: var(--figure-lg);
    font-weight: var(--weight-light);
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-figure);
    color: inherit;
  }
  .price span {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    letter-spacing: 0;
    color: var(--color-text-muted);
  }
  /* What the plan saves against paying monthly: the full price struck out, the saving beside it. */
  .saving {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    font-size: var(--text-base);
  }
  .saving s {
    color: var(--color-text-muted);
  }
  .saving em {
    font-style: normal;
    font-weight: var(--weight-semibold);
    color: var(--color-accent-text);
  }
  .terms {
    display: block;
    margin: var(--space-3) 0 var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }
  .pricing article .terms {
    margin-top: auto;
    padding-top: var(--space-3);
  }
  .pricing article .pill {
    margin-top: 0;
  }
  .pricing .pill {
    margin-top: auto;
  }
  /* The red of the hero's maple leaves in a light matte material: a soft light from above and a fine
     grain; its button is light. */
  .pricing .featured {
    --color-action: var(--color-light);
    --color-action-edge: var(--color-light);
    --color-on-action: var(--color-dark);
    --color-action-hover: var(--color-light-soft);
    --color-action-hover-edge: var(--color-light);
    --color-on-action-hover: var(--color-dark);

    border-color: transparent;
    background: url("/assets/grain.C-TGua10.svg"), var(--gradient-maple);
    color: var(--color-on-accent);
    box-shadow: var(--shadow-featured);
  }
  .pricing .featured :is(.price span, .terms, .saving s) {
    color: var(--color-on-accent-muted);
  }
  .pricing .featured em {
    color: var(--color-on-accent-strong);
  }

  @media (max-width: 760px) {
    .pricing {
      grid-template-columns: 1fr;
      margin-top: var(--space-10);
    }
    .pricing article {
      padding: var(--space-9) var(--space-7);
    }
    .pricing .featured {
      order: -1;
    }
  }
}
