/* ==========================================================================
   CloudWizard Security Dashboard - Base Styles & Theme
   ========================================================================== */

:root {
  /* Brand Palette */
  --cw-bg-app: #0f172a;       /* Outer dark slate window */
  --cw-bg-card: #ffffff;      /* Inner white dashboard panels */
  --cw-bg-alt: #f8fafc;       /* Light gray for table headers and alt rows */
  
  --cw-text-main: #0f172a;    /* Primary dark slate text */
  --cw-text-muted: #64748b;   /* Secondary gray text */
  --cw-text-inverse: #ffffff; /* White text for dark bars */
  
  --cw-border: #e2e8f0;       /* Subtle borders */
  --cw-border-dark: #cbd5e1;
  
  --cw-primary: #2563eb;      /* Primary Blue */
  --cw-primary-hover: #1d4ed8;
  
  /* Status Colors */
  --cw-status-fail: #ef4444;
  --cw-status-pass: #22c55e;
  --cw-status-manual: #f59e0b;
}

/* Base App Layout */
body {
  background-color: var(--cw-bg-app);
  color: var(--cw-text-main);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.cwAppBg {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(circle at top right, rgba(9, 26, 86, 0.40), transparent 60%),
    radial-gradient(circle at bottom, rgba(59, 130, 246, 0.15), transparent 60%),
    #0f172a;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

#cwDashboard {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* White dashboard card on blue halo (v1 look) */
.cwMainContainer {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 32px 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

/* Reusable Card */
.card {
  background-color: var(--cw-bg-card);
  border-radius: 12px;
  border: 1px solid var(--cw-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* View container shells */
.cwViewContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------
   Hero Header & Navigation
   ------------------------------------- */
.cwHeroHeader {
  background: linear-gradient(135deg, #091A56 0%, #1e3a8a 50%, #2563eb 100%);
  color: white;
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.cwHeroPattern {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cwHeroTopRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 1;
}

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

/* Logo */
.cwHeroLogo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 10px rgba(246, 55, 96, 0.3);
  margin-right: 8px;
}

.cwHeroScanBtn {
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #091A56;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  letter-spacing: 0.02em;
  gap: 6px;
  transition: transform 0.2s ease;
}

.cwHeroScanBtn:hover {
  transform: translateY(-2px);
}

.cwRunScanIcon {
  width: 14px;
  height: 14px;
}

.cwEnvBadge,
.cwVersionBadge {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
}

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

.cwMainSiteLink {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.cwMainSiteLink:hover {
  background: rgba(255,255,255,0.25);
}

.cwHeroTitles {
  z-index: 1;
  text-align: center;
  margin-top: 8px;
}

.cwHeroTitles h1 {
  margin: 0 0 12px 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cwHeroTitles p {
  margin: 0 auto;
  font-size: 16px;
  color: #cbd5e1;
  font-weight: 500;
  max-width: 750px;
}

/* Tabs */
.cwShellTabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

button.cwTab {
  padding: 0.45rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: var(--cw-bg-alt);
  color: var(--cw-text-muted);
  border: 1px solid var(--cw-border);
  transition: 0.2s;
  cursor: pointer;
}

button.cwTab:hover {
  background-color: #e2e8f0;
  color: var(--cw-text-main);
}

button#tabOverview.cwTabActive {
  background: linear-gradient(135deg, #091A56, #1e3a8a);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(9,26,86,0.35);
}

button#tabCompliance.cwTabActive {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

/* -------------------------------------
   Filters & KPIs
   ------------------------------------- */
.cwFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.cwLabel {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cw-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.cwSelect,
.cwInput {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cw-border-dark);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--cw-text-main);
  background-color: #fff;
  width: 100%;
  min-width: 140px;
  font-family: inherit;
}

.cwBtn {
  background-color: var(--cw-bg-alt);
  border: 1px solid var(--cw-border-dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  color: var(--cw-text-main);
}

.cwBtn:hover {
  background-color: #e2e8f0;
}

/* KPI Grid */
.cwKpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cwKpi {
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  padding: 1rem;
  background-color: var(--cw-bg-card);
}

.cwKpiLabel {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cw-text-muted);
  text-transform: uppercase;
}

.cwKpiVal {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cw-text-main);
  margin-top: 0.25rem;
}

.cwKpiFail .cwKpiVal { color: var(--cw-status-fail); }
.cwKpiPass .cwKpiVal { color: var(--cw-status-pass); }
.cwKpiManual .cwKpiVal { color: var(--cw-status-manual); }

/* -------------------------------------
   Layout Grids
   ------------------------------------- */
.cwGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cwSplit2 {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.cwSplit2 > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.cwSplit2 > :last-child {
  flex: 0 0 360px;
  max-width: 360px;
}

/* -------------------------------------
   Tables & Tree
   ------------------------------------- */
.cwTree {
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cw-bg-card);
}

.cwCheck { border-bottom: 1px solid var(--cw-border); }
.cwCheck:last-child { border-bottom: none; }

.cwCheckSummary {
  background-color: var(--cw-bg-alt);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.cwCheckSummary:hover { background-color: #f1f5f9; }

.cwTableWrap { overflow-x: auto; }

.cwTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.cwTable th {
  background-color: #f1f5f9;
  padding: 0.5rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--cw-text-muted);
  border-bottom: 1px solid var(--cw-border);
}

.cwTable td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--cw-border);
  color: #334155;
}

.cwRow { cursor: pointer; transition: background-color 0.15s; }
.cwRow:hover { background-color: var(--cw-bg-alt); }

.cwMono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

/* Status Badges */
.cwStatusFail {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.7rem;
}

.cwStatusPass {
  background-color: #dcfce3;
  color: #166534;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Detail Specific Badges */
.cwPill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.cwFail  { background-color: var(--cw-status-fail);   color:#fff; }
.cwPass  { background-color: var(--cw-status-pass);   color:#fff; }
.cwManual{ background-color: var(--cw-status-manual); color:#fff; }

.cwSev {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid;
}

.cwSevCrit  { background:#fef2f2; color:#991b1b; border-color:#fca5a5; }
.cwSevHigh  { background:#fff7ed; color:#c2410c; border-color:#fdba74; }
.cwSevMed   { background:#fefce8; color:#a16207; border-color:#fde047; }
.cwSevLow   { background:#f0fdf4; color:#15803d; border-color:#86efac; }
.cwSevOther { background:#f1f5f9; color:#475569; border-color:#cbd5e1; }

/* -------------------------------------
   Details Panel
   ------------------------------------- */
.cwDetails {
  padding: 1.5rem;
  position: sticky;
  top: 20px;
  border-top: 4px solid var(--cw-text-main);
}

.cwDetailsHint {
  font-size: 0.85rem;
  color: var(--cw-text-muted);
  margin-top: 0.5rem;
}

.cwPanelTitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cw-text-muted);
  text-transform: uppercase;
}

.cwDetailsTitle {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  font-weight: 900;
  color: var(--cw-text-main);
  overflow-wrap: break-word;
  word-break: break-word;
}

.cwKV {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: var(--cw-bg-alt);
  border-radius: 6px;
  border: 1px solid var(--cw-border);
}

.cwKVKey {
  font-size: 0.7rem;
  color: var(--cw-text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.cwKVVal {
  font-size: 0.8rem;
  color: var(--cw-text-main);
  font-weight: 600;
}

.cwBreak { word-break: break-all; }

.cwBlock {
  margin-top: 1.25rem;
  border-top: 1px solid var(--cw-border);
  padding-top: 1.25rem;
}

.cwBlockTitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cw-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cwWrap {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--cw-text-main);
  font-weight: 600;
}

/* -------------------------------------
   Compliance Explorer
   ------------------------------------- */
.cwComplianceList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.cwComplianceHeader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: #1c1a2f;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--cw-border);
  transition: all 0.2s ease;
  gap: 16px;
}

.cwComplianceHeader:hover {
  border-color: var(--cw-primary);
  background: #25233e;
}

.cwCompHeadLeft {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cwCompHeadRight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}

.cwCompLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}

.cwCompTitle {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.cwCompScoreValue {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.cwSection {
  border-bottom: 1px solid var(--cw-border);
  background-color: var(--cw-bg-card);
}

.cwSection:last-child { border-bottom: none; }

.cwSectionSummary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--cw-bg-alt);
  border-bottom: 1px solid var(--cw-border);
}

.cwSectionSummary::-webkit-details-marker { display:none; }

.cwSectionName {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cw-text-main);
}

.cwSectionMeta {
  color: var(--cw-text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--cw-border);
  padding: 2px 8px;
  border-radius: 12px;
}

.cwSectionBody {
  padding: 1rem;
  background-color: var(--cw-bg-card);
}

/* -------------------------------------
   Modal & Generic Overlays
   ------------------------------------- */
.cwModal {
  display: none;           /* hidden until JS opens it */
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}

.cwModalCard {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cwModalIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 50%;
  margin-bottom: 20px;
}

.cwModalIcon svg { width:24px; height:24px; }

.cwModalTitle {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.cwModalText {
  margin: 0 0 16px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.cwModalActions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cwBtnGhost {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.cwBtnSuccess {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  transition: 0.2s;
}

/* -------------------------------------
   Lead Gate Form Overlay
   ------------------------------------- */
.cwLeadGateWrapper {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.cwLeadGateCard {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  text-align: center;
}

.cwLeadGateCard h2 {
  margin: 0 0 12px 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.cwLeadGateCard p {
  margin: 0 0 24px 0;
  color: #64748b;
  font-size: 15px;
}

.cwLeadGateCard input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.cwLeadGateCard .cwPrivacy {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
}

/* Primary CTA button (Book a Call etc.) */
.cwCtaPrimary {
  background: #ff4d6d;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(246, 55, 96, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cwCtaPrimary:hover {
  background: #e63857;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(246, 55, 96, 0.4);
}

/* -------------------------------------
   CTA Banner & Pricing Card
   ------------------------------------- */
.cwCtaBannerV2 {
  display: flex;
  flex-direction: row;
  background: #0b1430;
  border: 1px solid rgba(15, 23, 42, 0.85);
  border-radius: 18px;
  margin-top: 24px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.55);
}

.cwCtaContent {
  flex: 1;
  min-width: 300px;
}

.cwCtaEyebrow {
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cwCtaTitle {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0;
  line-height: 1.2;
}

.cwCtaBody {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cwScarcityAlert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fca5a5;
  font-size: 18px;
  line-height: 1.4;
}

.cwScarcityAlert svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ef4444;
}

.cwPricingCard {
  width: 320px;
  background: #111827;
  padding: 24px 20px 26px 20px;  /* extra 2px at bottom */
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  box-sizing: border-box;
}

.cwPricingCard .cwCtaPrimary {
  width: 220px;        /* fixed width */
  align-self: center;  /* center inside the card */
  justify-content: center;
}




.cwPricingHeader h3 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.cwPrice {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.cwCurrency {
  font-size: 20px;
  margin-top: 6px;
  color: #94a3b8;
}

.cwPeriod {
  font-size: 14px;
  color: #94a3b8;
  align-self: flex-end;
  margin-bottom: 8px;
  font-weight: 600;
}

.cwPriceSub {
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 24px 0;
}

.cwFeaturesList {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cwFeaturesList li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.cwFeaturesList svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -------------------------------------
   Responsive
   ------------------------------------- */
@media (max-width: 1024px) {
  .cwGrid2 {
    grid-template-columns: 1fr;
  }
  .cwSplit2 {
    flex-direction: column;
  }
  .cwDetails {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 800px) {
  .cwCtaBannerV2 {
    flex-direction: column;
  }
  .cwPricingCard {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Pricing-card Book a Call button: fixed width, centered, no overflow */
.cwPricingCard .cwCtaPrimary {
  width: 220px;            /* fixed width */
  align-self: flex-start;  /* align to left inside the card */
  justify-content: center;
  margin: 0;               /* no auto full-width margin */
}

/* Header background like screenshot */
.cwHeroHeader {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 55%, #020617 100%);
  color: #ffffff;
}

/* Title color (CloudWizard Security and Compliance Dashboard) */
.cwHeroTitles h1 {
  color: #ff4d6d;
}

/* Subheading color */
.cwHeroTitles p {
  color: #9ca3af;
}

/* Inner banner (free AWS security review style) */
.cwCtaBannerV2 {
  background: #111827;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.8);
}

/* Top header buttons - subtle color treatment */

/* Run New Scan: white pill with soft blue border & hover */
.cwHeroScanBtn {
  background: #ffffff;
  color: #020617;
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}
.cwHeroScanBtn:hover {
  background: #f9fafb;
  border-color: rgba(37, 99, 235, 0.4);
}

/* DEMO & version badges: glassy dark pills with subtle accent */
.cwEnvBadge,
.cwVersionBadge {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

/* Make DEMO pop slightly with a blue tint */
#envBadge.cwEnvBadge {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.7);
  color: #bfdbfe;
}

/* Main Site button: soft outline with hover fill */
.cwMainSiteLink {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}
.cwMainSiteLink:hover {
  background: #111827;
  border-color: #e5e7eb;
}

/* DEMO badge: pink to match logo */
#envBadge.cwEnvBadge {
  background: rgba(244, 63, 94, 0.18);   /* soft pink glass */
  border-color: rgba(244, 63, 94, 0.8);  /* strong pink border */
  color: #fecaca;                        /* light pink text */
}

/* Square Framework + Compliance Score tile */

.cwKpis .cwFrameworkSummary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 18px 16px 18px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #1e293b 0%, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.7);
  min-height: 160px;         /* square-ish */
}

/* Top: Framework label + name */
.cwFrameworkSummary-header {
  width: 100%;
}

.cwFrameworkSummary-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cwFrameworkSummary-name {
  font-size: 18px;
  font-weight: 900;
  color: #f9fafb;
  letter-spacing: -0.01em;
}

/* Bottom: Compliance Score */
.cwFrameworkSummary-scoreBlock {
  margin-top: 16px;
  width: 100%;
}

.cwFrameworkSummary-scoreLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cwFrameworkSummary-scoreValue {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: #22c55e; /* default; JS will override based on score */
  text-shadow: 0 2px 18px rgba(34, 197, 94, 0.55);
}

/* subtle progress line under the score */
.cwFrameworkSummary-meter {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f97316, #22c55e);
  opacity: 0.65;
}

/* Compliance KPI grid: one big tile + uniform smaller tiles */
.cwComplianceKpiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  width: 100%;
}

/* Make the framework tile always span 2 columns on desktop */
.cwFrameworkSummary {
  grid-column: span 2;
}

/* Uniform KPI tiles: same size, centered content, larger numbers */
.cwComplianceKpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

.cwComplianceKpi .cwKpiLabel {
  text-align: center;
  font-size: 0.8rem;
}

.cwComplianceKpi .cwKpiVal {
  text-align: center;
  font-size: 1.9rem;
}

/* Let the FAIL/PASS/MANUAL variants reuse same tile styling */
.cwComplianceKpi.cwKpiFail .cwKpiVal  { color: var(--cw-status-fail); }
.cwComplianceKpi.cwKpiPass .cwKpiVal  { color: var(--cw-status-pass); }
.cwComplianceKpi.cwKpiManual .cwKpiVal{ color: var(--cw-status-manual); }

@media (max-width: 768px) {
  .cwFrameworkSummary {
    grid-column: span 1;
  }
}

/* Bigger, centered framework text inside the compliance tile */
.cwFrameworkSummary-header {
  width: 100%;
  text-align: center;
}

.cwFrameworkSummary-label {
  text-align: center;
  font-size: 12px;
}

.cwFrameworkSummary-name {
  text-align: center;
  font-size: 20px;      /* was 18px */
  font-weight: 900;
}

/* Center compliance score label and value */
.cwFrameworkSummary-scoreBlock {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.cwFrameworkSummary-scoreLabel {
  text-align: center;
}

.cwFrameworkSummary-scoreValue {
  text-align: center;
  width: 100%;
}

.cwClientBanner {
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.cwClientBannerImg {
  width: 100%;
  max-height: 160px;      /* tune this to match hero height */
  object-fit: cover;      /* fills width, crops evenly */
  display: block;
}
