/* Live storefront and checkout controls. */
.pricing-page { background: #fff; }
#storefront[hidden], #pricing-demo[hidden] { display: none; }
#storefront { min-height: 76vh; padding: 36px 24px 96px; background: var(--paper, #f5f7fa); }
.small, .primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-size: .9375rem; font-weight: 600;
  line-height: 1.45; transition: background .18s, border-color .18s, color .18s;
}
.small, .primary { background: var(--ink, #262c38); border-color: var(--ink, #262c38); color: #fff; }
.primary { width: 100%; }
.primary:hover:not(:disabled), .small:hover:not(:disabled) { background: #3b4251; border-color: #3b4251; }
.secondary { background: #fff; color: var(--ink, #262c38); border-color: #d6dde6; }
.secondary:hover:not(:disabled) { background: #f5f8fa; border-color: #b4c0cd; }
button:disabled { cursor: not-allowed; opacity: .58; }
#storefront .intro { max-width: 920px; text-align: center; margin: 0 auto; padding: 60px 0 32px; }
#storefront .intro h1 { margin: 15px 0 16px; font-size: clamp(2.25rem, 4.2vw, 3.6rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
#storefront .intro > p:not(.pricing-eyebrow) { color: var(--muted, #667180); font-size: 1rem; line-height: 1.75; }
.demo-entry-link { display: inline-block; margin-top: 18px; color: var(--accent, #087f83); font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; }
.switcher { display: flex; width: fit-content; gap: 4px; margin: 0 auto 35px; padding: 4px; background: #e9eef3; border: 1px solid #e0e6ed; border-radius: 11px; }
.switcher a { min-width: 110px; text-align: center; text-decoration: none; padding: 9px 20px; border-radius: 7px; background: transparent; color: var(--muted, #667180); font-size: .9375rem; }
.switcher a[aria-current="page"] { background: #fff; color: var(--ink, #262c38); font-weight: 650; box-shadow: 0 1px 4px #26313b0d; }
.catalog { max-width: 1160px; margin-inline: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; color: var(--muted, #667180); }
.card, .empty { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.card { display: flex; flex-direction: column; width: min(360px, 100%); padding: 30px; box-shadow: 0 4px 20px #29334804; }
.card.selected { border-color: #77bec3; box-shadow: 0 0 0 1px #77bec3, 0 8px 24px #407a7d0b; }
.card h2 { color: var(--ink, #262c38); font-size: 1.375rem; line-height: 1.35; letter-spacing: -.03em; font-weight: 650; }
.price { margin: 22px 0 24px; color: var(--ink, #262c38); font-size: 2.75rem; font-weight: 650; line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.card ul { flex: 1; list-style: none; border-top: 1px solid #e8edf2; margin: 0 0 24px; padding: 17px 0 0; }
.card li { display: flex; align-items: center; gap: 9px; margin: 10px 0; color: var(--muted, #667180); font-size: .9375rem; }
.card li::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 1px; background: #79bcc2; }
.empty { width: min(720px, 100%); padding: 44px 30px; text-align: center; color: var(--muted, #667180); }
.empty h2 { margin-bottom: 12px; color: var(--ink, #262c38); font-size: 1.375rem; }
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 36px); margin: auto; padding: 30px; border: 1px solid #dfe5ec; border-radius: 20px; background: #fff; color: var(--ink, #262c38); box-shadow: 0 32px 100px #202a3a30; overflow-y: auto; }
dialog::backdrop { background: #222a3b66; backdrop-filter: blur(4px); }
dialog h2 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 650; }
dialog p { margin: 14px 0; color: var(--muted, #667180); font-size: .9375rem; line-height: 1.7; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 8px; background: #f2f5f8; color: #687282; font-size: 1.5rem; line-height: 1; }
.close:hover { background: #e8edf3; color: var(--ink, #262c38); }
dialog label { display: block; margin: 18px 0; color: #434d5c; font-size: .875rem; font-weight: 570; }
dialog input { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 11px 12px; border: 1px solid #d4dce6; border-radius: 9px; background: #fff; color: var(--ink, #262c38); font: inherit; font-size: 1rem; }
dialog input:focus { border-color: var(--accent, #087f83); outline: 2px solid #d9f1f2; outline-offset: 1px; }
dialog .feedback { min-height: 1.4em; color: #8c512c; font-size: .875rem; }
dialog summary { cursor: pointer; color: var(--muted, #667180); font-size: .875rem; }
.pair { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #e8edf2; font-size: .9375rem; }
.pair span { color: var(--muted, #667180); }
.pair strong { text-align: right; overflow-wrap: anywhere; }
.pricing-page .juzi-footer, .account-page .juzi-footer { border-top: 1px solid var(--line, #e0e5ec); }
.noscript-note { padding: 48px 24px; text-align: center; }
@media (max-width: 720px) {
  #storefront { padding: 22px 20px 65px; }
  #storefront .intro { padding: 42px 0 28px; }
  .card { width: 100%; max-width: 510px; padding: 26px; }
}
@media (max-width: 420px) {
  dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .small, .primary, .secondary { transition: none; }
}

.checkout-result, #shop-status { max-width: 700px; margin: 0 auto 22px; text-align: center; }
.checkout-result { color: #176560; }
.checkout-result a { margin-inline-start: 8px; text-decoration: underline; text-underline-offset: 3px; }
#shop-status { color: #8a432f; }

#checkout .dialog-head { margin-bottom: 22px; }
.checkout-product { padding: 18px 20px; margin-bottom: 6px; background: var(--paper); border-radius: 12px; }
.checkout-product > span { color: var(--accent); font-size: .8125rem; font-weight: 600; }
.checkout-product h3 { margin-top: 4px; font-size: 1.375rem; }
.checkout-product p { margin: 4px 0 0; }
.checkout-total { border: 0; padding: 17px 0 20px; }
.checkout-total strong { font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
#checkout .feedback:empty { display: none; }
.mock-payment { display: block; width: 100%; padding: 10px; margin-top: 8px; color: var(--accent); background: transparent; font-size: .875rem; }
.mock-payment:hover:not(:disabled) { text-decoration: underline; }
