/* KeenSec AI Awareness Generation: Aligned with Main Index Page Design System */

.ag-page {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

.ag-page .brand-hero {
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* ==========================================================================
   1. Showcase Console (Inside .dashboard-preview)
   ========================================================================== */
.ag-transform-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-ttab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
  text-align: center;
}

.ag-ttab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.03);
}

.ag-ttab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.ag-tpanel {
  padding: 20px;
}

.ag-tpanel[hidden] {
  display: none;
}

.ag-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.ag-metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.ag-met-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ag-met-val {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.ag-met-val.green { color: #10b981; }
.ag-met-val.purple { color: #a855f7; }
.ag-met-val.red { color: #ef4444; }
.ag-met-val.amber { color: #f59e0b; }
.ag-met-val.cyan { color: #38bdf8; }

.ag-met-sub {
  font-size: 11px;
  color: #94a3b8;
}

.ag-code-block {
  background: #070d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ag-code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ag-code-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.ag-code-block pre {
  margin: 0;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-x: auto;
}

.ag-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ag-ft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.ag-ft-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   2. Threat Deconstruction Studio in Story Band
   ========================================================================== */
.ag-presets-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(12, 21, 39, 0.8);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-presets-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-right: 6px;
}

.ag-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.ag-preset-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.ag-preset-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.ag-pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ag-pdot.amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.ag-pdot.cyan { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.ag-pdot.purple { background: #c084fc; box-shadow: 0 0 6px #c084fc; }

/* Workbench Dual Pane */
.ag-workbench {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.ag-wb-pane {
  background: #0c1527;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Left Pane: Threat Canvas */
.ag-canvas-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-canvas-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ag-sim-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.ag-dept-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}

.ag-hint-text {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.ag-mail-view {
  background: #080e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.ag-mail-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ag-mail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ag-row-label {
  color: #94a3b8;
  width: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
}

.ag-row-val {
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ag-spoof-target {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Radar Pin */
.ag-radar-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #1e293b;
  border: 1px solid #38bdf8;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.ag-radar-pin:hover,
.ag-radar-pin.pin-active {
  background: #38bdf8;
  color: #0c1527;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.pin-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  animation: pulsePin 2s infinite ease-out;
}

@keyframes pulsePin {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ag-mail-body {
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.ag-mail-body p {
  margin: 0 0 10px;
  color: #cbd5e1;
}

.ag-urgency-highlight {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  border-radius: 0 4px 4px 0;
  color: #fde68a !important;
}

.ag-action-box {
  margin-top: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.ag-btn-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ag-sim-cta {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ag-sim-url-hint {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-top: 6px;
}

.ag-canvas-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ag-safety-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
}

/* Right Pane: AI Just-in-Time Teardown Inspector */
.ag-teardown-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-ai-chip {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #38bdf8;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ag-teardown-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ag-clue-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.ag-clue-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ag-csel-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.ag-csel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ag-csel-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
}

.ag-clue-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ag-clue-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
}

.ag-clue-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #38bdf8;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ag-clue-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.ag-clue-card.safe-contrast {
  border-left: 3px solid #10b981;
}

.ag-clue-card.safe-contrast .ag-clue-kicker {
  color: #34d399;
}

.ag-tech-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ag-tech-row:last-child {
  border-bottom: none;
}

.ag-tlabel {
  color: #94a3b8;
  font-family: var(--font-mono);
}

.ag-tval {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 30-Second Micro-Reflex Lab */
.ag-reflex-lab {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 14px;
}

.ag-reflex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.ag-quiz-q {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.45;
}

.ag-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ag-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  font-size: 11.5px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.ag-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.ag-opt-btn.correct {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
}

.ag-opt-btn.incorrect {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.ag-quiz-feedback {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-fb-success {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #34d399;
  font-size: 11.5px;
  line-height: 1.45;
}

.ag-fb-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ag-fb-success strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.ag-fb-success p {
  color: #cbd5e1;
  margin: 0;
}

.ag-score-bump {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.ag-score-bump span { color: #94a3b8; }
.ag-score-bump strong { color: #34d399; }

/* ==========================================================================
   3. Transformation Comparison Section (Light Cards)
   ========================================================================== */
.ag-comparison-section {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.ag-comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.ag-comp-col {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.ag-comp-col.keensec {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.ag-comp-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ag-comp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.ag-comp-tag.red { color: var(--danger); }
.ag-comp-tag.green { color: var(--success); }

.ag-comp-header h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.ag-comp-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.ag-comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ag-comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ag-cbullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.ag-cbullet.red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.ag-cbullet.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.ag-comp-list strong {
  display: block;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.ag-comp-list p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   4. Pipeline Grid (Light Cards Matching Homepage .path-card)
   ========================================================================== */
.ag-journey-section {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ag-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ag-pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ag-pcard h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ag-pcard p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.ag-pcard-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.ag-pcard-specs li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ag-pcard-specs li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Formats Grid (Light Cards on Wash)
   ========================================================================== */
.ag-formats-section {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.ag-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ag-format-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ag-format-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.ag-fcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ag-dim-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
}

.ag-format-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.ag-format-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.ag-dim-proof {
  background: var(--bg-sunken);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.ag-proof-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ag-proof-val {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   6. Facts Section (Light Cards Matching Homepage Standards)
   ========================================================================== */
.ag-facts-section {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.ag-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ag-fact-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ag-fact-card .mono {
  display: block;
  font-size: 11px;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.ag-fact-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.ag-fact-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ag-pipeline-grid,
  .ag-formats-grid,
  .ag-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-comp-grid {
    grid-template-columns: 1fr;
  }
  .ag-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ag-pipeline-grid,
  .ag-formats-grid,
  .ag-facts-grid {
    grid-template-columns: 1fr;
  }
  .ag-transform-tabs {
    flex-direction: column;
  }
  .ag-grid-2col {
    grid-template-columns: 1fr;
  }
}
