/* SPDX-FileCopyrightText: 2026 北京公富信息技术有限公司 and AI WorkDeck contributors */
/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  --accent: #1F5EFF;
  --ink: #0B0C0E;
  --ink-2: #5A5E66;
  --ink-3: #9AA0A9;
  --line: #E8E9EC;
  --wash: #F5F6F8;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; padding-top: max(16px, env(safe-area-inset-top)); }
.firm { font-weight: 650; letter-spacing: -0.01em; font-size: 15px; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 22px 28px; display: flex; flex-direction: column; gap: 22px; }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chip { align-self: flex-start; background: var(--wash); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; }
.hero p { margin-top: 12px; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.label { font-size: 13px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

.doors { display: grid; gap: 12px; }
.door { display: flex; align-items: center; gap: 16px; text-align: start; background: var(--wash); border: 0; border-radius: var(--radius); padding: 20px; transition: transform .15s ease, background .15s; }
.door:active { transform: scale(.98); }
.door .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.door .ic svg { width: 26px; height: 26px; }
.door strong { display: block; font-size: 19px; letter-spacing: -0.01em; }
.door span { display: block; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.door .go { margin-inline-start: auto; color: var(--ink-3); font-size: 22px; }

.progress { display: flex; gap: 6px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
.q h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 720; }
.options { display: grid; gap: 10px; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 17px 18px; text-align: start; font-size: 17px; font-weight: 550; transition: border-color .15s, background .15s; }
.opt:active, .opt.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.link { background: none; border: 0; color: var(--ink-2); font-size: 15px; padding: 8px 0; align-self: flex-start; }

.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--wash); border-end-start-radius: 6px; }
.msg.typing { color: var(--ink-3); }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 14px; text-align: start; }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; min-width: 0; }
input, textarea { font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 15px; width: 100%; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }

.primary { background: var(--accent); color: #fff; border: 0; border-radius: 14px; padding: 17px 20px; font-size: 17px; font-weight: 650; width: 100%; }
.primary:disabled { opacity: .5; }
.send { width: auto; padding: 0 18px; }
.secondary { background: var(--wash); border: 0; border-radius: 14px; padding: 15px 20px; font-size: 16px; font-weight: 600; width: 100%; }
.stack { display: grid; gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.err { color: #C4320A; font-size: 14px; }
.done { text-align: center; padding-top: 40px; display: grid; gap: 12px; justify-items: center; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.done .check svg { width: 36px; height: 36px; }
.done h2 { font-size: 30px; letter-spacing: -0.025em; }
.done p { color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.disclaimer { max-width: 560px; margin: 0 auto; padding: 10px 22px calc(18px + env(safe-area-inset-bottom)); font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.hero h1:lang(zh) { font-size: clamp(28px, 7.8vw, 40px); letter-spacing: -0.01em; }
