/* Base layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f6f7fb;
  color: #111;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 18px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

h1 {
  font-size: 26px;
  margin: 0 0 12px;
}

h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

p {
  margin: 8px 0;
}

.small {
  font-size: 12px;
  color: #666;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn.secondary {
  background: #e8e8ee;
  color: #111;
}

.btn:hover {
  opacity: 0.9;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2a7a;
  font-size: 12px;
}

/* KPI grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.kpi {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
}

.kpi .label {
  font-size: 12px;
  color: #666;
}

.kpi .value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

/* Screenshot proof */
.screenshot {
  margin-top: 12px;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

th {
  color: #555;
  font-weight: 600;
  background: #fafafa;
}

tr:last-child td {
  border-bottom: none;
}

/* Make numeric columns easier to scan */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.center, th.center { text-align: center; }

/* Flag highlighting */
tr.flag-losing td { background: #fff1f2; }
tr.flag-critical td { background: #fff7ed; }
tr.flag-low td { background: #fefce8; }

.flag-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #ffffff;
  margin-right: 6px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.pricecard {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.pricecard.featured {
  border: 2px solid #111;
  transform: translateY(-2px);
}

.pricecard ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.faqitem {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.faqitem .q {
  font-weight: 700;
  margin-bottom: 6px;
}

.faqitem .a {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: 18px;
  font-size: 12px;
  color: #777;
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}