/* The DevLife offer: what the subscription unlocks, its price, and the sheets that start a trial or a payment.
   Loaded after binder.css, whose palette and components it builds on. */

/* The line under a call to action: what the next move costs, or where the member stands */
.offer__note {
    position: relative;
    margin-top: 0.9em;
    font-size: 0.86em;
    color: var(--ink-soft);
}

.cover-card .offer__note {
    color: var(--cover-ink-soft);
}

/* ---------- What the subscription unlocks ---------- */

.offer__benefits {
    margin: 1.8em 0 0;
}

/* One card per app: what is free, then what the subscription adds */
.offer__app {
    display: flex;
    flex-direction: column;
}

.offer__app-head {
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.offer__app-head h3 {
    flex: 1;
}

.offer__free {
    margin-top: 0.7em;
    font-size: 0.86em;
    line-height: 1.45;
    color: var(--ink-soft);
}

.offer__app .app__more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1em;
}

.offer__steps {
    max-width: 44em;
    margin-top: 1.6em;
}

.offer__answer {
    margin-top: 0.5em;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--ink-soft);
}

.offer__terms {
    margin-top: 1.5em;
}

/* ---------- The two ways of paying, as price tags ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
    gap: 1.2em;
    margin-top: 1.6em;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.3em 1.4em 1.4em;
    background: color-mix(in srgb, var(--ink) 2%, var(--paper));
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.plan--best {
    background: color-mix(in srgb, var(--primary) 6%, var(--paper));
}

.plan__name {
    font-family: var(--mono);
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.plan .stamp {
    position: absolute;
    top: 1.6em;
    right: 1.5em;
    font-size: 0.6em;
}

.plan__price {
    margin-top: 0.35em;
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.plan__per {
    font-size: 0.86em;
    color: var(--ink-soft);
}

.plan__note {
    margin-top: 0.8em;
    font-size: 0.86em;
    font-weight: 600;
}

/* In a form the tag itself is the choice: its radio stays reachable by keyboard but is not drawn */
label.plan {
    padding-bottom: 2.6em;
    cursor: pointer;
    transition: border-color 150ms, box-shadow 150ms;
}

.plan__pick {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

label.plan::after {
    content: "";
    position: absolute;
    right: 1.2em;
    bottom: 1.1em;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid color-mix(in srgb, var(--ink) 32%, transparent);
    border-radius: 50%;
    transition: border-color 150ms;
}

label.plan:has(.plan__pick:checked) {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary), var(--shadow-card);
}

label.plan:has(.plan__pick:checked)::after {
    border-color: var(--primary);
    background: radial-gradient(circle, var(--primary) 0 42%, transparent 48%);
}

label.plan:has(.plan__pick:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
