/* Public product pages. Layout rules are scoped to avoid affecting the workspace. */
.portal-page { background: #fff; }
.portal-page .eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 650; letter-spacing: 1.2px; color: var(--muted); }
.portal-page .text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--primary); }
.portal-page .text-link span { font-size: 16px; }
.portal-page .topnav-links a[aria-current="page"] { color: var(--primary); }
.portal-page .portal-hero { padding: 62px 0 56px; background: var(--bg); }
.portal-page .hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.portal-page .hero-copy h1 { margin-bottom: 22px; font-size: clamp(29px, 3.6vw, 40px); line-height: 1.4; letter-spacing: -.7px; font-weight: 650; }
.portal-page .hero-description { max-width: 460px; margin-bottom: 26px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.portal-page .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.portal-page .hero-actions .btn { min-height: 42px; padding: 10px 22px; }
.portal-page .hero-billing { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 24px 0 8px; font-size: 12px; color: var(--muted); }
.portal-page .hero-billing strong { color: var(--text); font-weight: 600; }
.portal-page .hero-billing > span { height: 13px; width: 1px; margin: 0 7px; background: #cad1d9; }

/* A clearly labelled document sample, with no invented customer activity. */
.portal-page .receipt-preview { min-width: 0; margin: 0; border: 1px solid #d4dbe3; border-radius: 6px; background: #edf0f3; overflow: hidden; }
.portal-page .preview-toolbar { height: 41px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d4dbe3; background: #fff; color: #4e5e6f; font-size: 12px; }
.portal-page .preview-label { font-size: 10px; border: 1px solid var(--border); padding: 1px 6px; border-radius: 3px; color: var(--muted); }
.portal-page .receipt-sheet { margin: 18px 22px 0; padding: 22px 24px 16px; border: 1px solid #dce0e5; background: #fff; color: #394c60; }
.portal-page .receipt-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #334d69; font-size: 9px; letter-spacing: .8px; color: #5f7183; }
.portal-page .receipt-heading > :first-child { font-weight: 750; }
.portal-page .receipt-sheet h2 { margin: 20px 0 6px; text-align: center; font-family: "Songti SC", SimSun, serif; font-size: 22px; font-weight: 600; letter-spacing: 8px; color: #2f4358; }
.portal-page .receipt-number { text-align: center; margin: 0 0 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; color: #68788a; }
.portal-page .receipt-parties { margin: 0 0 16px; display: grid; gap: 5px; font-size: 10px; }
.portal-page .receipt-parties > div { display: flex; gap: 18px; }
.portal-page .receipt-parties dt { color: #748190; flex-shrink: 0; }
.portal-page .receipt-parties dd { margin: 0; }
.portal-page .receipt-items { border-collapse: collapse; width: 100%; font-size: 10px; }
.portal-page .receipt-items th { padding: 8px 6px; text-align: left; color: #617181; background: #f2f5f7; border-top: 1px solid #bfcbd7; border-bottom: 1px solid #dfe4e9; font-weight: 500; }
.portal-page .receipt-items td { padding: 10px 6px; border-bottom: 1px solid #e6ebef; }
.portal-page .receipt-items th:nth-child(n+2), .portal-page .receipt-items td:nth-child(n+2) { text-align: right; }
.portal-page .receipt-items tfoot td { border-bottom: 1px solid #bfcbd7; font-weight: 650; }
.portal-page .receipt-items tfoot td:last-child { font-size: 14px; font-variant-numeric: tabular-nums; }
.portal-page .receipt-total { font-size: 9px; padding: 10px 6px; }
.portal-page .receipt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #84909c; font-size: 8px; }
.portal-page .receipt-file { padding: 3px 5px; border: 1px solid #cbd4dd; border-radius: 2px; font-size: 9px; letter-spacing: .5px; }
.portal-page .receipt-preview figcaption { padding: 11px 8px 13px; text-align: center; font-size: 10px; color: #718091; }

.portal-page .portal-facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.portal-page .facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 25px; padding-bottom: 25px; }
.portal-page .facts-grid > div { display: flex; align-items: flex-start; gap: 14px; padding: 0 24px; border-right: 1px solid var(--border); }
.portal-page .facts-grid > div:first-child { padding-left: 0; }
.portal-page .facts-grid > div:last-child { border-right: 0; padding-right: 0; }
.portal-page .fact-index { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #8b99a7; font-size: 12px; padding-top: 2px; }
.portal-page .facts-grid strong, .portal-page .facts-grid small { display: block; }
.portal-page .facts-grid strong { margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.portal-page .facts-grid small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.portal-page .portal-section { padding-top: 60px; padding-bottom: 60px; }
.portal-page .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portal-page .section-heading h2, .portal-page .faq-intro h2 { font-size: 23px; font-weight: 600; margin-bottom: 0; }
.portal-page .section-heading .eyebrow { margin-bottom: 9px; }
.portal-page .section-heading > p { color: var(--muted); font-size: 12px; max-width: 340px; margin: 0; }
.portal-page .capability-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.portal-page .capability { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 28px 30px 28px 0; border-bottom: 1px solid var(--border); }
.portal-page .capability:nth-child(even) { padding-left: 30px; padding-right: 0; }
.portal-page .capability-index { font-size: 11px; letter-spacing: .4px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.portal-page .capability h3 { font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.portal-page .capability p { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 12px; }
.portal-page .workflow-section { padding: 48px 0; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.portal-page .workflow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.portal-page .workflow-list li { border-top: 2px solid #c6d1dc; padding-top: 14px; }
.portal-page .workflow-list li > span { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #6a8096; margin-bottom: 14px; }
.portal-page .workflow-list h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.portal-page .workflow-list p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0; }
.portal-page .faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 62px; }
.portal-page .faq-intro > p:not(.eyebrow) { margin: 16px 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.portal-page .faq-list { border-top: 1px solid var(--border); }
.portal-page .faq-item { border: 0; border-bottom: 1px solid var(--border); background: #fff; }
.portal-page .faq-item summary { position: relative; padding: 18px 28px 18px 0; font-size: 13px; font-weight: 550; cursor: pointer; list-style: none; }
.portal-page .faq-item summary::-webkit-details-marker { display: none; }
.portal-page .faq-item summary::after { position: absolute; right: 2px; content: "+"; color: #708091; font-size: 18px; font-weight: 400; top: 13px; }
.portal-page .faq-item[open] summary::after { content: "−"; }
.portal-page .faq-body { padding: 0 24px 18px 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.portal-page .site-footer { margin-top: 0; background: var(--bg); }
.portal-page .footer-description { margin: 12px 0 4px; font-size: 12px; }
.portal-page .footer-note { margin: 0; font-size: 11px; }

/* One rate sheet with prepaid amounts and billing rules. */
.portal-page.pricing-page { background: var(--bg); }
.portal-page .pricing-main { padding-top: 48px; padding-bottom: 60px; }
.portal-page .pricing-heading { margin-bottom: 32px; }
.portal-page .pricing-heading .eyebrow { margin-bottom: 10px; }
.portal-page .pricing-heading h1 { font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.portal-page .pricing-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.portal-page .pricing-overview { display: grid; grid-template-columns: 1fr 1fr 1.1fr; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 5px; background: #fff; }
.portal-page .pricing-block { padding: 26px; border-right: 1px solid var(--border); }
.portal-page .pricing-block:last-child { border-right: 0; }
.portal-page .pricing-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.portal-page .pricing-amount { font-size: 36px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.portal-page .pricing-amount > span { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.portal-page .pricing-block > p:not(.pricing-label):not(.pricing-amount) { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.portal-page .pricing-block .btn { margin-top: 2px; font-size: 12px; }
.portal-page .pricing-api h2 { font-size: 20px; font-weight: 600; margin-top: 22px; margin-bottom: 12px; }
.portal-page .pricing-section { margin-top: 44px; }
.portal-page .pricing-section .section-heading { margin-bottom: 18px; }
.portal-page .pricing-section .section-heading h2 { font-size: 20px; }
.portal-page .pricing-section .section-heading p { font-size: 12px; color: var(--muted); margin: 9px 0 0; }
.portal-page .pricing-currency { color: var(--muted); font-size: 11px; white-space: nowrap; }
.portal-page .tiers-table th, .portal-page .tiers-table td { padding: 16px 24px; }
.portal-page .tiers-table th:not(:first-child), .portal-page .tiers-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.portal-page .tiers-table td:nth-child(3) { font-weight: 600; color: var(--text); }
.portal-page .payment-note { display: flex; gap: 20px; padding: 16px 2px 0; font-size: 12px; color: var(--muted); }
.portal-page .payment-note strong { white-space: nowrap; color: var(--text); font-weight: 550; }
.portal-page .payment-note p { margin: 0; }
.portal-page .billing-rules { margin: 0; border-top: 1px solid var(--border); }
.portal-page .billing-rules > div { display: grid; grid-template-columns: 160px 1fr; padding: 18px 0; border-bottom: 1px solid var(--border); gap: 30px; }
.portal-page .billing-rules dt { font-size: 13px; font-weight: 550; }
.portal-page .billing-rules dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

@media (max-width: 1000px) {
  .portal-page .hero-layout { gap: 30px; }
  .portal-page .receipt-sheet { margin: 15px 15px 0; padding: 18px; }
  .portal-page .capability { grid-template-columns: 1fr; gap: 10px; }
  .portal-page .faq-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .portal-page .pricing-block { padding: 22px; }
}
@media (max-width: 760px) {
  .portal-page .portal-hero { padding: 36px 0; }
  .portal-page .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .portal-page .hero-description { max-width: 560px; }
  .portal-page .hero-copy h1 { font-size: 32px; }
  .portal-page .receipt-preview { width: 100%; max-width: 520px; }
  .portal-page .receipt-sheet { margin: 16px 22px 0; padding: 22px; }
  .portal-page .facts-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .portal-page .facts-grid > div { border-right: 0; padding: 0; }
  .portal-page .facts-grid strong { margin-bottom: 2px; }
  .portal-page .portal-section { padding-top: 38px; padding-bottom: 38px; }
  .portal-page .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .portal-page .section-heading > p { max-width: none; }
  .portal-page .workflow-section { padding: 36px 0; }
  .portal-page .workflow-list { grid-template-columns: 1fr 1fr; gap: 24px; }
  .portal-page .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .portal-page .faq-intro > p:not(.eyebrow) { margin: 12px 0; }
  .portal-page .pricing-main { padding-top: 32px; padding-bottom: 36px; }
  .portal-page .pricing-heading h1 { font-size: 27px; }
  .portal-page .pricing-overview { grid-template-columns: 1fr 1fr; }
  .portal-page .pricing-block:nth-child(2) { border-right: 0; }
  .portal-page .pricing-api { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .portal-page .pricing-api h2 { margin-top: 0; }
  .portal-page .pricing-api .pricing-label { margin-bottom: 12px; }
  .portal-page .pricing-section { margin-top: 34px; }
  .portal-page .billing-rules > div { grid-template-columns: 120px 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .portal-page .capability-grid { grid-template-columns: 1fr; }
  .portal-page .capability, .portal-page .capability:nth-child(even) { padding: 22px 0; }
  .portal-page .receipt-sheet { margin: 12px 12px 0; padding: 16px; }
  .portal-page .receipt-preview figcaption { font-size: 9px; }
  .portal-page .workflow-list { gap: 24px 18px; }
  .portal-page .pricing-block { padding: 18px 14px; }
  .portal-page .pricing-amount { font-size: 29px; }
  .portal-page .pricing-amount > span { font-size: 11px; }
  .portal-page .pricing-label { font-size: 11px; }
  .portal-page .tiers-table th, .portal-page .tiers-table td { padding: 13px 10px; font-size: 11px; white-space: nowrap; }
  .portal-page .payment-note { flex-direction: column; gap: 6px; }
  .portal-page .billing-rules > div { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; }
}

/* Compatibility for auth and verification pages until their styles are split. */
.auth-shell { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: min(460px, 100%); padding: 34px; }
.auth-card h1 { font-size: 22px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.auth-form { display: grid; gap: 14px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.license-drop { border: 1px dashed var(--border); border-radius: 6px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #f8fafc; }
.license-drop.has-file { border-color: var(--success); color: var(--success); background: #f0fdf4; }
.verify-shell { max-width: 720px; margin: 0 auto; padding: 52px 20px 80px; }
.verify-search { display: flex; gap: 10px; margin: 22px 0; }
.verify-search input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; font: inherit; font-size: 15px; }
.verify-result { margin-top: 8px; }
.verify-field { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.verify-field span { color: var(--muted); }
.verify-field b { text-align: right; word-break: break-all; }
