/* Storefront: pricing, license portal, and admin release pages.
   Styles are here (not inline) to satisfy the app's strict CSP (style-src has no
   unsafe-inline; inline style="" attributes are blocked). */

.sf-wrap { max-width: 760px; margin: 2.5rem auto 0; }
.sf-wrap--narrow { max-width: 640px; }
.sf-wrap--pricing { max-width: 640px; margin-top: 3rem; }

.sf-msg-error { color: #b00; }
.sf-msg-ok { color: #080; }

.sf-key {
  width: 100%;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sf-copy-msg { margin-left: 8px; color: #080; }

.sf-dl-block { margin-top: 1.5rem; }
.sf-dl-meta { font-size: .85rem; color: #555; }

.sf-billing { margin-top: 1.5rem; }

.sf-field { width: 100%; }
.sf-hidden { display: none; }

/* subscribe / pricing */
.sf-price { font-size: 2rem; font-weight: 600; margin: .25rem 0; }
.sf-price small { font-size: .9rem; font-weight: 400; color: #666; }

/* trust strip (tokens come from brand.css, loaded globally in the layout header) */
.sf-trust {
  display: flex; flex-wrap: wrap; gap: .5rem .6rem;
  margin: 1.5rem 0 0; padding: 0; list-style: none;
}
.sf-trust li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 600;
  color: var(--color-accent-text); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: .4rem .85rem;
}
.sf-trust i { color: var(--color-accent); }

/* ── Pricing (redesigned 2026-07-24) — reuses global .btn/.card/tokens ── */
.btn--block { width: 100%; }

.pr { max-width: 900px; margin: 2.5rem auto 3.5rem; padding: 0 1rem; }
.pr-head { text-align: center; max-width: 600px; margin: 0 auto 28px; }
.pr-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-primary); }
.pr-title { font-size: 34px; letter-spacing: -.02em; margin: 8px 0 10px; color: var(--color-text-strong); }
.pr-lede { color: var(--color-text-muted); font-size: 16px; margin: 0; }

.plan {
  display: grid; grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--color-surface); max-width: 860px; margin: 0 auto;
}
.plan__buy { padding: 30px; border-right: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 14px; }
.plan__name { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; color: var(--color-text-strong); }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--color-text-muted); }
.plan__was { font-size: 26px; font-weight: 700; color: var(--color-text-muted); margin-right: 10px; text-decoration-thickness: 2px; }
.plan__subline { color: var(--color-text-muted); font-size: 14px; margin: -4px 0 2px; }
.plan__trust { display: flex; flex-direction: column; gap: 7px; margin: 6px 0 0; padding: 0; list-style: none; }
.plan__trust li {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)); color: var(--color-accent-text);
}
.plan__trust svg { width: 13px; height: 13px; flex: none; }
.plan__reassure { font-size: 12.5px; color: var(--color-text-muted); margin: 4px 0 0; }
.plan__incl { padding: 30px; }
.plan__incl-title { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 14px; }
.incl { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.incl li { display: flex; gap: 9px; font-size: 14px; align-items: flex-start; color: var(--color-text-strong); break-inside: avoid; margin-bottom: 10px; }
.incl svg { width: 17px; height: 17px; color: var(--color-success); flex: none; margin-top: 1px; }
.pr-foot { text-align: center; margin: 18px auto 0; color: var(--color-text-muted); font-size: 14px; }
#subMsg:empty { display: none; }
#subMsg { margin: 2px 0 0; }

@media (max-width: 720px) {
  .plan { grid-template-columns: 1fr; }
  .plan__buy { border-right: 0; border-bottom: 1px solid var(--color-border); }
}
@media (max-width: 520px) { .incl { columns: 1; } }
