/* /pricing/ (templates/web/pricing.html), phase 2 restyle. Loads after tokens.css, ui.css and the
   page's small inline block (plan card base rules). Scoped by body.pricing so nothing leaks into the
   homepage, which shares web/_plan_cards.html. Colours are tokens only: dark mode follows them. */

/* ------------------------------------------------------------ hero */
.pricing .pr-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(8px, 2vw, 24px); }
.pricing .pr-hero::before, .pricing .pr-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.pricing .pr-hero::before { width: 34rem; height: 34rem; left: -12rem; top: -18rem; background: var(--blob-a); }
.pricing .pr-hero::after { width: 28rem; height: 28rem; right: -9rem; top: -10rem; background: var(--blob-b); }
@media (prefers-reduced-motion: no-preference) {
  .pricing .pr-hero::before { animation: pr-drift 9s ease-in-out infinite alternate; }
  @keyframes pr-drift { to { transform: translate(3rem, 2rem); } }
}
.pricing .pr-head { flex-direction: column; align-items: center; justify-content: flex-start; gap: 28px; text-align: center; }
.pricing .pr-head .eyebrow { justify-content: center; }
.pricing .pr-head .display-1 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5rem); letter-spacing: -.045em; text-wrap: balance; }
.pricing .pr-head .lede { margin-inline: auto; max-width: 40em; }
.pricing .pr-bill { align-items: center; }
.pricing .seg-toggle { border-radius: 999px; background: var(--bg-sunk); }
.pricing .seg-toggle button { border-radius: 999px; padding-inline: 18px; font-weight: 600; }
.pricing .seg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); box-shadow: none; }
.pricing .pr-save { border-radius: 999px; padding: 2px 8px; background: var(--accent-soft); color: var(--accent-text); }
.pricing .pr-bill .muted { text-align: center; }

/* ------------------------------------------------------------ plan cards */
.pricing .plans { gap: 20px; align-items: stretch; margin-top: clamp(28px, 4vw, 48px); }
.pricing .plan { position: relative; gap: 14px; padding: 30px 28px 28px; border-radius: 24px; border-color: var(--line);
  transition: border-color .2s ease, box-shadow .2s ease; }
.pricing .plan:hover { border-color: var(--blue-line); box-shadow: 0 18px 40px -26px rgba(33, 44, 84, .4); }
.pricing .plan-name { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.pricing .plan-amount { font-family: inherit; font-weight: 800; font-size: clamp(2.75rem, 2rem + 1.6vw, 3.5rem); letter-spacing: -.055em; line-height: .95; }
.pricing .plan-per { font-weight: 500; }
.pricing .plan-feats { padding-top: 18px; gap: 12px; }
.pricing .plan-feats li { padding-left: 26px; }
.pricing .plan-feats li > .ri-check-line { top: .1em; font-size: 1.05rem; line-height: 1.3; }
.pricing .plan .btn { border-radius: 999px; }

/* the recommended plan: the one filled card on the page */
.pricing .plan.is-hi { overflow: hidden; isolation: isolate; border-color: transparent; color: var(--on-grad);
  background: var(--grad); box-shadow: 0 30px 60px -30px rgba(52, 40, 160, .6); }
.pricing .plan.is-hi::before { content: ""; position: absolute; z-index: -1; width: 18rem; height: 18rem; right: -7rem; top: -9rem;
  border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pricing .plan.is-hi:hover { border-color: transparent; }
.pricing .plan.is-hi .plan-name, .pricing .plan.is-hi .plan-amount { color: var(--on-grad); }
.pricing .plan.is-hi .plan-pitch, .pricing .plan.is-hi .plan-per, .pricing .plan.is-hi .plan-sub,
.pricing .plan.is-hi .plan-for, .pricing .plan.is-hi .plan-feats { color: var(--on-grad-soft); }
.pricing .plan.is-hi .plan-feats { border-top-color: var(--on-grad-line); }
.pricing .plan.is-hi .plan-feats li > .ri-check-line { color: #fff; }
.pricing .plan.is-hi .chip { background: #fff; color: #12151b; font-weight: 700; }
.pricing .plan.is-hi .btn { background: #fff; color: #12151b; border-color: #fff; }
.pricing .plan.is-hi .btn:hover { background: #eef0f3; }
.pricing .plan.is-hi :focus-visible { outline-color: #fff; }
@media (min-width: 52rem) { .pricing .plan.is-hi { transform: translateY(-12px); } }

/* free: a quiet strip under the paid row */
.pricing .free-strip { margin: 28px 0 16px; padding: 22px 28px; background: var(--bg-warm); border-color: transparent; border-radius: 24px; }
.pricing .free-strip .plan-name { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.pricing .free-price .plan-amount { font-weight: 800; font-size: 2.25rem; letter-spacing: -.05em; }
.pricing .free-feats li { padding-left: 24px; }
.pricing .free-feats li::before { top: .15em; width: auto; height: auto; background: none; border-radius: 0;
  content: "\eb7a"; font-family: "remixicon"; color: var(--blue); font-size: 1rem; line-height: 1.3; }
.pricing .free-strip .btn { border-radius: 999px; }
.pricing .pr-foot { text-align: center; margin-inline: auto; }

/* ------------------------------------------------------------ plain-words sections */
.pricing .sec-intro .display-2 { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3rem); }
.pricing .terms { gap: 18px; }
.pricing .terms > div { padding: 24px 26px; border-radius: 20px; background: var(--bg-warm); border-color: transparent; }
.pricing .terms dt { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; }
.pricing .limits-ex { max-width: 50rem; padding: 30px 32px; border-radius: 24px; border-color: transparent; }
.pricing .limits-ex .limits-sum { font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }

/* ------------------------------------------------------------ comparison */
.pricing .cmp { border-radius: 24px; overflow: clip; border-color: var(--line); }
.pricing .cmp-scroll:focus-visible { border-radius: 24px; }
.pricing .cmp thead tr > :first-child { border-top-left-radius: 24px; }
.pricing .cmp thead tr > :last-child { border-top-right-radius: 24px; }
.pricing .cmp tfoot tr > :first-child { border-bottom-left-radius: 24px; }
.pricing .cmp tfoot tr > :last-child { border-bottom-right-radius: 24px; }
.pricing .cmp thead th { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.015em; }
.pricing .cmp thead th.is-hi { color: var(--ink); box-shadow: inset 0 4px 0 var(--grad-b); }
.pricing .cmp .is-hi { background: color-mix(in srgb, var(--grad-b) 7%, var(--paper)); }
.pricing .cmp-group th { padding-top: 30px; font-size: 1.0625rem; font-weight: 750; letter-spacing: -.015em; text-transform: none; color: var(--ink); }
.pricing .cmp-group th > span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); vertical-align: .08em; }
.pricing .cmp .yes-mark { color: var(--blue); font-size: 1.25rem; }
.pricing .cmp tfoot .btn { border-radius: 999px; }

/* ------------------------------------------------------------ FAQ */
.pricing .faq-list { max-width: 56rem; border-top-color: var(--cool-line); }
.pricing .faq-list details { border-bottom-color: var(--cool-line); }
.pricing .faq-list summary { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; }

/* ------------------------------------------------------------ closing band */
.pricing .cta-band .url-row { max-width: 560px; margin-top: 8px; }
.pricing .cta-band .display-2 { margin: 0 0 24px; }

@media (max-width: 48rem) {
  .pricing .plan { padding: 26px 22px 24px; }
  .pricing .free-strip { padding: 22px; }
  .pricing .limits-ex { padding: 24px 22px; }
}
@media (min-width: 52rem) { .pricing .plan-for { min-height: 2.9em; } }
