:root {
  --ink: #172238;
  --ink-strong: #0b1220;
  --muted: #617087;
  --faint: #8693a8;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --line: #dbe2ec;
  --line-strong: #c3cddd;
  --blue: #2a64e8;
  --blue-dark: #1747b9;
  --blue-soft: #e9f0ff;
  --navy: #0b1220;
  --gold: #c48a17;
  --gold-soft: #fff5d9;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --success: #107c62;
  --success-soft: #e7f7f1;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(18, 34, 62, 0.08);
  --sidebar-width: 272px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); line-height: 1.6; }
body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.62; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
::selection { color: #fff; background: var(--blue); }
:focus-visible { outline: 3px solid rgba(42, 100, 232, 0.34); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--navy); transition: top 160ms ease-out; }
.skip-link:focus { top: 16px; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 24px 18px 18px; color: #e6ebf5; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 46px; margin: 0 6px 26px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--navy); background: #f5c451; font-weight: 800; font-size: 21px; }
.brand-copy { display: grid; min-width: 0; gap: 1px; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: .04em; }
.brand-copy small { overflow: hidden; color: #9ca9bd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-close { display: none !important; margin-inline-start: auto; color: #bac6d8 !important; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 10px; color: inherit; background: transparent; font-size: 22px; }
.icon-button:hover { background: rgba(255, 255, 255, 0.08); }
.new-btn { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; color: #fff; background: #17243b; font-weight: 700; }
.new-btn:hover { border-color: rgba(245, 196, 81, .6); background: #1d2d48; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 11px; color: #aab6c9; background: transparent; text-align: start; font-size: 14px; }
.nav-item:hover { color: #fff; background: #17243b; }
.nav-item.active { color: #fff; background: #1b3467; box-shadow: inset 3px 0 0 #f5c451; }
.nav-icon { display: grid; width: 20px; place-items: center; color: #8ea6ce; font-size: 18px; }
.nav-item.active .nav-icon { color: #f5c451; }
.history-mini { min-height: 100px; margin: 28px 6px auto; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.11); }
.sidebar-label { color: #8492aa; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.history-mini p { margin: 8px 0 0; color: #9daac0; font-size: 12px; line-height: 1.6; }
.history-mini p.has-history { color: #c5d7fc; }
.sidebar-bottom { display: grid; gap: 14px; }
.secure { display: flex; gap: 9px; color: #bdc8d9; font-size: 12px; line-height: 1.4; }
.secure small { display: block; margin-top: 3px; color: #76869e; font-size: 10px; }
.secure-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: #54c59e; box-shadow: 0 0 0 4px rgba(84,197,158,.13); }
.account-card { display: flex; min-height: 58px; align-items: center; gap: 9px; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #121d30; }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #102144; background: #c9dcff; font-size: 13px; font-weight: 800; }
.account-copy { display: grid; min-width: 0; flex: 1; gap: 1px; }
.account-copy strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { overflow: hidden; color: #8d9cb2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-action { min-width: 42px; min-height: 36px; padding: 0 6px; border: 0; border-radius: 8px; color: #bdd2ff; background: transparent; font-size: 12px; }
.account-action:hover { background: rgba(255,255,255,.08); }
.drawer-scrim { display: none; }

.main { min-height: 100vh; margin-inline-start: var(--sidebar-width); padding: 0 48px 80px; }
.mobile-header { display: none; }
.view { display: none; max-width: 1136px; margin: 0 auto; padding-top: 46px; }
.view.active-view { display: block; animation: view-in 280ms ease-out both; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; color: var(--ink-strong); line-height: 1.2; }
h1 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
h2 { margin-bottom: 10px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; }
h3 { margin-bottom: 7px; font-size: 16px; }
p { margin: 0; color: var(--muted); }
.main > .status-banner { max-width: 1136px; margin: 16px auto 0; }
.status-banner { padding: 10px 14px; border: 1px solid #f2d899; border-radius: 10px; color: #7a5711; background: var(--gold-soft); font-size: 13px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 48px; align-items: end; min-height: 500px; padding: 52px 0 70px; }
.hero h1 { max-width: 620px; margin-bottom: 20px; font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -.065em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 600px; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.trust-line { margin-top: 22px; color: var(--faint); font-size: 12px; }
.trust-line span { color: var(--success); font-weight: 800; }
.hero-note { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-note-number { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-note strong { display: block; margin-bottom: 4px; color: var(--ink-strong); font-size: 15px; }
.hero-note p { font-size: 13px; line-height: 1.65; }
.hero-note-divider { grid-column: 1 / -1; height: 1px; margin: 8px 0; background: var(--line); }
.section-block { padding: 70px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 14px; }
.count { flex: 0 0 auto; padding: 7px 11px; border-radius: 20px; color: var(--blue-dark); background: var(--blue-soft); font-size: 12px; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-card { display: grid; grid-template-columns: 44px 1fr auto; min-height: 112px; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); text-align: start; box-shadow: 0 5px 18px rgba(18,34,62,.035); transition: border-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out; }
.service-card:hover { border-color: #9db6ef; box-shadow: 0 12px 26px rgba(18,34,62,.1); transform: translateY(-2px); }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--blue-dark); background: var(--blue-soft); font-size: 15px; font-weight: 800; }
.service-card-copy { display: grid; min-width: 0; gap: 5px; }
.service-card-copy strong { color: var(--ink-strong); font-size: 15px; }
.service-card-copy span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-card-arrow { color: var(--blue); font-size: 20px; }
.crisis-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 0 0 60px; padding: 22px 24px; border: 1px solid #f0c7c2; border-radius: var(--radius); background: var(--danger-soft); }
.crisis-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--danger); font-size: 20px; font-weight: 800; }
.crisis-strip h2 { margin-bottom: 5px; color: #7c241c; font-size: 19px; }
.crisis-strip p { color: #8b4039; font-size: 13px; }
.urgent-link { border-color: #db968e; color: #8d241a; white-space: nowrap; }
.company-strip, .pricing-teaser { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 0; border-top: 1px solid var(--line); }
.company-strip h2, .pricing-teaser h2 { margin-bottom: 9px; font-size: 27px; }
.company-strip p:not(.eyebrow), .pricing-teaser p:not(.eyebrow) { max-width: 680px; line-height: 1.75; }
.pricing-teaser { margin-top: 28px; padding-top: 55px; }

.primary, .outline, .text-btn, .code-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 750; transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out; }
.primary { border: 1px solid var(--blue); color: #fff; background: var(--blue); box-shadow: 0 7px 14px rgba(42,100,232,.17); }
.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); transform: translateY(-1px); }
.outline { border: 1px solid var(--line-strong); color: var(--blue-dark); background: var(--surface); }
.outline:hover { border-color: #89a8ee; background: var(--blue-soft); }
.text-btn { min-height: 44px; padding-inline: 4px; border: 0; color: var(--blue-dark); background: transparent; }
.text-btn:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.button-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

.wizard-progress { display: flex; max-width: 760px; align-items: center; margin: 0 auto 34px; }
.prog-item { display: inline-flex; min-width: 108px; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; white-space: nowrap; }
.prog-item b { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--faint); background: var(--surface); }
.prog-item.active { color: var(--blue-dark); font-weight: 700; }
.prog-item.active b { border-color: var(--blue); color: #fff; background: var(--blue); }
.prog-line { height: 1px; flex: 1; margin: 0 12px; background: var(--line); }
.wizard-card { max-width: 900px; margin: 0 auto; padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.wizard-card.narrow { max-width: 600px; }
.wizard-title { display: flex; gap: 18px; margin-bottom: 34px; }
.step-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #fff; background: var(--navy); font-size: 17px; font-weight: 800; }
.wizard-title h1 { margin-bottom: 8px; font-size: 31px; }
.wizard-title p:not(.eyebrow) { font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field { display: grid; min-width: 0; gap: 8px; margin-bottom: 22px; }
.field label, .service-fieldset legend { color: var(--ink-strong); font-size: 14px; font-weight: 750; }
.field label span, label > span { color: var(--faint); font-size: 11px; font-weight: 500; }
.field label b, .service-fieldset legend b { color: var(--danger); }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; color: var(--ink); background: var(--surface); font-size: 16px; }
textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #9ba8bb; }
input:hover, select:hover, textarea:hover { border-color: #98acd0; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,100,232,.12); }
input.has-error, select.has-error, textarea.has-error { border-color: var(--danger); background: #fffafa; }
.field-hint { color: var(--faint); font-size: 12px; line-height: 1.5; }
.field-error { min-height: 0; color: var(--danger); font-size: 12px; line-height: 1.4; }
.service-fieldset { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.service-fieldset legend { margin-bottom: 8px; }
.service-fieldset > .field-hint { margin-bottom: 14px; }
.service-selection-status { display: block; margin: -8px 0 16px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.check { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfe; font-size: 13px; }
.check:hover { border-color: #9db6ef; background: var(--blue-soft); }
.check input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.service-check { justify-content: space-between; flex-wrap: wrap; }
.service-check span { min-width: 0; flex: 1; }
.service-check small { color: var(--faint); font-size: 10px; }
.agreement { margin-top: 3px; }
.agreement-check { align-items: flex-start; border: 0; padding: 0; background: transparent; line-height: 1.6; }
.agreement-check input { margin-top: 3px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-btn { min-width: 120px; padding-inline: 12px; border: 1px solid var(--line-strong); color: var(--blue-dark); background: var(--surface-soft); }
.code-btn:hover { border-color: #89a8ee; background: var(--blue-soft); }

.question-layout { max-width: 850px; margin: 0 auto; }
.question-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ai-avatar { display: grid; width: 46px; height: 46px; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: var(--navy); font-size: 14px; font-weight: 800; }
.question-intro h1 { margin-bottom: 4px; font-size: 29px; }
.question-intro p:not(.eyebrow) { font-size: 13px; }
.save-status { margin-inline-start: auto; color: var(--success); font-size: 12px; }
.quiz-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.quiz-overview > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.quiz-overview strong { color: var(--ink-strong); font-size: 14px; }
.quiz-overview span { color: var(--muted); font-size: 12px; }
.progress-summary { margin-bottom: 18px; }
.progress-summary-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.progress-summary-copy strong { color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 9px; background: #dfe7f4; }
.progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform 180ms ease-out; }
.service-progress { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 3px; scrollbar-color: #b8c7df transparent; }
.service-progress-item { display: inline-flex; min-width: max-content; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--surface); font-size: 11px; }
.service-progress-item b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.service-progress-item.current { border-color: #9ab4ed; color: var(--blue-dark); background: var(--blue-soft); }
.service-progress-item.current b, .service-progress-item.done b { color: #fff; background: var(--blue); }
.service-progress-item small { color: inherit; opacity: .76; }
.question-card { min-height: 310px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.question-no { margin-bottom: 13px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.question-card h2 { max-width: 700px; margin-bottom: 28px; font-size: clamp(24px, 3vw, 34px); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfcfe; text-align: start; font-size: 14px; }
.option:hover, .option.selected { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.option-key { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 800; }
.option.selected .option-key { border-color: var(--blue); color: #fff; background: var(--blue); }
.question-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 12px; }

.result-hero { display: flex; align-items: center; gap: 18px; max-width: 850px; margin: 0 auto 28px; }
.success-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 25px; font-weight: 800; }
.result-hero h1 { margin-bottom: 5px; font-size: clamp(30px, 4vw, 46px); }
.result-hero p:not(.eyebrow) { font-size: 14px; }
.free-result { max-width: 850px; margin: 0 auto; padding: 30px; border: 1px solid #b7d4cb; border-radius: 18px; background: var(--success-soft); }
.free-result-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #c8e1d9; }
.free-result-heading h2 { margin: 0; color: #0c5c49; font-size: 25px; }
.result-index { color: var(--success); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.recommendation-block { padding: 19px 0 0; }
.recommendation-block h3 { color: #0b5d4b; font-size: 14px; }
.recommendation-block p { color: #285f55; font-size: 15px; line-height: 1.8; }
.recommendation-block.next-step { margin-top: 8px; padding: 17px; border-radius: 11px; background: rgba(255,255,255,.62); }
.result-actions { display: flex; max-width: 850px; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px auto 0; }
.result-actions .primary { min-width: 170px; }
.result-note { max-width: 850px; margin: 18px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.result-actions .text-btn[hidden], .history-row-actions [hidden] { display: none; }
.report-document { display: none; }
.report-document.visible { display: block; }
.pricing-header, .page-heading { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.pricing-header h1, .page-heading h1 { margin-bottom: 12px; }
.pricing-header p:not(.eyebrow), .page-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.75; }
.plans { display: grid; max-width: 980px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }
.plan { position: relative; display: flex; min-height: 360px; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.plan.hot { border-color: #aec3f3; box-shadow: 0 15px 38px rgba(42,100,232,.12); }
.plan .tag { position: absolute; top: 18px; right: 18px; padding: 5px 9px; border-radius: 20px; color: var(--blue-dark); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.plan h2 { margin-bottom: 8px; font-size: 22px; }
.plan-desc { min-height: 46px; font-size: 13px; }
.price { margin: 22px 0 16px; color: var(--ink-strong); font-size: 38px; font-weight: 800; letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.plan ul { display: grid; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.plan li::before { margin-right: 8px; color: var(--success); content: "✓"; font-weight: 800; }
.plan button { align-self: flex-start; margin-top: auto; }
.payment-notice { display: flex; max-width: 980px; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px auto 0; padding: 15px 17px; border: 1px solid #ecd49c; border-radius: 11px; color: #735615; background: var(--gold-soft); font-size: 12px; }
.payment-notice strong { color: #624a0f; }
.payment-notice span { flex: 1; min-width: 240px; }
.history-list { display: grid; max-width: 850px; gap: 12px; margin: 0 auto; }
.history-row { display: flex; min-height: 106px; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 5px 17px rgba(18,34,62,.04); }
.history-row > div:first-child { min-width: 0; }
.history-row-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.history-row-actions > * { white-space: nowrap; }
.history-row h2 { margin: 6px 0 4px; font-size: 18px; }
.history-row p { font-size: 12px; }
.history-status { display: inline-block; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.history-status.done { color: var(--success); background: var(--success-soft); }
.history-status.draft { color: #805e11; background: var(--gold-soft); }
.company-grid { display: grid; max-width: 980px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.company-grid article { min-height: 180px; padding: 28px; background: var(--surface); }
.company-grid h2 { font-size: 20px; }
.company-grid p { font-size: 14px; line-height: 1.8; }
.placeholder-copy { color: var(--faint) !important; }
.sample-report { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 980px; margin: 26px auto 0; padding: 27px 29px; border: 1px solid #b6c8ed; border-radius: 16px; background: var(--blue-soft); }
.sample-report h2 { margin-bottom: 7px; font-size: 22px; }
.sample-report p:not(.eyebrow) { color: #526b9e; font-size: 13px; }
.faq-section { padding: 58px 0 64px; border-top: 1px solid var(--line); }
.faq-section .section-head { max-width: 720px; margin-inline: auto; }
.faq-list { display: grid; max-width: 850px; gap: 10px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-list summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; color: var(--ink-strong); cursor: pointer; font-size: 15px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: 0 0 auto; color: var(--blue); content: "+"; font-size: 21px; font-weight: 400; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 74ch; padding: 14px 18px 18px; font-size: 14px; line-height: 1.8; }
.site-footer { max-width: 1136px; margin: 64px auto 0; padding: 42px 0 18px; border-top: 1px solid var(--line-strong); }
.site-footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer-brand, .site-footer-nav, .site-footer-contact { min-width: 0; }
.site-footer-brand strong { color: var(--ink-strong); font-size: 18px; letter-spacing: .04em; }
.site-footer-brand p { margin-top: 4px; font-size: 13px; }
.site-footer-brand small { display: block; max-width: 25ch; margin-top: 14px; color: var(--faint); font-size: 11px; line-height: 1.6; }
.site-footer-nav, .site-footer-contact { display: grid; align-content: start; gap: 9px; }
.site-footer-nav strong, .site-footer-contact strong { margin-bottom: 4px; color: var(--ink-strong); font-size: 13px; }
.site-footer-nav a, .site-footer-contact a { width: fit-content; color: var(--muted); font-size: 12px; }
.site-footer-nav a:hover, .site-footer-contact a:hover { color: var(--blue); }
.site-footer-contact p { font-size: 12px; line-height: 1.6; }
.site-footer-contact p[hidden] { display: none; }
.site-footer-contact #footer-config-placeholder { color: var(--faint); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.loading-state, .empty-state, .error-state { padding: 28px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); background: var(--surface); text-align: center; }
.loading-state { grid-column: 1 / -1; }
.empty-state h2, .error-state h2 { margin-bottom: 7px; font-size: 21px; }
.empty-state p, .error-state p { margin-bottom: 18px; font-size: 13px; }
.error-state { border-color: #efbbb5; background: var(--danger-soft); }
.error-state h2 { color: #84281f; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); padding: 13px 17px; border: 1px solid #2e456d; border-radius: 10px; color: #fff; background: #17243b; box-shadow: 0 12px 28px rgba(11,18,32,.24); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 160ms ease-out, transform 160ms ease-out; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-tone="error"] { border-color: #8f332b; background: #7e241c; }
.share-fallback { position: fixed; z-index: 85; right: 24px; bottom: 82px; width: min(460px, calc(100vw - 48px)); padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 34px rgba(11,18,32,.18); }
.share-fallback-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-strong); font-size: 14px; }
.share-fallback-heading .icon-button { width: 30px; height: 30px; color: var(--muted); font-size: 17px; }
.share-fallback p { margin: 6px 0 11px; font-size: 12px; line-height: 1.5; }
.share-fallback-row { display: flex; align-items: stretch; gap: 8px; }
.share-fallback-row input { min-width: 0; min-height: 42px; padding: 8px 10px; font-size: 13px; }
.share-fallback-row .outline { flex: 0 0 auto; min-height: 42px; padding-inline: 12px; }
.payment-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; }
.payment-modal[hidden] { display: none; }
.payment-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 25, .66); }
.payment-dialog { position: relative; display: flex; width: min(100%, 500px); max-height: min(720px, calc(100vh - 40px)); flex-direction: column; overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 64px rgba(5, 12, 25, .28); }
.payment-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.payment-dialog-header h2 { margin-bottom: 0; font-size: 24px; }
.payment-close { flex: 0 0 auto; margin: -7px -7px 0 0; color: var(--muted); }
.payment-modal-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 15px; border: 1px solid #ecd49c; border-radius: 12px; color: #735615; background: var(--gold-soft); }
.payment-modal-status[data-status="paid"] { border-color: #b7d4cb; color: #0b5d4b; background: var(--success-soft); }
.payment-modal-status[data-status="expired"], .payment-modal-status[data-status="closed"], .payment-modal-status[data-status="failed"], .payment-modal-status[data-status^="refund-"] { border-color: #efbbb5; color: #84281f; background: var(--danger-soft); }
.payment-status-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--gold); font-weight: 800; }
.payment-modal-status[data-status="paid"] .payment-status-mark { background: var(--success); }
.payment-modal-status[data-status="expired"] .payment-status-mark, .payment-modal-status[data-status="closed"] .payment-status-mark, .payment-modal-status[data-status="failed"] .payment-status-mark, .payment-modal-status[data-status^="refund-"] .payment-status-mark { background: var(--danger); }
.payment-modal-status strong { display: block; margin: 2px 0 4px; color: inherit; font-size: 15px; }
.payment-modal-status p { color: inherit; font-size: 13px; line-height: 1.65; }
.payment-qr-wrap { display: grid; justify-items: center; gap: 12px; margin: 24px auto 4px; text-align: center; }
.payment-qr-wrap img { display: block; width: min(280px, 72vw); height: auto; aspect-ratio: 1; border: 8px solid #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(18, 34, 62, .14); image-rendering: pixelated; }
.payment-qr-wrap p { font-size: 13px; }
.payment-dev-note { margin-top: 16px; padding: 11px 13px; border-radius: 9px; color: #624a0f; background: #fff9e9; font-size: 12px; line-height: 1.6; }
.payment-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.payment-order-meta code { overflow-wrap: anywhere; color: var(--ink); font-family: inherit; font-size: 12px; }
.payment-order-meta strong { margin-inline-start: auto; color: var(--ink-strong); font-size: 18px; }
.payment-order-meta small { width: 100%; color: var(--faint); font-size: 11px; }
.payment-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.payment-dialog-actions > * { min-width: 0; }
body.payment-open { overflow: hidden; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-page h1 { margin-bottom: 16px; font-size: clamp(32px, 5vw, 48px); }
.legal-page h2 { margin-top: 34px; font-size: 22px; }
.legal-page p { line-height: 1.9; }

@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .main { padding-inline: 30px; }
  .hero { gap: 30px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --sidebar-width: min(86vw, 310px); }
  .sidebar { z-index: 50; transform: translateX(-105%); box-shadow: 18px 0 42px rgba(5,12,25,.24); transition: transform 220ms ease-out; }
  .sidebar.open { transform: translateX(0); }
  .drawer-close { display: inline-grid !important; }
  .drawer-scrim:not([hidden]) { position: fixed; z-index: 40; inset: 0; display: block; background: rgba(5,12,25,.56); }
  .main { margin-inline-start: 0; padding: 0 18px 56px; }
  .mobile-header { position: sticky; z-index: 20; top: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; margin: 0 -18px; padding: 0 13px; border-bottom: 1px solid rgba(219,226,236,.92); background: rgba(245,247,251,.95); backdrop-filter: blur(12px); }
  .mobile-header strong { color: var(--ink-strong); font-size: 15px; letter-spacing: .04em; }
  .mobile-header .icon-button { color: var(--ink); }
  .view { padding-top: 28px; }
  .hero { display: block; min-height: auto; padding: 36px 0 46px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-lede { font-size: 16px; }
  .hero-note { margin-top: 38px; padding: 20px; }
  .section-block { padding: 46px 0; }
  .section-head { display: block; }
  .section-head .count { display: inline-block; margin-top: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .crisis-strip { grid-template-columns: auto 1fr; align-items: start; padding: 18px; }
  .crisis-strip .urgent-link { grid-column: 2; justify-self: start; }
  .company-strip, .pricing-teaser { display: block; padding: 30px 0; }
  .company-strip .outline, .pricing-teaser .outline { margin-top: 20px; }
  .wizard-progress { overflow-x: auto; margin-bottom: 24px; padding-bottom: 3px; }
  .prog-item { min-width: auto; }
  .prog-item:not(.active) { color: var(--faint); }
  .prog-line { min-width: 22px; margin-inline: 8px; }
  .wizard-card { padding: 24px 18px; border-radius: 15px; }
  .wizard-title { gap: 12px; margin-bottom: 25px; }
  .wizard-title h1 { font-size: 27px; }
  .form-grid, .check-grid { grid-template-columns: 1fr; gap: 0; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions > * { width: 100%; }
  .question-intro { align-items: flex-start; }
  .question-intro h1 { font-size: 25px; }
  .save-status { margin-top: 6px; white-space: nowrap; }
  .quiz-overview { grid-template-columns: 1fr; gap: 8px; }
  .question-card { padding: 22px 18px; }
  .options { grid-template-columns: 1fr; gap: 9px; }
  .option { min-height: 56px; }
  .result-hero { align-items: flex-start; }
  .result-hero h1 { font-size: 30px; }
  .free-result { padding: 22px 18px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions > * { width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 330px; }
  .history-row { align-items: flex-start; flex-direction: column; }
  .history-row-actions { width: 100%; align-items: stretch; justify-content: stretch; }
  .history-row-actions > * { flex: 1 1 130px; }
  .history-row-actions .outline { width: 100%; }
  .company-grid { grid-template-columns: 1fr; }
  .company-grid article { min-height: auto; padding: 22px 19px; }
  .sample-report { display: block; padding: 22px 19px; }
  .sample-report .outline { width: 100%; margin-top: 18px; }
  .payment-notice { display: block; }
  .payment-notice > * { display: block; margin-bottom: 7px; }
  .payment-notice > *:last-child { margin-bottom: 0; }
  .payment-modal { place-items: end center; padding: 10px; }
  .payment-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 16px; }
  .payment-dialog-header { gap: 10px; }
  .payment-dialog-header h2 { max-width: calc(100vw - 100px); font-size: 21px; }
  .payment-modal-status { margin-top: 18px; padding: 13px; }
  .payment-order-meta strong { margin-inline-start: auto; }
  .payment-dialog-actions { align-items: stretch; justify-content: stretch; }
  .payment-dialog-actions > * { flex: 1 1 130px; width: 100%; }
  .faq-section { padding: 44px 0 48px; }
  .faq-list summary { padding-inline: 14px; font-size: 14px; }
  .faq-list details p { padding-inline: 14px; font-size: 13px; }
  .site-footer { margin-top: 46px; padding-top: 32px; }
  .site-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-bottom { display: grid; gap: 6px; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .share-fallback { right: 16px; bottom: 72px; width: calc(100vw - 32px); }
  .share-fallback-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  body > *:not(.app-shell) { display: none !important; }
  .sidebar, .mobile-header, .status-banner, .view:not(#result-view), #result-view > :not(.report-document), .report-document { display: none !important; }
  #result-view { display: block !important; max-width: none; margin: 0; padding: 0; }
  #result-view .report-document.visible { display: block !important; }
  .main { margin: 0; padding: 0; }
  .report-document { color: #182235; }
}
