/* Licensing editions (pricing.dc.html, #editions): the billing
   choice in the heading column, which sets the card prices and the calculator
   below, plus the cards' price block, ticked features and hover light.
   Colours come from the page tokens, so both themes follow. */
.ed-billing { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-billing__label { padding: 0; margin-bottom: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ed-opt { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font: 500 14px/1.2 var(--f-sans); color: var(--muted); transition: border-color .2s ease, background .2s ease, color .2s ease; }
.ed-opt:hover { border-color: var(--line-2); }
.ed-opt:has(input:checked) { border-color: var(--line-2); background: var(--surface); color: var(--text); }
.ed-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ed-opt__mark { box-sizing: border-box; width: 12px; height: 12px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s ease; }
.ed-opt__mark::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ed-opt input:checked + .ed-opt__mark { border-color: var(--accent); }
.ed-opt input:checked + .ed-opt__mark::after { transform: scale(1); }
.ed-opt__note { font: 400 12px/1 var(--f-sans); color: var(--faint); white-space: nowrap; }
.ed-opt__note[data-tone='save'] { padding: 3px 6px; border-radius: 999px; background: var(--teal-wash); font-weight: 500; color: var(--accent); }
.ed-billing__foot { margin: 6px 0 0; font: 400 12px/1.6 var(--f-sans); color: var(--faint); }
.ed-billing__foot a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ed-billing__foot a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Cards: a light from above on hover. The featured edition carries the cool-arc
   edge from redesign-common.css (.ed-card--featured::before), framed as well as
   lit, so it still stands out on paper. */
.ed-card { position: relative; }
.ed-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 55% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%); opacity: 0; transition: opacity .35s ease; }
.ed-card:hover::after { opacity: 1; }
.ed-card > * { position: relative; z-index: 1; }

.ed-price { display: flex; flex-direction: column; gap: 6px; }
/* Fixed heights, so the cards keep their size and rows line up across billing choices. */
.ed-price__row { margin: 0; height: 40px; display: flex; align-items: flex-end; gap: 10px; white-space: nowrap; }
.ed-price__row b { font-weight: 500; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ed-was { margin-bottom: 4px; font: 400 13px/1 var(--f-mono); color: var(--faint); text-decoration-thickness: 1px; }
.ed-was:empty { display: none; }
.ed-unit { margin: 2px 0 0; font: 400 13px/1.3 var(--f-sans); color: var(--faint); }
.ed-billed { margin: 0; min-height: 2.9em; font: 400 12px/1.45 var(--f-sans); color: var(--muted); text-wrap: pretty; }

/* Features, ticked. */
:is(.ed-card, .pricing-included) li { display: flex; align-items: baseline; gap: 10px; text-wrap: balance; }
:is(.ed-card, .pricing-included) li::before { content: ''; flex: none; width: 11px; height: 11px; transform: translateY(1px); background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.9 9.2 10 3.2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.9 9.2 10 3.2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Narrow cards: the billed line keeps room for three lines, so prices never shift the cards. */
@media (min-width: 700px) and (max-width: 1240px) {
  .ed-billed { min-height: 4.35em; }
}
