:root {
  --bg: #f5f7fb;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --brand: #2156d9;
  --brand-dark: #173a8a;
  --card: #ffffff;
  --soft: #eef4ff;
  --warn: #b45309;
}
.scope-fieldset {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.scope-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}
.scope-fieldset legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.scope-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.scope-options label {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.scope-options input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--brand);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--brand), #6b8cff);
  font-weight: 800;
}
nav { display: flex; gap: 20px; align-items: center; color: var(--muted); }
.outline {
  padding: 10px 14px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
}
.hero-customer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  padding: 72px 32px 44px;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 0.08em; }
h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.02; margin: 12px 0 20px; }
h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; }
h3 { margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.75; max-width: 760px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.primary,
.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
}
.primary { color: white; background: var(--brand); }
.secondary { color: var(--brand); background: var(--soft); }
.risk-note { color: var(--warn); margin-top: 18px; }
.demo-card,
.section article,
.timeline,
.pricing article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
}
.demo-card { padding: 24px; align-self: center; }
.card-header { display: grid; gap: 8px; margin-bottom: 18px; }
.card-header span { color: var(--muted); }
.progress { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.progress li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
}
.template-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.progress .done { color: #137333; background: #ecfdf3; }
.progress .active { color: var(--brand-dark); background: var(--soft); border: 1px solid #b7cdfb; }
.approval-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: #fff8eb; }
.badge { color: var(--warn); font-weight: 700; }
.section { max-width: 1180px; margin: 0 auto; padding: 42px 32px; }
.section-title { max-width: 760px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards article,
.pricing article { padding: 22px; }
.cards p,
.split p,
.pricing p { color: var(--muted); line-height: 1.7; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: center; }
.timeline { display: grid; gap: 12px; padding: 20px; }
.timeline div { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: #f8fafc; }
.timeline b { color: var(--brand); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pricing strong { display: block; margin: 8px 0 12px; font-size: 28px; color: var(--brand-dark); }
.featured { border-color: var(--brand) !important; transform: translateY(-6px); }
.form-shell,
.client-shell {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  padding: 48px 32px;
}
.form-card,
.client-card,
.client-hero {
  width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
}
.small { font-size: 16px; }
.intake-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
  min-width: 0;
}
.intake-form > * {
  max-width: 100%;
  min-width: 0;
}
.intake-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.intake-form input:not([type="checkbox"]),
.intake-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: white;
}
.login-shell { max-width: 620px; }
.login-card h1 { font-size: clamp(34px, 5vw, 54px); }
.trial-contact {
  margin: 18px 0 0;
  border-left: 3px solid var(--brand);
  padding: 10px 12px;
  color: var(--muted);
  background: var(--soft);
}
.trial-contact a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.settings-shell {
  display: grid;
  gap: 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.settings-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}
.settings-grid span { color: var(--muted); }
.settings-grid strong { word-break: break-all; }
.settings-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.inline-result { margin-top: 0; }
.config-card pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}
.submit,
.secondary-button,
.download-button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}
.secondary-button { color: var(--brand); background: var(--soft); }
.template-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.result-box {
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 700;
}
.client-hero { margin-bottom: 18px; }
.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.client-progress,
.download-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.client-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}
.client-step span { color: var(--warn); }
.client-step.done span { color: #137333; }
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--brand);
}
.download-button.disabled {
  color: var(--muted);
  background: #eef2f7;
  pointer-events: none;
}
.muted { color: var(--muted); }
.refresh-hint {
  color: var(--brand-dark);
  font-weight: 700;
}
@media (max-width: 880px) {
  .nav { align-items: center; flex-direction: row; gap: 12px; padding: 14px 18px; }
  nav { width: auto; flex-direction: row; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-customer, .split, .grid, .price-grid, .client-grid, .settings-grid { grid-template-columns: 1fr; }
  .hero-customer { padding-top: 40px; }
}
@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .brand { min-width: 0; gap: 9px; }
  .brand strong, .brand small { white-space: nowrap; }
  .logo { width: 40px; height: 40px; flex: 0 0 40px; }
  .outline { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
  .form-shell, .client-shell { padding: 24px 12px; }
  .form-card, .client-card, .client-hero { padding: 20px 16px; border-radius: 18px; }
  .form-card h1, .client-hero h1 { font-size: clamp(32px, 9vw, 42px); overflow-wrap: anywhere; }
  .lead { font-size: 16px; }
  .template-row { align-items: stretch; flex-direction: column; }
  .template-row .secondary-button, .intake-form .submit { width: 100%; }
}
