/* public/funnel.css —— 网页收款链路四页(pricing/signup/login/reset)共享设计系统(官网Phase1·小6)。
   🎯 风格基准(老板钉·契约§2):OpenAI/ChatGPT 官网气质——极简·大留白·克制中性色(黑白灰为主+极少强调)·大而清晰的字·朴素高级·少花哨。
   纪律(UI专业级标准v1):全部颜色走 token(禁硬编码散色)·🔴单主题固定白底黑字(老板 2026-07-14 拍「去明暗变色·不要暗色切换」→删 prefers-color-scheme dark + data-theme 双向覆盖·:root 白即唯一主题)·
   交互件七态(default/hover/active/focus-visible/disabled/busy/error)·AA 对比·375px 无瑕·RTL 逻辑属性。 */

:root {
  --bg: #020817;
  --bg2: rgba(9, 23, 45, .82);
  --fg: #f1f7ff;
  --dim: #b3c6df;
  --faint: #8ba3c0;
  --line: rgba(157, 210, 255, .18);
  --line2: rgba(162, 215, 255, .31);
  --cta: #9ed4ff;
  --on-cta: #04101d;
  --cta-hover: #c2e7ff;
  --good: #70ecc5;
  --good-soft: rgba(82, 221, 181, .13);
  --danger: #ff9a9a;
  --danger-soft: rgba(255, 126, 126, .13);
  --info-soft: rgba(145, 201, 255, .1);
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
}
/* 🔴 单主题(老板 2026-07-14 拍「去明暗变色·固定白底黑字」):原暗色媒体查询块 + 手选主题覆盖块(两向)已删。
   上方 :root(白底黑字)= 唯一主题。深色系统的用户也恒白底(=老板要的固定观感)。将来若需重开主题切换,回滚本刀恢复三块即可。 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: #020817; color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: #d6edff; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #ffffff; }
a:focus-visible { outline: 2px solid #c6e7ff; outline-offset: 2px; border-radius: 4px; }

/* The canvas is a real, depth-rendered scene and inert by design: forms stay above it. */
#cosmos-surface { position:fixed; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; background:#020817; }
#cosmos-surface.cosmos-surface-fallback { background:#020817 url("/assets/cosmos-mobile-deep-space-v4.webp") center / cover no-repeat; }
body.cosmos-surface > :not(#cosmos-surface) { position:relative; z-index:1; }
/* 🔴 头部必须压过正文:上一行把 body 每个直接子元素都变成 z-index:1 的【平级】层叠上下文,
   DOM 靠后的 main 会整层盖住 header——header 里的下拉(账号菜单/语言菜单)z-index 再大也只在
   header 内部有效,结果是「按钮画得出来、点不到」(2026-08-09 Playwright 点击超时坐实,
   elementFromPoint 落在 .lhero 上)。header 抬到 2,菜单才真的浮在正文上。 */
body.cosmos-surface > header:not(#cosmos-surface) { z-index:2; }   /* :not(#…) 是抄上一行的特异度(ID 级):写成裸 header 会被上一行压回 1(实测) */
.authcard, .tier, .credits, .packbox, .login-note, .faq, .lsec, .lhero { background:rgba(5, 17, 36, .72); border-color:var(--line); backdrop-filter:blur(18px) saturate(1.2); }
.authcard { border:1px solid var(--line); border-radius:22px; padding:20px; box-shadow:var(--shadow); }
.fun-head { text-shadow:0 2px 24px rgba(60, 138, 255, .26); }
.fun-head .wordmark, .lnav .wordmark { color:#eff8ff; text-shadow:0 0 24px rgba(112, 190, 255, .34); }
.input { background:rgba(3, 13, 29, .78); border-color:var(--line2); color:var(--fg); min-height:48px; }
.input:focus { border-color:#a9dbff; box-shadow:0 0 0 3px rgba(104, 189, 255, .18); }
.btn { min-height:48px; transition:transform .14s cubic-bezier(.2,.75,.25,1),background .14s ease,opacity .14s ease; box-shadow:0 10px 28px rgba(0,0,0,.2); }
.btn:active { transform:scale(.975); opacity:1; }
.btn.ghost { color:var(--fg); border-color:var(--line2); background:rgba(4, 16, 33, .54); }
.btn.ghost:hover { background:rgba(99, 168, 231, .14); }
.lnav, .fun-head, footer.fun-foot { background:linear-gradient(180deg,rgba(2,8,23,.72),transparent); }
.lnav-links a, .langbtn { color:var(--dim); }
.langbtn, .langmenu, .acctmenu { background:rgba(5,17,36,.86); border-color:var(--line2); color:var(--fg); backdrop-filter:blur(18px); }
@media (prefers-reduced-motion: reduce) { #cosmos-surface { opacity:.9; } .btn { transition:none; } }

/* —— 页头(极简:居中 wordmark + 可选副题)—— */
.fun-head { text-align: center; padding: clamp(28px, 6vh, 56px) 16px 8px; }
.fun-head .wordmark { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--fg); text-decoration: none; }
.fun-head h1 { font-size: clamp(26px, 4.5vw, 34px); font-weight: 600; margin: 18px 0 6px; letter-spacing: -.01em; }
.fun-head .sub { color: var(--dim); font-size: 15px; margin: 0 auto; max-width: 34em; }

/* —— 通栏横幅(返回态/错误·三色)—— */
.banner { max-width: 560px; margin: 14px auto; border-radius: 10px; padding: 12px 16px; font-size: 14px; border: 1px solid var(--line); }
.banner.ok { background: var(--good-soft); border-color: var(--good); }
.banner.info { background: var(--info-soft); }
.banner.err { background: var(--danger-soft); border-color: var(--danger); }

/* —— 按钮(七态)—— */
.btn {
  display: block; width: 100%; border: none; border-radius: 24px; padding: 12px 18px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  background: var(--cta); color: var(--on-cta); transition: background .12s ease, opacity .12s ease;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { opacity: .8; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; background: var(--cta); }
.btn[data-busy="1"] { opacity: .7; cursor: progress; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
.btn.ghost:hover { background: var(--bg2); }
.btn.ghost:disabled { background: transparent; }
.btn.linklike { background: none; border: none; color: var(--dim); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; width: auto; display: inline; padding: 0; font-size: 13.5px; }
.btn.linklike:hover { color: var(--fg); background: none; }

/* —— 表单(状态齐:默认/聚焦/错误/禁用 + 帮助行)—— */
.field { margin: 14px 0; text-align: start; }
.field label { display: block; font-size: 13.5px; color: var(--dim); margin-bottom: 6px; }
.input {
  width: 100%; font-size: 16px; font-family: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none;
  transition: border-color .12s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--fg); }
.input:disabled { opacity: .5; background: var(--bg2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.fhelp { font-size: 12.5px; color: var(--faint); margin-top: 5px; min-height: 17px; }
.fhelp.err { color: var(--danger); }
.fhelp.ok { color: var(--good); }
/* 密码强度条(3 段) */
.pwmeter { display: flex; gap: 4px; margin-top: 7px; }
.pwmeter i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.pwmeter[data-lv="1"] i:nth-child(1) { background: var(--danger); }
.pwmeter[data-lv="2"] i:nth-child(-n+2) { background: #b58a1f; }
.pwmeter[data-lv="3"] i { background: var(--good); }

/* —— 认证卡(signup/login/reset 主体)—— */
.authwrap { max-width: 400px; margin: 0 auto; padding: 8px 20px 56px; }
.authcard { padding-top: 6px; }
.authcard .btn { margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.gbtn svg { flex: none; }
.authfoot { text-align: center; font-size: 13.5px; color: var(--dim); margin-top: 22px; }
.authfoot a { color: var(--fg); }
.codewrap { text-align: center; }
.codewrap .input { text-align: center; letter-spacing: .5em; font-size: 22px; font-weight: 600; }
.resend { margin-top: 14px; font-size: 13.5px; color: var(--dim); text-align: center; }
/* 注册法务同意勾选(小查裁 2026-07-14·Privacy+Terms) */
.consentfield { margin: 16px 0 4px; }
.consentlabel { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--dim); cursor: pointer; line-height: 1.5; text-align: start; }
.consentlabel input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--cta); cursor: pointer; }
.consentlabel a { color: var(--fg); font-weight: 500; }

/* —— 定价页 —— */
.pricewrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 72px; }
.trialline { text-align: center; color: var(--good); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 34px; }
.tier { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.tier.feat { border-color: var(--fg); }
.tier .badge { position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 12px; white-space: nowrap; }
[dir="rtl"] .tier .badge { transform: translateX(50%); }
.tier .name { font-size: 17px; font-weight: 700; }
.tier .tag { color: var(--dim); font-size: 13px; margin-top: 3px; min-height: 18px; }
.tier .price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 0; }
.tier .price small { font-size: 14px; color: var(--dim); font-weight: 500; }
.tier .trial { color: var(--good); font-size: 12.5px; font-weight: 600; min-height: 18px; margin: 3px 0 0; }
.tier ul { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.tier li { font-size: 13.5px; padding-block: 5px; padding-inline-start: 24px; position: relative; color: var(--fg); }
.tier li::before { content: "✓"; position: absolute; inset-inline-start: 2px; color: var(--good); font-weight: 700; }
.tier .btn.cur { background: transparent; border: 1px solid var(--line); color: var(--dim); cursor: default; }
.tier .btn.cur:hover { background: transparent; }

/* 对比表(窄屏横向滚动·页面本体绝不横滚) */
.cmpscroll { overflow-x: auto; margin-top: 56px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.cmp caption { text-align: start; font-size: 19px; font-weight: 700; padding-bottom: 14px; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th { font-weight: 600; }
.cmp thead th { background: var(--bg2); }
.cmp thead th:first-child { border-start-start-radius: 10px; }
.cmp thead th:last-child { border-start-end-radius: 10px; }
.cmp th[scope="row"], .cmp td:first-child { text-align: start; color: var(--dim); font-weight: 500; }
.cmp .yes { color: var(--good); font-weight: 700; }
.cmp .no { color: var(--faint); }

/* FAQ(原生 details·零 JS) */
.faq { max-width: 720px; margin: 64px auto 0; }
.faq h2 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 4px; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 18px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
.faq .a { color: var(--dim); font-size: 14px; padding: 0 4px 16px; max-width: 62ch; }

/* 点余额/加油包/登录提示(既有行为件·收进同一气质) */
.credits { max-width: 560px; margin: 14px auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; }
.credits .clabel { color: var(--dim); font-size: 12.5px; }
.credits .ctotal { font-size: 27px; font-weight: 700; margin: 2px 0 3px; }
.credits .ctotal .cunit { font-size: 13.5px; color: var(--dim); font-weight: 500; margin-inline-start: 5px; }
.credits .cbreak { color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.packbox { max-width: 560px; margin: 14px auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 16px 18px; }
.packbox .ptitle { font-size: 15px; font-weight: 700; }
.packbox .pdesc { color: var(--dim); font-size: 13.5px; margin: 5px 0 12px; }
.login-note { max-width: 560px; margin: 14px auto; text-align: center; background: var(--info-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13.5px; color: var(--dim); }
.login-note a { color: var(--fg); font-weight: 600; }
.managebtn { display: block; width: 100%; max-width: 300px; margin: 26px auto 0; }
.managebtn[hidden] { display: none; }

footer.fun-foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 56px; line-height: 1.8; padding: 0 16px; }
footer.fun-foot a { color: var(--dim); }

@media (max-width: 420px) {
  .fun-head h1 { font-size: 24px; }
  .tier .price { font-size: 30px; }
}

/* ===== 合并落地页 landing 段(小6·小查裁 2026-07-14「pricing.html 进化成完整落地页」·白底黑字单主题·ChatGPT 极简气质)===== */
.skiplink { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 40; }
.skiplink:focus { inset-inline-start: 0; }

/* 顶部导航 */
.lnav { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.lnav .wordmark { font-size: 21px; font-weight: 700; letter-spacing: .04em; color: var(--fg); text-decoration: none; }
.lnav-links { margin-inline-start: auto; display: flex; gap: 18px; align-items: center; }
.lnav-links a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.lnav-links a:hover { color: var(--fg); }

/* 语言切换钮(手动切换·记住 vh_lang) */
.langsw { position: relative; flex: none; }
.langbtn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line2); border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 13.5px; color: var(--fg); cursor: pointer; }
.langbtn:hover { background: var(--bg2); }
.langbtn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.langbtn > svg { width: 16px; height: 16px; }
.langbtn .chev { width: 13px; height: 13px; opacity: .6; }
.langmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 156px; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 6px; margin: 0; list-style: none; z-index: 40; }
.langmenu[hidden] { display: none; }
.langmenu li { padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.langmenu li:hover { background: var(--bg2); }
.langmenu li[aria-selected="true"] { font-weight: 700; }

/* hero */
.lhero { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(30px, 8vh, 74px) 20px 18px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.lhero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.lhero h1 .glow { color: inherit; }   /* 极简白底:不发光·随正文色(保留 span 便于将来微调) */
.lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--dim); line-height: 1.55; margin: 22px auto 0; max-width: 42ch; }
.lede b { color: var(--fg); font-weight: 600; }
.heroctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-lg { width: auto; display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; font-size: 16px; text-decoration: none; }
.pricehint { font-size: 13.5px; color: var(--faint); margin: 20px 0 0; }

/* intro / why / how 段 */
.lintro { max-width: 720px; margin: clamp(26px,6vh,50px) auto 0; padding: 0 20px; text-align: center; }
.lintro p { font-size: clamp(17px,2.3vw,21px); line-height: 1.6; color: var(--fg); margin: 0; }
.lintro b { font-weight: 700; }
.lsec { max-width: 820px; margin: clamp(40px,9vh,82px) auto 0; padding: 0 20px; }
.lsec .sech { font-size: clamp(23px,3.4vw,30px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.lwhy p { font-size: clamp(16px,2vw,18px); line-height: 1.65; color: var(--dim); max-width: 60ch; margin: 0; }
.lwhy b { color: var(--fg); font-weight: 600; }

/* how·三步 */
.steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; align-items: start; }
.stepn { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.steps li b { font-size: 16px; font-weight: 700; align-self: center; }
.steps li .stept { color: var(--dim); font-size: 14.5px; line-height: 1.55; }

/* 定价段:合并后与上文拉开间距(#pricing 已是原 .pricewrap) */
#pricing { margin-top: clamp(44px, 10vh, 92px); }

/* 页脚增强(法务链行 + 计费口径 + tagline·白底黑字) */
.lfoot .footlinks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; padding: 0; list-style: none; }
.lfoot .footlinks a { color: var(--dim); text-decoration: none; font-weight: 500; }
.lfoot .footlinks a:hover { color: var(--fg); text-decoration: underline; }
.lfoot .footbill { color: var(--faint); }
.lfoot .foottag { margin-top: 8px; color: var(--faint); }

/* ===== 主页四刀(小6 2026-07-16)===== */
/* 刀2·登录态头像下拉(圆头像=邮箱首字母·下拉=邮箱/管理订阅|升级/退出登录)。
   🔴 [hidden] 显式补 display:none(lesson-hidden-attr-is-not-invisible:作者 CSS 会压过 UA 的 [hidden]) */
.lnav-links a[hidden] { display: none; }
.acctsw { position: relative; flex: none; }
.avatarbtn { width: 34px; height: 34px; border-radius: 50%; border: none; padding: 0; background: var(--cta); color: var(--on-cta); font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.avatarbtn:hover { background: var(--cta-hover); }
.avatarbtn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.acctsw[hidden] { display: none; }
.acctmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 6px; z-index: 40; }
.acctmenu[hidden] { display: none; }
.acctemail { padding: 9px 12px 10px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; min-height: 20px; }
.acctitem { display: block; width: 100%; text-align: start; background: none; border: none; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--fg); cursor: pointer; text-decoration: none; }
.acctitem:hover { background: var(--bg2); }
.acctitem:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.acctitem[hidden] { display: none; }
/* 刀4·下载区二维码(桌面访客·~150px·深色码白底·静默区在 SVG margin 里) */
.qrbox { margin-top: 18px; }
.qrbox[hidden] { display: none; }
.qrbox svg { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 8px; display: block; background: #ffffff; }
.qrcap { font-size: 13.5px; color: var(--fg); font-weight: 600; margin: 10px 0 2px; }
.qrsub { font-size: 12.5px; margin: 0; }
.qrsub a { color: var(--dim); }
/* 刀4·移动访客:无码·App Store 徽章放大 */
#downloads.dl-mobile #dlIosImg { height: 64px !important; }

@media (max-width: 420px) {
  .lnav { flex-wrap: wrap; gap: 10px; }
  .lnav-links { gap: 14px; }
  .cta-lg { width: 100%; }
}

/* ===== Mobile cosmic product surfaces =====
   These are intentionally ordinary DOM surfaces, not WebGL scenes: authentication,
   legal, support and billing must stay fast, accessible and dependable.  They share
   the same deep-space material language as the assistant home without pretending
   that a form is a 3D canvas. */
:root {
  --bg: #020817;
  --bg2: #09162c;
  --fg: #f4f8ff;
  --dim: #c4d3e8;
  --faint: #a9bdd8;
  --line: rgba(147, 192, 235, .20);
  --line2: rgba(147, 210, 255, .42);
  --cta: #78e5ef;
  --on-cta: #02111f;
  --cta-hover: #b6f8ff;
  --good: #75ecd1;
  --good-soft: rgba(67, 228, 202, .12);
  --danger: #ff9b9d;
  --danger-soft: rgba(255, 126, 139, .13);
  --info-soft: rgba(99, 186, 255, .13);
  --shadow: 0 22px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(228, 248, 255, .08);
}
html { min-height: 100%; background: var(--bg); }
body {
  background:
    radial-gradient(80vw 58vw at 12% -12%, rgba(38, 137, 255, .21), transparent 68%),
    radial-gradient(70vw 58vw at 102% 20%, rgba(96, 61, 217, .17), transparent 67%),
    linear-gradient(rgba(2, 8, 23, .34), rgba(2, 8, 23, .84)),
    url("/assets/cosmos-mobile-deep-space-v4.webp") center / cover fixed,
    var(--bg);
  color: var(--fg);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  opacity: .20; mix-blend-mode: screen;
  background-image: radial-gradient(circle at 18% 23%, #dffcff 0 1px, transparent 1.7px), radial-gradient(circle at 72% 17%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 38% 73%, #91caff 0 1px, transparent 1.6px);
  background-size: 173px 211px, 251px 307px, 197px 269px;
}
a { color: #c8f7ff; text-underline-offset: 3px; }
a:hover { color: #ffffff; }
a:focus-visible, .btn:focus-visible, .input:focus-visible, summary:focus-visible { outline-color: #8debf6; }

.fun-head { padding-top: max(clamp(30px, 7vh, 62px), env(safe-area-inset-top)); }
.fun-head .wordmark, .lnav .wordmark { color: #e7fbff; text-shadow: 0 0 22px rgba(126, 231, 255, .28); }
.fun-head .sub, .lede, .lwhy p, .tier .tag, .tier .price small, .fhelp, .authfoot, .resend, .pricehint, .qrcap, .qrsub, .faq .a { color: var(--dim); }

.authwrap, .pricewrap, .lsec, .lhero { position: relative; }
.authcard, .tier, .credits, .packbox, .login-note, .banner, .faq, .cmpscroll {
  background: linear-gradient(145deg, rgba(19, 43, 75, .74), rgba(5, 14, 32, .72));
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}
.authcard { border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.tier { border-radius: 22px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.tier:hover { border-color: rgba(147, 235, 255, .64); transform: translateY(-3px); box-shadow: 0 28px 80px rgba(0, 0, 0, .48), 0 0 30px rgba(78, 203, 255, .10); }
.tier.feat { border-color: rgba(126, 234, 244, .72); box-shadow: 0 0 0 1px rgba(114, 229, 239, .13), var(--shadow); }
.tier .badge { background: linear-gradient(100deg, #82edf3, #9ec7ff); color: #061225; }
.input {
  min-height: 48px; background: rgba(2, 10, 25, .68); color: var(--fg); border-color: var(--line2);
  box-shadow: inset 0 1px 0 rgba(224, 249, 255, .05);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.input:focus { border-color: #85edf5; background: rgba(3, 16, 35, .9); box-shadow: 0 0 0 3px rgba(104, 226, 245, .18); }
.input:disabled { background: rgba(7, 20, 42, .65); }
.btn, .langbtn, .avatarbtn {
  min-height: 48px; touch-action: manipulation;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn {
  background: linear-gradient(110deg, #83edf4, #9ecaff); color: #041426;
  box-shadow: 0 8px 22px rgba(76, 204, 240, .22), inset 0 1px 0 rgba(255, 255, 255, .52);
}
.btn:hover { background: linear-gradient(110deg, #c2fbff, #c2d7ff); color: #02101f; }
.btn:active, .langbtn:active, .avatarbtn:active { transform: scale(.975); opacity: 1; }
.btn.ghost, .langbtn { background: rgba(8, 25, 51, .72); color: var(--fg); border-color: var(--line2); box-shadow: inset 0 1px 0 rgba(230, 251, 255, .08); }
.btn.ghost:hover, .langbtn:hover { background: rgba(27, 60, 96, .78); }
.btn.linklike { min-height: 0; color: #c7f7ff; box-shadow: none; }
.consentlabel input { accent-color: #75e9ee; }
.banner.info, .login-note { background: linear-gradient(145deg, rgba(33, 92, 145, .44), rgba(8, 27, 55, .70)); }
.banner.ok { border-color: rgba(117, 236, 209, .66); }
.banner.err { border-color: rgba(255, 155, 157, .67); }
.cmp thead th { background: rgba(30, 65, 102, .62); }
.cmp th, .cmp td, .faq details { border-color: var(--line); }
.stepn { background: linear-gradient(135deg, #85edf3, #9bbcff); color: #051326; box-shadow: 0 0 22px rgba(99, 215, 246, .26); }
.lnav { border-bottom: 1px solid rgba(147, 192, 235, .14); }
.langmenu, .acctmenu { background: rgba(6, 20, 42, .96); border-color: var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.langmenu li:hover, .acctitem:hover { background: rgba(50, 99, 145, .46); }
footer.fun-foot { color: var(--faint); padding-bottom: max(24px, env(safe-area-inset-bottom)); }

@media (max-width: 600px) {
  body { background-attachment: scroll; }
  .authwrap { padding-inline: 16px; }
  .authcard { padding: 18px; }
  .tier:hover { transform: none; }
  .lnav { padding-inline: 16px; }
  .lnav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
