/* TokenPlan: quiet typography, shared site colors, no decorative motion. */
html { scrollbar-gutter: stable; }
html[data-vt-theme] body.tp-page { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.65; letter-spacing: 0; }
.tp-page *, .tp-page *::before, .tp-page *::after { box-sizing: border-box; }
.tp-page [hidden] { display: none !important; }
.tp-page h1, .tp-page h2, .tp-page h3, .tp-page p { margin: 0; }
.tp-page a { color: inherit; text-decoration: none; }
.tp-page button, .tp-page input { font: inherit; }
.tp-page button, .tp-page a, .tp-page summary { -webkit-tap-highlight-color: transparent; }
.tp-container { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.tp-skip { position: fixed; top: -80px; left: 16px; z-index: 300; padding: 12px 18px; background: var(--vt-accent); color: var(--vt-on-accent) !important; }
.tp-skip:focus { top: 12px; }
.tp-header { border-bottom: 1px solid var(--vt-line); background: var(--vt-bg); }
body.tp-page .nav-inner { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 22px; min-height: 76px; height: auto; }
.tp-brand { display: flex; align-items: center; width: 150px; }
.tp-brand img { display: block; width: 100%; height: auto; }
.tp-nav-links { display: flex; align-items: center; justify-content: center; gap: 28px; }
.tp-nav-links a { padding: 24px 0; color: var(--vt-muted); font-size: 13px; white-space: nowrap; }
.tp-nav-links a[aria-current="page"] { color: var(--vt-text); font-weight: 600; }
.tp-nav-links a:hover { color: var(--vt-text); }
.tp-account { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; padding: 8px 0; }
.tp-language { min-width: 68px; }
.tp-page #vectide-language { position: relative !important; inset: auto !important; margin: 0 !important; z-index: 130; }
.tp-page #vectide-language > summary { min-height: 34px; padding: 7px 5px; border-color: transparent; border-radius: 6px; background: transparent; box-shadow: none; font-size: 12px; }
.tp-page #vectide-language .vti-panel { position: absolute; top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }
.tp-page .vt-theme-toggle { width: 34px !important; height: 34px !important; min-width: 34px !important; padding: 7px !important; border-color: transparent !important; border-radius: 7px !important; }
.tp-intro { padding: 58px 0 30px; }
.tp-intro h1 { font-size: clamp(34px, 4vw, 42px); font-weight: 550; line-height: 1.2; letter-spacing: -.04em; }
.tp-intro p { margin-top: 13px; color: var(--vt-muted); font-size: 15px; line-height: 1.7; }
.tp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tp-plan { display: flex; flex-direction: column; padding: 25px 28px 28px; border: 1px solid var(--vt-line); border-radius: 12px; background: var(--vt-surface); }
.tp-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tp-plan h2 { font-size: 17px; line-height: 1.5; font-weight: 550; }
.tp-unit-cost { font-size: 12px; color: var(--vt-faint); text-align: right; }
.tp-quota { display: flex; align-items: baseline; gap: 10px; margin-top: 25px !important; }
.tp-quota strong { font-size: 37px; font-weight: 550; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tp-quota span { color: var(--vt-muted); font-size: 13px; }
.tp-plan-description { margin-top: 11px !important; color: var(--vt-muted); font-size: 13px; }
.tp-plan-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--vt-line); }
.tp-price { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.tp-price strong { font-size: 26px; font-weight: 550; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.tp-price span { font-size: 12px; color: var(--vt-muted); }
body.tp-page .tp-buy { min-height: 42px; padding: 9px 25px; border: 1px solid var(--vt-accent); border-radius: 7px; background: var(--vt-accent); color: var(--vt-on-accent); font-size: 13px; font-weight: 500; cursor: pointer; }
body.tp-page .tp-buy:hover { opacity: .88; }
.tp-plan-note { margin-top: 14px !important; color: var(--vt-muted); font-size: 12px; }
.tp-section { padding: 42px 0 0; }
.tp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 13px; }
.tp-section h2 { font-size: 19px; font-weight: 550; letter-spacing: -.015em; line-height: 1.5; }
.tp-section-lead { color: var(--vt-muted); font-size: 13px; line-height: 1.7; margin-bottom: 18px !important; }
.tp-search-label { flex: 0 1 240px; }
.tp-search { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 8px 11px; border: 1px solid var(--vt-line); border-radius: 6px; background: var(--vt-bg); color: var(--vt-text); font-size: 12px !important; line-height: 1.5; }
.tp-search::placeholder { color: var(--vt-faint); }
.tp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tp-model-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.tp-model-table caption { text-align: left; }
.tp-model-table thead { color: var(--vt-muted); }
.tp-model-table th, .tp-model-table td { padding: 15px 0; border-bottom: 1px solid var(--vt-line); text-align: left; vertical-align: baseline; }
.tp-model-table thead th { padding-top: 10px; font-weight: 400; font-size: 12px; }
.tp-model-table th:first-child { width: 94px; }
.tp-model-table tbody th { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--vt-text); }
.tp-model-list { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 23px; row-gap: 8px; padding: 0; margin: 0; list-style: none; }
.tp-model-list li { min-width: 0; }
.tp-model-list code { font-family: inherit; font-size: 13px; overflow-wrap: anywhere; color: var(--vt-text); }
.tp-search-status { padding-top: 13px; color: var(--vt-muted); font-size: 12px; }
.tp-faq { padding-top: 37px; }
.tp-faq h2 { margin-bottom: 12px; }
.tp-faq details { border-bottom: 1px solid var(--vt-line); }
.tp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; flex: none; font-size: 18px; font-weight: 400; color: var(--vt-muted); }
.tp-faq details[open] summary::after { content: "−"; }
.tp-faq details p { padding: 0 32px 18px 0; max-width: 780px; font-size: 13px; line-height: 1.8; color: var(--vt-muted); }
.tp-footer { margin-top: 55px; padding: 23px 0 25px; border-top: 1px solid var(--vt-line); color: var(--vt-faint); font-size: 12px; }
/* Checkout keeps the existing IDs, payment choices and transaction code. */
html[data-vt-theme] .tp-page .purchase-dialog { width: min(540px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px) !important; padding: 0; margin: auto; border: 1px solid var(--vt-line); border-radius: 14px; color: var(--vt-text); background: var(--vt-surface); box-shadow: 0 24px 80px #0003; overflow: hidden; }
.tp-page .purchase-dialog::backdrop { background: #0007; backdrop-filter: blur(4px); }
html[data-vt-theme] .tp-page .purchase-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 34px) !important; }
.tp-page .purchase-head { position: relative; flex: none; padding: 24px 26px 20px; border-bottom: 1px solid var(--vt-line); }
.tp-page .purchase-title { padding-right: 32px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.tp-page .purchase-close { position: absolute; top: 18px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--vt-muted); font-size: 23px; line-height: 1; }
.tp-page .purchase-close:hover { background: var(--vt-raised); color: var(--vt-text); }
.tp-page .purchase-body { min-height: 0; padding: 22px 26px; overflow-y: auto; overscroll-behavior: contain; }
.tp-page .purchase-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding-bottom: 20px; align-items: center; border-bottom: 1px solid var(--vt-line); }
.tp-page .purchase-product { display: none; }
.tp-page .purchase-name { font-size: 16px; font-weight: 550; line-height: 1.5; }
.tp-page .purchase-detail { margin-top: 6px; color: var(--vt-muted); font-size: 12px; line-height: 1.7; }
.tp-page .purchase-price { font-size: 28px; font-weight: 550; letter-spacing: -.035em; white-space: nowrap; }
.tp-page .purchase-price small { display: block; text-align: right; font-size: 12px; color: var(--vt-muted); font-weight: 400; letter-spacing: 0; }
.tp-page .pay-label { display: block; margin: 20px 0 10px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--vt-text); }
.tp-page .pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tp-page .pay-option { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-content: center; align-items: center; column-gap: 8px; row-gap: 3px; min-height: 70px; padding: 12px; border: 1px solid var(--vt-line); border-radius: 7px; background: transparent; cursor: pointer; transform: none !important; box-shadow: none !important; }
.tp-page .pay-option input { position: static; width: 14px; height: 14px; margin: 0; opacity: 1; grid-row: 1 / 3; }
.tp-page .pay-option strong { font-size: 13px; font-weight: 500; }
.tp-page .pay-option small { font-size: 11px; line-height: 1.5; color: var(--vt-muted); }
.tp-page .pay-option:has(input:checked) { border-color: var(--vt-text); background: var(--vt-raised); }
.tp-page .purchase-status { margin: 12px 0 0; min-height: 0; font-size: 12px; color: var(--vt-muted); }
.tp-page .purchase-status:empty { display: none; }
.tp-page .purchase-status.error { color: #c4564c; }
html[data-vt-theme="dark"] .tp-page .purchase-status.error { color: #ef9b92; }
.tp-page .purchase-result { display: none; margin: 18px 0 0; padding: 15px; border: 1px solid var(--vt-line); border-radius: 8px; text-align: center; font-size: 12px; line-height: 1.7; }
.tp-page .purchase-result.show { display: block; }
.tp-page .purchase-qr-frame { display: none; max-width: 300px; margin: 0 auto 12px; padding: 10px; background: white; border-radius: 7px; }
.tp-page .purchase-qr-frame.show { display: block; }
.tp-page .purchase-qr-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.tp-page .purchase-result [data-payment-link] { margin-bottom: 10px; }
.tp-page .purchase-actions { display: flex; justify-content: flex-end; gap: 10px; flex: none; padding: 18px 26px; border-top: 1px solid var(--vt-line); }
body.tp-page .button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 18px; border: 1px solid var(--vt-line); border-radius: 7px; background: transparent; color: var(--vt-text); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; box-shadow: none; transform: none; }
body.tp-page .button.primary { border-color: var(--vt-accent); background: var(--vt-accent); color: var(--vt-on-accent); }
body.tp-page .button:hover { opacity: .88; }
body.tp-page .button:disabled { opacity: .5; cursor: not-allowed; }
.tp-page .button-spinner { display: none; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.tp-page .loading .button-spinner { display: inline-block; animation: tp-spin 1s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .tp-container { width: calc(100% - 40px); }
  body.tp-page .nav-inner { min-height: 64px; column-gap: 12px; row-gap: 0; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "brand language account theme" "links links links links"; }
  .tp-brand { grid-area: brand; width: 132px; max-width: 100%; padding-top: 14px; padding-bottom: 4px; }
  .tp-account { grid-area: account; justify-self: end; margin-top: 10px; max-width: 12ch; }
  .tp-language { grid-area: language; margin-top: 10px; }
  .tp-page #vectide-language .vti-panel { position: fixed; top: 66px; right: 20px; left: auto; width: 240px; max-width: calc(100vw - 40px); }
  .tp-page .vt-theme-toggle { grid-area: theme; margin-top: 10px; }
  .tp-nav-links { grid-area: links; justify-content: flex-start; gap: 26px; }
  .tp-nav-links a { padding: 10px 0 14px; font-size: 12px; }
  .tp-intro { padding-top: 32px; padding-bottom: 23px; }
  .tp-intro p { font-size: 13px; margin-top: 10px; }
  .tp-plans { gap: 14px; }
  .tp-plan { padding: 20px; }
  .tp-plan-top { display: block; }
  .tp-unit-cost { display: block; margin-top: 4px; text-align: left; font-size: 11px; }
  .tp-plan-bottom { flex-wrap: wrap; margin-top: 22px; gap: 14px; }
  .tp-plan-bottom .tp-buy { width: 100%; }
  .tp-quota { flex-wrap: wrap; gap: 5px 8px; margin-top: 18px !important; }
  .tp-quota strong { font-size: 31px; }
  .tp-quota span { font-size: 12px; }
  .tp-price strong { font-size: 24px; }
  .tp-price span { font-size: 11px; }
  .tp-section { padding-top: 32px; }
  .tp-section-head { gap: 15px; }
  .tp-section h2 { font-size: 18px; }
  .tp-search-label { flex-basis: 175px; }
  .tp-model-table th:first-child { width: 64px; }
  .tp-model-table th, .tp-model-table td { padding-block: 14px; }
  .tp-model-list { column-gap: 16px; row-gap: 7px; }
  .tp-model-list code { font-size: 12px; }
  .tp-footer { margin-top: 36px; padding-bottom: 24px; }
}
@media (max-width: 520px) {
  .tp-plans { grid-template-columns: 1fr; }
  .tp-plan-top { display: flex; }
  .tp-unit-cost { margin: 0; text-align: right; }
  .tp-plan-bottom { flex-wrap: nowrap; }
  .tp-plan-bottom .tp-buy { width: auto; padding-inline: 22px; }
  .tp-quota strong { font-size: 34px; }
  .tp-section-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .tp-search-label { flex: auto; }
  .tp-page .purchase-head { padding: 21px 20px 16px; }
  .tp-page .purchase-body { padding: 18px 20px; }
  .tp-page .purchase-actions { padding: 15px 20px; }
  .tp-page .purchase-summary { gap: 14px; }
  .tp-page .purchase-price { font-size: 25px; }
  .tp-page .pay-options { gap: 8px; }
  .tp-page .pay-option { padding: 10px 8px; column-gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } .tp-page .button-spinner { animation: none; } }
