:root {
  --primary: #1C5AA8;
  --primary-dark: #13407A;
  --primary-surface: #E3EEF9;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #111827;
  --muted: #6B7280;
  --amber-bg: #FEF3C7;
  --amber-text: #78350F;
  --danger: #DC2626;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
  height: 64px; padding: 0 28px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.logo { width: 40px; height: 40px; border-radius: 10px; display: block; object-fit: cover; }
.logo-link { display: inline-flex; }
.brand-name { font-size: 22px; font-weight: 800; color: #1E2B5B; letter-spacing: -.01em; }
.topnav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-demo { background: var(--amber-bg); color: var(--amber-text); letter-spacing: .04em; }
.pill-blue { background: var(--primary-surface); color: var(--primary-dark); }
.pill-gray { background: #F1F5F9; color: #374151; font-size: 11px; }
.role-now { font-size: 14px; color: #4B5563; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent; background: transparent; color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #CBD5E1; background: var(--surface); color: #374151; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; height: 48px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Landing */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 48px 0 28px; max-width: 820px; }
.hero h1 { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.hero p { font-size: 18px; color: #4B5563; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--primary-surface); color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
}
.icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-surface); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 20px; font-weight: 800; }
.card p { font-size: 14px; color: #4B5563; min-height: 42px; }
.card ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #374151; }
.card li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--primary); margin-right: 8px; vertical-align: middle; }
.card .btn { margin-top: auto; height: 48px; }
.flow-card {
  margin: 28px 0; padding: 22px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.flow-intro { width: 250px; }
.flow-intro h3 { font-size: 17px; font-weight: 800; }
.flow-intro p { font-size: 13px; color: var(--muted); }
.stepper { flex: 1; display: flex; align-items: flex-start; min-width: 480px; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #374151; text-align: center; position: relative; }
.stepper li + li::before { content: ''; position: absolute; left: -50%; right: 50%; top: 14px; height: 2px; background: #CBD5E1; z-index: 0; }
.num { width: 30px; height: 30px; border-radius: 999px; background: var(--primary-surface); color: var(--primary-dark); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.num.on { background: var(--primary); color: #fff; }
.footer {
  margin-top: 40px; padding: 18px 24px; background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.footer a { font-weight: 700; }

/* Shell */
.shell { background: #EEF2F7; }
.shell-body { padding: 24px 28px; display: grid; grid-template-columns: 340px 1fr 320px; gap: 24px; align-items: start; }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-btn { height: 44px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: #374151; font-size: 14px; font-weight: 600; }
.role-btn.on { border-color: var(--primary); background: var(--primary-surface); color: var(--primary-dark); font-weight: 700; }
.notes { padding: 10px 12px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; }
.notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: #374151; }
.notes .num { width: 18px; height: 18px; font-size: 10px; flex-shrink: 0; }
.steps { display: flex; flex-direction: column; gap: 6px; }
.step-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: var(--radius); border: 1.5px solid transparent; background: transparent; text-align: left; font-size: 13px; font-weight: 600; color: #374151; }
.step-btn .num { width: 26px; height: 26px; font-size: 12px; border: 1.5px solid #CBD5E1; background: transparent; color: var(--muted); }
.step-btn.done { color: var(--muted); }
.step-btn.done .num { background: #DCFCE7; color: #15803D; border-color: transparent; }
.step-btn.on { border-color: var(--primary); background: var(--primary-surface); color: var(--primary-dark); font-weight: 800; }
.step-btn.on .num { background: var(--primary); color: #fff; border-color: transparent; }
.stage { display: flex; justify-content: center; }
.phone { width: 414px; padding: 12px; border-radius: 44px; background: #111827; box-shadow: 0 20px 50px rgba(17,24,39,.25); }
.demo-strip { height: 28px; border-radius: 34px 34px 0 0; background: var(--amber-bg); color: var(--amber-text); font-size: 11px; font-weight: 700; letter-spacing: .03em; display: flex; align-items: center; justify-content: center; }
#app { display: block; width: 390px; height: 816px; border: 0; border-radius: 0 0 34px 34px; background: var(--bg); }
.progress { display: flex; gap: 4px; }
.progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--border); }
.progress span.on { background: var(--primary); }
.step-title { font-size: 20px; line-height: 1.25; font-weight: 800; }
.step-desc { font-size: 14px; color: #4B5563; }
.try { padding: 14px; border-radius: var(--radius); background: var(--primary-surface); color: var(--primary-dark); font-size: 13px; }
.try-label { font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.hint { padding: 12px 14px; border-radius: var(--radius); border: 1px dashed #CBD5E1; font-size: 12px; color: var(--muted); }
.nav-btns { display: flex; gap: 10px; margin-top: auto; }
.nav-btns .btn { flex: 1; height: 48px; }

@media (max-width: 1200px) {
  .shell-body { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .stage { order: 1; }
  .panel-right { order: 2; }
  .panel-left { order: 3; }
  .nav-btns { margin-top: 4px; }
}
@media (max-width: 600px) {
  .topbar { height: auto; padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .topnav { gap: 12px; }
  .role-now { order: 3; width: 100%; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .roles { gap: 14px; }
  .card p { min-height: 0; }
  .flow-card { flex-direction: column; align-items: stretch; padding: 18px; gap: 18px; margin: 20px 0; }
  .flow-intro { width: auto; }
  .stepper { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 4px; }
  .stepper li { font-size: 10px; line-height: 1.25; }
  .stepper li + li::before { display: none; }
  .flow-card .btn { width: 100%; height: 48px; }
  .footer { flex-direction: column; padding: 16px; }
  .shell-body { padding: 12px; gap: 12px; }
  .panel { padding: 16px; }
  .phone { width: 100%; padding: 8px; border-radius: 32px; }
  .demo-strip { border-radius: 24px 24px 0 0; font-size: 10px; }
  #app { width: 100%; height: 72vh; min-height: 520px; border-radius: 0 0 24px 24px; }
}
