/* Shared styles for the server-rendered Pulse public pages (Trust + Sandbox).
 * Loaded as an external stylesheet because qenex.ai's CSP is
 * `style-src 'self' https://fonts.googleapis.com` — no 'unsafe-inline'.
 */

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #0A0E27;
  background: #F7F9FC;
  margin: 0;
  padding: 0;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
  color: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; }
.hero b { color: white; }

.score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.score-bubble {
  color: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.score-bubble .v { font-size: 42px; font-weight: 700; line-height: 1; }
.score-bubble .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; opacity: 0.85; }
.score-bubble.green { background: #22c55e; }
.score-bubble.yellow { background: #eab308; }
.score-bubble.orange { background: #f59e0b; }
.score-bubble.red { background: #dc2626; }
.score-bubble.grey { background: #9ca3af; }

.meta {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}
.meta b { color: #0A0E27; }
.meta p { margin: 0 0 8px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.kpi {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.kpi .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #0A0E27;
}
.kpi .l {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 24px 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
th {
  padding: 10px 14px;
  text-align: left;
  background: #0A0E27;
  color: #22D3EE;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr { border-bottom: 1px solid #F0F2F5; }
tr:last-child { border-bottom: none; }
td { padding: 8px 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
td.score-cell { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; }
td.muted { color: #6b7280; }
td.bold { font-weight: 600; }

.note {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  color: #78350F;
  font-size: 13px;
  line-height: 1.6;
}

.footer {
  margin-top: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}
.footer a { color: #0E7490; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 0 0 12px; }
.footer code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.badge {
  padding: 4px 10px;
  background: #22D3EE;
  color: #0A0E27;
  border-radius: 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.cta {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #E5E7EB;
  text-align: center;
}
.cta a {
  display: inline-block;
  padding: 12px 24px;
  background: #22D3EE;
  color: #0A0E27;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin: 4px;
}
.cta a.secondary {
  background: transparent;
  border: 1px solid #0A0E27;
  color: #0A0E27;
}

.muted {
  margin-top: 24px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

/* Text colour classes used by table cells + status icons */
.text-green { color: #22c55e; }
.text-yellow { color: #eab308; }
.text-orange { color: #f59e0b; }
.text-red { color: #dc2626; }
.text-grey { color: #9ca3af; }
.text-white { color: white; }
.text-muted { color: #6b7280; }

/* Subcheck breakdown table on /trust/ */
.subcheck-row td { padding: 8px 12px; font-size: 13px; }
.subcheck-row td.name { font-weight: 600; }
.subcheck-row td.status { text-align: center; font-size: 18px; }
.subcheck-row td.raw { color: #6b7280; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* Sandbox table row cells */
.sandbox-row td.domain { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; }
.sandbox-row td.crit { font-size: 12px; color: #6b7280; }
.sandbox-row td.score { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; font-size: 13px; }
.sandbox-row td.grade { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.sandbox-row td.scanned { font-size: 12px; color: #6b7280; }
.sandbox-row td.badge-cell { padding: 10px 12px; }

.empty-row td {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
}

/* /regulators/ landing page */
body.regulators-body {
  background: #F7F9FC;
  color: #0A0E27;
}
/* legal-* defaults are tuned for the dark template; on the light /regulators/
 * background they render invisible. Restate text colours explicitly. */
body.regulators-body .legal-title { color: #0A0E27; }
body.regulators-body .legal-updated { color: #6b7280; }
body.regulators-body .legal-lead { color: #374151; }
body.regulators-body .legal-p { color: #374151; }
body.regulators-body .legal-container b,
body.regulators-body .legal-container i { color: #0A0E27; }
.regulators-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }

.regulators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.reg-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
/* On a white background, brand cyan-400 (#22D3EE) gives ~1.81:1 contrast
 * — fails WCAG AA. Cyan-600 (#0891B2) gives 3.68:1 — passes AA only for
 * large text. Cyan-700 (#0E7490) gives 5.36:1 — passes AA for all text. */
.reg-card .region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0E7490;
  margin-bottom: 4px;
}
.reg-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #0A0E27;
  line-height: 1.25;
}
.reg-card .ref {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0 0 14px;
}
.reg-card .effective {
  font-size: 11px;
  color: #374151;
  background: #F0F4FF;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.reg-card .applies {
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.reg-card .links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #F0F2F5;
  padding-top: 14px;
}
.reg-card .links a {
  font-size: 13px;
  color: #0E7490;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.reg-card .links a:hover { text-decoration: underline; }
.reg-card .links a .ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6b7280;
}

.pillar {
  background: #F7F9FC;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid #E5E7EB;
}
.pillar h2 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 600;
}
.pillar p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.signup-cta {
  text-align: center;
  margin: 32px 0;
}
.signup-cta a {
  display: inline-block;
  padding: 14px 28px;
  background: #22D3EE;
  color: #0A0E27;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* In-line link decoration helpers used by /control-map/ */
.link-underline { text-decoration: underline; }

/* /pricing/ small overrides */
.pricing-footer-note { text-align: center; margin-top: 3rem; }

/* /status/ page */
body.status-body { background: #F7F9FC; color: #0A0E27; }
.status-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  overflow: hidden;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(10, 14, 39, 0.06);
}
.status-table thead th {
  background: #0A0E27;
  color: #22D3EE;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 14px;
}
.status-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #F0F2F5;
  font-size: 13px;
  color: #374151;
  vertical-align: middle;
}
.status-table tbody tr:last-child td { border-bottom: none; }
.status-table td.probe-detail,
.status-table td.probe-target {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #6b7280;
}
.status-ok   { color: #15803D; font-weight: 600; }
.status-fail { color: #B91C1C; font-weight: 700; }


/* /one/ — QENEX One unified-bundle landing */
body.one-body { background: #F7F9FC; color: #0A0E27; }
.one-main { max-width: 1180px; }

.one-moat-banner {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
  color: #F1F5F9;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0 36px;
  box-shadow: 0 6px 24px rgba(10, 14, 39, 0.15);
}
.one-moat-icon {
  font-size: 36px;
  color: #22D3EE;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}
.one-moat-body { font-size: 13.5px; line-height: 1.65; }
.one-moat-body b { color: #fff; }

.one-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.one-card {
  position: relative;
  background: white;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(10, 14, 39, 0.06), 0 4px 16px rgba(10, 14, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.one-card::before {
  /* Coloured top stripe — gives each card a clear "this is a tier card"
   * silhouette so it doesn't read as a blank white square on a light bg. */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22D3EE 0%, #0E7490 100%);
}
.one-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 14, 39, 0.08), 0 10px 28px rgba(10, 14, 39, 0.12);
}
.one-card-feature {
  border: 2px solid #0E7490;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.10), 0 12px 32px rgba(14, 116, 144, 0.18);
  transform: translateY(-4px);
}
.one-card-feature::before {
  height: 5px;
  background: linear-gradient(90deg, #0E7490 0%, #0A0E27 100%);
}
.one-card-feature:hover { transform: translateY(-6px); }
.one-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: #0E7490;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.one-tier-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #0E7490;
  margin-bottom: 8px;
}
.one-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #0A0E27;
  line-height: 1;
}
.one-price-unit {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin-left: 2px;
}
.one-price-annual {
  font-size: 11px;
  color: #6b7280;
  margin: 4px 0 14px;
  font-family: 'JetBrains Mono', monospace;
}
.one-tagline {
  font-size: 13px;
  color: #374151;
  margin: 0 0 14px;
  line-height: 1.5;
  min-height: 60px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E5E7EB;
}
.one-feature-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.one-feature-table td {
  padding: 6px 0;
  border-bottom: 1px solid #F0F2F5;
  font-size: 12px;
  vertical-align: top;
  color: #374151;
}
.one-feature-table td:first-child { width: 60%; }
.one-feature-table td:last-child {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #0A0E27;
}
.one-feature-table tr:last-child td { border-bottom: none; }

.one-yes { color: #0E7490; font-weight: 700; }
.one-no  { color: #9ca3af; }

.one-cta {
  display: block;
  text-align: center;
  padding: 11px 16px;
  background: #0A0E27;
  color: #F1F5F9;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  margin-top: auto;
}
.one-cta:hover { background: #1a1f3a; }
.one-card-feature .one-cta { background: #0E7490; }
.one-card-feature .one-cta:hover { background: #155E75; }

@media (max-width: 560px) {
  .one-moat-banner { grid-template-columns: 1fr; text-align: center; }
  .one-moat-icon { font-size: 28px; }
}
