/* NKS-476 — Alayo Workbench 产品页（/{lang}/workbench/）页面样式。
   token / 品牌栏 / 页脚 / 按钮 / 基础排版在 assets/site.css；本文件只有本页区块。
   历史注释（NKS-252 buy 态、NKS-330 政策链接、NKS-376 品牌语带）随规则保留。 */

/* ---------- hero ---------- */
.hero { padding-block: 72px 40px; }
.cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; align-items: center; }

/* ---------- demo ---------- */
.demo { margin: 56px 0 0; }
.demo-frame {
  background: var(--panel); border-radius: var(--radius-island);
  box-shadow: var(--shadow-island), 0 0 0 .5px var(--border);
  overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.demo-chrome span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.demo-chrome .t { font-size: 12.5px; color: var(--ink-3); margin-left: 10px; }
.demo-body {
  /* NKS-252 — 成片实拍 2560×1410，容器锁同比例避免视频加载时跳版 */
  aspect-ratio: 2560 / 1410;
  background: var(--canvas);
}
.demo-body video { display: block; width: 100%; height: 100%; }

/* ---------- sections ---------- */
section { padding: 88px 0; }

/* NKS-576 — 原 --surface 整条色带去掉，画布点阵连贯透出 */
.problem { background: transparent; }
/* NKS-574 — 亮点段（痛点→解法，替换 workbench 概览页原「问题＋转变」；.problem 仍被比较页使用，保留） */
.pains { background: transparent; }
/* NKS-576 — 亮点卡放进 app 的「分组区域」（region）：浅底大圆角包住一组卡片 */
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px;
  background: var(--region); border-radius: var(--radius-region); padding: 14px;
}
.pain-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 20px 20px 22px; display: flex; flex-direction: column;
}
.pain-card .pain {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-3); text-wrap: pretty; padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); flex: 1;
}
.pain-card .glyph {
  width: 30px; height: 30px; border-radius: var(--radius-chip); background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 12px;
  color: var(--accent-ink); font-size: 15px; font-weight: 600;
}
.pain-card h3 { font-size: 17px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.pain-card .fix { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* NKS-376 — 品牌语带（系列内核句＝信念句；hero h1 是定位句 NKS-326，分工不互替） */
.brandline { padding: 32px 0; text-align: center; }
.brandline p {
  font-family: var(--sans); font-weight: 650;
  font-size: clamp(26px, 3.8vw, 38px); line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); text-wrap: balance;
}
html[lang="zh-Hans"] .brandline p { letter-spacing: .05em; }
.brandline .dot { color: var(--accent); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.step-shot {
  /* NKS-252 — 实拍分步截图 1880×1410（4:3）；height:auto 压掉 height 属性的 UA 表现提示 */
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--canvas); border-bottom: 1px solid var(--border);
}
.step-text { padding: 20px 22px 22px; }
.step-num { font-family: var(--sans); font-size: 13px; font-weight: 650; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--accent-ink); margin-bottom: 6px; }
.step-text p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.step-text p strong { color: var(--ink); }

/* pricing — NKS-576：原深藏青整块改为 panel 岛，块内文字/链接/按钮全部回到常规 token */
.pricing {
  background: var(--panel); color: var(--ink); border-radius: var(--radius-island);
  box-shadow: var(--shadow-island), 0 0 0 .5px var(--border); padding: 56px 24px;
}
.pricing-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.price-line {
  font-family: var(--sans); font-size: clamp(30px, 4.5vw, 44px); font-weight: 650; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink); margin: 8px 0 4px;
}
.price-line .was { font-size: .45em; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 10px; }
.pricing .presale-note {
  margin-top: 20px; font-size: 17px; color: var(--ink-2); text-wrap: pretty;
}
.pricing .presale-note strong { color: var(--ink); }
/* NKS-488 — 结账确认后当场展示的许可证 key 与复制按钮 */
.license-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.license-key code { font-family: var(--mono); font-size: 15px; padding: 6px 10px; color: var(--ink); background: var(--region); border-radius: var(--radius-chip); user-select: all; word-break: break-all; }
.pricing .license-key .btn-ghost { padding: 7px 14px; font-size: 14.5px; }
.pricing .honest {
  margin-top: 18px; font-size: 14.5px; color: var(--ink-3);
}
.pricing .btn-primary { margin-top: 32px; font-size: 16.5px; padding: 14px 30px; }

/* founder */
.founder-card {
  background: var(--panel); border-radius: var(--radius-island);
  box-shadow: var(--shadow-island), 0 0 0 .5px var(--border);
  padding: 40px 44px; max-width: 720px;
}
.founder-card p {
  font-family: var(--sans); font-size: 18.5px; line-height: 1.65; color: var(--ink); text-wrap: pretty;
}
.founder-sig { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; }
.founder-sig .name { font-family: var(--sans); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.founder-sig .role { font-size: 13.5px; color: var(--ink-3); }

/* FAQ */
.faq-list { max-width: 720px; margin-top: 36px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.005em; }
.faq-item p { font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
.faq-item p em { font-style: italic; }

/* ---------- reserve form ---------- */
.reserve { background: transparent; }
.reserve-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.reserve-copy .lede { font-size: 17px; }
.reserve-copy ul { margin: 22px 0 0 2px; list-style: none; display: grid; gap: 12px; }
.reserve-copy li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.reserve-copy li::before { content: "—"; color: var(--accent); font-weight: 600; flex: none; }
.form-card {
  background: var(--panel); border-radius: var(--radius-island);
  padding: 34px 34px 30px; box-shadow: var(--shadow-island), 0 0 0 .5px var(--border);
}
.form-card h3 { font-size: 19px; font-weight: 650; margin-bottom: 4px; }
.form-card .fine { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field label .opt { color: var(--ink-3); font-weight: 500; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label {
  font-size: 14px; font-weight: 550; color: var(--ink-2); cursor: pointer;
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 99px; background: var(--card);
  transition: all .12s ease;
}
.choice-row input:checked + label {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink);
}
.choice-row input:focus-visible + label { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; }
.form-error { display: none; font-size: 13.5px; color: var(--danger); margin-top: 10px; }
.form-error a { color: inherit; font-weight: 600; }
.form-card.show-error .form-error { display: block; }

/* form result states */
.result { display: none; text-align: left; }
.result h3 { font-size: 20px; margin-bottom: 10px; }
.result p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; text-wrap: pretty; }
.result .btn-primary { width: 100%; justify-content: center; margin-top: 14px; }
.result .fine2 { font-size: 13px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.form-card[data-state="thanks"] .form-body { display: none; }
.form-card[data-state="thanks"] .result-thanks { display: block; }

/* NKS-330 — 正文政策链接（定价区/FAQ） */
.presale-note a, .cta-note a, .faq-item a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.presale-note a:hover, .cta-note a:hover, .faq-item a:hover { color: var(--ink); }
/* NKS-576 — pricing 已是 panel 浅岛（深色下为深岛），卡内链接与试用句链接沿用正文链接色 */
.pricing .trial-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pricing .trial-note a:hover { color: var(--ink); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .demo { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3) { animation-delay: .12s; }
  .hero > :nth-child(4) { animation-delay: .18s; }
  .hero > :nth-child(5) { animation-delay: .22s; }
  .demo { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .reserve-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-card { padding: 32px 28px; }
}

/* ---------- NKS-252 buy 态（/presale.js 门控 toggle） ---------- */
.pricing .buy-error { color: var(--danger); }
.pricing .confirm-title { font-family: var(--sans); font-size: clamp(24px, 3.5vw, 30px); font-weight: 650; letter-spacing: -0.015em; color: var(--ink); margin: 28px 0 0; }
.pricing .confirm-title:focus { outline: none; } /* tabindex=-1 程序化焦点目标，非 tab 可达 */

/* NKS-496 — comparison links remain visible beside the primary hero actions. */
.comparison-entry { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.comparison-entry a { color: var(--accent-ink); text-underline-offset: 3px; }
