:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --line: #e6eaf0;
  --accent: #111827;
  --accent-soft: #e8edf7;
  --good: #1f8f5f;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }

.topbar {
  height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.pilot-chip { font-size: 12px; font-weight: 700; background: #eef2f7; color: #475467; padding: 7px 10px; border-radius: 999px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #e9eef6; font-size: 12px; font-weight: 800; }

.shell { max-width: 1180px; margin: 0 auto; padding: 56px 24px 80px; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; margin: 8px 0 14px; max-width: 850px; }
h2 { font-size: 22px; letter-spacing: -.03em; margin: 5px 0 10px; }
h3 { margin: 8px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: #7a8495; margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 760px; margin: 0; }
.lead.smaller { font-size: 16px; }

.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 12px 16px; font-weight: 750; border: 1px solid transparent; white-space: nowrap; }
.primary-button { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(17,24,39,.12); }
.secondary-button { background: #fff; border-color: var(--line); }
.primary-button.disabled { opacity: .45; box-shadow: none; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.metric-card { background: linear-gradient(180deg, #fff, #fbfcfe); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.metric-card strong { font-size: 21px; letter-spacing: -.03em; }
.metric-card > span:last-child { color: var(--muted); font-size: 13px; }
.metric-label { color: #7a8495; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

.grid-two, .assessment-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 34px rgba(16,24,40,.035); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.status-pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 7px 10px; }
.status-pill.muted { background: #f0f2f5; color: #667085; }
.muted-copy { color: var(--muted); line-height: 1.55; }

.empty-state { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed #d9dee8; background: var(--surface-2); border-radius: 14px; padding: 28px; margin-top: 18px; }
.empty-state p { color: var(--muted); max-width: 470px; line-height: 1.5; }
.empty-icon { font-size: 28px; }
.engine-state { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface-2); border-radius: 12px; margin-top: 20px; }
.engine-state div { display: grid; gap: 4px; }
.engine-state span:last-child { color: var(--muted); font-size: 13px; line-height: 1.4; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot.idle { background: #98a2b3; }
.dot.ok { background: var(--good); }

.back-link { display: inline-block; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.assessment-layout h1 { font-size: clamp(34px, 5vw, 48px); }
.upload-zone { border: 1.5px dashed #cbd2dd; background: #fafbfc; border-radius: 16px; padding: 42px 24px; margin-top: 28px; text-align: center; }
.upload-zone p { color: var(--muted); }
.camera-icon { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: #e9edf5; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.feature-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list span { color: var(--muted); font-size: 13px; }

@media (max-width: 780px) {
  .shell { padding: 34px 16px 60px; }
  .hero-row { align-items: stretch; flex-direction: column; }
  .hero-row .primary-button { width: 100%; }
  .metric-grid, .grid-two, .assessment-layout { grid-template-columns: 1fr; }
  .metric-grid { gap: 10px; }
  .pilot-chip { display: none; }
  .panel { padding: 20px; }
}
