:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #0f172a;
  --accent: #2563eb;
  --red: #dc2626;
  --amber: #d97706;
  --green: #059669;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 36px 0 24px 0;
}

.pill-compliance {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #1e293b;
  margin-bottom: 10px;
}

.hero-copy h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0 0 22px 0;
  color: var(--muted);
  max-width: 880px;
  font-size: 15px;
}

.scan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.form-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-primary, .btn-secondary, .btn-outline {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.scan-status {
  margin-top: 12px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}

/* Report View */
.report-section {
  margin: 20px 0 40px 0;
}

.report-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 18px;
  gap: 16px;
}

.report-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-title {
  margin: 4px 0;
  font-size: 24px;
  font-weight: 800;
}

.report-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.verdict-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12.5px;
  color: #fff;
}

.flags-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.flags-panel h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flag-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.flag-ANOMALY { background: #fef2f2; border-left: 4px solid var(--red); }
.flag-WATCH { background: #fffbeb; border-left: 4px solid var(--amber); }
.flag-HIGH_SIGNAL { background: #f0fdf4; border-left: 4px solid var(--green); }
.flag-INFO { background: #f1f5f9; border-left: 4px solid #64748b; }

.flag-sev {
  font-size: 10px;
  font-weight: 800;
  min-width: 82px;
}

.flag-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 700;
  min-width: 215px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.t-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.t-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.t-card-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.t-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.t-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.t-card-sum {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--muted);
}

.t-kv {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 12.5px;
  gap: 8px;
}

.t-kv span { color: var(--muted); }
.t-kv strong { text-align: right; }

.t-note {
  margin-top: 8px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 11.5px;
  word-break: break-word;
}

/* Pricing */
.pricing-section {
  padding: 28px 0 48px 0;
  border-top: 1px solid var(--border);
}

.section-head h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
}

.section-head p {
  margin: 0 0 24px 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--primary);
}

.tier-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.tier-name {
  font-weight: 800;
  font-size: 16px;
}

.tier-price {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0;
}

.tier-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.tier-desc {
  font-size: 13px;
  color: var(--muted);
}

.price-card ul {
  padding-left: 18px;
  font-size: 13px;
  color: #334155;
}

.price-card li {
  margin-bottom: 6px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .form-row, .cards-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header, .hero, .pricing-section, .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .report-box {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
