/* The pricing cards, one look on the homepage (templates/home.html) and the in-app upgrade page
   (templates/user_upgrade.html). Markup: templates/_pricing.html; the toggle: static/js/pricing.js.
   It stands on tokens.css alone, because the app pages load it without site.css. */

.period { display: inline-flex; gap: 4px; margin-top: 54px; padding: 4px; background: var(--band); border: 1px solid rgba(1, 0, 2, 0.06); border-radius: var(--radius); }
.period button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.period button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Each card spans seven rows of the list's grid (art, name, summary, price, cadence, button, features), so the
   prices, buttons and feature lists line up across a row and every card in it is as tall as the tallest. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 32px 0 0; padding: 0; list-style: none; text-align: left; }
.plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 32px 30px 44px; background: var(--paper); border: 1px solid rgba(1, 0, 2, 0.09); border-radius: var(--radius-lg); }
@supports not (grid-template-rows: subgrid) {
    .plan { display: flex; flex-direction: column; }
    .plan .features { flex: 1; }
}
.plan p, .plan h3 { margin: 0; }
.plan-pro { border-color: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: var(--shadow-md); }
.plan-current { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-art { color: var(--ink); }
.plan-art .node { fill: var(--tint); }
.plan h3 { margin-top: 42px; font-family: var(--display); font-size: 33px; font-weight: 400; line-height: 1.1; letter-spacing: var(--track-title); }
.plan .now { display: block; margin-top: 8px; font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--accent-deep); }
.plan .summary { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.plan .price { margin-top: 24px; font-size: 23px; font-weight: 600; line-height: 1.4; }
.plan .was { margin-right: 8px; font-weight: 400; color: var(--ink-2); text-decoration-thickness: 1px; }
[data-period='monthly'] .was { display: none; }
.plan .per { font-weight: 400; font-size: 17px; color: var(--ink-2); }
.plan .cadence { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 30px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--ink);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16);
    color: var(--paper);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease;
}
.plan-cta:hover { background: var(--accent-deep); color: var(--paper); text-decoration: none; }
.plan-cta:disabled, .plan-cta:disabled:hover { background: var(--panel); border-color: var(--rule); box-shadow: none; color: var(--ink-2); cursor: default; }
.plan .features { margin: 30px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.plan .features li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }
.plan .features li + li { margin-top: 12px; }
.plan .features .icon { flex: none; margin-top: 2px; color: var(--ink-2); }

@media (max-width: 900px) {
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .plan { padding: 28px 22px 32px; }
}
