/* VIT DWF To plan cards (src/components/kit/DwfPlanCards.astro). The /pricing .plan-card at a 4-column size: 1.5px ink frame, a strip on top, the name, the price in the display face, plain lines, the action at the bottom.
   Bezalel's rulings (design-rules-dwf-plan-cards-2026-11-22.md): the marks live in the strip; one clay fill; price 36px on every card at every width; dashed only on the disabled button; no entrance motion; no CSS order. */
.dpc { container-type: inline-size; font-family: var(--vit-f-heb), var(--vit-f-sans); color: var(--vit-ink); }
.dpc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vit-space-3); align-items: stretch; }
@container (min-width: 480px) { .dpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 820px) { .dpc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dpc-card { display: flex; flex-direction: column; min-width: 0; border: 1.5px solid var(--vit-ink); background: var(--vit-paper); }
.dpc-strip { display: flex; justify-content: space-between; align-items: center; gap: var(--vit-space-2); min-height: 30px; padding: 4px var(--vit-space-3); border-block-end: 1.5px solid var(--vit-ink); background: var(--vit-paper-2); }
.dpc-no { font-family: var(--vit-f-mono); font-size: 12px; letter-spacing: .06em; }
.dpc-mark { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1.4 var(--vit-f-heb), var(--vit-f-sans); }
.dpc-mark svg { flex: none; }
/* the current plan: data-current on the root (anon | free | sub), set by the page and moved by dwf-tool.js from the meter's answer */
.dpc [data-m="now"] { display: none; }
.dpc[data-current="anon"] [data-plan="anon"] [data-m="now"], .dpc[data-current="free"] [data-plan="free"] [data-m="now"], .dpc[data-current="sub"] [data-plan="sub"] [data-m="now"] { display: inline-flex; }
/* recommended = 03, unless 03 is the current plan ("current" wins: no ink strip, no button) */
.dpc:not([data-current="sub"]) [data-plan="sub"] { border-width: 3px; }
.dpc:not([data-current="sub"]) [data-plan="sub"] .dpc-strip { background: var(--vit-ink); color: var(--vit-paper); }
.dpc[data-current="sub"] [data-m="rec"] { display: none; }
/* no button for what the visitor already has: signed up (free or sub) -> no sign-up; subscribed -> no subscribe */
.dpc[data-current="free"] [data-plan="free"] .dpc-act, .dpc[data-current="sub"] [data-plan="free"] .dpc-act, .dpc[data-current="sub"] [data-plan="sub"] .dpc-act { display: none; }
.dpc-body { display: flex; flex-direction: column; gap: var(--vit-space-3); padding: var(--vit-space-4); flex: 1; }
.dpc-body h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.dpc-price { margin: 0; font-size: 14px; line-height: 1.4; color: var(--vit-ink-2); max-width: none; }
.dpc-price bdi { font-family: var(--vit-f-display); font-size: 36px; line-height: 1.1; color: var(--vit-ink); }
.dpc-price .cur { font-style: normal; }
.dpc-pl { display: block; }
/* the "per" line goes under the price, like /pricing .pc-per (Bezalel B/625); card 04 labels each price */
.dpc-price .dpc-per { display: block; margin-top: var(--vit-space-1); font-family: var(--vit-f-heb), var(--vit-f-sans); font-size: 15px; color: var(--vit-ink-2); }
.dpc-price .dpc-lbl { font-family: var(--vit-f-heb), var(--vit-f-sans); font-size: 15px; color: var(--vit-ink-3); }
.dpc-list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--vit-ink-2); }
.dpc .dpc-list li { margin: 0; padding: 8px 0; border-block-start: 1px solid var(--vit-line-default); font-size: 15px; line-height: 1.5; color: var(--vit-ink-2); max-width: none; }
.dpc-list li::before, .dpc-list li::marker { content: none; }
.dpc-act { margin-top: auto; padding-top: var(--vit-space-2); }
/* the buttons are the site's own (r2.css): .addc = the sketch button (ink frame, corner ticks, ink text); [data-cta] = the one clay fill, as on /pricing's cards */
.dpc .dpc-act :is([data-cta], .addc) { min-height: 44px; box-sizing: border-box; margin: 0; }
.dpc .dpc-act [data-cta] { background-color: var(--vit-clay); color: var(--vit-on-clay); border-color: var(--vit-clay); }
.dpc .dpc-act [data-cta]::after { background: none; }
.dpc .dpc-act [data-cta]:is(:hover, :focus-visible) { background-color: var(--vit-ink); border-color: var(--vit-ink); color: var(--vit-paper); }
/* /account/dwf: while the purchase form is open it is the subscribe action, so 03 has no button there (Bezalel B/628: one clay fill per screen) */
.dpc[data-form-open] [data-plan="sub"] .dpc-act { display: none; }
/* /account/dwf, cancel_requested: the renewal line is false for this visitor (DWF-4 B/629), so it goes */
.dpc[data-stopped] [data-line="renew"] { display: none; }
/* the disabled desktop button: dashed, ink-3, nothing to press */
.dpc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--vit-space-3) var(--vit-space-5); box-sizing: border-box; border: 1px dashed var(--vit-line-strong); border-radius: 0; background: transparent; color: var(--vit-ink-3); font: 500 15px/1.3 var(--vit-f-heb), var(--vit-f-sans); cursor: not-allowed; user-select: none; }
.dpc-btn:focus-visible { outline: 2px solid var(--vit-clay-ink); outline-offset: 2px; }
/* "בקרוב": the frame stays solid; the text and the price step back to ink-3 */
.dpc [data-plan="desktop"] h3, .dpc [data-plan="desktop"] .dpc-price, .dpc [data-plan="desktop"] .dpc-price bdi, .dpc [data-plan="desktop"] .dpc-per, .dpc [data-plan="desktop"] .dpc-list li { color: var(--vit-ink-3); }
/* one column (phones): the same card, tighter, so the recommended card starts higher */
@container (max-width: 479.98px) { .dpc-body { padding: var(--vit-space-3); gap: var(--vit-space-2); } .dpc .dpc-list li { padding: 6px 0; } }
