:root {
  --ws-blue: #0066cc;
  --ws-blue-dark: #004c99;
  --ws-blue-light: #e0f2fe;
  --ws-navy: #0a192f;
  --ws-slate: #0f172a;
  --ws-green: #059669;
  --ws-green-bright: #10b981;
  --ws-green-bg: #dcfce7;
  --ws-amber: #f59e0b;
  --ws-amber-bg: #fef3c7;
  --ws-purple: #6d28d9;
  --ws-bg: #f4f7fb;
  --ws-card: #ffffff;
  --ws-border: #e2e8f0;
  --ws-text: #0f172a;
  --ws-muted: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--ws-bg);
  color: var(--ws-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

/* Sticky Investor Pitch Presenter Bar */
.pitch-bar {
  background: linear-gradient(90deg, #06101e 0%, #0d254c 50%, #06101e 100%);
  color: #fff;
  padding: 8px 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.pitch-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pitch-step-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pitch-step-btn:hover,
.pitch-step-btn.active {
  background: var(--ws-blue);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.6);
}

/* Main WealthShare Navigation Header */
.ws-header {
  background: #0a1324;
  color: #fff;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ws-brand img {
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: #000;
  padding: 4px 10px;
}

.ws-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 800;
}

.ws-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ws-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ws-nav-btn.active {
  background: linear-gradient(135deg, #0066cc, #0284c7);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.ws-live-metrics-pill {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.79rem;
}

/* Speaker Notes Banner for Investor Pitch */
.speaker-notes-bar {
  background: linear-gradient(90deg, #eff6ff, #ecfdf5);
  border-bottom: 1px solid #bfdbfe;
  padding: 11px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: #1e3a8a;
}

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background: radial-gradient(circle at top right, #0f294d, #07101f 75%);
  color: #fff;
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(10, 25, 47, 0.25);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 14px 0;
}

.hero-title span {
  color: #38bdf8;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 22px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc, #0284c7);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.4);
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Cards & Grids */
.card {
  background: var(--ws-card);
  border-radius: 16px;
  border: 1px solid var(--ws-border);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

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

.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--ws-border);
  border-top: 4px solid var(--ws-blue);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ws-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--ws-slate);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.kpi-sub {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 4px;
}

/* 3-Screen Sandbox Layout (iPhone + POS + Live Ledger) */
.sandbox-grid {
  display: grid;
  grid-template-columns: 375px 1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1260px) {
  .sandbox-grid {
    grid-template-columns: 1fr;
  }
}

/* Realistic iPhone 16 Frame matching Client's Blue WealthShare Mockup */
.iphone-frame {
  width: 375px;
  margin: 0 auto;
  background: #0066cc;
  padding: 11px;
  border-radius: 46px;
  box-shadow: 0 20px 50px rgba(0, 60, 130, 0.35), inset 0 0 0 3px #38bdf8;
}

.iphone-screen {
  background: #f8fafc;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 740px;
  position: relative;
}

.iphone-top-bar {
  background: linear-gradient(135deg, #005bb5, #0077e6);
  color: #fff;
  padding: 12px 16px 14px;
}

.dynamic-island {
  width: 96px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.iphone-search-balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iphone-search-box {
  flex: 1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.iphone-balance-pill {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.iphone-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.iphone-bottom-nav {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 6px;
}

.iphone-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.iphone-tab-btn.active {
  color: var(--ws-blue);
}

/* Category Pills matching Client's Hand Mockup (GAS, RESTAURANT, CAFE, GROCERY) */
.cat-pill-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 14px;
}

.cat-pill {
  background: #fff;
  color: #005bb5;
  border: 1.5px solid #0066cc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.cat-pill.active {
  background: #0066cc;
  color: #fff;
}

/* Upside / WealthShare Offer Cards */
.ws-offer-card {
  margin: 0 14px 12px;
  background: #fff;
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
  transition: transform 0.15s ease;
}

.ws-offer-card:hover {
  transform: translateY(-2px);
}

.ws-offer-banner {
  height: 86px;
  padding: 10px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ws-offer-body {
  padding: 10px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Desktop MacBook Map View (Matching Client's Banner) */
.macbook-map-layout {
  display: grid;
  grid-template-columns: 310px 1fr 250px;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #cbd5e1;
  padding: 16px;
  min-height: 560px;
}

@media (max-width: 1120px) {
  .macbook-map-layout {
    grid-template-columns: 1fr;
  }
}

.map-canvas {
  background: #d9ead3;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid #cbd5e1;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #0066cc;
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  border: 2px solid #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.map-pin:hover,
.map-pin.active {
  background: #059669;
  transform: translate(-50%, -108%) scale(1.12);
  z-index: 20;
}

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: currentColor transparent;
  color: inherit;
}

/* Tables & Badges */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.badge-cashback {
  background: #10b981;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-block;
}

.badge-amber {
  background: #f59e0b;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-block;
}

/* Toast Notification */
.ws-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #064e3b;
  color: #fff;
  border: 2px solid #34d399;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 440px;
  font-size: 0.86rem;
  animation: slideUp 0.25s ease-out;
}

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