/* ParlayDesk — FREE / PRO plan presentation (2026-11-17, 2.1). Markup from
   /plans.js (cardsHtml / valueHtml); used by the homepage
   (#pricing) and Billing 2.0.
   No palette of its own: the app's tokens (--panel / --panel2 / --border /
   --text / --muted / --accent / --hit, fallbacks = their shared.css values),
   the app card (surface .035, border .09, radius 16) and the established
   PRO card treatment from plan-cards.css (gold #f5b400, border .35 alpha,
   .07 gold wash). Primary button = the app's (nav-btn.primary). */
.pl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pl-cards, .pl-value { --pl-gold: #f5b400; --pl-line: var(--border, rgba(255,255,255,.09)); }

/* ---------- shared bits ---------- */
.pl-name { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.pl-name--pro { color: #f5b400; }
.pl-current {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #bfdbfe; background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.35);
}
.pl-cards svg, .pl-value svg, .pl-value-extra svg { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center;
  color: var(--text, #e5e7eb); background: var(--panel2, rgba(255,255,255,.035)); border: 1px solid var(--border, rgba(255,255,255,.09));
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pl-btn:hover { background: var(--panel, rgba(255,255,255,.05)); border-color: rgba(255,255,255,.18); }
.pl-btn--primary { color: #fff; border: 0; background: linear-gradient(135deg, var(--accent, #3b82f6), #2563eb); box-shadow: 0 4px 12px rgba(59,130,246,.3); }
.pl-btn--primary:hover { background: linear-gradient(135deg, var(--accent, #3b82f6), #2563eb); box-shadow: 0 6px 18px rgba(59,130,246,.45); }
.pl-btn:focus-visible { outline: 2px solid var(--accent2, #60a5fa); outline-offset: 2px; }

/* ---------- plan cards ---------- */
.pl-cards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.pl-card {
  display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; border-radius: 16px;
  background: var(--panel2, rgba(255,255,255,.035)); border: 1px solid var(--pl-line);
}
.pl-card--pro { border-color: rgba(245,180,0,.35); background: linear-gradient(180deg, rgba(245,180,0,.07), var(--panel2, rgba(255,255,255,.035)) 55%); }
.pl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.pl-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 0; }
.pl-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.pl-per { font-size: 13px; color: var(--muted, #94a3b8); }
.pl-tagline { margin: 10px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text, #e5e7eb); }
.pl-plus { margin: 18px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.pl-list, .pl-unlocks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.pl-list { gap: 9px; padding-top: 16px; border-top: 1px solid var(--pl-line); }
.pl-list li, .pl-unlocks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: #cbd5e1; }
.pl-list svg, .pl-unlocks svg { width: 16px; height: 16px; margin-top: 2px; stroke: var(--hit, #22c55e); }
.pl-unlocks { margin-top: 10px; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.pl-unlocks svg { stroke: #f5b400; }
.pl-unlocks b { display: block; font-size: 14px; font-weight: 650; color: #fff; }
.pl-unlocks li > span > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #94a3b8); }
.pl-unlocks em { font-style: normal; font-weight: 600; color: #cbd5e1; }
.pl-card .pl-value-extra { margin-top: 14px; }
.pl-card-cta { margin-top: auto; padding-top: 20px; }
.pl-card-cta .pl-btn { width: 100%; }

/* ---------- what PRO unlocks (tiles) ---------- */
.pl-value { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-tile {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 14px 18px; border-radius: 12px; position: relative;
  background: rgba(255,255,255,.03); border: 1px solid var(--pl-line);
}
.pl-tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #f5b400; opacity: .85; }
.pl-tile-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f5b400; }
.pl-tile-t { font-size: 15px; font-weight: 650; line-height: 1.35; color: #fff; }
.pl-tile-b { font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.pl-tile-free { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted, #94a3b8); }
.pl-tile-go { margin-top: auto; padding-top: 6px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent2, #60a5fa); text-decoration: none; }
.pl-tile-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-value-extra { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted, #94a3b8); }
.pl-value-extra svg { width: 15px; height: 15px; stroke: #f5b400; flex: none; }

/* ---------- compact benefits (Billing polish, 2026-11-18) ---------- */
.pl-compact { --pl-gold: #f5b400; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.pl-compact li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.pl-compact svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--pl-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-compact-name { display: block; font-size: 14px; font-weight: 650; line-height: 1.35; color: #fff; text-decoration: none; }
a.pl-compact-name:hover { color: var(--accent2, #60a5fa); text-decoration: underline; text-underline-offset: 3px; }
a.pl-compact-name:focus-visible { outline: 2px solid var(--accent2, #60a5fa); outline-offset: 2px; border-radius: 4px; }
.pl-compact-brief { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted, #94a3b8); }
.pl-compare { margin-top: 14px; font-size: 13px; color: var(--muted, #94a3b8); }
.pl-compare summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; color: #cbd5e1; font-weight: 600; list-style: none; }
.pl-compare summary::-webkit-details-marker { display: none; }
.pl-compare summary::before { content: ""; width: 7px; height: 7px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.pl-compare[open] summary::before { transform: rotate(45deg); }
.pl-compare summary:focus-visible { outline: 2px solid var(--accent2, #60a5fa); outline-offset: 2px; border-radius: 6px; }
.pl-compare ul { list-style: none; margin: 6px 0 0; padding: 10px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--border, rgba(255,255,255,.09)); }
.pl-compare b { color: #cbd5e1; font-weight: 600; }

@media (max-width: 860px) {
  .pl-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pl-card { padding: 18px 16px 16px; }
  .pl-unlocks, .pl-value, .pl-compact { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pl-btn, .pl-compare summary::before { transition: none; }
}
