/* SubmitGate Design System — Light Enterprise Theme */
:root {
  --bg: #f8f9fc;
  --card: #ffffff;
  --card-border: #e2e6ef;
  --text: #1a1f36;
  --text-secondary: #525f7f;
  --accent: #635bff;
  --accent-hover: #5147e5;
  --accent-light: #f0eeff;
  --danger: #df1b41;
  --warn: #d97706;
  --ok: #0d9488;
  --surface: #f1f3f9;
  --border: #e2e6ef;
  --border-strong: #c4cad8;
  --header-bg: #ffffff;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1080px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.logo svg {
  color: var(--accent);
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .logo {
  font-size: 16px;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-links {
  align-self: center;
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--accent);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
  flex: 1;
  width: 100%;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.grid {
  display: grid;
  gap: 16px;
}
.grid2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Typography */
.h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}
.h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--text);
}
.p {
  color: var(--text-secondary);
  line-height: 1.55;
}
.small {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Page Hero (home page) */
.page-hero {
  text-align: center;
  padding: 80px 20px 60px;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-secondary {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Page Header (sub-pages) */
.page-header {
  padding: 40px 0 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 48px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  margin: 0 0 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section Title */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
  text-decoration: none;
}
.btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn.secondary:hover {
  background: var(--surface);
}

/* Inputs */
.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

/* Misc Layout */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

/* Tags */
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
}
.tag.blocker {
  background: rgba(223, 27, 65, 0.08);
  border-color: rgba(223, 27, 65, 0.25);
  color: var(--danger);
}
.tag.warning {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.25);
  color: var(--warn);
}
.tag.info {
  background: rgba(99, 91, 255, 0.08);
  border-color: rgba(99, 91, 255, 0.25);
  color: var(--accent);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Findings card list */
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.finding-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.finding-card.sev-blocker {
  border-left: 3px solid var(--danger);
}
.finding-card.sev-warning {
  border-left: 3px solid var(--warn);
}
.finding-card.sev-info {
  border-left: 3px solid var(--accent);
}
.finding-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.finding-rule {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.finding-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.finding-details {
  margin-top: 12px;
}
.finding-details[open] {
  margin-top: 14px;
}
.finding-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 0;
  user-select: none;
}
.finding-details summary:hover {
  text-decoration: underline;
}
.detail-section {
  margin-top: 16px;
}
.detail-section:first-of-type {
  margin-top: 12px;
}
.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.detail-section pre {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}
/* Meta Tags (scan report metadata) */
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.meta-label {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* Coverage Notes */
.coverage-notes {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.coverage-note {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.coverage-note:last-child {
  border-bottom: none;
}
.coverage-note-rule {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--warn);
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-description {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.detail-remediation {
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.detail-remediation a {
  word-break: break-all;
}
.evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.evidence-list li {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  word-break: break-all;
}
.evidence-list li:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.evidence-list li:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 1px solid var(--border);
  border-top: none;
}
.evidence-list li:only-child {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.evidence-list li:not(:first-child):not(:last-child) {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.evidence-path {
  color: var(--accent);
  font-weight: 500;
}
.evidence-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.finding-fingerprint {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
  cursor: pointer;
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.drop-zone svg {
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.drop-zone .drop-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.drop-zone .drop-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  margin: 0 6px;
  color: var(--border-strong);
}

/* Viewer promo card on home */
.promo-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}
.promo-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.promo-card p {
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-size: 15px;
}

/* Trust line (small inline trust message) */
.trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.trust-line svg {
  color: var(--ok);
  flex-shrink: 0;
}

/* Trial Banner */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent-light);
  border: 1px solid rgba(99, 91, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.trial-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.trial-content {
  flex: 1;
}
.trial-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
.trial-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 24px;
}
.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.12);
}
.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}
.pricing-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-price {
  margin: 8px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pricing-period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}
.pricing-savings {
  display: inline-block;
  font-size: 13px;
  color: var(--ok);
  font-weight: 500;
  margin-top: 4px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li svg {
  flex-shrink: 0;
}
.pricing-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
}
.pricing-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 30px;
  }
  .page-hero .subtitle {
    font-size: 16px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .header-inner nav {
    gap: 0;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
  .page-hero {
    padding: 48px 16px 40px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .trial-banner {
    flex-direction: column;
    text-align: center;
  }
  .trial-banner .btn {
    width: 100%;
  }
}
