/* GovernPlatform marketing components — works without Tailwind rebuild */

/* ── Cockpit preview (hero) ─────────────────────────────────────────── */
.gp-cockpit {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(15, 31, 61, 0.95) 0%, rgba(26, 58, 107, 0.85) 100%);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 120, 212, 0.15);
  overflow: hidden;
}

.gp-cockpit-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gp-cockpit-dots {
  display: flex;
  gap: 0.375rem;
}

.gp-cockpit-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.gp-cockpit-dots span:first-child { background: #f87171; }
.gp-cockpit-dots span:nth-child(2) { background: #fbbf24; }
.gp-cockpit-dots span:nth-child(3) { background: #4ade80; }

.gp-cockpit-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.gp-cockpit-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gp-cockpit-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: gp-pulse 2s ease-in-out infinite;
}

@keyframes gp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.gp-cockpit-body {
  padding: 1rem;
}

.gp-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gp-metric {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 31, 61, 0.1);
}

.gp-metric--alert { border-left: 4px solid #f87171; }
.gp-metric--warn { border-left: 4px solid #fbbf24; }

.gp-metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.gp-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f1f3d;
  margin: 0;
}

.gp-metric-value--danger { color: #dc2626; }
.gp-metric-value--warn { color: #d97706; }

.gp-metric-value span.gp-metric-unit {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
}

.gp-metric-link {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0078d4;
  text-decoration: none;
}

.gp-metric-link:hover { text-decoration: underline; }

.gp-metric-bar {
  margin-top: 0.5rem;
  height: 0.375rem;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.gp-metric-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  width: 92%;
}

.gp-cockpit-audit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  background: #0f1f3d;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 120, 212, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #94a3b8;
}

.gp-audit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

.gp-audit-event { color: #e2e8f0; font-weight: 600; }
.gp-audit-key { color: #64748b; }
.gp-audit-val { color: #2b97e8; }

/* ── G.O.V.E.R.N pillars ────────────────────────────────────────────── */
.gp-govern-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.gp-govern-head h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f1f3d;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.gp-govern-head p {
  font-size: 1.0625rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.gp-pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gp-pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gp-pillar-grid { grid-template-columns: repeat(3, 1fr); }
}

.gp-pillar {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 31, 61, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.gp-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0078d4, #2b97e8);
  border-radius: 4px 0 0 4px;
  opacity: 0.85;
}

.gp-pillar:hover {
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: 0 12px 24px rgba(15, 31, 61, 0.08);
  transform: translateY(-3px);
}

.gp-pillar-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gp-pillar-letter {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6b 100%);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15, 31, 61, 0.25);
}

.gp-pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1f3d;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gp-pillar-desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ── Shared marketing cards (base .gp-card in govern.css) ───────────── */
.gp-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gp-card:hover {
  border-color: rgba(0, 120, 212, 0.4);
  box-shadow: var(--gp-shadow-lg);
  transform: translateY(-2px);
}

.gp-card-pain .gp-card-fix {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066b4;
  line-height: 1.45;
}

.gp-card-pain h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f1f3d;
  margin: 0 0 0.5rem;
}

.gp-card-pain p {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

.gp-card-feature {
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
}

.gp-card-feature .gp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;
  background: rgba(0, 120, 212, 0.1);
  color: #0066b4;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gp-card-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1f3d;
  margin: 0 0 0.35rem;
}

.gp-card-feature p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}

.gp-card-story {
  display: flex;
  flex-direction: column;
}

.gp-card-story .gp-story-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.gp-card-story blockquote {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  font-style: italic;
  color: #64748b;
  line-height: 1.5;
}

.gp-outcome {
  text-align: left;
  padding: 0.5rem 0;
}

.gp-outcome-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2b97e8;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .gp-outcome-value { font-size: 2rem; }
}

.gp-outcome-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  line-height: 1.4;
}
