/* ===== Branjo — B2B SaaS aesthetic (Linear / Enterpret) ===== */
:root {
  --bg-primary: #0B0E14;
  --bg-card: #161B22;
  --border-card: #30363D;
  --accent: #F97316;
  --accent-hover: #ea580c;
  --charcoal: #2F2F2F;
  --charcoal-light: #3d3d3d;
  --safe-green: #1a9e1a;
  --safe-green-light: #22b822;
  --signal-green: #10B981;
  --signal-orange: #F97316;
  --white: #fff;
  --off-white: #f8f8f8;
  --gray: #8b949e;
  --gray-light: #6e7681;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: min(1200px, 92vw);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --heading-tracking: -0.02em;
  --orange: var(--accent);
  --orange-dark: var(--accent-hover);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg-primary);
}

/* 12-column grid + consistent padding (px-8 on desktop) */
.pilot-wrap {
  width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Headings: premium tight look */
h1, h2, h3, h4, .section-pilot-title, .granular-intel-title, .granular-persona-label,
.granular-copy-pro .granular-persona-label, .hq-exec-panel-title {
  letter-spacing: var(--heading-tracking);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.pilot-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
}

.pilot-header .pilot-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.pilot-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: var(--heading-tracking);
}
.pilot-logo:hover { text-decoration: none; }

.pilot-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pilot-nav a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.9375rem;
}
.pilot-nav a:hover { color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== Buttons ===== */
.btn-pilot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-pilot:hover { text-decoration: none; }

.btn-primary-pilot {
  background: var(--orange);
  color: var(--white);
}
.btn-primary-pilot:hover {
  background: var(--orange-dark);
  text-decoration: none;
}

/* Pulse animation for CTA — heartbeat every 3–4s, invitation not distracting */
.btn-pulse {
  animation: pulse-cta 3.8s ease-in-out infinite;
}
.sticky-cta.btn-pulse {
  animation: pulse-cta 3.8s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 92%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); }
  96% { box-shadow: 0 0 0 12px rgba(255, 140, 0, 0); }
}

/* ===== Hero ===== */
.hero-pilot {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 47, 47, 0.92) 0%, rgba(47, 47, 47, 0.85) 100%),
    url("https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1920&q=80") center / cover no-repeat;
  filter: blur(0);
}

.hero-pilot-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-left {
  color: var(--white);
}

.hero-pilot-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-pilot-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  max-width: 42ch;
}

.hero-left .btn-primary-pilot {
  font-size: 1rem;
  padding: 1rem 1.5rem;
}

/* Hero visual: split — messy SOP + phone */
.hero-visual-split {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-messy-sop {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  z-index: 0;
}

.sop-paper {
  position: relative;
  width: 200px;
  padding: 1.25rem 1.5rem;
  background: #e0dcd2;
  border-radius: 4px;
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid #c8c4b8;
  overflow: hidden;
}

.sop-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(160, 0, 0, 0.75);
  opacity: 1;
  pointer-events: none;
  text-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.sop-stain {
  pointer-events: none;
}

.sop-coffee {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 32px;
  background: radial-gradient(ellipse 60% 70% at center, rgba(80, 50, 20, 0.5) 0%, rgba(80, 50, 20, 0.15) 50%, transparent 75%);
  border-radius: 45%;
}

.sop-coffee-2 {
  position: absolute;
  bottom: 14px;
  left: 12px;
  width: 22px;
  height: 26px;
  background: radial-gradient(ellipse 55% 65% at center, rgba(90, 55, 25, 0.4) 0%, transparent 70%);
  border-radius: 40%;
}

.sop-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.sop-line {
  display: block;
  height: 6px;
  background: #c4c0b8;
  border-radius: 2px;
  margin-bottom: 6px;
  width: 100%;
}
.sop-line.short { width: 70%; }

.hero-phone-float {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 280px;
  background: var(--charcoal);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-notch {
  height: 24px;
  background: var(--charcoal);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
  width: 100px;
}

.phone-screen-pilot {
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
}

.wa-header-pilot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.wa-avatar-pilot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-name-pilot {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
}

.wa-chat-pilot {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.wa-bubble-in {
  align-self: flex-start;
  max-width: 90%;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.wa-bubble-out {
  align-self: flex-end;
  max-width: 90%;
  padding: 10px 12px;
  background: #d9fdd3;
  border-radius: 8px;
  color: var(--charcoal);
}

.typewriter {
  border-right: 3px solid var(--safe-green);
  padding-right: 2px;
  animation: blink 0.6s step-end infinite;
  min-height: 1.2em;
  display: inline-block;
}
@keyframes blink {
  0%, 49% { border-color: var(--safe-green); }
  50%, 100% { border-color: transparent; }
}

/* ===== Sections ===== */
.section-pilot {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ===== Why: Performance-First (the reasoning) ===== */
.section-why {
  background: var(--charcoal);
  color: var(--white);
}

.why-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-why .section-pilot-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.why-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.why-copy {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.section-pilot-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}

/* HQ Command Center title on dark background */
.section-hq .section-pilot-title {
  color: #ffffff;
}

/* ===== Pain — The Problem ===== */
.section-pain {
  background: #e8e9eb;
  color: var(--charcoal);
}

.pain-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.pain-headline {
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pain-intro {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--gray);
  margin: 0 0 2.5rem;
}

.pain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pain-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.pain-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--orange);
  display: block;
}

.pain-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pain-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.pain-card-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray);
  margin: 0;
}

.pain-cta {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .pain-intro {
    margin-bottom: 2rem;
  }
}

/* ===== Calculator: Training Leakage ===== */
.section-calculator {
  background: linear-gradient(180deg, #fff9f0 0%, #fff5e8 50%, #fffbf5 100%);
  border-top: 1px solid #f0e6d8;
  position: relative;
}

.section-calculator::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 140, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.calculator-wrap {
  position: relative;
  z-index: 1;
}

.section-calculator .section-pilot-title {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
  overflow: visible;
  word-wrap: break-word;
  hyphens: none;
  max-width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.section-calculator.calc-in-view .section-pilot-title {
  animation: calc-headline-in 0.6s ease-out 0.1s forwards;
}

@keyframes calc-headline-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-intro {
  text-align: center;
  max-width: 560px;
  margin: -0.5rem auto 2rem;
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.6;
  opacity: 0;
  overflow: visible;
  word-wrap: break-word;
}

.section-calculator.calc-in-view .calculator-intro {
  animation: calc-headline-in 0.6s ease-out 0.25s forwards;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
}

.section-calculator.calc-in-view .calculator-grid {
  animation: calc-grid-in 0.7s ease-out 0.4s forwards;
}

@keyframes calc-grid-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding-top: 0.25rem;
}

.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}
.calc-input-row .calc-label {
  min-width: 0;
}

.calc-days-ai-note {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.4;
}
.calc-days-ai-note strong {
  color: var(--charcoal);
  font-weight: 700;
}
.calc-days-ai-hint {
  font-weight: 500;
  color: var(--gray-light);
}

.calc-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
}

.calc-label span { font-weight: 600; }

.calc-label input[type="number"] {
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-label input[type="number"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.calc-label input[type="range"] {
  width: 100%;
  height: 8px;
  accent-color: var(--orange);
}

.calc-label output {
  font-weight: 700;
  color: var(--orange);
}

.calculator-results {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid #f0e6d8;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.calc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: -0.25rem -0.25rem 0;
  padding: 0.25rem;
}

.calculator-results.calc-flash {
  animation: calc-panel-flash 0.6s ease-out;
}

@keyframes calc-panel-flash {
  0% { box-shadow: 0 4px 20px rgba(255, 140, 0, 0.08); }
  30% { box-shadow: 0 0 0 2px var(--orange), 0 8px 28px rgba(255, 140, 0, 0.18); }
  100% { box-shadow: 0 4px 20px rgba(255, 140, 0, 0.08); }
}

.calc-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.calc-table col.col-metric { width: auto; }
.calc-table col.col-val-manual { width: auto; }
.calc-table col.col-val-ai { width: auto; }

.calc-table th,
.calc-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}
.calc-table th:last-child,
.calc-table td:last-child {
  padding-right: 0.75rem;
}
.calc-table th {
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}
.calc-table td:first-child {
  padding-right: 0.75rem;
}

.calc-table th:first-child { text-align: left; }
.calc-table th.col-manual,
.calc-table th.col-ai { text-align: right; }
.calc-table .col-manual,
.calc-table .col-ai {
  text-align: right;
  min-width: 0;
}

.calc-table .col-manual { color: var(--charcoal); }
.calc-table .col-red {
  color: #b91c1c;
  font-weight: 700;
}

.calc-table .col-green {
  color: var(--safe-green);
  font-weight: 600;
}

.calc-tooltip {
  cursor: help;
  opacity: 0.7;
  font-size: 0.85em;
  margin-left: 0.2rem;
}

.calc-waste-manual.waste-pulse {
  animation: waste-pulse 0.6s ease-out;
}

@keyframes waste-pulse {
  0% { color: #b91c1c; }
  30% { color: #dc2626; text-shadow: 0 0 12px rgba(220, 38, 38, 0.5); }
  100% { color: #b91c1c; }
}

.calc-benchmark {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 1.5rem 0 0;
  font-style: italic;
}

.calc-table .row-waste td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  vertical-align: middle;
}

.calc-num-big {
  font-size: 1.125rem;
  font-weight: 700;
}

.calc-tooltip-manual {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gray);
  cursor: help;
  vertical-align: middle;
}

.calc-table .row-roi td { border-bottom: none; padding-top: 0.85rem; }
.calc-table #out-roi-cell {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}

.calc-table .roi-savings { font-weight: 700; }

/* Calculator: mobile-friendly */
@media (max-width: 768px) {
  .section-calculator .section-pilot-title {
    font-size: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .calculator-intro {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  .calculator-inputs {
    gap: 1rem;
  }
  .calc-input-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .calc-label {
    font-size: 0.9375rem;
  }
  .calc-label input[type="number"] {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 16px; /* prevents zoom on focus in iOS */
  }
  .calc-label input[type="range"] {
    min-height: 24px;
    padding: 0.5rem 0;
  }
  .calculator-results {
    padding: 1rem;
  }
  .calc-table-scroll {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .calc-table {
    font-size: 0.875rem;
    min-width: 260px;
  }
  .calc-table th,
  .calc-table td {
    padding: 0.5rem 0.5rem;
  }
  .calc-table td:first-child {
    padding-right: 0.5rem;
    max-width: 140px;
  }
  .calc-num-big {
    font-size: 1rem;
  }
  .calc-benchmark {
    font-size: 0.75rem;
    margin-top: 1.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

@media (max-width: 480px) {
  .section-calculator .section-pilot-title {
    font-size: 1.35rem;
  }
  .section-calculator .pilot-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .calc-table th:nth-child(2),
  .calc-table th:nth-child(3) {
    font-size: 0.8rem;
  }
  .calc-table .col-manual,
  .calc-table .col-ai {
    font-size: 0.8125rem;
  }
}

/* ===== The HQ Command Center ===== */
.section-hq {
  background: var(--bg-primary);
}

.section-hq .solution-sub {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray);
  margin: -0.5rem 0 0;
}

/* Strategic Pivot: Silos → Brand Brain */
.hq-pivot-wrap {
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
}

.hq-pivot-visual {
  position: relative;
  margin-bottom: 1rem;
}

.hq-pivot-brain {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--charcoal);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  z-index: 2;
}

.hq-pivot-lines {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.hq-pivot-lines .hq-line {
  stroke-dasharray: 4 3;
  animation: hq-line-draw 1.2s ease-out forwards;
}
.hq-pivot-lines .hq-line:nth-child(1) { animation-delay: 0.1s; }
.hq-pivot-lines .hq-line:nth-child(2) { animation-delay: 0.2s; }
.hq-pivot-lines .hq-line:nth-child(3) { animation-delay: 0.3s; }
.hq-pivot-lines .hq-line:nth-child(4) { animation-delay: 0.4s; }
.hq-pivot-lines .hq-line:nth-child(5) { animation-delay: 0.5s; }

@keyframes hq-line-draw {
  from { stroke-dasharray: 0 100; opacity: 0.5; }
  to { stroke-dasharray: 4 3; opacity: 1; }
}

.hq-pivot-lines .hq-silo {
  animation: hq-silo-in 0.5s ease-out backwards;
}
.hq-pivot-lines .hq-silo:nth-of-type(1) { animation-delay: 0.15s; }
.hq-pivot-lines .hq-silo:nth-of-type(2) { animation-delay: 0.25s; }
.hq-pivot-lines .hq-silo:nth-of-type(3) { animation-delay: 0.35s; }
.hq-pivot-lines .hq-silo:nth-of-type(4) { animation-delay: 0.45s; }
.hq-pivot-lines .hq-silo:nth-of-type(5) { animation-delay: 0.55s; }

@keyframes hq-silo-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.hq-pivot-lines .hq-brain-node {
  animation: hq-brain-pulse 2s ease-in-out infinite;
}

.hq-pivot-lines .hq-silo-label {
  font-size: 9px;
  font-family: var(--font);
  fill: var(--gray);
  font-weight: 500;
}

@keyframes hq-brain-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hq-pulse {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--safe-green);
  opacity: 0;
  animation: hq-pulse-out 2.5s ease-out infinite;
}
.hq-pulse-2 { animation-delay: 1.2s; }

@keyframes hq-pulse-out {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.hq-pivot-caption {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

/* 3 Value Pillars */
.hq-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.hq-pillar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.hq-pillar:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.hq-pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
  letter-spacing: var(--heading-tracking);
  line-height: 1.3;
}

.hq-pillar-hook {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hq-pillar-value {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

/* Granular Control, Global View */
.hq-roles {
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
}

.hq-roles-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}

.hq-roles-sub {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0 0 1rem;
}

.hq-roles-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--charcoal);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.hq-roles-list li { margin-bottom: 0.5rem; }

/* Granular Intelligence — 3-tab, 12-col grid, B2B SaaS */
.granular-intel-wrap {
  width: 100%;
  margin: 3rem 0;
  padding: 2.5rem 0;
  background: var(--bg-primary);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.granular-intel-wrap.step-in-view {
  opacity: 1;
  transform: translateY(0);
}

.granular-intel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.granular-intel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.35rem;
  text-align: center;
  letter-spacing: var(--heading-tracking);
}

.granular-intel-sub {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0 0 2rem;
  text-align: center;
}

/* Tab list */
.granular-tab-list {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}

.granular-tab-label {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: var(--heading-tracking);
  transition: color 0.2s, border-color 0.2s;
}
.granular-tab-label:hover {
  color: var(--white);
}

.granular-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.granular-tabs:has(#granular-tab-staff:checked) .granular-tab-label[for="granular-tab-staff"],
.granular-tabs:has(#granular-tab-managers:checked) .granular-tab-label[for="granular-tab-managers"],
.granular-tabs:has(#granular-tab-hq:checked) .granular-tab-label[for="granular-tab-hq"] {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.granular-tab-panel {
  display: none;
}
/* Fixed height for all panels so layout doesn't jump when switching tabs */
#granular-tab-staff:checked ~ #panel-staff,
#granular-tab-managers:checked ~ #panel-managers,
#granular-tab-hq:checked ~ #panel-hq {
  display: block;
  min-height: 580px;
}
#panel-staff .granular-grid-12,
#panel-managers .granular-grid-12,
#panel-hq .granular-grid-12 {
  min-height: 540px;
}

/* 12-col grid + stakeholder cards (same min-height) */
.granular-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.granular-stakeholder-card {
  min-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Right-side visual: fixed height (Managers size) so Staff/Managers/HQ don’t jump */
.granular-visual-card {
  height: 540px;
  min-height: 540px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Screenshot-only cards (Managers/HQ): same box as Staff, image not trimmed */
.granular-visual-card.granular-card-mockup:has(.screenshot-browser-wrap img),
.granular-visual-card.granular-dashboard-wrap:has(.screenshot-browser-wrap img) {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  /* Keeps .granular-stakeholder-card box: background, border, padding, box-shadow */
}

/* Managers screenshot: vertically center the image */
.granular-visual-card.granular-card-mockup:not(.granular-dashboard-wrap):has(.screenshot-browser-wrap img) {
  justify-content: center;
}

.granular-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.granular-card-copy .granular-copy-lead {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.granular-card-copy .granular-bullets {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.granular-bullet-heading {
  font-weight: 600;
}

.granular-bullet-body {
  display: inline;
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
}

.granular-card-copy .granular-effect {
  margin: 0;
  font-size: 0.875rem;
  color: var(--accent);
}

/* 3 WhatsApp cards in a row — no horizontal scroll */
.granular-card-carousel {
  min-height: 320px;
  overflow: hidden;
}

.granular-visual-card.granular-card-carousel .granular-carousel-track {
  flex: 1;
  min-height: 0;
  align-content: center;
}
.granular-visual-card.granular-dashboard-wrap {
  min-height: 540px;
}
.granular-visual-card.granular-dashboard-wrap .granular-desktop-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.granular-visual-card.granular-dashboard-wrap .granular-desktop-screen {
  flex: 1;
  min-height: 0;
}

.granular-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 0;
  align-items: start;
}

.granular-wa-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.granular-wa-card-caption {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
  padding: 0 2px;
  text-align: center;
}

.granular-wa-card {
  min-width: 0;
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  flex-shrink: 0;
  background: #e5ddd5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(249, 115, 22, 0.2), 0 0 14px rgba(249, 115, 22, 0.12);
  display: flex;
  flex-direction: column;
}

/* Same header style and height for all brand labels */
.granular-wa-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  min-height: 48px;
  background: #075e54;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--heading-tracking);
  flex-shrink: 0;
}

.granular-wa-card-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.granular-wa-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.granular-wa-card-chat {
  padding: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: visible;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* WhatsApp-style chat input bar — compact */
.granular-wa-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 6px;
  background: #f0f2f5;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.granular-wa-chat-bar-emoji {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #54656f;
}
.granular-wa-chat-bar-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.granular-wa-chat-bar-send {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #54656f;
}
.granular-wa-chat-bar-send svg {
  width: 18px;
  height: 18px;
}

.granular-wa-card .granular-wa-bubble-out {
  align-self: flex-end;
  max-width: 92%;
  padding: 8px 12px;
  font-size: 0.7rem;
  line-height: 1.4;
  border-radius: 10px 10px 2px 10px;
  background: #d9fdd3;
  color: #111;
  box-shadow: var(--shadow);
}

.granular-wa-card .granular-wa-bubble-in {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 12px;
  font-size: 0.7rem;
  line-height: 1.45;
  border-radius: 10px 10px 10px 2px;
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
}

.granular-wa-card .granular-wa-reply-title {
  font-size: 0.72rem;
  margin: 0 0 6px;
}

.granular-wa-card .granular-wa-reply-steps,
.granular-wa-card .granular-wa-reply-text {
  font-size: 0.65rem;
  margin: 0 0 6px;
  padding-left: 14px;
  line-height: 1.45;
  color: #333;
}

.granular-wa-card .granular-wa-warning,
.granular-wa-card .granular-wa-reply-hq {
  font-size: 0.62rem;
  margin: 0;
}

.granular-wa-card-hinglish {
  /* same golden glow as other cards; class kept for semantics */
}

.granular-wa-card .granular-hinglish-badge {
  font-size: 0.6rem;
  margin-top: 8px;
  color: var(--accent);
}

.granular-copy {
  min-width: 0;
}

.granular-copy .granular-bullets {
  margin-top: 0.5rem;
}

/* Professional description block — consistent height, clean alignment */
.granular-copy-pro {
  max-width: 36em;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}

.granular-copy-pro .granular-persona-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.granular-copy-lead {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.granular-copy-pro .granular-bullets {
  margin: 0 0 0.75rem;
}

.granular-copy-pro .granular-effect {
  margin: 0;
}

/* Four identical WhatsApp-style phones */
.granular-mockup-phones {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.granular-phones-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Identical phone frame — same size for all */
.granular-phone-frame.granular-phone-wa {
  width: 200px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 24px;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.granular-phone-screen.granular-wa-screen {
  width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* WhatsApp-style header (teal) */
.granular-wa-screen .granular-wa-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #075e54;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
}

.granular-wa-screen .granular-wa-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.granular-wa-screen .granular-wa-name {
  font-weight: 600;
  color: #fff;
}

.granular-wa-screen .granular-wa-chat {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}

.granular-wa-screen .granular-wa-bubble-out {
  align-self: flex-end;
  max-width: 92%;
  padding: 8px 12px;
  font-size: 0.7rem;
  line-height: 1.4;
  border-radius: 10px 10px 2px 10px;
  background: #d9fdd3;
  color: #111;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.08);
}

.granular-wa-screen .granular-wa-bubble-in {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 12px;
  font-size: 0.7rem;
  line-height: 1.45;
  border-radius: 10px 10px 10px 2px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.granular-wa-reply-title {
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  font-size: 0.72rem;
}

.granular-wa-reply-steps {
  margin: 0 0 6px;
  padding-left: 14px;
  font-size: 0.65rem;
  color: #333;
  line-height: 1.45;
}

.granular-wa-reply-steps li {
  margin-bottom: 3px;
}

.granular-wa-reply-text {
  margin: 0 0 6px;
  font-size: 0.65rem;
  color: #333;
  line-height: 1.45;
}

.granular-wa-warning {
  margin: 0;
  font-size: 0.62rem;
  color: #b91c1c;
  font-weight: 600;
}

.granular-wa-reply-hq {
  margin: 0;
  font-size: 0.62rem;
  color: var(--orange);
  font-weight: 600;
}

.granular-wa-bubble-alert .granular-wa-reply-title {
  color: #b91c1c;
}

.granular-hinglish-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.granular-phone-hinglish {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 140, 0, 0.4);
}

/* Row 1: space for 4 larger phones */
.granular-row-doers-inner {
  grid-template-columns: 1fr minmax(480px, 880px);
}

.granular-recipe-title {
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 6px;
  font-size: 0.75rem;
}

.granular-recipe-steps {
  margin: 0 0 8px;
  padding-left: 14px;
  color: var(--gray);
}

.granular-recipe-img {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e4e0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.granular-burger-placeholder {
  width: 48px;
  height: 36px;
  background: linear-gradient(180deg, #8B4513 0%, #654321 40%, #8B4513 55%, #f4d03f 60%, #8B4513 100%);
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Tablet mockup — Branch Manager professional dashboard (glassmorphism, insights) */
.granular-mockup-tablet { margin-bottom: 1.25rem; }

.granular-tablet-frame {
  width: 320px;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.granular-tablet-screen.granular-tablet-pro {
  background: linear-gradient(180deg, #fafbfc 0%, #f2f4f6 100%);
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.granular-pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.granular-pro-logo {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.granular-pro-branch {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orange);
}

.granular-pro-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, rgba(255, 140, 0, 0.02) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.granular-pro-score-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.granular-pro-score-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
}

.granular-pro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
}

.granular-pro-card {
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}

.granular-pro-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.granular-pro-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 8px;
}

.granular-pro-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.granular-pro-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.granular-pro-check {
  color: var(--safe-green);
  font-weight: 700;
  font-size: 0.75rem;
}

.granular-pro-pending {
  color: var(--gray-light);
  font-size: 0.7rem;
}

.granular-pro-vendor {
  font-size: 0.68rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 4px;
}

.granular-pro-vendor-ok {
  color: var(--safe-green);
  font-weight: 600;
}

.granular-pro-activity {
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

.granular-pro-activity-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 8px;
}

.granular-pro-activity-item {
  font-size: 0.68rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 0;
}

.granular-pro-activity-time {
  font-weight: 600;
  color: var(--orange);
  margin-right: 6px;
}

/* Shared: standard screenshot size + Mac traffic lights */
.screenshot-browser-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: block;
  background: transparent;
}

.screenshot-browser-wrap picture {
  display: block;
  line-height: 0;
}

.screenshot-browser-wrap picture img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.screenshot-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(180deg, #e8e8e8 0%, #d4d4d4 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px 10px 0 0;
  z-index: 2;
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.1);
}

.screenshot-dot-red   { background: #FF5F57; }
.screenshot-dot-yellow { background: #FEBC2E; }
.screenshot-dot-green  { background: #28C840; }

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  vertical-align: middle;
  object-fit: contain;
}

.screenshot-browser-wrap .command-center,
.screenshot-browser-wrap .granular-desktop-frame {
  flex: 1;
  min-height: 0;
  border-radius: 0 0 10px 10px;
}

.screenshot-browser-wrap .command-center-screenshot::before {
  display: none;
}

.screenshot-browser-wrap .command-sidebar,
.screenshot-browser-wrap .command-main {
  margin-top: 0;
}

/* Operational Command Center — Managers panel (realistic dashboard screenshot) */
.command-center {
  font-family: var(--font);
  display: flex;
  min-height: 0;
  max-width: 100%;
  background: #0d1117;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.granular-visual-card .command-center {
  flex: 1;
  min-height: 0;
}

.command-center-screenshot {
  flex: 1;
  min-height: 0;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  position: relative;
}

.command-center-screenshot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
  border-bottom: 1px solid #30363D;
  border-radius: 10px 10px 0 0;
  z-index: 2;
}

.command-sidebar {
  width: 112px;
  flex-shrink: 0;
  background: #161b22;
  border-right: 1px solid #30363D;
  padding: 8px 0;
  margin-top: 24px;
}

.command-sidebar-logo {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--heading-tracking);
  padding: 0 10px 8px;
  border-bottom: 1px solid #30363D;
  margin-bottom: 6px;
}

.command-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.command-nav-item {
  font-size: 0.625rem;
  color: var(--gray);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 4px;
  transition: color 0.12s, background 0.12s;
}

.command-nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.command-nav-item.command-nav-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.command-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 24px;
}

.command-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #161b22;
  border-bottom: 1px solid #30363D;
  flex-shrink: 0;
}

.command-topbar-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: var(--heading-tracking);
}

.command-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.command-profile-role {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
}

.command-profile-branch {
  font-size: 0.55rem;
  color: var(--gray);
}

.command-content {
  padding: 8px 10px 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-card {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid #30363D;
  border-radius: 6px;
  padding: 6px 8px;
}

.command-header-card {
  padding: 6px 10px;
}

.command-card-title {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--heading-tracking);
}

.command-pulse-healthy {
  color: var(--signal-green);
  font-variant-numeric: tabular-nums;
}

.command-card-sub {
  margin: 0;
  font-size: 0.58rem;
  color: var(--gray);
  line-height: 1.35;
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.command-widget {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.command-widget-feed .command-feed-scroll {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-widget-title {
  margin: 0 0 4px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.command-widget-gaps {
  grid-column: 1;
  grid-row: 1;
}

.command-friction-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-friction-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid #30363D;
}

.command-friction-topic {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
}

.command-friction-count {
  font-size: 0.52rem;
  font-variant-numeric: tabular-nums;
  color: var(--signal-orange);
}

.command-friction-item .command-friction-count {
  font-weight: 600;
}

.command-friction-rec {
  font-size: 0.5rem;
  color: var(--gray);
  line-height: 1.3;
}

.command-widget-feed {
  grid-column: 2;
  grid-row: 1 / -1;
}

.command-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-feed-item {
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid #30363D;
  animation: command-feed-fade 0.5s ease-out;
}

@keyframes command-feed-fade {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.command-feed-item:nth-child(1) { animation-delay: 0.1s; }
.command-feed-item:nth-child(2) { animation-delay: 0.25s; }
.command-feed-item:nth-child(3) { animation-delay: 0.4s; }

.command-feed-time {
  display: block;
  font-size: 0.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--signal-orange);
  margin-bottom: 2px;
  font-weight: 600;
}

.command-feed-text {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.command-widget-audit {
  grid-column: 1;
  grid-row: 2;
}

.command-audit-box {
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid #30363D;
}

.command-audit-text {
  margin: 0 0 4px;
  font-size: 0.55rem;
  color: var(--white);
  line-height: 1.4;
  font-style: italic;
}

.command-audit-verified {
  font-size: 0.48rem;
  color: var(--gray);
}

.granular-managers-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.5;
  max-width: 520px;
}

@media (max-width: 900px) {
  .command-center {
    flex-direction: column;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
  }
  .command-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #30363D;
    padding: 8px;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .command-sidebar-logo {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
  }
  .command-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .command-nav-item {
    margin: 0;
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .command-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .command-widget-feed {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Desktop mockup — COO enterprise SaaS (dark, data-dense, Enterpret/Stripe-like) */
.granular-mockup-desktop { margin-bottom: 1.25rem; }

.granular-desktop-frame.granular-desktop-pro {
  width: 340px;
  max-width: 100%;
  margin: 0;
  background: #0c0d0e;
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.granular-dashboard-wrap {
  display: flex;
  justify-content: center;
}
.granular-dashboard-wrap .granular-desktop-frame.granular-desktop-strategic {
  width: 80%;
  max-width: 560px;
}

.granular-desktop-frame.granular-desktop-strategic {
  width: 100%;
  max-width: 520px;
}

/* HQ screenshot: window chrome + realistic app capture look */
.granular-desktop-frame.hq-screenshot-frame {
  position: relative;
  background: #0d1117;
  border-radius: 10px;
  padding: 0;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.granular-desktop-frame.hq-screenshot-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
  border-bottom: 1px solid #30363D;
  border-radius: 10px 10px 0 0;
  z-index: 2;
}

.screenshot-browser-wrap .granular-desktop-frame.hq-screenshot-frame::before {
  display: none;
}

.screenshot-browser-wrap .granular-desktop-frame.hq-screenshot-frame .granular-desktop-screen {
  margin-top: 0;
}

.granular-desktop-frame.hq-screenshot-frame .granular-desktop-screen {
  margin-top: 28px;
  border-radius: 0 0 8px 8px;
  border-top: none;
}

/* Global Governance Command Center — 3-column dashboard */
.granular-desktop-screen.hq-governance-dashboard {
  background: #05070A;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  min-height: 320px;
  color: rgba(255, 255, 255, 0.92);
  border: none;
  padding: 0;
}

.hq-governance-dashboard .granular-cmd-pro-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
}

.hq-governance-dashboard .granular-cmd-pro-title {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

/* RAG Knowledge Intelligence — sidebar + main (Search Analytics aesthetic) */
.hq-rag-dashboard .hq-rag-layout {
  display: flex;
  min-height: 280px;
}

.hq-rag-sidebar {
  width: 118px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}

.hq-rag-sidebar-logo {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.hq-rag-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hq-rag-nav-item {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 4px;
  transition: color 0.12s, background 0.12s;
}

.hq-rag-nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.hq-rag-nav-item.hq-rag-nav-active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.hq-rag-main {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hq-rag-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 12px;
}

.hq-rag-section-title {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hq-rag-section-sub {
  margin: 0 0 8px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Network Curiosity — bar chart */
.hq-rag-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hq-rag-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1em minmax(80px, 2fr) 2em;
  align-items: center;
  gap: 6px 8px;
}

.hq-rag-bar-label {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hq-rag-bar-trend {
  font-size: 0.6rem;
  color: #10B981;
  font-weight: 700;
}

.hq-rag-bar-trend-placeholder {
  width: 1em;
  display: inline-block;
}

.hq-rag-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.hq-rag-bar-fill {
  height: 100%;
  background: rgba(249, 115, 22, 0.7);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.hq-rag-bar-value {
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

/* Unanswered Gaps */
.hq-rag-gaps-intro {
  margin: 0 0 6px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
}

.hq-rag-gaps-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hq-rag-gaps-tag {
  display: inline-block;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}

.hq-rag-gaps-action {
  margin: 0;
  font-size: 0.52rem;
  color: rgba(249, 115, 22, 0.9);
  font-style: italic;
}

/* Risk Intent Feed */
.hq-rag-risk-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hq-rag-risk-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
}

.hq-rag-risk-meta {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
}

.hq-rag-risk-intent {
  color: rgba(255, 255, 255, 0.9);
}

.hq-rag-btn-view {
  font-size: 0.52rem;
  font-weight: 600;
  color: #F97316;
  background: transparent;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s;
}

.hq-rag-btn-view:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.6);
}

.hq-gov-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
  min-height: 280px;
}

.hq-gov-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.hq-gov-card {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hq-gov-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hq-gov-card-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Left: Network Health — gauge + sparkline */
.hq-gov-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hq-gov-gauge-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.hq-gov-gauge-fill {
  height: 100%;
  background: #10B981;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hq-gov-gauge-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #10B981;
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
}

.hq-gov-sparkline-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  display: block;
}

.hq-gov-sparkline {
  width: 100%;
  height: 36px;
  margin-bottom: 4px;
}

.hq-gov-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hq-sparkline-line {
  vector-effect: non-scaling-stroke;
}

.hq-gov-sparkline-hint {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Center: Live Governance — map + critical intercept */
.hq-gov-map-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hq-gov-map {
  flex: 1;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hq-gov-map-svg {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
}

.hq-gov-map-outline {
  transition: stroke 0.2s;
}

.hq-gov-node {
  animation: hq-gov-node-pulse 2s ease-in-out infinite;
}
.hq-gov-node-green { fill: #10B981; }
.hq-gov-node-amber { fill: #F59E0B; }
.hq-gov-node:nth-child(2) { animation-delay: 0s; }
.hq-gov-node:nth-child(3) { animation-delay: 0.25s; }
.hq-gov-node:nth-child(4) { animation-delay: 0.5s; }
.hq-gov-node:nth-child(5) { animation-delay: 0.15s; }
.hq-gov-node:nth-child(6) { animation-delay: 0.4s; }
.hq-gov-node:nth-child(7) { animation-delay: 0.1s; }
.hq-gov-node:nth-child(8) { animation-delay: 0.35s; }

@keyframes hq-gov-node-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hq-gov-map-hint {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.hq-gov-intercept {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.hq-gov-intercept-item {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.hq-gov-intercept-time {
  font-weight: 700;
  color: #F97316;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

/* Right: Predictive ROI — resource optimization + pie */
.hq-gov-roi-amount {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #10B981;
  font-variant-numeric: tabular-nums;
}

.hq-gov-roi-period {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.hq-gov-roi-detail {
  margin: 0;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.hq-gov-pie {
  width: 64px;
  height: 64px;
  margin: 6px auto 6px;
  display: block;
}

.hq-gov-pie svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hq-gov-legend {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
}

.hq-gov-legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: middle;
}

.hq-gov-legend-orange { background: rgba(249, 115, 22, 0.6); }
.hq-gov-legend-green { background: rgba(16, 185, 129, 0.6); }
.hq-gov-legend-gray { background: rgba(139, 148, 158, 0.6); }

.granular-desktop-screen.granular-cmd-pro {
  background: #16181c;
  border-radius: 8px;
  overflow: hidden;
  min-height: 240px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* COO Strategic Report — full dashboard with report cards */
.granular-desktop-screen.granular-cmd-strategic {
  min-height: 380px;
}

.granular-cmd-strategic-layout {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.granular-cmd-strategic-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.granular-cmd-strategic-top .granular-cmd-pro-feed {
  min-width: 0;
}

.granular-cmd-strategic-top .granular-cmd-pro-map {
  padding: 10px 14px;
}

.granular-cmd-strategic-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.granular-cmd-strategic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.granular-cmd-strategic-card-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.granular-cmd-strategic-card .granular-cmd-pro-bar-wrap {
  margin-bottom: 6px;
}

.granular-cmd-strategic-card .granular-cmd-pro-bar-wrap:last-of-type {
  margin-bottom: 0;
}

.granular-cmd-strategic-insight {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
  line-height: 1.4;
  border-left: 2px solid var(--orange);
  padding-left: 8px;
}

.granular-cmd-strategic-insight em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.granular-cmd-strategic-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.granular-cmd-strategic-feed-item {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

.granular-cmd-strategic-time {
  font-weight: 600;
  color: var(--orange);
  margin-right: 4px;
}

.granular-cmd-pro-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.granular-cmd-pro-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.granular-cmd-pro-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.granular-cmd-pro-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  padding: 10px;
  min-height: 200px;
}

.granular-cmd-pro-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.granular-cmd-pro-feed-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.granular-cmd-pro-risk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.granular-cmd-pro-risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.granular-cmd-pro-risk-red {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.granular-cmd-pro-risk-red .granular-cmd-pro-risk-dot {
  background: #ef4444;
}

.granular-cmd-pro-risk-amber {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 140, 0, 0.3);
  background: rgba(255, 140, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.granular-cmd-pro-risk-amber .granular-cmd-pro-risk-dot {
  background: var(--accent);
}

.granular-cmd-pro-risk-muted {
  color: rgba(255, 255, 255, 0.5);
}

.granular-cmd-pro-risk-muted .granular-cmd-pro-risk-dot {
  background: rgba(255, 255, 255, 0.25);
}

.granular-cmd-pro-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.granular-cmd-pro-map-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.granular-cmd-pro-map-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}

.granular-cmd-pro-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.g-node-pulse-green {
  background: var(--safe-green);
  box-shadow: 0 0 10px rgba(26, 158, 26, 0.5);
  animation: granular-node-pulse-g 2s ease-in-out infinite;
}

.g-node-pulse-amber {
  background: #e6a800;
  box-shadow: 0 0 10px rgba(230, 168, 0, 0.45);
  animation: granular-node-pulse-a 2s ease-in-out infinite;
}

.g-node-pulse-red {
  background: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  animation: granular-node-pulse-r 1.5s ease-in-out infinite;
}

@keyframes granular-node-pulse-g {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

@keyframes granular-node-pulse-a {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(230, 168, 0, 0.45); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 16px rgba(230, 168, 0, 0.6); }
}

@keyframes granular-node-pulse-r {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 14px rgba(220, 38, 38, 0.7); }
}

.granular-cmd-pro-map-hint {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
}

.granular-cmd-pro-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.granular-cmd-pro-chart-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.granular-cmd-pro-bar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.granular-cmd-pro-bar-label {
  flex: 0 0 100%;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.granular-cmd-pro-bar-track {
  flex: 1 1 0;
  min-width: 36px;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.granular-cmd-pro-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #ffa726 100%);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.granular-cmd-pro-bar-pct {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 24px;
  text-align: right;
}

/* Persona label + bullets + effect (all columns) */
.granular-persona-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.granular-bullets {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  text-align: left;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.granular-effect {
  font-size: 0.875rem;
  color: var(--orange);
  margin: 0;
  font-weight: 500;
}
.granular-effect strong { color: var(--orange); font-weight: 700; }

@media (max-width: 900px) {
  .granular-grid-12 [style*="span 4"],
  .granular-grid-12 [style*="span 8"] {
    grid-column: 1 / -1 !important;
  }
  .granular-stakeholder-card {
    min-height: 260px;
  }
  .granular-dashboard-wrap .granular-desktop-frame.granular-desktop-strategic {
    width: 100%;
  }
  .granular-cmd-strategic-report {
    grid-template-columns: 1fr;
  }
  .hq-gov-grid {
    grid-template-columns: 1fr;
  }
  .hq-rag-layout {
    flex-direction: column;
  }
  .hq-rag-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    display: flex;
    align-items: center;
    padding: 6px 8px;
  }
  .hq-rag-sidebar-logo { border-bottom: none; margin-bottom: 0; padding: 0; }
  .hq-rag-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .granular-intel-inner { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 768px) {
  .granular-carousel-track {
    grid-template-columns: 1fr;
  }
  .granular-wa-card {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }

  /* On mobile, let the Staff visual card grow vertically so cards aren't trimmed */
  .granular-visual-card.granular-card-carousel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .hq-exec-inner { width: 95%; }
}

/* COO View — Strategic Report */
.hq-coo-view {
  margin-bottom: 3rem;
}

.hq-coo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 1.25rem;
}

.hq-coo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hq-coo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hq-coo-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 1rem;
}

.hq-coo-barchart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hq-coo-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.hq-coo-bar-label {
  color: var(--charcoal);
}

.hq-coo-bar-track {
  height: 20px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.hq-coo-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.6s ease-out;
}

.hq-coo-bar-pct {
  color: var(--gray);
  font-weight: 600;
  text-align: right;
}

.hq-coo-feed {
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.5rem;
}

.hq-coo-feed-item {
  font-size: 0.8125rem;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}
.hq-coo-feed-item:last-child { border-bottom: none; }

.hq-coo-feed-time {
  font-weight: 600;
  color: var(--gray);
  margin-right: 0.35rem;
}

.hq-coo-insight {
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 0;
  font-style: normal;
  border-left: 3px solid var(--orange);
  padding-left: 0.75rem;
}
.hq-coo-insight em { font-style: italic; color: var(--charcoal); }

/* Executive Dashboard (CEO Pitch) — 80% width, glassmorphism alerts */
.hq-exec-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--white);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hq-exec-inner {
  width: 80%;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hq-exec-feed li {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hq-exec-feed li:last-child { margin-bottom: 0; border-bottom: none; }

.hq-exec-panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.hq-exec-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}


.hq-exec-time {
  font-weight: 600;
  color: var(--orange);
  margin-right: 0.5rem;
}

.hq-exec-chart-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.75rem;
}

.hq-exec-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hq-exec-chart-bar {
  font-size: 0.8125rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  width: var(--w, 0%);
  min-width: 0;
  max-width: 100%;
  color: var(--white);
  transition: width 0.6s ease-out;
}

.hq-exec-caption {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hq-pillars { grid-template-columns: 1fr; }
  .hq-coo-grid { grid-template-columns: 1fr; }
  .hq-exec-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hq-pivot-lines { max-width: 280px; }
  .hq-coo-bar-row { grid-template-columns: 90px 1fr 32px; }
}

.solution-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.solution-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #eee;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.solution-step.step-in-view {
  opacity: 1;
  transform: translateY(0);
}

.solution-step.reveal-step[data-step="1"] { transition-delay: 0s; }
.solution-step.reveal-step[data-step="2"] { transition-delay: 0.12s; }
.solution-step.reveal-step[data-step="3"] { transition-delay: 0.24s; }

.step-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.5rem;
}

.step-ingest { background: #f0f0f0; color: var(--charcoal); }
.step-localize { background: #e8f4e8; color: var(--safe-green); }
.step-deploy { background: #e3f2fd; color: #1976d2; }

.safe-state {
  color: var(--safe-green);
  font-weight: 600;
  text-shadow: 0 0 20px var(--safe-green-glow);
}
.safe-state .check {
  font-style: normal;
  margin-right: 0.2em;
}

.hinglish-demo {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f5f5f0;
  border-radius: var(--radius);
  border: 1px solid #eee;
}

.hinglish-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin: 0 0 0.5rem;
}

.hinglish-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.hinglish-in {
  align-self: flex-start;
  max-width: 95%;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.hinglish-out {
  align-self: flex-end;
  max-width: 95%;
  padding: 6px 10px;
  background: #d9fdd3;
  color: var(--charcoal);
  border-radius: 8px;
}

.step-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.solution-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--charcoal);
}

.solution-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Melt reveal (scroll): document → brain → WhatsApp — runs when section in view */
.melt-reveal-label {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray);
  margin: 0 0 1rem;
}

.melt-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.06) 0%, rgba(34, 139, 34, 0.06) 100%);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 140, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.melt-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.melt-reveal.visible .melt-doc {
  animation: melt-doc-in 2.2s ease-out forwards;
}

.melt-reveal.visible .melt-brain {
  animation: melt-brain-in 2.2s ease-out 0.6s forwards;
  opacity: 0;
  transform: scale(0.3);
}

.melt-reveal.visible .melt-wa {
  animation: melt-wa-in 2.2s ease-out 1.2s forwards;
  opacity: 0;
  transform: scale(0.3);
}

.melt-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.melt-doc, .melt-brain, .melt-wa {
  font-size: 3.5rem;
  line-height: 1;
  display: inline-block;
}

.melt-doc-label, .melt-brain-label, .melt-wa-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.melt-arrow {
  font-size: 1.5rem;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.4s;
}

.melt-reveal.visible .melt-arrow {
  animation: melt-arrow-in 0.5s ease-out 0.4s forwards;
  opacity: 0;
}

.melt-reveal.visible .melt-arrow:nth-child(4) {
  animation-delay: 1s;
}

@keyframes melt-doc-in {
  0% { transform: scale(0.5); opacity: 0; }
  25% { transform: scale(1.15); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  70% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(0.7); opacity: 0.5; }
}

@keyframes melt-brain-in {
  0% { transform: scale(0.3); opacity: 0; }
  30% { transform: scale(1.2); opacity: 1; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes melt-wa-in {
  0% { transform: scale(0.3); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes melt-arrow-in {
  to { opacity: 0.7; }
}

/* ===== Split-View: Staff WhatsApp + HQ Dashboard ===== */
.split-view-wrap {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.split-view-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin: 0 0 0.75rem;
}

.split-view-left .split-wa-mockup {
  background: #e5ddd5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
}

.split-wa-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.split-wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-wa-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.split-wa-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8125rem;
}

.split-wa-bubble {
  max-width: 92%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  line-height: 1.45;
}

.split-wa-bubble-out {
  align-self: flex-end;
  background: #d9fdd3;
  color: var(--charcoal);
}

.split-wa-bubble-in {
  align-self: flex-start;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.split-view-right .split-hq-mockup {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.split-hq-map {
  position: relative;
  min-height: 100px;
  background: var(--charcoal-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.split-hq-map-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
}

.split-hq-dot {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.7);
  animation: split-dot-ping 1.2s ease-in-out infinite;
}

@keyframes split-dot-ping {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateY(-50%) scale(1.15); }
}

.split-hq-notification {
  padding: 0.875rem 1rem;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.split-hq-notification-icon {
  display: block;
  margin-bottom: 0.25rem;
}

.split-hq-notification-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fca5a5;
  margin-bottom: 0.35rem;
}

.split-hq-insight {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.split-view-caption {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .split-view {
    grid-template-columns: 1fr;
  }
}

/* ===== Safe-State Heatmap & Dashboard ===== */
.dashboard-mockup-pilot {
  margin-top: 2rem;
}

.dashboard-mockup-pilot.heatmap-section {
  margin-top: 0;
}

.heatmap-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.heatmap-subtext {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0 0 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.dashboard-mockup-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 1rem;
  text-align: center;
}

.dashboard-dark {
  max-width: 560px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.dashboard-map-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.dashboard-map {
  position: relative;
  flex: 1 1 200px;
  min-height: 200px;
  background: var(--charcoal-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dashboard-recent-alert {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.875rem 1rem;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.dashboard-recent-alert strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.map-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.map-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: var(--safe-green); box-shadow: 0 0 12px rgba(34, 139, 34, 0.5); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
.dot-red { background: #dc2626; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); }

.dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}
.dot-pulse {
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 20px rgba(245, 158, 11, 0.9); }
}
.dot-flash {
  animation: dot-flash 1s ease-in-out infinite;
}
@keyframes dot-flash {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 24px rgba(220, 38, 38, 0.9); }
}

.dashboard-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-light);
}

.dashboard-legend em {
  font-style: normal;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ===== Silent Guardrail Feature Card ===== */
.guardrail-card {
  margin-top: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #eee;
  box-shadow: var(--shadow);
  position: relative;
}

.guardrail-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--safe-green);
  background: rgba(26, 158, 26, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.guardrail-headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.guardrail-quote {
  border-left: 4px solid var(--orange);
  background: #fafaf9;
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
}

.guardrail-quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
  font-style: italic;
}

/* ===== Founding Pilot Offer ===== */
.section-pilot-offer {
  background: var(--charcoal);
  color: var(--white);
}

.pilot-offer-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-pilot-offer .section-pilot-title {
  color: var(--white);
}

.pilot-offer-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
}

.pilot-offer-text strong { color: var(--orange); }

.pilot-offer-wrap .btn-primary-pilot {
  font-size: 1rem;
  padding: 1rem 1.75rem;
}

/* ===== Apply Section ===== */
.section-apply {
  background: var(--white);
}

.apply-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.apply-note {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: -0.5rem 0 1.5rem;
  text-align: center;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pilot-form input,
.pilot-form textarea {
  padding: 0.875rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
}

.pilot-form input:focus,
.pilot-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.pilot-form textarea {
  resize: vertical;
  min-height: 80px;
}

.pilot-form .btn-primary-pilot {
  margin-top: 0.5rem;
}

.form-outlet-note {
  font-size: 0.875rem;
  color: var(--orange);
  margin: -0.25rem 0 0;
}

.form-outlet-note:empty {
  display: none;
}

/* ===== Footer ===== */
.pilot-footer {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  background: var(--white);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}

.footer-trust {
  font-size: 0.8125rem;
  color: var(--gray-light);
  margin: 0.75rem 0 0;
  font-style: italic;
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  padding: 0.875rem 1.25rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: background 0.2s;
}

.sticky-cta:hover {
  background: var(--orange-dark);
  color: var(--white);
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-pilot-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left .hero-pilot-sub { max-width: none; }
  .hero-visual-split { min-height: 320px; }
  .hero-messy-sop { left: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
  .hero-phone-float { order: -1; }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .solution-flow {
    grid-template-columns: 1fr;
  }

  .three-phones {
    flex-direction: column;
    align-items: center;
  }

  .phone-card {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pilot-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: var(--charcoal);
  }

  .section-apply {
    padding-bottom: 5.5rem;
  }

  .pilot-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  .hero-messy-sop { display: none; }
  .phone-frame { width: 260px; }
  .sticky-cta { font-size: 0.8125rem; padding: 0.75rem 1rem; }
}
