/* Public pages share the landing page's blue, typography and surface scale. */
.subpage { min-height: calc(100vh - 76px); padding: 48px 28px 72px; background: var(--ui-canvas); }
.page-shell { width: min(1120px,100%); margin: 0 auto; }
.glass-panel { border: 1px solid var(--ui-border); border-radius: 24px; background: #fff; box-shadow: var(--ui-shadow); }
.eyebrow { color: var(--ui-blue); font-weight: 650; font-size: 12px; letter-spacing: .6px; }

/* Pricing */
.pricing-hero { padding: 40px; }
.pricing-intro { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 48px; align-items: center; }
.pricing-intro h1 { max-width: 650px; margin: 14px 0 16px; font-size: clamp(28px,3.2vw,38px); font-weight: 700; line-height: 1.4; letter-spacing: -1px; text-wrap: balance; }
.pricing-intro p { max-width: 620px; margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.9; }
.pricing-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pricing-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border: 1px solid #dce7fc; border-radius: 12px; background: #f5f9ff; font-size: 12px; color: var(--ui-muted); }
.pricing-facts strong { color: var(--ui-blue); font-size: 16px; }
.price-picker { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--ui-border); }
.price-picker h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.price-picker > p { margin: 0 0 24px; color: var(--ui-muted); font-size: 13px; }
.price-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.price-option { position: relative; min-width: 0; padding: 22px 18px; border: 1px solid var(--ui-border); border-radius: 14px; background: #fff; color: var(--ui-ink); text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
button.price-option:hover { border-color: #92b2ef; transform: translateY(-2px); }
.price-option.active { border-color: var(--ui-blue); box-shadow: 0 0 0 1px var(--ui-blue), 0 8px 24px -14px #2465e866; background: #f6f9ff; }
.price-option small { color: #6a7890; font-size: 11px; }
.price-option .amount { margin: 12px 0 0; color: var(--ui-ink); font-size: 30px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.price-option h3 { margin: 18px 0 6px; font-size: 18px; }
.price-option p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.75; }
.custom-price { background: #f9fbfe; cursor: default; }
.custom-price label { display: block; font-size: 16px; font-weight: 650; }
.custom-price input { width: 100%; height: 44px; margin: 24px 0 16px; padding: 0 12px; border: 1px solid #cbd8ea; border-radius: 8px; background: #fff; color: var(--ui-ink); }
.custom-price small { display: block; margin-top: 12px; }
.price-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--ui-border); border-radius: 12px; background: #f8fafd; color: var(--ui-muted); font-size: 13px; }
.price-summary strong { text-align: right; color: var(--ui-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price-footer a, .pricing-notes a, .legal-body a { color: var(--ui-blue); }
.price-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; color: var(--ui-muted); font-size: 12px; }
.pay-button { flex: 0 0 auto; min-width: 190px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 10px; color: #fff; background: var(--ui-blue); font-weight: 650; box-shadow: 0 6px 16px -8px #2465e866; }
.pay-button:hover { background: var(--ui-blue-hover); }
.model-table { margin-top: 24px; padding: 30px; overflow-x: auto; }
.model-table h2 { margin: 0 0 8px; font-size: 21px; }
.table-lead { margin: 0 0 20px; color: var(--ui-muted); font-size: 13px; }
.model-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.model-table th, .model-table td { padding: 17px 14px; border-bottom: 1px solid var(--ui-border); text-align: left; white-space: nowrap; }
.model-table th { color: var(--ui-muted); background: #f8fafd; font-size: 12px; font-weight: 550; }
.model-table tbody tr:last-child td { border-bottom: 0; }
.pricing-notes { margin-top: 36px; }
.pricing-notes h2 { margin: 0 0 16px; font-size: 21px; }
.note-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.note-grid article { padding: 22px 24px; border: 1px solid var(--ui-border); border-radius: 14px; background: #fff; }
.note-grid h3 { margin: 0 0 8px; font-size: 15px; }
.docs-more { margin: 16px 0 0; color: var(--ui-muted); font-size: 13px; }
.docs-more a { color: var(--ui-blue); }
.note-grid p { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.85; }

/* About and policy pages: long-form text with a sticky outline. */
.legal-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--ui-border); border-radius: 16px; background: #fff; font-size: 13px; }
.legal-toc strong { margin-bottom: 6px; color: var(--ui-ink); font-size: 13px; }
.legal-toc a { padding: 6px 10px; border-radius: 8px; color: #546985; }
.legal-toc a:hover { background: var(--ui-blue-soft); color: var(--ui-blue); }
.legal-body { min-width: 0; padding: 40px 44px; }
.legal-body h1 { margin: 12px 0 8px; font-size: clamp(26px,3vw,34px); line-height: 1.4; letter-spacing: -.8px; }
.legal-meta { margin: 0 0 28px; color: var(--ui-muted); font-size: 13px; }
.legal-body h2 { margin: 34px 0 12px; padding-top: 4px; font-size: 19px; scroll-margin-top: 96px; }
.legal-body h3 { margin: 20px 0 8px; font-size: 15px; }
.legal-body p, .legal-body li { color: #3e5371; font-size: 14px; line-height: 1.95; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 12px; padding-left: 22px; }
.legal-body .lead { color: var(--ui-muted); font-size: 15px; }
.info-table { width: 100%; margin: 6px 0 12px; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { padding: 12px 14px; border: 1px solid var(--ui-border); text-align: left; vertical-align: top; }
.info-table th { width: 30%; color: var(--ui-muted); background: #f8fafd; font-weight: 550; }
.about-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 8px 0 12px; }
.about-cards article { padding: 20px; border: 1px solid var(--ui-border); border-radius: 14px; background: #f9fbfe; }
.about-cards h3 { margin: 0 0 6px; }
.about-cards p { margin: 0; font-size: 13px; }

/* Guided setup */
.docs-panel { padding: 40px; }
.docs-head { position: relative; padding-right: 240px; }
.docs-head h1 { margin: 12px 0; font-size: 36px; line-height: 1.4; font-weight: 700; letter-spacing: -1px; }
.docs-head > p { margin: 0; color: var(--ui-muted); font-size: 14px; }
.step-badge { position: absolute; right: 0; top: 12px; max-width: 220px; padding: 14px 18px; border: 1px solid #dce7fa; border-radius: 12px; background: #f4f8ff; color: var(--ui-muted); font-size: 12px; }
.step-badge strong { display: block; margin-top: 5px; color: #2454a0; font-weight: 600; }
.docs-body { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--ui-border); }
.step-nav { display: flex; flex-direction: column; gap: 10px; }
.step-nav button { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px; border: 1px solid transparent; border-radius: 10px; background: #f7f9fd; color: #506783; text-align: left; font-size: 13px; line-height: 1.6; transition: background .2s; }
.step-nav button span { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; color: #7183a0; border: 1px solid #e0e7f2; border-radius: 8px; background: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.step-nav button:hover { background: #edf3ff; }
.step-nav button.active { color: var(--ui-blue); border-color: #c8dbff; background: #edf4ff; font-weight: 650; }
.step-nav button.active span { color: #fff; border-color: var(--ui-blue); background: var(--ui-blue); }
.step-content { min-width: 0; padding: 26px; border: 1px solid var(--ui-border); border-radius: 16px; background: #fff; }
.step-content h2 { margin: 0; font-size: 25px; line-height: 1.5; font-weight: 650; letter-spacing: -.5px; }
.step-content > p { margin: 12px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.85; }
.doc-demo { display: grid; gap: 24px; margin-top: 24px; }
.doc-demo img { display: block; width: 100%; border: 1px solid var(--ui-border); border-radius: 12px; }
.instruction h3 { margin: 0 0 14px; font-size: 16px; }
.instruction ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.instruction li { display: flex; align-items: baseline; gap: 12px; color: #526781; font-size: 13px; }
.instruction li::before { flex: 0 0 auto; counter-increment: steps; content: counter(steps); display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid #dce7fa; border-radius: 50%; color: var(--ui-blue); background: #f1f6ff; font-size: 11px; }
.doc-note { margin-top: 22px; padding: 18px 20px; border: 1px solid #d9e8e4; border-radius: 12px; background: #f5faf8; color: #47685c; font-size: 13px; }
.doc-note p { margin: 7px 0 0; line-height: 1.8; }

/* Account entry: balanced spacing and consistent, usable form controls. */
.register-page { min-height: 100vh; padding: 28px 28px 64px; background: radial-gradient(ellipse at 90% 5%,#e5efff,transparent 50%), var(--ui-canvas); }
.register-top { width: min(1120px,100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.register-login { padding: 9px 15px; border: 1px solid var(--ui-border); border-radius: 9px; background: #fff; color: #49617f; font-size: 12px; font-weight: 550; }
.register-login:hover { color: var(--ui-blue); border-color: #bcd0f2; }
.role-panel { width: min(1040px,100%); margin: 72px auto 0; padding: 44px; }
.role-title { text-align: center; }
.role-title > span { color: var(--ui-blue); font-size: 13px; font-weight: 600; }
.role-title h1 { margin: 12px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.8px; }
.register-roles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.register-role { min-width: 0; padding: 28px 18px; border: 1px solid var(--ui-border); border-radius: 16px; background: #fff; color: var(--ui-ink); transition: transform .2s, border-color .2s, background .2s; }
.register-role:hover { transform: translateY(-3px); border-color: #9fbdf1; background: #f9fbff; }
.register-role.selected { border-color: var(--ui-blue); box-shadow: 0 0 0 1px var(--ui-blue); background: #f3f7ff; }
.register-role img { width: 100px; height: 100px; object-fit: cover; border: 4px solid #f1f5fc; border-radius: 50%; }
.register-role h2 { margin: 18px 0 10px; font-size: 19px; }
.register-role p { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.85; }
.role-confirm { display: none; margin: 28px auto 0; max-width: 100%; min-height: 46px; padding: 10px 26px; border: 0; border-radius: 10px; color: #fff; background: var(--ui-blue); font-weight: 600; font-size: 14px; }
.role-confirm.show { display: block; }
.login-card { width: min(920px,100%); margin: 76px auto 0; display: grid; grid-template-columns: .85fr 1fr; overflow: hidden; }
.login-card > section { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 44px 36px; border-right: 1px solid #e0eafa; background: radial-gradient(circle at 12% 90%,#def3f0,transparent 45%), linear-gradient(140deg,#f2f7ff,#e9f1ff); }
.login-card > section::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 28px; border-radius: 4px; background: linear-gradient(90deg,var(--ui-blue),#74c8bc); }
.login-card h1 { margin: 18px 0 14px; font-size: 36px; font-weight: 700; line-height: 1.35; letter-spacing: -1px; }
.login-card > section p { margin: 0; color: #5a7290; font-size: 14px; line-height: 1.9; }
.login-card form { min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.login-card form h2 { margin: 0 0 4px; font-size: 23px; font-weight: 650; }
.login-card label { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: #405773; font-size: 13px; font-weight: 550; }
.login-card .input { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #cdd9e9; border-radius: 9px; color: var(--ui-ink); background: #fff; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.login-card .input::placeholder { color: #8795a9; font-weight: 400; }
.login-card .input:focus { border-color: var(--ui-blue); box-shadow: 0 0 0 3px #2465e812; outline: 0; }
.login-card .primary { width: 100%; min-height: 46px; height: auto; margin-top: 4px; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--ui-blue); color: #fff; font-size: 14px; font-weight: 650; box-shadow: 0 5px 12px -7px #2465e866; }
.login-card .primary:hover { background: var(--ui-blue-hover); }
.login-card .notice { margin: 0; padding: 13px; border: 1px solid #d3e2fa; border-radius: 10px; color: #48678f; background: #f3f7fe; font-size: 13px; line-height: 1.7; }
.register-account-card { width: min(1080px,100%); margin: 54px auto 0; grid-template-columns: .65fr 1fr; }
.register-account-card > section { justify-content: flex-start; padding-top: 58px; }
.register-account-card form { gap: 16px; }
.register-account-card .content-lead { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.85; }
.register-account-card .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; margin-top: 8px; }
.register-account-card .full { grid-column: 1 / -1; }
.register-account-card .sms-row { display: flex; align-items: center; gap: 10px; }
.register-account-card .sms-row .input { min-width: 0; flex: 1; width: 0; }
.register-account-card .sms-row .secondary { flex: 0 0 auto; min-height: 46px; padding: 0 12px; border: 1px solid #c9dafa; border-radius: 9px; background: #f1f6ff; color: #2458ae; font-size: 12px; font-weight: 600; }
.register-account-card .sms-row .captcha-image { margin: 0; flex: 0 0 150px; width: 150px; height: 46px; }

@media (max-width: 1000px) {
  .pricing-hero, .docs-panel { padding: 30px; }
  .price-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-intro { grid-template-columns: minmax(0,1fr) 200px; gap: 24px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-toc { position: static; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); }
  .legal-toc strong { grid-column: 1 / -1; }
  .about-cards { grid-template-columns: 1fr; }
  .docs-body { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
  .docs-head { padding-right: 0; }
  .step-badge { position: static; display: inline-block; max-width: 100%; margin-top: 20px; }
  .register-account-card form { padding: 32px; }
}
@media (max-width: 760px) {
  .subpage { padding: 24px 16px 44px; }
  .pricing-hero, .docs-panel { padding: 24px 18px; border-radius: 18px; }
  .pricing-intro { grid-template-columns: 1fr; gap: 22px; }
  .pricing-intro h1 { font-size: 28px; }
  .note-grid { grid-template-columns: 1fr; }
  .legal-body { padding: 26px 18px; border-radius: 18px; }
  .legal-body h2 { font-size: 17px; }
  .info-table th { width: 36%; }
  .price-picker { margin-top: 24px; padding-top: 24px; }
  .price-options { gap: 12px; }
  .price-option { padding: 18px 13px; }
  .price-option .amount { font-size: 25px; }
  .price-summary { padding: 16px; gap: 10px 12px; font-size: 12px; }
  .price-footer { flex-direction: column; align-items: stretch; gap: 16px; }
  .pay-button { width: 100%; }
  .model-table { padding: 24px 18px; border-radius: 18px; }
  .docs-head h1 { font-size: 28px; }
  .docs-body { grid-template-columns: 1fr; margin-top: 24px; padding-top: 20px; }
  .step-nav { flex-direction: row; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
  .step-nav button { flex: 0 0 166px; min-height: 66px; font-size: 12px; }
  .step-content { padding: 22px 16px; }
  .step-content h2 { font-size: 22px; }
  .register-page { padding: 22px 18px 40px; }
  .register-top { gap: 12px; }
  .register-top .brand-cn { display: none; }
  .register-login { padding: 8px 10px; font-size: 11px; }
  .role-panel { margin-top: 36px; padding: 28px 20px; border-radius: 18px; }
  .role-title h1 { font-size: 27px; }
  .register-roles { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .register-role { display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; padding: 18px; text-align: left; align-items: center; }
  .register-role img { grid-row: 1 / 3; width: 64px; height: 64px; border-width: 3px; }
  .register-role h2 { margin: 0; font-size: 17px; }
  .register-role p { font-size: 12px; }
  .login-card, .register-account-card { margin: 36px auto 0; display: block; width: 100%; border-radius: 18px; }
  .login-card > section { padding: 26px; border-right: 0; border-bottom: 1px solid #e0eafa; }
  .login-card > section::after { display: none; }
  .login-card h1 { margin: 10px 0; font-size: 28px; }
  .login-card > section p { font-size: 13px; }
  .login-card form { padding: 26px; }
  .register-account-card .form-grid { grid-template-columns: 1fr; }
  .register-account-card .full { grid-column: auto; }
}
@media (max-width: 380px) {
  .login-card form { padding: 22px 18px; }
  .register-account-card .sms-row { flex-wrap: wrap; }
  .register-account-card .sms-row .captcha-image { flex-basis: 120px; width: 120px; }
  .register-account-card .sms-row .secondary { padding-inline: 8px; font-size: 11px; }
  .price-options { grid-template-columns: 1fr; }
}
