/* ==========================================================================
   Hisab Diary Landing Page — Color-matched to actual Android app
   
   App Theme (from src/theme/typography.ts):
     background:  #f9fafb  (surface)
     cards:       #ffffff
     primary txt: #111827  (gray-900)
     body txt:    #374151  (gray-700)
     muted:       #6b7280  (gray-500)
     hint:        #9ca3af  (gray-400)
     border:      #e5e7eb  (gray-200)
     divider:     #f3f4f6  (gray-100)
     success:     #16a34a  (green-600)
     danger:      #dc2626  (red-600)
     stock/amber: #d97706  (amber-600)
     ledger:      #4f46e5  (indigo-600)
     buttons:     #111827  (bg-gray-900)
   ========================================================================== */

:root {
  /* ── App-accurate color tokens ─────────────────────────── */
  --bg-page: #f9fafb;
  /* surface / screen bg */
  --bg-card: #ffffff;
  /* card background */
  --bg-card-2: #f3f4f6;
  /* divider / faint bg */
  --border: #e5e7eb;
  /* card borders */
  --divider: #f3f4f6;

  /* Text */
  --text-primary: #111827;
  /* gray-900 headings */
  --text-body: #374151;
  /* gray-700 body */
  --text-muted: #6b7280;
  /* gray-500 labels */
  --text-hint: #9ca3af;
  /* gray-400 hints */
  --text-white: #ffffff;

  /* Accent colours (direct from app) */
  --success: #16a34a;
  /* profit, income */
  --success-bg: #dcfce7;
  --danger: #dc2626;
  /* expense, give */
  --danger-bg: #fee2e2;
  --amber: #d97706;
  /* stock */
  --amber-bg: #fffbeb;
  --indigo: #4f46e5;
  /* ledger/udhar */
  --indigo-bg: #eef2ff;

  /* Button (bg-gray-900 in every screen) */
  --btn-primary: #111827;
  --btn-primary-hov: #1f2937;

  /* ── Layout ─────────────────────────────────────────────── */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* ── Typography helpers ─────────────────────────────────── */
.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
}

.section-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Gradient hero text ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #111827 0%, #4f46e5 60%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--btn-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}

.btn-primary:hover {
  background: var(--btn-primary-hov);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.3);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--btn-primary);
  background: var(--bg-page);
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

/* Official Play Store badge — no custom button, just the Google-issued image */
.playstore-badge {
  display: inline-block;
  transition: var(--transition);
  line-height: 0;
}

.playstore-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.playstore-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.playstore-badge-hero {
  display: inline-block;
  transition: var(--transition);
  line-height: 0;
}

.playstore-badge-hero:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.playstore-badge-hero img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-playstore-badge {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-playstore-badge:hover {
  opacity: 0.85;
}

.footer-playstore-badge img {
  display: block;
}

.btn-hero-primary {
  background: var(--btn-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.35);
}

.btn-hero-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-hero-secondary:hover {
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-subtext {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.btn-maintext {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(249, 250, 251, 0.98);
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-name .highlight {
  color: var(--success);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 60px 0;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern — like app's surface bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background: var(--success-bg);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── Android Phone Mockup ───────────────────────────────── */
.hero-demo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Outer wrapper — flex row: [vol buttons] [phone body] [power button] */
.phone-outer {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.3));
}

/* ── Side button columns ─── */
.phone-side-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 90px;
  /* aligns with upper-mid body */
}

.phone-side-right {
  display: flex;
  flex-direction: column;
  padding-top: 75px;
}

.phone-btn-left {
  width: 5px;
  height: 44px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-radius: 3px 0 0 3px;
  border: 1px solid #334155;
  border-right: none;
}

.phone-btn-right {
  width: 5px;
  height: 58px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-radius: 0 3px 3px 0;
  border: 1px solid #334155;
  border-left: none;
}

/* ── Main phone body ─── */
.android-phone-frame {
  flex: 1;
  max-width: 470px;
  background: linear-gradient(160deg, #334155 0%, #0f172a 100%);
  border-radius: 46px;
  padding: 14px;
  border: 2px solid #475569;
  position: relative;
  /* Speaker notch above screen */
}

.android-phone-frame::before {
  content: '';
  display: block;
  width: 40px;
  height: 5px;
  background: #1e293b;
  border-radius: 3px;
  margin: 0 auto 10px;
}

/* ── Screen ─── */
.phone-screen {
  background: var(--bg-page);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid #000;
}

/* ── Status bar ─── */
.android-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.status-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.camera-punch-hole {
  width: 11px;
  height: 11px;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #1e293b;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
}

/* ── App content inside screen ─── */
.hero-demo-card {
  background: var(--bg-page);
  padding: 12px;
  flex: 1;
}

/* ── Bottom nav bar ─── */
.android-nav-bar {
  background: var(--bg-card);
  padding: 8px 0 10px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.nav-home-pill {
  width: 90px;
  height: 4px;
  background: #94a3b8;
  border-radius: 4px;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.demo-shop-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 5px;
  overflow: hidden;
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-select-dropdown {
  background: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.status-online {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.date-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Dashboard cards (HomeScreen card pattern) ─────────── */
.dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 4px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dash-card:hover {
  box-shadow: var(--shadow-card);
}

.dash-card.sales-card {
  border-left-color: var(--success);
}

.dash-card.expense-card {
  border-left-color: var(--danger);
}

.dash-card.stock-card {
  border-left-color: var(--amber);
}

.dash-card.udhar-card {
  border-left-color: var(--indigo);
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dash-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.dash-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.expense-red {
  color: var(--danger);
}

.stock-amber {
  color: var(--amber);
}

.trend-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--success-bg);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
}

.dash-divider {
  height: 1px;
  background: var(--divider);
  margin: 10px 0;
}

.dash-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.dash-row-label {
  color: var(--text-muted);
}

.dash-row-val {
  font-weight: 600;
  color: var(--text-primary);
}

.get-green {
  color: var(--success) !important;
}

.give-red {
  color: var(--danger) !important;
}

.badge-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.dash-cta {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  margin-top: 4px;
  transition: var(--transition);
}

.dash-cta:hover {
  color: var(--text-primary);
  border-color: #9ca3af;
}

.stock-meta-text {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 8px 0;
}

/* ── Audience Bar ────────────────────────────────────────── */
.audience-bar {
  padding: 20px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.audience-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-hint);
}

.audience-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-body);
}

/* ── Features Grid ───────────────────────────────────────── */
.features-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--border);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Per-module top accent color */
.feature-card.card-green {
  border-top-color: var(--success);
}

.feature-card.card-red {
  border-top-color: var(--danger);
}

.feature-card.card-amber {
  border-top-color: var(--amber);
}

.feature-card.card-indigo {
  border-top-color: var(--indigo);
}

.feature-card.card-blue {
  border-top-color: #2563eb;
}

.feature-card.card-purple {
  border-top-color: #7c3aed;
}

/* Icon + title on same row */
.feature-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-emerald {
  background: var(--success-bg);
  color: var(--success);
}

.icon-indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}

.icon-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.icon-rose {
  background: var(--danger-bg);
  color: var(--danger);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.feature-footer-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 4px;
}

/* Pro tag */
.pro-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--amber);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── 2-col grid sections ─────────────────────────────────── */
.multi-shop-spotlight,
.stock-section {
  padding: 90px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.stock-spotlight {
  padding: 110px 0 90px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse>* {
  direction: ltr;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.spot-item {
  display: flex;
  gap: 14px;
}

.spot-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 13px;
}

.spot-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.spot-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-body);
  font-size: 14px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.mt-4 {
  margin-top: 24px;
}

/* ── Branch/Tab card ─────────────────────────────────────── */
.branch-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hover);
}

.branch-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.branch-tab {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.branch-tab.active {
  background: var(--btn-primary);
  color: #fff;
  border-color: var(--btn-primary);
}

.branch-display-content {}

.branch-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.branch-header-info h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.branch-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.branch-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.metric-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.m-title {
  display: block;
  font-size: 10px;
  color: var(--text-hint);
  margin-bottom: 3px;
}

.m-val {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.m-val.alert {
  color: var(--danger);
}

.m-val.highlight {
  color: var(--amber);
}

.branch-inventory-mini {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
}

.inv-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-hint);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-body);
  padding: 5px 0;
  border-bottom: 1px solid var(--divider);
}

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

.stock-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.stock-badge.in-stock {
  background: var(--success-bg);
  color: var(--success);
}

.stock-badge.low-stock {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ── Stock section visual card ───────────────────────────── */
.stock-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hover);
}

.stock-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.live-tag {
  font-size: 11px;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.stock-item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.item-detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text-body);
}

.stock-progress-bar {
  height: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
}

.fill-green {
  background: var(--success);
}

.fill-amber {
  background: var(--amber);
}

.stock-action-hint {
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(217, 119, 6, 0.15);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

/* ── Financial summary mini cards ───────────────────────── */
.financial-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.fin-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.fin-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fin-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 3px 0;
}

.fin-card.income .fin-amount {
  color: var(--success);
}

.fin-card.expense .fin-amount {
  color: var(--danger);
}

.fin-card.profit .fin-amount {
  color: var(--amber);
}

.fin-trend {
  font-size: 10px;
  font-weight: 600;
}

.fin-trend.positive {
  color: var(--success);
}

.fin-trend.negative {
  color: var(--text-muted);
}

.fin-trend.highlight {
  color: var(--amber);
}

/* ── Quick entry form ────────────────────────────────────── */
.demo-entry-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.entry-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.entry-form input,
.entry-form select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.entry-form input:focus {
  border-color: var(--btn-primary);
}

.entry-form input::placeholder {
  color: var(--text-hint);
}

.btn-add-entry {
  grid-column: span 2;
  background: var(--btn-primary);
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-entry:hover {
  background: var(--btn-primary-hov);
}

/* ── Security Banner ────────────────────────────────────── */
.security-section {
  padding: 70px 0;
  background: var(--bg-page);
}

.security-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.sec-icon {
  font-size: 44px;
}

.sec-text {
  flex: 1;
  min-width: 240px;
}

.sec-text h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sec-text p {
  color: var(--text-body);
  font-size: 14px;
}

.sec-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-pill {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  padding: 90px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  color: var(--amber);
  margin-bottom: 12px;
  letter-spacing: 2px;
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.reviewer-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.reviewer-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
  padding: 90px 0;
  background: var(--bg-page);
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 22px;
}

.faq-answer p {
  padding-bottom: 18px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ── Download CTA ────────────────────────────────────────── */
.download-banner-section {
  padding: 70px 0 100px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.cta-banner {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-card);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
}

.cta-qr-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-qr-box span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Clean Footer ───────────────────────────────────────── */
.footer {
  background: var(--text-primary);
  padding: 52px 0 28px;
}

.footer-simple {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Top row: brand left, badge right */
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  gap: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
}

.footer .brand-name {
  color: #fff;
}

.footer .brand-name .highlight {
  color: #4ade80;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 13px;
  max-width: 380px;
}

/* Bottom row: links left, copyright right */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links-row a {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links-row a:hover {
  color: #fff;
}

.footer-copy-text {
  font-size: 12px;
  color: #6b7280;
}

/* ── CTA inline logo beside title ───────────────────────── */
.cta-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cta-inline-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
}

.cta-title-row .cta-title {
  margin-bottom: 0;
}

/* ── Old footer styles kept for compatibility ────────────── */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-desc {
  color: #9ca3af;
  font-size: 13px;
  margin-top: 14px;
  max-width: 300px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a:hover {
  color: #fff;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
}

.modal-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--text-body);
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-qr-img {
  display: inline-block;
  padding: 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.modal-stores {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {

  .hero-container,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .financial-summary-grid {
    grid-template-columns: 1fr;
  }

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