/* wusa.ai/providers/#pricing — the packages section (rendered by pricing.js). Only the shared S3 tokens are used
   (--primary, --on-primary, --ink, --muted, --line, --tint, --surface, --r-card, --r-pill, --font-display), so the
   portal's pricing panel can load this same file for its preview. Logical properties: RTL and LTR alike. */
#pricing { scroll-margin-top: 96px; } /* /providers/#pricing lands below the floating header */
.pr { display: grid; gap: 20px; margin-block-start: 8px; }
.pr-tabs {
  display: none; gap: 6px; padding: 5px; border-radius: var(--r-pill); background: var(--tint); width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pr-tabs::-webkit-scrollbar { display: none; }
.pr-tab {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color 0.24s cubic-bezier(0.4, 0, 0.2, 1), color 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.pr-tab:hover { color: var(--ink); }
.pr-tab[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 0 0 1px var(--line); }
.pr-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pr-note { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.pr-panel { display: grid; gap: 14px; }
.pr-seg-h { margin: 0; font-size: 18px; font-weight: 500; font-family: inherit; color: var(--ink); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.pr-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.pr-card.is-featured { box-shadow: 0 0 0 2px var(--primary); background: linear-gradient(180deg, var(--tint), var(--surface) 60%); }
.pr-name { margin: 0; font: 500 21px/1.3 var(--font-display, inherit); color: var(--ink); overflow-wrap: anywhere; }
.pr-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--ink); line-height: 1.3; }
.pr-amt { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.pr-cur { font-size: 15px; font-weight: 500; }
.pr-from, .pr-per { font-size: 15px; color: var(--muted); }
.pr-price-agreed { font-size: 18px; font-weight: 500; }
.pr-unit { margin: 0; font-size: 14px; color: var(--muted); }
.pr-inc { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pr-inc li { position: relative; padding-inline-start: 18px; }
.pr-inc li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.pr-cta {
  margin-block-start: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background-color 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.pr-cta:hover { background: color-mix(in srgb, var(--primary) 88%, var(--ink)); }
.pr-cta-quote { background: var(--tint); color: var(--primary); }
.pr-cta-quote:hover { background: color-mix(in srgb, var(--tint) 70%, var(--primary) 18%); }
.pr-card .pr-inc { margin-block-end: 6px; }

/* with JS (html.js on the site, .js on the portal preview): tabs, one segment at a time.
   Without JS every segment is listed, one after the other, under its own heading. */
.js .pr-tabs { display: flex; }
.js .pr-panel:not(.is-on) { display: none; }
.js .pr-seg-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-panel + .pr-panel { margin-block-start: 12px; }
.js .pr-panel + .pr-panel { margin-block-start: 0; }

@media (max-width: 640px) {
  .pr-tabs { width: auto; }
  .pr-tab { padding: 0 14px; }
  .pr-card { padding: 18px; }
  .pr-amt { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .pr-tab, .pr-cta { transition: none; } }
