:root {
  color-scheme: dark;
  --page: #15110b;
  --pane: #1c1710;
  --paper: #221b12;
  --paper-edge: #372c1e;
  --line: #3a2f21;
  --text: #f2ebdc;
  --soft: #cbbfa6;
  --muted: #b4a88d;
  --faint: #968a73;
  --accent: #d3a35c;
  --accent-ink: #241a0d;
  --focus: #f0c978;
  --bad: #df9788;
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-script: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--font-ui);
  background: var(--page);
  color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #ece3d3;
  --pane: #f6efe2;
  --paper: #fffdf8;
  --paper-edge: #d8c9af;
  --line: #d5c5aa;
  --text: #2b2418;
  --soft: #5a5140;
  --muted: #6d614d;
  --faint: #776a55;
  --accent: #905a18;
  --accent-ink: #fff8ec;
  --focus: #70440e;
  --bad: #9d3d31;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--page); color: var(--text); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { border-color: var(--focus); outline: 1px solid var(--focus); outline-offset: 1px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 20; width: min(1240px, calc(100% - 48px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 16px var(--font-script); letter-spacing: .06em; text-decoration: none; }
.site-brand span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.nav-cta { padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent) !important; }
.nav-toggle { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; }
.theme-button:hover { color: var(--text); }
.theme-button .theme-icon { display: block; width: 16px; height: 16px; }
.nav-toggle { display: none; padding: 0 13px; }
.hero { position: relative; box-sizing: content-box; width: min(1240px, calc(100% - 48px)); min-height: 700px; margin: 0 auto; display: grid; grid-template-columns: minmax(520px, .92fr) minmax(0, 1.08fr); align-items: center; gap: 64px; padding: 92px 0 108px; }
.hero::before { content: "SCENE 01 · 开场"; position: absolute; top: 26px; right: 0; color: var(--faint); font: 10px var(--font-mono); letter-spacing: .18em; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; letter-spacing: .3em; }
h1, h2, h3, blockquote { font-family: var(--font-script); }
h1 { margin: 0; max-width: 720px; font-size: clamp(44px, 5vw, 72px); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { max-width: 590px; margin: 32px 0 0; color: var(--soft); font: 17px/2 var(--font-script); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); font-size: 14px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.hero-note { margin: 22px 0 0; color: var(--faint); font-size: 13px; }
.editor-preview { position: relative; min-width: 0; border: 1px solid var(--line); background: var(--pane); box-shadow: 0 40px 90px -50px #000; }
.editor-preview::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border: 1px solid var(--paper-edge); }
.preview-bar { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.preview-bar > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.preview-bar small { flex: 1; font-size: 11px; }
.preview-bar em { color: var(--faint); font-size: 11px; font-style: normal; }
.preview-body { min-height: 478px; display: grid; grid-template-columns: 1fr 180px; }
.preview-paper { position: relative; margin: 24px; padding: 52px 44px; border: 1px solid var(--paper-edge); background: var(--paper); color: var(--soft); font: 15px/1.95 var(--font-script); transition: opacity .52s ease; }
.editor-preview[data-hero-phase="writing"] .preview-paper::before { content: "新场景正在成形"; position: absolute; left: 44px; top: 52px; color: var(--faint); font-size: 12px; letter-spacing: .16em; }
.editor-preview[data-hero-phase="writing"] .preview-paper { background: repeating-linear-gradient(to bottom, transparent 0 30px, color-mix(in srgb, var(--line) 48%, transparent) 30px 31px), var(--paper); }
.preview-paper p { margin: 0 0 18px; }
.preview-paper .scene-heading { color: var(--text); font-weight: 600; }
.preview-paper .dialogue { width: 70%; margin-left: auto; margin-right: auto; text-align: center; }
.preview-caret { display: inline-block; width: 1px; height: 1.2em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
.preview-caret[hidden] { display: none; }
.preview-notes { padding: 30px 18px; border-left: 1px solid var(--line); color: var(--muted); transition: opacity .52s ease, transform .52s ease; }
.preview-notes-content, .preview-notes-pending { min-height: 190px; }
.preview-notes small { color: var(--faint); letter-spacing: .12em; }
.preview-notes strong { display: block; margin: 24px 0 14px; color: var(--accent); font: 32px var(--font-script); }
.preview-notes p { font: 12px/1.8 var(--font-script); }
.preview-notes span { display: inline-block; margin-top: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--accent); font-size: 10px; }
.section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 124px 0; }
.section[data-scene] { position: relative; }
.section[data-scene]::before { content: attr(data-scene); position: absolute; top: 28px; right: 0; color: var(--faint); font: 10px var(--font-mono); letter-spacing: .18em; }
.ruled { border-top: 1px solid var(--line); }
.section-heading { max-width: 660px; margin-bottom: 70px; }
.section-heading h2, .final-cta h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); font-weight: 500; line-height: 1.3; }
.section-heading > p:last-child { color: var(--muted); font: 16px/1.8 var(--font-script); }
.capability-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.capability { min-height: 270px; padding: 28px 24px; border-right: 1px solid var(--line); transition: background .22s ease, transform .22s ease; }
.capability:first-child { border-left: 1px solid var(--line); }
.capability:hover { transform: translateY(-4px); background: var(--pane); }
.capability > span { color: var(--accent); font: 11px var(--font-mono); }
.capability h3 { margin: 62px 0 16px; font-size: 22px; font-weight: 500; }
.capability p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.workflow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line); }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.workflow-list span { color: var(--accent); font: 11px var(--font-mono); }
.workflow-list h3 { margin: 0 0 9px; font-size: 21px; font-weight: 500; }
.workflow-list p { margin: 0; color: var(--muted); font: 14px/1.8 var(--font-script); }
.quote-section { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
blockquote { margin: 0; color: var(--text); font-size: clamp(38px, 5vw, 68px); line-height: 1.35; }
.quote-section p { margin: 0; color: var(--muted); font: 14px/1.9 var(--font-script); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { min-height: 310px; padding: 34px; border: 1px solid var(--line); background: var(--pane); }
.price-card.featured { border-color: var(--accent); background: var(--paper); }
.price-card > p { color: var(--accent); font-size: 11px; letter-spacing: .16em; }
.price-card h3 { margin: 20px 0 26px; font-size: 34px; font-weight: 500; }
.price-card.featured h3 small { font-size: 1em; }
.price-card ul { display: grid; gap: 12px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.price-card li::before { content: "—"; margin-right: 10px; color: var(--accent); }
.price-card a { display: inline-block; margin-top: 28px; color: var(--accent); text-decoration: none; }
.final-cta { width: min(1120px, calc(100% - 48px)); margin: 0 auto 120px; padding: 84px; text-align: center; border: 1px solid var(--line); background: var(--paper); }
.final-cta .button { margin-top: 34px; }
.site-footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; padding: 46px 0 60px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer > p { margin: 0; text-align: right; line-height: 1.7; }
.page-hero { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 112px 0 74px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; }
.page-hero > p:last-child { max-width: 680px; color: var(--muted); font: 17px/1.9 var(--font-script); }
.pricing-page .page-hero { position: relative; padding: 112px 0 76px; }
.payment-status-banner { width: min(1120px, calc(100% - 48px)); margin: 56px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; border: 1px solid var(--accent); background: var(--paper); }
.payment-status-banner[data-state="loading"] { border-color: var(--line); }
.payment-status-banner[data-state="error"] { border-color: var(--bad); }
.payment-status-banner .eyebrow { margin-bottom: 9px; }
.payment-status-banner h2 { margin: 0; font-size: 28px; font-weight: 500; }
.payment-status-banner p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.payment-status-banner .button { flex: 0 0 auto; }
.pricing-page .page-hero + .section { padding-top: 96px; padding-bottom: 96px; }
.pricing-page .section + .payment-status-banner { margin-top: 0; }
.pricing-page .payment-status-banner + .section { padding-top: 96px; }
.pricing-page [data-scene], .checkout-page [data-scene], .legal-page [data-scene] { position: relative; }
.pricing-page [data-scene]::before, .checkout-page [data-scene]::before, .legal-page [data-scene]::before { content: attr(data-scene); position: absolute; top: 28px; right: 0; color: var(--faint); font: 10px var(--font-mono); letter-spacing: .18em; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-card { min-height: 400px; display: flex; flex-direction: column; padding: 40px; border: 1px solid var(--line); background: var(--pane); }
.plan-card.featured { border-color: var(--accent); background: var(--paper); }
.plan-card .plan-name { color: var(--accent); font-size: 12px; letter-spacing: .16em; }
.plan-card h2 { margin: 24px 0 10px; font-size: 38px; font-weight: 500; }
.plan-card .plan-price { display: flex; align-items: baseline; gap: 4px; font-size: 58px; letter-spacing: -.04em; }
.plan-price > span:first-child { font-size: 22px; color: var(--accent); }
.plan-price small { margin-left: 8px; color: var(--muted); font: 13px var(--font-ui); letter-spacing: 0; }
.plan-card.featured .plan-price { font-size: 38px; letter-spacing: 0; }
.plan-card.featured .plan-price > span:first-child { font-size: 1em; color: inherit; }
.plan-card.featured .plan-price small { margin-left: 4px; color: inherit; font: inherit; letter-spacing: inherit; }
.plan-card .plan-meta { min-height: 28px; color: var(--muted); }
.plan-card ul { display: grid; gap: 13px; margin: 30px 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--soft); }
.plan-card li::before, .rule-list li::before { content: "—"; margin-right: 10px; color: var(--accent); }
.plan-card .button { align-self: flex-start; margin-top: auto; }
.future-plan-note { margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--pane); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.data-table td { color: var(--soft); font-size: 14px; }
.data-table td:last-child { color: var(--accent); font-weight: 600; text-align: right; }
.data-table tr:last-child td { border-bottom: 0; }
.status-panel { padding: 28px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.status-panel.error { border-color: var(--bad); color: var(--bad); }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 46px; margin: 0; padding: 0; list-style: none; color: var(--soft); font: 15px/1.8 var(--font-script); }
.point-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--pane); }
.point-summary p { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 28px; border-right: 1px solid var(--line); }
.point-summary p:last-child { border-right: 0; }
.point-summary strong { color: var(--accent); font: 500 26px var(--font-script); }
.point-summary span { color: var(--muted); font-size: 13px; }
.pricing-source { max-width: 760px; margin: 24px 0 0; color: var(--faint); font-size: 13px; line-height: 1.8; }
.pricing-source a { color: var(--accent); text-underline-offset: 3px; }
.credit-cost-section { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.credit-cost-section .eyebrow { margin-bottom: 10px; }
.credit-cost-section h3 { margin: 0; font-size: 26px; font-weight: 500; }
.credit-cost-section .checkout-section-head > span { color: var(--faint); font-size: 12px; }
.credit-cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--line); background: var(--pane); }
.credit-cost-grid article { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credit-cost-grid article:nth-child(3n) { border-right: 0; }
.credit-cost-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.credit-cost-grid span { color: var(--muted); font-size: 13px; }
.credit-cost-grid strong { color: var(--accent); font: 500 22px var(--font-script); white-space: nowrap; }
.account-shell { width: min(960px, calc(100% - 48px)); min-height: calc(100vh - 220px); margin: 0 auto; padding: 92px 0 120px; }
.account-shell [data-scene] { position: relative; }
.account-shell [data-scene]::before { content: attr(data-scene); position: absolute; top: -58px; right: 0; color: var(--faint); font: 10px var(--font-mono); letter-spacing: .18em; }
.account-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.account-title h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); }
.account-actions { display: flex; gap: 10px; }
.account-state { padding-top: 42px; }
.auth-card { max-width: 560px; margin-inline: auto; padding: 38px; border: 1px solid var(--line); background: var(--pane); }
.auth-card h2, .account-section h2 { margin: 0 0 10px; font: 500 25px var(--font-script); }
.auth-card > p { color: var(--muted); line-height: 1.7; }
.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-form label, .auth-password-group { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.auth-form-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-form input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); }
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--paper) inset; caret-color: var(--text); }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-toggle { min-width: 52px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-form .button { justify-self: start; cursor: pointer; }
.auth-form-actions { display: grid; gap: 12px; justify-items: start; }
.auth-mode-link { min-height: auto; padding: 2px 0; border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-mode-link:hover { color: var(--text); }
.form-error { min-height: 20px; margin: 0; color: var(--bad); font-size: 13px; }
.account-summary-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.account-metric { min-height: 150px; padding: 26px; border: 1px solid var(--line); background: var(--pane); }
.account-metric small { color: var(--faint); font-size: 12px; letter-spacing: .12em; }
.account-metric strong { display: block; margin-top: 28px; color: var(--text); font: 500 24px var(--font-script); }
.account-metric.balance strong { color: var(--accent); font-size: 40px; }
.account-metric.balance { border-color: var(--accent); background: var(--paper); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.account-metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.account-payment-status { display: block; margin-top: 18px; color: var(--accent); font-size: 13px; line-height: 1.6; }
.account-metric.balance .button { margin-top: 18px; }
.account-section { margin-top: 62px; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.account-section-head h2 { margin: 0; }
.account-section-head p { margin: 0; color: var(--faint); font-size: 13px; }
.data-table td.usage-delta { color: var(--muted); font-weight: 400; }
.data-table td.usage-points { color: var(--accent); font-weight: 600; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.checkout-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 104px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; align-items: start; }
.checkout-availability { width: min(1120px, calc(100% - 48px)); margin: 56px auto 104px; padding: 40px; border: 1px solid var(--accent); background: var(--paper); }
.checkout-availability[data-state="loading"] { border-color: var(--line); }
.checkout-availability[data-state="error"] { border-color: var(--bad); }
.checkout-availability h2 { margin: 10px 0 14px; font-size: clamp(30px, 4vw, 46px); font-weight: 500; }
.checkout-availability-status > p:not(.checkout-step) { max-width: 720px; color: var(--muted); font: 15px/1.85 var(--font-script); }
.checkout-availability-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--soft); font-size: 13px; }
.checkout-availability-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.checkout-main, .checkout-summary { display: grid; gap: 20px; }
.checkout-panel { border: 1px solid var(--line); background: var(--pane); padding: 28px; }
.checkout-panel h2 { margin: 0 0 22px; font-size: 25px; font-weight: 500; }
.checkout-section-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.checkout-section-head h2 { margin-bottom: 22px; }
.checkout-step { margin: 0 0 8px; color: var(--accent); font: 10px var(--font-mono); letter-spacing: .18em; }
.catalog-version { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); font: 10px var(--font-mono); }
.checkout-panel-note { margin: -10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.credit-packages { display: grid; grid-template-columns: 1fr; gap: 12px; }
.credit-package { min-width: 0; min-height: 88px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid var(--line); background: var(--pane); color: var(--text); text-align: left; cursor: pointer; }
.credit-package[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); }
.credit-package:disabled { opacity: .62; cursor: not-allowed; }
.pack-radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.pack-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.credit-package[aria-pressed="true"] .pack-radio { border-color: var(--accent); }
.credit-package[aria-pressed="true"] .pack-radio::after { background: var(--accent); }
.pack-info { display: grid; gap: 5px; min-width: 0; }
.pack-info strong { font: 500 21px var(--font-script); }
.pack-info small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.pack-price { font: 500 26px var(--font-script); letter-spacing: -.02em; }
.pack-price > span { font-size: 15px; color: var(--accent); }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.payment-method { min-height: 68px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--soft); text-align: left; font-size: 12.5px; cursor: pointer; }
.payment-method:disabled { color: var(--faint); cursor: default; }
.payment-method[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); color: var(--accent); }
.payment-method > span:last-child { min-width: 0; display: grid; gap: 3px; }
.payment-method strong { font-size: 13px; }
.payment-method small { color: var(--faint); font-size: 11px; }
.payment-method-mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #1677ff; color: #fff; font-weight: 700; }
.payment-method-mark.muted { background: color-mix(in srgb, var(--faint) 30%, transparent); color: var(--faint); }
.order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-head small { color: var(--faint); font-size: 11px; letter-spacing: .16em; }
.order-head span { color: var(--faint); font: 11px var(--font-mono); letter-spacing: .06em; }
.order-lines { display: grid; gap: 14px; }
.order-line { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.order-line strong { color: var(--text); text-align: right; }
.order-total strong { color: var(--accent); font: 500 22px var(--font-script); }
.checkout-summary { position: sticky; top: 24px; }
.checkout-agreement { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.8; }
.checkout-agreement input { width: 18px; height: 18px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--accent); }
.checkout-agreement a { color: var(--text); text-underline-offset: 3px; }
.checkout-agreement-version { margin: 14px 0 0 30px; color: var(--faint); font: 10px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.checkout-action { width: 100%; margin-top: 8px; }
.checkout-unavailable { margin: 0; color: var(--accent); font-size: 13px; line-height: 1.8; }
.checkout-status, .checkout-error, .checkout-empty { margin: 16px 0 0; font-size: 13px; line-height: 1.75; }
.checkout-status { color: var(--muted); }
.checkout-error { padding: 11px 13px; border-left: 2px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); }
.checkout-empty { padding: 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.order-status:empty { display: none; }
.payment-amount { color: var(--accent); font: 500 20px var(--font-script); }
.package-placeholder { display: grid; gap: 12px; }
.package-placeholder span { height: 88px; border: 1px solid var(--line); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent), transparent); background-size: 220% 100%; animation: catalog-loading 1.8s linear infinite; }
.refund-rules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.8; }
.refund-rules li::before { content: "—"; margin-right: 9px; color: var(--accent); }
.legal-shell { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 112px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: 24px; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-nav p { margin: 0 0 12px; color: var(--faint); font: 10px var(--font-mono); letter-spacing: .16em; }
.legal-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-nav a[aria-current="page"] { border-left: 2px solid var(--accent); background: var(--pane); color: var(--text); }
.legal-copy { min-width: 0; }
.legal-draft-note { margin: 0 0 42px; padding: 22px 24px; border: 1px solid var(--accent); background: var(--pane); color: var(--soft); font-size: 14px; line-height: 1.8; }
.legal-draft-note strong { display: block; margin-bottom: 7px; color: var(--accent); font: 500 18px var(--font-script); }
.legal-section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-section h2 { margin: 0 0 18px; font-size: 25px; font-weight: 500; }
.legal-section h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 500; }
.legal-section p, .legal-section li { color: var(--muted); font: 14px/2 var(--font-script); }
.legal-section ul, .legal-section ol { display: grid; gap: 8px; padding-left: 1.4em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--faint); font: 11px var(--font-mono); }
.legal-placeholder { padding: 14px 16px; border: 1px dashed var(--line); background: var(--pane); }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.reveal-pending.is-visible { opacity: 1; transform: none; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes catalog-loading { to { background-position: -220% 0; } }
@media (max-width: 900px) {
  .site-header { height: 66px; }
  .nav-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--line); background: var(--pane); box-shadow: 0 20px 50px -30px #000; }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { min-height: 46px; display: flex; align-items: center; padding: 0 12px; }
  .site-brand, .site-footer nav a, .pricing-source a, .price-card a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer nav a { min-width: 44px; justify-content: center; }
  .theme-button { width: 100%; min-height: 44px; margin: 4px 0; justify-content: center; }
  .nav-cta { margin-top: 4px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 58px; padding: 72px 0 92px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-notes { display: none; }
  .capability-list { grid-template-columns: 1fr 1fr; }
  .capability:nth-child(3) { border-left: 1px solid var(--line); }
  .workflow, .quote-section { grid-template-columns: 1fr; gap: 40px; }
  .price-grid { grid-template-columns: 1fr; }
  .plan-grid, .rule-list { grid-template-columns: 1fr; }
  .payment-status-banner { align-items: flex-start; flex-direction: column; }
  .point-summary { grid-template-columns: 1fr; }
  .point-summary p { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .point-summary p:last-child { border-bottom: 0; }
  .credit-cost-grid { grid-template-columns: repeat(2, 1fr); }
  .credit-cost-grid article, .credit-cost-grid article:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .credit-cost-grid article:nth-child(2n) { border-right: 0; }
  .credit-cost-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .account-summary-grid { grid-template-columns: 1fr 1fr; }
  .checkout-shell { display: flex; flex-direction: column; }
  .checkout-main { display: contents; }
  .checkout-packages { order: 1; }
  .checkout-order { order: 2; }
  .checkout-agree { order: 3; }
  .checkout-summary { order: 4; position: static; }
  .checkout-refund { order: 5; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); }
  .account-metric:first-child { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { text-align: left; }
  .legal-shell { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .legal-nav p { grid-column: 1 / -1; }
  .legal-nav a { justify-content: center; text-align: center; }
  .legal-nav a[aria-current="page"] { border-left: 0; border-bottom: 2px solid var(--accent); }
}
@media (max-width: 560px) {
  .site-header, .hero, .section, .final-cta, .site-footer { width: min(100% - 32px, 1240px); }
  .payment-status-banner { width: calc(100% - 32px); margin-top: 34px; padding: 24px; }
  .payment-status-banner .button { width: 100%; }
  .page-hero { width: calc(100% - 32px); padding: 78px 0 56px; }
  h1 { font-size: 42px; }
  .hero { padding-top: 64px; }
  .hero-actions .button { width: 100%; }
  .editor-preview::after { display: none; }
  .preview-body { min-height: 380px; }
  .preview-paper { margin: 14px; padding: 38px 24px; font-size: 14px; }
  .section { padding: 88px 0; }
  .capability-list { grid-template-columns: 1fr; }
  .capability { min-height: 220px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .capability h3 { margin-top: 40px; }
  .final-cta { padding: 62px 22px; }
  .site-nav { font-size: 14px; }
  .site-footer nav { flex-wrap: wrap; gap: 8px 18px; }
  .site-footer nav a { padding: 0 4px; }
  .hero-note, .pricing-source, .site-footer, .account-metric span, .account-section-head p { font-size: 14px; }
  .plan-card { min-height: 340px; padding: 28px 24px; }
  .credit-cost-grid { grid-template-columns: 1fr; }
  .credit-cost-grid article, .credit-cost-grid article:nth-child(2n), .credit-cost-grid article:nth-child(3n), .credit-cost-grid article:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .credit-cost-grid article:last-child { border-bottom: 0; }
  .data-table th, .data-table td { padding: 15px 14px; }
  .account-shell { width: calc(100% - 32px); padding: 66px 0 88px; }
  .auth-card { padding: 28px 24px; }
  .auth-form label, .form-error { font-size: 14px; }
  .auth-form-actions .button { width: 100%; }
  .account-title { align-items: start; flex-direction: column; }
  .account-summary-grid { grid-template-columns: 1fr; }
  .credit-packages { grid-template-columns: 1fr; }
  .checkout-shell, .legal-shell { width: calc(100% - 32px); padding-top: 34px; }
  .checkout-availability { width: calc(100% - 32px); margin: 34px auto 72px; padding: 28px 24px; }
  .checkout-availability-actions .button { width: 100%; }
  .checkout-panel { padding: 22px 20px; }
  .checkout-section-head { gap: 12px; }
  .credit-package { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 18px; }
  .pack-price { grid-column: 2; }
  .payment-methods { grid-template-columns: 1fr; }
  .legal-nav { grid-template-columns: 1fr; }
  .legal-nav p { grid-column: auto; }
  .legal-nav a { justify-content: flex-start; text-align: left; }
  .legal-draft-note { padding: 20px; }
  .pack-price { font-size: 22px; }
  .account-metric:first-child { grid-column: auto; }
  .account-metric.balance { order: -1; }
  .account-metric { min-height: 0; }
  .account-metric:not(.balance) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 22px 24px; }
  .account-metric:not(.balance) strong { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
  .account-metric:not(.balance) span { flex-basis: 100%; margin: 0; font-size: 12px; }
  .account-metric.balance strong { margin-top: 14px; font-size: 38px; }
  .account-actions { width: 100%; }
  .account-actions button { flex: 1; }
  .account-shell [data-scene]::before { top: -36px; }
  .account-section-head { align-items: start; flex-direction: column; }
  .usage-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .usage-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
  .usage-table td { padding: 0; border: 0; }
  .usage-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--faint); font-size: 12px; }
  .usage-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .usage-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal.reveal-pending { opacity: 1; transform: none; }
}
